@rnsk/toolkits 0.0.9 → 0.0.11

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 (402) hide show
  1. package/README.md +18 -2
  2. package/dist/index.d.ts +17 -1
  3. package/dist/index.js +33 -1
  4. package/dist/toolkits/bitbucket/tools/index.d.ts +5 -5
  5. package/dist/toolkits/bitbucket/tools/reports.d.ts +5 -5
  6. package/dist/toolkits/cloudflare/tools/create-list.d.ts +1 -1
  7. package/dist/toolkits/cloudflare/tools/create-zone.d.ts +1 -1
  8. package/dist/toolkits/cloudflare/tools/index.d.ts +4 -4
  9. package/dist/toolkits/cloudflare/tools/list-pools.d.ts +1 -1
  10. package/dist/toolkits/cloudflare/tools/list-zones.d.ts +1 -1
  11. package/dist/toolkits/convex/icon.d.ts +5 -0
  12. package/dist/toolkits/convex/icon.js +10 -0
  13. package/dist/toolkits/convex/manifest.d.ts +3 -0
  14. package/dist/toolkits/convex/manifest.js +33 -0
  15. package/dist/toolkits/convex/tools/client.d.ts +28 -0
  16. package/dist/toolkits/convex/tools/client.js +85 -0
  17. package/dist/toolkits/convex/tools/deploy-keys.d.ts +10 -0
  18. package/dist/toolkits/convex/tools/deploy-keys.js +46 -0
  19. package/dist/toolkits/convex/tools/deployments.d.ts +35 -0
  20. package/dist/toolkits/convex/tools/deployments.js +126 -0
  21. package/dist/toolkits/convex/tools/domains.d.ts +7 -0
  22. package/dist/toolkits/convex/tools/domains.js +29 -0
  23. package/dist/toolkits/convex/tools/functions.d.ts +14 -0
  24. package/dist/toolkits/convex/tools/functions.js +49 -0
  25. package/dist/toolkits/convex/tools/index.d.ts +176 -0
  26. package/dist/toolkits/convex/tools/index.js +145 -0
  27. package/dist/toolkits/convex/tools/logging.d.ts +5 -0
  28. package/dist/toolkits/convex/tools/logging.js +25 -0
  29. package/dist/toolkits/convex/tools/projects.d.ts +31 -0
  30. package/dist/toolkits/convex/tools/projects.js +111 -0
  31. package/dist/toolkits/convex/tools/teams.d.ts +12 -0
  32. package/dist/toolkits/convex/tools/teams.js +62 -0
  33. package/dist/toolkits/datadog/icon.d.ts +5 -0
  34. package/dist/toolkits/datadog/icon.js +6 -0
  35. package/dist/toolkits/datadog/manifest.d.ts +3 -0
  36. package/dist/toolkits/datadog/manifest.js +44 -0
  37. package/dist/toolkits/datadog/tools/api-keys.d.ts +21 -0
  38. package/dist/toolkits/datadog/tools/api-keys.js +42 -0
  39. package/dist/toolkits/datadog/tools/apm.d.ts +51 -0
  40. package/dist/toolkits/datadog/tools/apm.js +106 -0
  41. package/dist/toolkits/datadog/tools/client.d.ts +19 -0
  42. package/dist/toolkits/datadog/tools/client.js +81 -0
  43. package/dist/toolkits/datadog/tools/dashboards.d.ts +93 -0
  44. package/dist/toolkits/datadog/tools/dashboards.js +127 -0
  45. package/dist/toolkits/datadog/tools/events.d.ts +35 -0
  46. package/dist/toolkits/datadog/tools/events.js +56 -0
  47. package/dist/toolkits/datadog/tools/hosts.d.ts +49 -0
  48. package/dist/toolkits/datadog/tools/hosts.js +87 -0
  49. package/dist/toolkits/datadog/tools/incidents.d.ts +18 -0
  50. package/dist/toolkits/datadog/tools/incidents.js +34 -0
  51. package/dist/toolkits/datadog/tools/index.d.ts +999 -0
  52. package/dist/toolkits/datadog/tools/index.js +450 -0
  53. package/dist/toolkits/datadog/tools/integrations.d.ts +32 -0
  54. package/dist/toolkits/datadog/tools/integrations.js +47 -0
  55. package/dist/toolkits/datadog/tools/logs.d.ts +39 -0
  56. package/dist/toolkits/datadog/tools/logs.js +121 -0
  57. package/dist/toolkits/datadog/tools/metrics.d.ts +27 -0
  58. package/dist/toolkits/datadog/tools/metrics.js +83 -0
  59. package/dist/toolkits/datadog/tools/monitors.d.ts +95 -0
  60. package/dist/toolkits/datadog/tools/monitors.js +190 -0
  61. package/dist/toolkits/datadog/tools/oncall-notifications.d.ts +61 -0
  62. package/dist/toolkits/datadog/tools/oncall-notifications.js +155 -0
  63. package/dist/toolkits/datadog/tools/oncall-policies.d.ts +28 -0
  64. package/dist/toolkits/datadog/tools/oncall-policies.js +72 -0
  65. package/dist/toolkits/datadog/tools/oncall-schedules.d.ts +31 -0
  66. package/dist/toolkits/datadog/tools/oncall-schedules.js +87 -0
  67. package/dist/toolkits/datadog/tools/oncall-teams.d.ts +14 -0
  68. package/dist/toolkits/datadog/tools/oncall-teams.js +54 -0
  69. package/dist/toolkits/datadog/tools/slos.d.ts +43 -0
  70. package/dist/toolkits/datadog/tools/slos.js +62 -0
  71. package/dist/toolkits/datadog/tools/synthetics.d.ts +58 -0
  72. package/dist/toolkits/datadog/tools/synthetics.js +90 -0
  73. package/dist/toolkits/datadog/tools/usage.d.ts +7 -0
  74. package/dist/toolkits/datadog/tools/usage.js +25 -0
  75. package/dist/toolkits/datadog/tools/users.d.ts +35 -0
  76. package/dist/toolkits/datadog/tools/users.js +66 -0
  77. package/dist/toolkits/dev-to/icon.d.ts +5 -0
  78. package/dist/toolkits/dev-to/icon.js +10 -0
  79. package/dist/toolkits/dev-to/manifest.d.ts +3 -0
  80. package/dist/toolkits/dev-to/manifest.js +34 -0
  81. package/dist/toolkits/dev-to/tools/articles.d.ts +78 -0
  82. package/dist/toolkits/dev-to/tools/articles.js +262 -0
  83. package/dist/toolkits/dev-to/tools/client.d.ts +25 -0
  84. package/dist/toolkits/dev-to/tools/client.js +65 -0
  85. package/dist/toolkits/dev-to/tools/community.d.ts +61 -0
  86. package/dist/toolkits/dev-to/tools/community.js +244 -0
  87. package/dist/toolkits/dev-to/tools/index.d.ts +202 -0
  88. package/dist/toolkits/dev-to/tools/index.js +37 -0
  89. package/dist/toolkits/dev-to/tools/listings.d.ts +26 -0
  90. package/dist/toolkits/dev-to/tools/listings.js +92 -0
  91. package/dist/toolkits/discord/tools/applications.d.ts +5 -5
  92. package/dist/toolkits/discord/tools/index.d.ts +5 -5
  93. package/dist/toolkits/figma/tools/create-modify-delete-variables.d.ts +1 -1
  94. package/dist/toolkits/figma/tools/get-file-nodes.d.ts +1 -1
  95. package/dist/toolkits/figma/tools/index.d.ts +3 -3
  96. package/dist/toolkits/figma/tools/render-images-of-file-nodes.d.ts +1 -1
  97. package/dist/toolkits/google-analytics/tools/reports.d.ts +9 -9
  98. package/dist/toolkits/google-classroom/tools/index.d.ts +7 -7
  99. package/dist/toolkits/google-classroom/tools/invitations.d.ts +2 -2
  100. package/dist/toolkits/google-classroom/tools/misc.d.ts +1 -1
  101. package/dist/toolkits/google-classroom/tools/roster.d.ts +5 -5
  102. package/dist/toolkits/google-search-console/tools/index.d.ts +2 -2
  103. package/dist/toolkits/google-search-console/tools/search-analytics-query.d.ts +2 -2
  104. package/dist/toolkits/hacker-news/icon.d.ts +5 -0
  105. package/dist/toolkits/hacker-news/icon.js +9 -0
  106. package/dist/toolkits/hacker-news/manifest.d.ts +3 -0
  107. package/dist/toolkits/hacker-news/manifest.js +25 -0
  108. package/dist/toolkits/hacker-news/tools/client.d.ts +8 -0
  109. package/dist/toolkits/hacker-news/tools/client.js +51 -0
  110. package/dist/toolkits/hacker-news/tools/index.d.ts +89 -0
  111. package/dist/toolkits/hacker-news/tools/index.js +22 -0
  112. package/dist/toolkits/hacker-news/tools/items.d.ts +42 -0
  113. package/dist/toolkits/hacker-news/tools/items.js +126 -0
  114. package/dist/toolkits/hacker-news/tools/search.d.ts +12 -0
  115. package/dist/toolkits/hacker-news/tools/search.js +40 -0
  116. package/dist/toolkits/hacker-news/tools/stories.d.ts +25 -0
  117. package/dist/toolkits/hacker-news/tools/stories.js +98 -0
  118. package/dist/toolkits/hostinger/icon.d.ts +5 -0
  119. package/dist/toolkits/hostinger/icon.js +6 -0
  120. package/dist/toolkits/hostinger/manifest.d.ts +3 -0
  121. package/dist/toolkits/hostinger/manifest.js +36 -0
  122. package/dist/toolkits/hostinger/tools/billing.d.ts +12 -0
  123. package/dist/toolkits/hostinger/tools/billing.js +35 -0
  124. package/dist/toolkits/hostinger/tools/client.d.ts +6 -0
  125. package/dist/toolkits/hostinger/tools/client.js +57 -0
  126. package/dist/toolkits/hostinger/tools/dns.d.ts +22 -0
  127. package/dist/toolkits/hostinger/tools/dns.js +47 -0
  128. package/dist/toolkits/hostinger/tools/domains.d.ts +21 -0
  129. package/dist/toolkits/hostinger/tools/domains.js +62 -0
  130. package/dist/toolkits/hostinger/tools/hosting.d.ts +17 -0
  131. package/dist/toolkits/hostinger/tools/hosting.js +38 -0
  132. package/dist/toolkits/hostinger/tools/index.d.ts +179 -0
  133. package/dist/toolkits/hostinger/tools/index.js +35 -0
  134. package/dist/toolkits/hostinger/tools/vps.d.ts +27 -0
  135. package/dist/toolkits/hostinger/tools/vps.js +77 -0
  136. package/dist/toolkits/hostinger/tools/whois.d.ts +33 -0
  137. package/dist/toolkits/hostinger/tools/whois.js +85 -0
  138. package/dist/toolkits/hugging-face/icon.d.ts +5 -0
  139. package/dist/toolkits/hugging-face/icon.js +6 -0
  140. package/dist/toolkits/hugging-face/manifest.d.ts +3 -0
  141. package/dist/toolkits/hugging-face/manifest.js +42 -0
  142. package/dist/toolkits/hugging-face/tools/client.d.ts +93 -0
  143. package/dist/toolkits/hugging-face/tools/client.js +192 -0
  144. package/dist/toolkits/hugging-face/tools/datasets-viewer.d.ts +65 -0
  145. package/dist/toolkits/hugging-face/tools/datasets-viewer.js +150 -0
  146. package/dist/toolkits/hugging-face/tools/datasets.d.ts +160 -0
  147. package/dist/toolkits/hugging-face/tools/datasets.js +383 -0
  148. package/dist/toolkits/hugging-face/tools/discussions.d.ts +68 -0
  149. package/dist/toolkits/hugging-face/tools/discussions.js +144 -0
  150. package/dist/toolkits/hugging-face/tools/index.d.ts +523 -0
  151. package/dist/toolkits/hugging-face/tools/index.js +163 -0
  152. package/dist/toolkits/hugging-face/tools/inference.d.ts +42 -0
  153. package/dist/toolkits/hugging-face/tools/inference.js +86 -0
  154. package/dist/toolkits/hugging-face/tools/models.d.ts +117 -0
  155. package/dist/toolkits/hugging-face/tools/models.js +273 -0
  156. package/dist/toolkits/hugging-face/tools/papers.d.ts +37 -0
  157. package/dist/toolkits/hugging-face/tools/papers.js +91 -0
  158. package/dist/toolkits/hugging-face/tools/repos.d.ts +96 -0
  159. package/dist/toolkits/hugging-face/tools/repos.js +201 -0
  160. package/dist/toolkits/hugging-face/tools/settings.d.ts +53 -0
  161. package/dist/toolkits/hugging-face/tools/settings.js +88 -0
  162. package/dist/toolkits/hugging-face/tools/spaces.d.ts +245 -0
  163. package/dist/toolkits/hugging-face/tools/spaces.js +468 -0
  164. package/dist/toolkits/hugging-face/tools/sql.d.ts +21 -0
  165. package/dist/toolkits/hugging-face/tools/sql.js +47 -0
  166. package/dist/toolkits/hugging-face/tools/users.d.ts +60 -0
  167. package/dist/toolkits/hugging-face/tools/users.js +132 -0
  168. package/dist/toolkits/hugging-face/tools/webhooks.d.ts +35 -0
  169. package/dist/toolkits/hugging-face/tools/webhooks.js +87 -0
  170. package/dist/toolkits/jira/icon.d.ts +5 -0
  171. package/dist/toolkits/jira/icon.js +6 -0
  172. package/dist/toolkits/jira/manifest.d.ts +3 -0
  173. package/dist/toolkits/jira/manifest.js +53 -0
  174. package/dist/toolkits/jira/tools/boards.d.ts +52 -0
  175. package/dist/toolkits/jira/tools/boards.js +104 -0
  176. package/dist/toolkits/jira/tools/client.d.ts +23 -0
  177. package/dist/toolkits/jira/tools/client.js +270 -0
  178. package/dist/toolkits/jira/tools/index.d.ts +1280 -0
  179. package/dist/toolkits/jira/tools/index.js +119 -0
  180. package/dist/toolkits/jira/tools/issue-fields.d.ts +10 -0
  181. package/dist/toolkits/jira/tools/issue-fields.js +111 -0
  182. package/dist/toolkits/jira/tools/issues.d.ts +304 -0
  183. package/dist/toolkits/jira/tools/issues.js +593 -0
  184. package/dist/toolkits/jira/tools/meta.d.ts +212 -0
  185. package/dist/toolkits/jira/tools/meta.js +369 -0
  186. package/dist/toolkits/jira/tools/projects.d.ts +130 -0
  187. package/dist/toolkits/jira/tools/projects.js +263 -0
  188. package/dist/toolkits/jira/tools/search.d.ts +90 -0
  189. package/dist/toolkits/jira/tools/search.js +181 -0
  190. package/dist/toolkits/jira/tools/users.d.ts +114 -0
  191. package/dist/toolkits/jira/tools/users.js +221 -0
  192. package/dist/toolkits/kaggle/icon.d.ts +5 -0
  193. package/dist/toolkits/kaggle/icon.js +6 -0
  194. package/dist/toolkits/kaggle/manifest.d.ts +3 -0
  195. package/dist/toolkits/kaggle/manifest.js +32 -0
  196. package/dist/toolkits/kaggle/tools/client.d.ts +10 -0
  197. package/dist/toolkits/kaggle/tools/client.js +94 -0
  198. package/dist/toolkits/kaggle/tools/competitions.d.ts +48 -0
  199. package/dist/toolkits/kaggle/tools/competitions.js +109 -0
  200. package/dist/toolkits/kaggle/tools/config.d.ts +110 -0
  201. package/dist/toolkits/kaggle/tools/config.js +256 -0
  202. package/dist/toolkits/kaggle/tools/datasets.d.ts +88 -0
  203. package/dist/toolkits/kaggle/tools/datasets.js +161 -0
  204. package/dist/toolkits/kaggle/tools/index.d.ts +482 -0
  205. package/dist/toolkits/kaggle/tools/index.js +53 -0
  206. package/dist/toolkits/kaggle/tools/kernels.d.ts +62 -0
  207. package/dist/toolkits/kaggle/tools/kernels.js +121 -0
  208. package/dist/toolkits/kaggle/tools/model_instance_files.d.ts +11 -0
  209. package/dist/toolkits/kaggle/tools/model_instance_files.js +23 -0
  210. package/dist/toolkits/kaggle/tools/model_instances.d.ts +8 -0
  211. package/dist/toolkits/kaggle/tools/model_instances.js +20 -0
  212. package/dist/toolkits/kaggle/tools/models.d.ts +14 -0
  213. package/dist/toolkits/kaggle/tools/models.js +33 -0
  214. package/dist/toolkits/nasa/icon.d.ts +5 -0
  215. package/dist/toolkits/nasa/icon.js +56 -0
  216. package/dist/toolkits/nasa/manifest.d.ts +3 -0
  217. package/dist/toolkits/nasa/manifest.js +49 -0
  218. package/dist/toolkits/nasa/tools/agage.d.ts +60 -0
  219. package/dist/toolkits/nasa/tools/agage.js +176 -0
  220. package/dist/toolkits/nasa/tools/client.d.ts +95 -0
  221. package/dist/toolkits/nasa/tools/client.js +337 -0
  222. package/dist/toolkits/nasa/tools/cmr.d.ts +268 -0
  223. package/dist/toolkits/nasa/tools/cmr.js +984 -0
  224. package/dist/toolkits/nasa/tools/donki.d.ts +63 -0
  225. package/dist/toolkits/nasa/tools/donki.js +301 -0
  226. package/dist/toolkits/nasa/tools/eonet.d.ts +74 -0
  227. package/dist/toolkits/nasa/tools/eonet.js +279 -0
  228. package/dist/toolkits/nasa/tools/icesat2.d.ts +25 -0
  229. package/dist/toolkits/nasa/tools/icesat2.js +97 -0
  230. package/dist/toolkits/nasa/tools/imagery.d.ts +36 -0
  231. package/dist/toolkits/nasa/tools/imagery.js +138 -0
  232. package/dist/toolkits/nasa/tools/index.d.ts +1063 -0
  233. package/dist/toolkits/nasa/tools/index.js +865 -0
  234. package/dist/toolkits/nasa/tools/neo.d.ts +15 -0
  235. package/dist/toolkits/nasa/tools/neo.js +75 -0
  236. package/dist/toolkits/nasa/tools/ntrs.d.ts +152 -0
  237. package/dist/toolkits/nasa/tools/ntrs.js +292 -0
  238. package/dist/toolkits/nasa/tools/osdr.d.ts +72 -0
  239. package/dist/toolkits/nasa/tools/osdr.js +290 -0
  240. package/dist/toolkits/nasa/tools/planetary.d.ts +58 -0
  241. package/dist/toolkits/nasa/tools/planetary.js +312 -0
  242. package/dist/toolkits/nasa/tools/power.d.ts +52 -0
  243. package/dist/toolkits/nasa/tools/power.js +213 -0
  244. package/dist/toolkits/nasa/tools/ssc.d.ts +44 -0
  245. package/dist/toolkits/nasa/tools/ssc.js +92 -0
  246. package/dist/toolkits/nasa/tools/tolnet.d.ts +84 -0
  247. package/dist/toolkits/nasa/tools/tolnet.js +254 -0
  248. package/dist/toolkits/neo4j/icon.d.ts +5 -0
  249. package/dist/toolkits/neo4j/icon.js +6 -0
  250. package/dist/toolkits/neo4j/manifest.d.ts +3 -0
  251. package/dist/toolkits/neo4j/manifest.js +33 -0
  252. package/dist/toolkits/neo4j/tools/analytics.d.ts +21 -0
  253. package/dist/toolkits/neo4j/tools/analytics.js +91 -0
  254. package/dist/toolkits/neo4j/tools/client.d.ts +6 -0
  255. package/dist/toolkits/neo4j/tools/client.js +105 -0
  256. package/dist/toolkits/neo4j/tools/index.d.ts +198 -0
  257. package/dist/toolkits/neo4j/tools/index.js +30 -0
  258. package/dist/toolkits/neo4j/tools/instances.d.ts +47 -0
  259. package/dist/toolkits/neo4j/tools/instances.js +127 -0
  260. package/dist/toolkits/neo4j/tools/projects.d.ts +44 -0
  261. package/dist/toolkits/neo4j/tools/projects.js +110 -0
  262. package/dist/toolkits/neo4j/tools/snapshots.d.ts +20 -0
  263. package/dist/toolkits/neo4j/tools/snapshots.js +57 -0
  264. package/dist/toolkits/neon/icon.d.ts +5 -0
  265. package/dist/toolkits/neon/icon.js +8 -0
  266. package/dist/toolkits/neon/manifest.d.ts +3 -0
  267. package/dist/toolkits/neon/manifest.js +36 -0
  268. package/dist/toolkits/neon/tools/auth.d.ts +115 -0
  269. package/dist/toolkits/neon/tools/auth.js +286 -0
  270. package/dist/toolkits/neon/tools/branches.d.ts +189 -0
  271. package/dist/toolkits/neon/tools/branches.js +465 -0
  272. package/dist/toolkits/neon/tools/client.d.ts +10 -0
  273. package/dist/toolkits/neon/tools/client.js +69 -0
  274. package/dist/toolkits/neon/tools/dataapi.d.ts +42 -0
  275. package/dist/toolkits/neon/tools/dataapi.js +111 -0
  276. package/dist/toolkits/neon/tools/endpoints.d.ts +59 -0
  277. package/dist/toolkits/neon/tools/endpoints.js +163 -0
  278. package/dist/toolkits/neon/tools/index.d.ts +976 -0
  279. package/dist/toolkits/neon/tools/index.js +130 -0
  280. package/dist/toolkits/neon/tools/meta.d.ts +4 -0
  281. package/dist/toolkits/neon/tools/meta.js +16 -0
  282. package/dist/toolkits/neon/tools/orgs.d.ts +112 -0
  283. package/dist/toolkits/neon/tools/orgs.js +303 -0
  284. package/dist/toolkits/neon/tools/projects.d.ts +177 -0
  285. package/dist/toolkits/neon/tools/projects.js +468 -0
  286. package/dist/toolkits/neon/tools/snapshots.d.ts +24 -0
  287. package/dist/toolkits/neon/tools/snapshots.js +67 -0
  288. package/dist/toolkits/new-relic/icon.d.ts +5 -0
  289. package/dist/toolkits/new-relic/icon.js +6 -0
  290. package/dist/toolkits/new-relic/manifest.d.ts +3 -0
  291. package/dist/toolkits/new-relic/manifest.js +41 -0
  292. package/dist/toolkits/new-relic/tools/admin.d.ts +310 -0
  293. package/dist/toolkits/new-relic/tools/admin.js +282 -0
  294. package/dist/toolkits/new-relic/tools/alert-policies.d.ts +74 -0
  295. package/dist/toolkits/new-relic/tools/alert-policies.js +136 -0
  296. package/dist/toolkits/new-relic/tools/apm.d.ts +129 -0
  297. package/dist/toolkits/new-relic/tools/apm.js +228 -0
  298. package/dist/toolkits/new-relic/tools/client.d.ts +62 -0
  299. package/dist/toolkits/new-relic/tools/client.js +167 -0
  300. package/dist/toolkits/new-relic/tools/conditions.d.ts +190 -0
  301. package/dist/toolkits/new-relic/tools/conditions.js +265 -0
  302. package/dist/toolkits/new-relic/tools/config.d.ts +73 -0
  303. package/dist/toolkits/new-relic/tools/config.js +131 -0
  304. package/dist/toolkits/new-relic/tools/dashboards.d.ts +204 -0
  305. package/dist/toolkits/new-relic/tools/dashboards.js +159 -0
  306. package/dist/toolkits/new-relic/tools/entities.d.ts +160 -0
  307. package/dist/toolkits/new-relic/tools/entities.js +218 -0
  308. package/dist/toolkits/new-relic/tools/index.d.ts +23 -0
  309. package/dist/toolkits/new-relic/tools/index.js +179 -0
  310. package/dist/toolkits/new-relic/tools/ingest.d.ts +31 -0
  311. package/dist/toolkits/new-relic/tools/ingest.js +80 -0
  312. package/dist/toolkits/new-relic/tools/notifications.d.ts +186 -0
  313. package/dist/toolkits/new-relic/tools/notifications.js +232 -0
  314. package/dist/toolkits/new-relic/tools/nrql-conditions.d.ts +105 -0
  315. package/dist/toolkits/new-relic/tools/nrql-conditions.js +136 -0
  316. package/dist/toolkits/new-relic/tools/nrql.d.ts +38 -0
  317. package/dist/toolkits/new-relic/tools/nrql.js +99 -0
  318. package/dist/toolkits/new-relic/tools/synthetics.d.ts +176 -0
  319. package/dist/toolkits/new-relic/tools/synthetics.js +246 -0
  320. package/dist/toolkits/notebook-lm/icon.d.ts +5 -0
  321. package/dist/toolkits/notebook-lm/icon.js +6 -0
  322. package/dist/toolkits/notebook-lm/manifest.d.ts +3 -0
  323. package/dist/toolkits/notebook-lm/manifest.js +44 -0
  324. package/dist/toolkits/notebook-lm/tools/add-text-sources.d.ts +36 -0
  325. package/dist/toolkits/notebook-lm/tools/add-text-sources.js +51 -0
  326. package/dist/toolkits/notebook-lm/tools/create-audio-overview.d.ts +47 -0
  327. package/dist/toolkits/notebook-lm/tools/create-audio-overview.js +55 -0
  328. package/dist/toolkits/notebook-lm/tools/create-notebook.d.ts +52 -0
  329. package/dist/toolkits/notebook-lm/tools/create-notebook.js +49 -0
  330. package/dist/toolkits/notebook-lm/tools/delete-audio-overview.d.ts +33 -0
  331. package/dist/toolkits/notebook-lm/tools/delete-audio-overview.js +46 -0
  332. package/dist/toolkits/notebook-lm/tools/delete-notebooks.d.ts +32 -0
  333. package/dist/toolkits/notebook-lm/tools/delete-notebooks.js +46 -0
  334. package/dist/toolkits/notebook-lm/tools/delete-sources.d.ts +33 -0
  335. package/dist/toolkits/notebook-lm/tools/delete-sources.js +47 -0
  336. package/dist/toolkits/notebook-lm/tools/get-notebook.d.ts +52 -0
  337. package/dist/toolkits/notebook-lm/tools/get-notebook.js +45 -0
  338. package/dist/toolkits/notebook-lm/tools/get-source.d.ts +53 -0
  339. package/dist/toolkits/notebook-lm/tools/get-source.js +47 -0
  340. package/dist/toolkits/notebook-lm/tools/index.d.ts +516 -0
  341. package/dist/toolkits/notebook-lm/tools/index.js +93 -0
  342. package/dist/toolkits/notebook-lm/tools/list-recent-notebooks.d.ts +32 -0
  343. package/dist/toolkits/notebook-lm/tools/list-recent-notebooks.js +41 -0
  344. package/dist/toolkits/notebook-lm/tools/share-notebook.d.ts +48 -0
  345. package/dist/toolkits/notebook-lm/tools/share-notebook.js +57 -0
  346. package/dist/toolkits/notebook-lm/tools/upload-source-file.d.ts +40 -0
  347. package/dist/toolkits/notebook-lm/tools/upload-source-file.js +62 -0
  348. package/dist/toolkits/notebook-lm/tools/utils.d.ts +15 -0
  349. package/dist/toolkits/notebook-lm/tools/utils.js +46 -0
  350. package/dist/toolkits/npm/icon.d.ts +5 -0
  351. package/dist/toolkits/npm/icon.js +11 -0
  352. package/dist/toolkits/npm/manifest.d.ts +3 -0
  353. package/dist/toolkits/npm/manifest.js +35 -0
  354. package/dist/toolkits/npm/tools/client.d.ts +19 -0
  355. package/dist/toolkits/npm/tools/client.js +64 -0
  356. package/dist/toolkits/npm/tools/downloads.d.ts +19 -0
  357. package/dist/toolkits/npm/tools/downloads.js +39 -0
  358. package/dist/toolkits/npm/tools/index.d.ts +14 -0
  359. package/dist/toolkits/npm/tools/index.js +24 -0
  360. package/dist/toolkits/npm/tools/registry.d.ts +24 -0
  361. package/dist/toolkits/npm/tools/registry.js +58 -0
  362. package/dist/toolkits/npm/tools/security.d.ts +9 -0
  363. package/dist/toolkits/npm/tools/security.js +29 -0
  364. package/dist/toolkits/slack/tools/admin-users.d.ts +1 -1
  365. package/dist/toolkits/slack/tools/slack-lists.d.ts +3 -3
  366. package/dist/toolkits/snowflake/icon.d.ts +5 -0
  367. package/dist/toolkits/snowflake/icon.js +6 -0
  368. package/dist/toolkits/snowflake/manifest.d.ts +3 -0
  369. package/dist/toolkits/snowflake/manifest.js +32 -0
  370. package/dist/toolkits/snowflake/tools/catalog.d.ts +56 -0
  371. package/dist/toolkits/snowflake/tools/catalog.js +123 -0
  372. package/dist/toolkits/snowflake/tools/client.d.ts +53 -0
  373. package/dist/toolkits/snowflake/tools/client.js +145 -0
  374. package/dist/toolkits/snowflake/tools/index.d.ts +14 -0
  375. package/dist/toolkits/snowflake/tools/index.js +28 -0
  376. package/dist/toolkits/snowflake/tools/statements.d.ts +27 -0
  377. package/dist/toolkits/snowflake/tools/statements.js +84 -0
  378. package/dist/toolkits/snowflake/tools/status.d.ts +22 -0
  379. package/dist/toolkits/snowflake/tools/status.js +54 -0
  380. package/dist/toolkits/telegram/icon.d.ts +5 -0
  381. package/dist/toolkits/telegram/icon.js +6 -0
  382. package/dist/toolkits/telegram/manifest.d.ts +3 -0
  383. package/dist/toolkits/telegram/manifest.js +34 -0
  384. package/dist/toolkits/telegram/tools/bot.d.ts +13 -0
  385. package/dist/toolkits/telegram/tools/bot.js +23 -0
  386. package/dist/toolkits/telegram/tools/chats.d.ts +22 -0
  387. package/dist/toolkits/telegram/tools/chats.js +46 -0
  388. package/dist/toolkits/telegram/tools/client.d.ts +12 -0
  389. package/dist/toolkits/telegram/tools/client.js +46 -0
  390. package/dist/toolkits/telegram/tools/index.d.ts +15 -0
  391. package/dist/toolkits/telegram/tools/index.js +31 -0
  392. package/dist/toolkits/telegram/tools/messages.d.ts +86 -0
  393. package/dist/toolkits/telegram/tools/messages.js +134 -0
  394. package/dist/toolkits/telegram/tools/updates.d.ts +23 -0
  395. package/dist/toolkits/telegram/tools/updates.js +54 -0
  396. package/dist/toolkits/youtube/tools/get-channel-activities.d.ts +1 -1
  397. package/dist/toolkits/youtube/tools/index.d.ts +5 -5
  398. package/dist/toolkits/youtube/tools/list-channel-sections.d.ts +1 -1
  399. package/dist/toolkits/youtube/tools/post-comment.d.ts +1 -1
  400. package/dist/toolkits/youtube/tools/subscribe-channel.d.ts +1 -1
  401. package/dist/toolkits/youtube/tools/unsubscribe-channel.d.ts +1 -1
  402. package/package.json +2 -3
@@ -0,0 +1,201 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { hfApi, hfRedirect, HOSTS } from './client.js';
5
+ import { repoIdOf as _r, uiPrefix as _u } from './client.js';
6
+ const tokenField = z.string().optional().describe('Injected by system; do not provide');
7
+ function repoIdOf(namespace, repo, repoId) { return _r(namespace, repo, repoId); }
8
+ function uiPrefix(repoType) { return _u(repoType); }
9
+ export const huggingFaceCreateAskAccess = tool({
10
+ description: "Tool to request access to a gated repository on Hugging Face Hub. Use when you need to submit an access request for models, datasets, or Spaces that require approval. The fields required vary by repository.",
11
+ inputSchema: z.object({
12
+ huggingFaceToken: tokenField,
13
+ repo: z.string().describe("The repository name of the gated model, dataset, or Space."),
14
+ namespace: z.string().describe("The namespace (organization or user) that owns the gated repository."),
15
+ repoType: z.enum(["models", "datasets", "spaces"]).optional().describe("The type of repository (models, datasets, or spaces). Defaults to models."),
16
+ accessRequestFields: z.record(z.any()).describe("A dictionary of field names and values required by the repository's access form. Common fields include \"First Name\", \"Last Name\", \"Date of birth\" (YYYY-MM-DD format), \"Country\" (country code), \"Affiliation\", \"Job title\", and terms acceptance fields. The exact fields vary by repository and are specified in the repository's gated access configuration."),
17
+ }),
18
+ execute: async ({ huggingFaceToken, repo, namespace, repoType, accessRequestFields }) => {
19
+ const repoId = repoIdOf(namespace, repo, undefined);
20
+ const queryParams = undefined;
21
+ return hfApi(huggingFaceToken, { method: 'POST', url: `${HOSTS.HUB}/api/${repoType}/${repoId}/user-access-request`, body: accessRequestFields });
22
+ },
23
+ });
24
+ export const huggingFaceCreateCollection = tool({
25
+ description: "Tool to create a new collection on Hugging Face. Use when you need to organize and curate models, datasets, spaces, papers, or other collections into a named collection.",
26
+ inputSchema: z.object({
27
+ huggingFaceToken: tokenField,
28
+ item: z.record(z.any()).optional().describe("Item to be added to the collection upon creation."),
29
+ title: z.string().min(1).max(60).describe("The title of the collection. Must be between 1 and 60 characters."),
30
+ isPrivate: z.boolean().optional().describe("If not provided, the collection will be public. This field will respect the organization's visibility setting."),
31
+ namespace: z.string().describe("The namespace (username or organization) under which to create the collection"),
32
+ description: z.string().max(150).optional().describe("Optional description for the collection. Maximum 150 characters."),
33
+ }),
34
+ execute: async ({ huggingFaceToken, item, title, isPrivate, namespace, description }) => {
35
+ const queryParams = undefined;
36
+ const body = { item: item, title: title, private: isPrivate, namespace: namespace, description: description };
37
+ return hfApi(huggingFaceToken, { method: 'POST', url: `${HOSTS.HUB}/api/collections`, queryParams, body });
38
+ },
39
+ });
40
+ export const huggingFaceCreateRepo = tool({
41
+ description: "Tool to create a new repository (model, dataset, or Space) on Hugging Face Hub. Use when you need to initialize a new repository for uploading models, datasets, or deploying Spaces applications.",
42
+ inputSchema: z.object({
43
+ huggingFaceToken: tokenField,
44
+ sdk: z.enum(["gradio", "streamlit", "docker", "static"]).optional().describe("SDK options for Spaces."),
45
+ name: z.string().describe("The name of the repository to create. This will be the repository identifier within the namespace."),
46
+ type: z.enum(["model", "dataset", "space"]).optional().describe("The type of repository to create: model, dataset, or space. Defaults to 'model' if not specified."),
47
+ isPrivate: z.boolean().optional().describe("Whether the repository should be private. If not specified, follows the default visibility setting for your account or organization."),
48
+ organization: z.string().optional().describe("The organization namespace to create the repository under. If not provided, the repository will be created under your personal namespace."),
49
+ }),
50
+ execute: async ({ huggingFaceToken, sdk, name, type, isPrivate, organization }) => {
51
+ const queryParams = undefined;
52
+ const body = { sdk: sdk, name: name, type: type, private: isPrivate, organization: organization };
53
+ return hfApi(huggingFaceToken, { method: 'POST', url: `${HOSTS.HUB}/api/repos/create`, queryParams, body });
54
+ },
55
+ });
56
+ export const huggingFaceGetDatasetsTagsByType = tool({
57
+ description: "Tool to retrieve all possible tags used for datasets on Hugging Face, grouped by tag type. Use when you need to discover available dataset classification tags, filter options, or metadata categories. Optionally restrict results to a single tag type.",
58
+ inputSchema: z.object({
59
+ huggingFaceToken: tokenField,
60
+ type: z.enum(["benchmark", "task_categories", "size_categories", "modality", "format", "library", "language", "license", "arxiv", "doi", "region", "other", "task_ids", "annotations_creators", "language_creators", "multilinguality", "source_datasets"]).optional().describe("Valid tag type values for filtering dataset tags."),
61
+ }),
62
+ execute: async ({ huggingFaceToken, type }) => {
63
+ const queryParams = { type: type };
64
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/datasets-tags-by-type`, queryParams });
65
+ },
66
+ });
67
+ export const huggingFaceGetModelTagsByType = tool({
68
+ description: "Tool to retrieve all possible tags used for Hugging Face models, grouped by tag type. Use when you need to discover available model tags for filtering or categorization. Optionally restrict results to a specific tag type.",
69
+ inputSchema: z.object({
70
+ huggingFaceToken: tokenField,
71
+ type: z.enum(["pipeline_tag", "library", "dataset", "language", "license", "arxiv", "doi", "region", "other"]).optional().describe("Enum for model tag types on Hugging Face."),
72
+ }),
73
+ execute: async ({ huggingFaceToken, type }) => {
74
+ const queryParams = { type: type };
75
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/models-tags-by-type`, queryParams });
76
+ },
77
+ });
78
+ export const huggingFaceGetResolve = tool({
79
+ description: "Tool to resolve a file in a Hugging Face repository. Use when you need to access files from model, dataset, or space repositories. This endpoint follows redirections (302, 307) to retrieve the actual file. When Accept header is set to 'application/vnd.xet-fileinfo+json', returns JSON file metadata instead of redirecting to file content.",
80
+ inputSchema: z.object({
81
+ huggingFaceToken: tokenField,
82
+ rev: z.string().describe("The revision (branch, tag, or commit hash) to resolve. Common values include 'main' or specific Git commit SHAs."),
83
+ path: z.string().describe("The file path within the repository to resolve. For example, 'config.json', 'pytorch_model.bin', or 'tokenizer.json'."),
84
+ repo: z.string().describe("The repository name within the namespace. For example, 'bart-large' in 'facebook/bart-large'."),
85
+ range: z.string().optional().describe("The range in bytes of the file to download. Use HTTP Range header format like 'bytes=0-1023' to download only specific byte ranges."),
86
+ accept: z.string().optional().describe("Returns JSON information about the XET file info if the file is a XET file. Set to 'application/vnd.xet-fileinfo+json' to receive JSON file metadata instead of following redirect to file content."),
87
+ namespace: z.string().describe("The namespace (organization or user) that owns the repository. For example, 'facebook' in 'facebook/bart-large'."),
88
+ }),
89
+ execute: async ({ huggingFaceToken, rev, path, repo, range, accept, namespace }) => {
90
+ const prefix = uiPrefix(repoType);
91
+ const basePath = prefix ? `/${prefix}/${repoIdOf(namespace, repo, undefined)}` : `/${repoIdOf(namespace, repo, undefined)}`;
92
+ const queryParams = undefined;
93
+ return hfRedirect(huggingFaceToken, { url: `${HOSTS.HUB}${basePath}/resolve/${encodeURIComponent(rev)}/${path}`, queryParams, headers: { ...(accept ? { Accept: accept } : {}), ...(range ? { Range: range } : {}) } });
94
+ },
95
+ });
96
+ export const huggingFaceGetTrending = tool({
97
+ description: "Tool to retrieve trending repositories from Hugging Face. Use when you need to discover popular models, datasets, or spaces that are currently trending on the platform.",
98
+ inputSchema: z.object({
99
+ huggingFaceToken: tokenField,
100
+ type: z.enum(["all", "dataset", "model", "space"]).optional().describe("Repository type filter for trending repositories."),
101
+ limit: z.number().int().min(1).optional().describe("Maximum number of trending repositories to return. Defaults to 10."),
102
+ }),
103
+ execute: async ({ huggingFaceToken, type, limit }) => {
104
+ const queryParams = { repoType: type, limit: limit };
105
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/trending`, queryParams });
106
+ },
107
+ });
108
+ export const huggingFaceListCollections = tool({
109
+ description: "Tool to list collections on the Hugging Face Hub. Use when you need to discover collections of models, datasets, spaces, or papers. Collections are curated groups of repositories organized by users.",
110
+ inputSchema: z.object({
111
+ huggingFaceToken: tokenField,
112
+ q: z.string().optional().describe("Search query to filter collections by title or description. Use keywords to find relevant collections."),
113
+ item: z.string().optional().describe("Filter collections by item ID (repo_id, paper id, or collection slug). Use this to find collections containing a specific item."),
114
+ sort: z.enum(["upvotes", "lastModified", "trending"]).optional().describe("Enum for sorting options for collections."),
115
+ limit: z.number().int().min(1).max(100).optional().describe("Maximum number of collections to return per page. Defaults to 10."),
116
+ owner: z.string().optional().describe("Filter collections by owner username. Use this to get collections created by a specific user or organization."),
117
+ cursor: z.string().optional().describe("Pagination cursor for fetching the next page of results. Use the cursor from the previous response to get more collections."),
118
+ expand: z.string().optional().describe("Comma-separated list of fields to expand in the response. Use this to get additional details about collections."),
119
+ }),
120
+ execute: async ({ huggingFaceToken, q, item, sort, limit, owner, cursor, expand }) => {
121
+ const queryParams = { q: q, item: item, sort: sort, limit: limit, owner: owner, cursor: cursor, expand: expand };
122
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/collections`, queryParams });
123
+ },
124
+ });
125
+ export const huggingFaceListDatasets = tool({
126
+ description: "Tool to list datasets on the Hugging Face Hub. Use when you need to discover or search for datasets. Supports filtering by author, search query, tags, and sorting by various properties.",
127
+ inputSchema: z.object({
128
+ huggingFaceToken: tokenField,
129
+ sort: z.enum(["lastModified", "trending", "likes", "downloads"]).optional().describe("Enum for sorting properties."),
130
+ limit: z.number().int().min(1).max(500).optional().describe("Limit the number of datasets returned. Defaults to 100 if not specified."),
131
+ author: z.string().optional().describe("Filter datasets by an author or organization. Use this to get datasets from a specific user or org."),
132
+ cursor: z.string().optional().describe("Pagination cursor for fetching the next page of results. Use the next_cursor value from a previous response."),
133
+ filter: z.string().optional().describe("Filter based on tags. Use this to find datasets with specific tags like task types, languages, or licenses."),
134
+ search: z.string().optional().describe("Filter based on substrings for dataset names and their usernames. Use this to search for datasets by keyword."),
135
+ direction: z.enum(["asc", "desc"]).optional().describe("Enum for sort direction."),
136
+ }),
137
+ execute: async ({ huggingFaceToken, sort, limit, author, cursor, filter, search, direction }) => {
138
+ const queryParams = { search: search, author: author, filter: filter, sort: sort, direction: direction, limit: limit, cursor: cursor };
139
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/datasets`, queryParams });
140
+ },
141
+ });
142
+ export const huggingFaceListDocs = tool({
143
+ description: "Tool to retrieve the list of available documentation from Hugging Face. Use when you need to discover available documentation resources.",
144
+ inputSchema: z.object({
145
+ huggingFaceToken: tokenField,
146
+ }),
147
+ execute: async ({ huggingFaceToken }) => {
148
+ const queryParams = undefined;
149
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/docs`, queryParams });
150
+ },
151
+ });
152
+ export const huggingFaceListRepoFiles = tool({
153
+ description: "Tool to get the file tree of a Hugging Face repository with pagination support. Use when you need to browse files and folders in any repository type (model, dataset, or space), explore repository structure, or discover available files.",
154
+ inputSchema: z.object({
155
+ huggingFaceToken: tokenField,
156
+ path: z.string().optional().describe("Path within the repository to list. Use empty string or '.' for root directory. Supports nested paths."),
157
+ limit: z.number().int().min(1).optional().describe("Maximum number of items to return. Defaults to 1000, or 100 when expand=true. Use with cursor for pagination."),
158
+ cursor: z.string().optional().describe("Pagination cursor from a previous response to fetch the next page of results. Omit for the first page."),
159
+ expand: z.boolean().optional().describe("If true, returns associated commit data for each entry and security scanner metadata. Defaults to false if not specified."),
160
+ repoId: z.string().describe("Repository ID in the format author/repo-name. Example: 'google-bert/bert-base-uncased' for a model."),
161
+ revision: z.string().optional().describe("Git revision (branch, tag, or commit SHA) to list. Use 'main' for default branch."),
162
+ recursive: z.boolean().optional().describe("If true, returns the tree recursively including all subdirectories. Defaults to false if not specified."),
163
+ repoType: z.enum(["model", "dataset", "space"]).describe("Repository type: model, dataset, or space."),
164
+ }),
165
+ execute: async ({ huggingFaceToken, path, limit, cursor, expand, repoId, revision, recursive, repoType }) => {
166
+ const seg = repoType + 's';
167
+ const queryParams = { path: path, recursive: recursive, expand: expand, limit: limit, cursor: cursor };
168
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/${seg}/${repoId}/tree/${encodeURIComponent(revision ?? 'main')}`, queryParams });
169
+ },
170
+ });
171
+ export const huggingFaceListSpaces = tool({
172
+ description: "Tool to list Spaces on the Hugging Face Hub with filtering options. Use when you need to discover or search for ML demo applications hosted on Hugging Face.",
173
+ inputSchema: z.object({
174
+ huggingFaceToken: tokenField,
175
+ sort: z.string().optional().describe("Property to use when sorting results. Common values include 'lastModified', 'likes', 'trending', or 'created'."),
176
+ limit: z.number().int().min(1).max(500).optional().describe("Maximum number of spaces to return in the response. Must be between 1 and 500."),
177
+ author: z.string().optional().describe("Filter spaces by a specific author or organization name."),
178
+ filter: z.string().optional().describe("Filter based on tags. You can specify tags to find spaces by SDK type (e.g., 'gradio', 'streamlit'), task type, or other characteristics."),
179
+ search: z.string().optional().describe("Filter based on substrings for repos and their usernames. Use to search for specific space names or authors."),
180
+ direction: z.string().optional().describe("Direction in which to sort results. Use '1' for ascending order or '-1' for descending order. Must be used together with the sort parameter."),
181
+ }),
182
+ execute: async ({ huggingFaceToken, sort, limit, author, filter, search, direction }) => {
183
+ const queryParams = { search: search, author: author, filter: filter, sort: sort, direction: direction, limit: limit };
184
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces`, queryParams });
185
+ },
186
+ });
187
+ export const huggingFaceSearchDocs = tool({
188
+ description: "Tool to search Hugging Face documentation across all products and libraries. Use when you need to find information about HF tools, models, datasets, or API usage.",
189
+ inputSchema: z.object({
190
+ huggingFaceToken: tokenField,
191
+ q: z.string().describe("Search query string to find relevant documentation pages. Use keywords related to the topic you want to learn about."),
192
+ limit: z.number().int().min(1).max(100).optional().describe("Maximum number of search results to return. Defaults to 10."),
193
+ offset: z.number().int().min(0).optional().describe("Number of results to skip for pagination. Use with limit to page through results. For example, offset=10 with limit=10 returns results 11-20."),
194
+ product: z.enum(["hub", "transformers", "diffusers", "datasets", "gradio", "trackio", "smolagents", "huggingface_hub", "huggingface.js", "transformers.js", "inference-providers", "inference-endpoints", "peft", "accelerate", "optimum", "optimum-habana", "optimum-neuron", "optimum-intel", "optimum-executorch", "optimum-tpu", "tokenizers", "llm-course", "robotics-course", "mcp-course", "smol-course", "agents-course", "deep-rl-course", "computer-vision-course", "evaluate", "tasks", "dataset-viewer", "trl", "simulate", "sagemaker", "timm", "safetensors", "tgi", "setfit", "audio-course", "lerobot", "reachy_mini", "autotrain", "tei", "bitsandbytes", "cookbook", "sentence_transformers", "ml-games-course", "diffusion-course", "ml-for-3d-course", "chat-ui", "leaderboards", "lighteval", "argilla", "distilabel", "microsoft-azure", "kernels", "google-cloud"]).optional().describe("Enum for Hugging Face product types to search documentation."),
195
+ }),
196
+ execute: async ({ huggingFaceToken, q, limit, offset, product }) => {
197
+ const queryParams = { q: q, limit: limit, offset: offset, product: product };
198
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/docs/search`, queryParams });
199
+ },
200
+ });
201
+ //# sourceMappingURL=repos.js.map
@@ -0,0 +1,53 @@
1
+ export declare const huggingFaceGetJobsHardware: import("ai").Tool<{
2
+ huggingFaceToken?: string | undefined;
3
+ }, any>;
4
+ export declare const huggingFaceGetSettingsBillingUsageJobs: import("ai").Tool<{
5
+ huggingFaceToken?: string | undefined;
6
+ }, any>;
7
+ export declare const huggingFaceGetSettingsBillingUsageLive: import("ai").Tool<{
8
+ timeout?: number | undefined;
9
+ huggingFaceToken?: string | undefined;
10
+ }, {
11
+ error: string;
12
+ details?: undefined;
13
+ events?: undefined;
14
+ totalEvents?: undefined;
15
+ message?: undefined;
16
+ } | {
17
+ error: string;
18
+ details: any;
19
+ events?: undefined;
20
+ totalEvents?: undefined;
21
+ message?: undefined;
22
+ } | {
23
+ events: any[];
24
+ totalEvents: number;
25
+ error?: undefined;
26
+ details?: undefined;
27
+ message?: undefined;
28
+ } | {
29
+ error: string;
30
+ message: string;
31
+ details?: undefined;
32
+ events?: undefined;
33
+ totalEvents?: undefined;
34
+ }>;
35
+ export declare const huggingFaceGetSettingsBillingUsageV2: import("ai").Tool<{
36
+ startDate: number;
37
+ endDate: number;
38
+ huggingFaceToken?: string | undefined;
39
+ }, any>;
40
+ export declare const huggingFaceGetSettingsMcp: import("ai").Tool<{
41
+ huggingFaceToken?: string | undefined;
42
+ }, any>;
43
+ export declare const huggingFaceUpdateSettingsNotifications: import("ai").Tool<{
44
+ notifications: Record<string, any>;
45
+ huggingFaceToken?: string | undefined;
46
+ prepaidAmount?: string | undefined;
47
+ }, any>;
48
+ export declare const huggingFaceUpdateSettingsWatch: import("ai").Tool<{
49
+ huggingFaceToken?: string | undefined;
50
+ add?: Record<string, any>[] | undefined;
51
+ deleteList?: Record<string, any>[] | undefined;
52
+ }, any>;
53
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1,88 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { hfApi, hfStream, HOSTS } from './client.js';
5
+ import { repoIdOf as _r, uiPrefix as _u } from './client.js';
6
+ const tokenField = z.string().optional().describe('Injected by system; do not provide');
7
+ function repoIdOf(namespace, repo, repoId) { return _r(namespace, repo, repoId); }
8
+ function uiPrefix(repoType) { return _u(repoType); }
9
+ export const huggingFaceGetJobsHardware = tool({
10
+ description: "Tool to retrieve available hardware configurations for Hugging Face Jobs with their specifications and pricing. Use when you need to discover compute options for running jobs.",
11
+ inputSchema: z.object({
12
+ huggingFaceToken: tokenField,
13
+ }),
14
+ execute: async ({ huggingFaceToken }) => {
15
+ const queryParams = undefined;
16
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/jobs/hardware`, queryParams });
17
+ },
18
+ });
19
+ export const huggingFaceGetSettingsBillingUsageJobs = tool({
20
+ description: "Tool to retrieve Jobs usage and billing information for the current subscription period from Hugging Face. Use when you need to check compute usage, costs, or job execution details for the authenticated user or organization.",
21
+ inputSchema: z.object({
22
+ huggingFaceToken: tokenField,
23
+ }),
24
+ execute: async ({ huggingFaceToken }) => {
25
+ const queryParams = undefined;
26
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/settings/billing/usage/jobs`, queryParams });
27
+ },
28
+ });
29
+ export const huggingFaceGetSettingsBillingUsageLive = tool({
30
+ description: "Tool to retrieve live billing usage stream from Hugging Face. Use when you need real-time updates on storage, inference, Zero GPU usage, and rate limits.",
31
+ inputSchema: z.object({
32
+ huggingFaceToken: tokenField,
33
+ timeout: z.number().int().min(1).max(30).optional().describe("Maximum time in seconds to wait for live usage updates. Defaults to 5 seconds."),
34
+ }),
35
+ execute: async ({ huggingFaceToken, timeout }) => {
36
+ const queryParams = { timeout: timeout };
37
+ return hfStream(huggingFaceToken, { url: `${HOSTS.HUB}/api/settings/billing/usage/live`, queryParams, timeoutMs: ((timeout ?? 5) * 1000) });
38
+ },
39
+ });
40
+ export const huggingFaceGetSettingsBillingUsageV2 = tool({
41
+ description: "Tool to retrieve user billing usage for a custom date range from Hugging Face. Use when you need to check usage statistics or resource consumption between specific dates using Unix timestamps.",
42
+ inputSchema: z.object({
43
+ huggingFaceToken: tokenField,
44
+ endDate: z.number().int().describe("End date of the billing period as Unix timestamp (seconds since epoch). Defines the end of the date range for which to retrieve usage data. Must be after start_date."),
45
+ startDate: z.number().int().describe("Start date of the billing period as Unix timestamp (seconds since epoch). Defines the beginning of the date range for which to retrieve usage data."),
46
+ }),
47
+ execute: async ({ huggingFaceToken, endDate, startDate }) => {
48
+ const queryParams = { start_date: startDate, end_date: endDate };
49
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/settings/billing/usage/v2`, queryParams });
50
+ },
51
+ });
52
+ export const huggingFaceGetSettingsMcp = tool({
53
+ description: "Tool to retrieve MCP (Model Context Protocol) tools configuration for the authenticated user. Use when you need to discover available built-in tools and space-based tools configured in the user's Hugging Face settings.",
54
+ inputSchema: z.object({
55
+ huggingFaceToken: tokenField,
56
+ }),
57
+ execute: async ({ huggingFaceToken }) => {
58
+ const queryParams = undefined;
59
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/settings/mcp`, queryParams });
60
+ },
61
+ });
62
+ export const huggingFaceUpdateSettingsNotifications = tool({
63
+ description: "Tool to update notification settings for the authenticated Hugging Face user. Use when you need to enable or disable various notification types such as announcements, discussions, paper digests, or product updates.",
64
+ inputSchema: z.object({
65
+ huggingFaceToken: tokenField,
66
+ notifications: z.record(z.any()).describe("Notification settings to update. Only include the specific notification preferences you want to change."),
67
+ prepaidAmount: z.string().max(24).optional().describe("Prepaid amount to be provided when enabling launch_prepaid_credits notification. Maximum length is 24 characters."),
68
+ }),
69
+ execute: async ({ huggingFaceToken, notifications, prepaidAmount }) => {
70
+ const queryParams = undefined;
71
+ const body = { notifications: notifications, prepaid_amount: prepaidAmount };
72
+ return hfApi(huggingFaceToken, { method: 'PUT', url: `${HOSTS.HUB}/api/settings/notifications`, queryParams, body });
73
+ },
74
+ });
75
+ export const huggingFaceUpdateSettingsWatch = tool({
76
+ description: "Tool to update watch settings for your Hugging Face account. Use when you want to get notified about discussions on organizations, users, or repositories. You can add new items to watch and/or remove items from your watch list in a single request.",
77
+ inputSchema: z.object({
78
+ huggingFaceToken: tokenField,
79
+ add: z.array(z.record(z.any())).optional().describe("Array of items to start watching. Each item must specify an 'id' and 'type'. You will receive notifications when discussions happen on these items. Leave empty if you only want to remove items from watch list."),
80
+ deleteList: z.array(z.record(z.any())).optional().describe("Array of items to stop watching. Each item must specify an 'id' and 'type'. You will no longer receive notifications for discussions on these items. Leave empty if you only want to add items to watch list."),
81
+ }),
82
+ execute: async ({ huggingFaceToken, add, deleteList }) => {
83
+ const queryParams = undefined;
84
+ const body = { add: add, delete: deleteList };
85
+ return hfApi(huggingFaceToken, { method: 'PUT', url: `${HOSTS.HUB}/api/settings/watch`, queryParams, body });
86
+ },
87
+ });
88
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1,245 @@
1
+ export declare const huggingFaceCheckSpacesUploadMethod: import("ai").Tool<{
2
+ repo: string;
3
+ files: Record<string, any>[];
4
+ namespace: string;
5
+ rev: string;
6
+ huggingFaceToken?: string | undefined;
7
+ gitIgnore?: string | undefined;
8
+ gitAttributes?: string | undefined;
9
+ }, any>;
10
+ export declare const huggingFaceCreateSpacesBranch: import("ai").Tool<{
11
+ repo: string;
12
+ namespace: string;
13
+ rev: string;
14
+ huggingFaceToken?: string | undefined;
15
+ overwrite?: boolean | undefined;
16
+ emptyBranch?: boolean | undefined;
17
+ startingPoint?: string | undefined;
18
+ }, any>;
19
+ export declare const huggingFaceCreateSpacesCommit: import("ai").Tool<{
20
+ summary: string;
21
+ repo: string;
22
+ namespace: string;
23
+ rev: string;
24
+ description?: string | undefined;
25
+ files?: Record<string, any>[] | undefined;
26
+ contentType?: "application/json" | "application/x-ndjson" | undefined;
27
+ huggingFaceToken?: string | undefined;
28
+ createPr?: string | undefined;
29
+ lfsFiles?: Record<string, any>[] | undefined;
30
+ hotReload?: string | undefined;
31
+ parentCommit?: string | undefined;
32
+ deletedEntries?: Record<string, any>[] | undefined;
33
+ }, any>;
34
+ export declare const huggingFaceCreateSpacesSecrets: import("ai").Tool<{
35
+ repo: string;
36
+ key: string;
37
+ namespace: string;
38
+ value?: string | undefined;
39
+ description?: string | undefined;
40
+ huggingFaceToken?: string | undefined;
41
+ }, any>;
42
+ export declare const huggingFaceCreateSpacesTag: import("ai").Tool<{
43
+ repo: string;
44
+ namespace: string;
45
+ tag: string;
46
+ rev: string;
47
+ message?: string | undefined;
48
+ huggingFaceToken?: string | undefined;
49
+ }, any>;
50
+ export declare const huggingFaceCreateSpacesVariables: import("ai").Tool<{
51
+ repo: string;
52
+ key: string;
53
+ namespace: string;
54
+ value?: string | undefined;
55
+ description?: string | undefined;
56
+ huggingFaceToken?: string | undefined;
57
+ }, any>;
58
+ export declare const huggingFaceDeleteSpacesBranch: import("ai").Tool<{
59
+ repo: string;
60
+ namespace: string;
61
+ rev: string;
62
+ huggingFaceToken?: string | undefined;
63
+ }, any>;
64
+ export declare const huggingFaceDeleteSpacesSecrets: import("ai").Tool<{
65
+ repo: string;
66
+ key: string;
67
+ namespace: string;
68
+ huggingFaceToken?: string | undefined;
69
+ }, any>;
70
+ export declare const huggingFaceDeleteSpacesTag: import("ai").Tool<{
71
+ repo: string;
72
+ namespace: string;
73
+ rev: string;
74
+ huggingFaceToken?: string | undefined;
75
+ }, any>;
76
+ export declare const huggingFaceDeleteSpacesVariables: import("ai").Tool<{
77
+ repo: string;
78
+ key: string;
79
+ namespace: string;
80
+ huggingFaceToken?: string | undefined;
81
+ }, any>;
82
+ export declare const huggingFaceGetResolveCacheSpaces: any;
83
+ export declare const huggingFaceGetSpaceInfo: import("ai").Tool<{
84
+ repoId: string;
85
+ revision?: string | undefined;
86
+ huggingFaceToken?: string | undefined;
87
+ }, any>;
88
+ export declare const huggingFaceGetSpacesCompare: any;
89
+ export declare const huggingFaceGetSpacesEvents: import("ai").Tool<{
90
+ repo: string;
91
+ namespace: string;
92
+ timeout?: number | undefined;
93
+ huggingFaceToken?: string | undefined;
94
+ sessionUuid?: string | undefined;
95
+ }, {
96
+ error: string;
97
+ details?: undefined;
98
+ events?: undefined;
99
+ totalEvents?: undefined;
100
+ message?: undefined;
101
+ } | {
102
+ error: string;
103
+ details: any;
104
+ events?: undefined;
105
+ totalEvents?: undefined;
106
+ message?: undefined;
107
+ } | {
108
+ events: any[];
109
+ totalEvents: number;
110
+ error?: undefined;
111
+ details?: undefined;
112
+ message?: undefined;
113
+ } | {
114
+ error: string;
115
+ message: string;
116
+ details?: undefined;
117
+ events?: undefined;
118
+ totalEvents?: undefined;
119
+ }>;
120
+ export declare const huggingFaceGetSpacesJwt: import("ai").Tool<{
121
+ repo: string;
122
+ namespace: string;
123
+ write?: string | undefined;
124
+ expiration?: string | undefined;
125
+ huggingFaceToken?: string | undefined;
126
+ encrypted?: string | undefined;
127
+ inferenceApi?: string | undefined;
128
+ includeProStatus?: string | undefined;
129
+ }, any>;
130
+ export declare const huggingFaceGetSpacesMetrics: import("ai").Tool<{
131
+ repo: string;
132
+ namespace: string;
133
+ timeout?: number | undefined;
134
+ huggingFaceToken?: string | undefined;
135
+ }, {
136
+ error: string;
137
+ details?: undefined;
138
+ events?: undefined;
139
+ totalEvents?: undefined;
140
+ message?: undefined;
141
+ } | {
142
+ error: string;
143
+ details: any;
144
+ events?: undefined;
145
+ totalEvents?: undefined;
146
+ message?: undefined;
147
+ } | {
148
+ events: any[];
149
+ totalEvents: number;
150
+ error?: undefined;
151
+ details?: undefined;
152
+ message?: undefined;
153
+ } | {
154
+ error: string;
155
+ message: string;
156
+ details?: undefined;
157
+ events?: undefined;
158
+ totalEvents?: undefined;
159
+ }>;
160
+ export declare const huggingFaceGetSpacesNotebook: import("ai").Tool<{
161
+ path: string;
162
+ repo: string;
163
+ namespace: string;
164
+ rev: string;
165
+ huggingFaceToken?: string | undefined;
166
+ }, any>;
167
+ export declare const huggingFaceGetSpacesResolve: any;
168
+ export declare const huggingFaceGetSpacesScan: import("ai").Tool<{
169
+ repo: string;
170
+ namespace: string;
171
+ huggingFaceToken?: string | undefined;
172
+ }, any>;
173
+ export declare const huggingFaceGetSpacesTreesize: import("ai").Tool<{
174
+ repo: string;
175
+ namespace: string;
176
+ rev: string;
177
+ path?: string | undefined;
178
+ huggingFaceToken?: string | undefined;
179
+ }, any>;
180
+ export declare const huggingFaceGetSpacesXetReadToken: import("ai").Tool<{
181
+ repo: string;
182
+ namespace: string;
183
+ rev: string;
184
+ huggingFaceToken?: string | undefined;
185
+ }, any>;
186
+ export declare const huggingFaceGetSpacesXetWriteToken: import("ai").Tool<{
187
+ repo: string;
188
+ namespace: string;
189
+ rev: string;
190
+ huggingFaceToken?: string | undefined;
191
+ createPr?: number | undefined;
192
+ }, any>;
193
+ export declare const huggingFaceListSpacesCommits: import("ai").Tool<{
194
+ repo: string;
195
+ namespace: string;
196
+ rev: string;
197
+ limit?: number | undefined;
198
+ huggingFaceToken?: string | undefined;
199
+ p?: number | undefined;
200
+ expand?: string[] | undefined;
201
+ }, any>;
202
+ export declare const huggingFaceListSpacesHardware: import("ai").Tool<{
203
+ huggingFaceToken?: string | undefined;
204
+ }, any>;
205
+ export declare const huggingFaceListSpacesLfsFiles: import("ai").Tool<{
206
+ repo: string;
207
+ namespace: string;
208
+ limit?: number | undefined;
209
+ cursor?: string | undefined;
210
+ huggingFaceToken?: string | undefined;
211
+ xet?: string | undefined;
212
+ }, any>;
213
+ export declare const huggingFaceListSpacesPathsInfo: import("ai").Tool<{
214
+ repo: string;
215
+ namespace: string;
216
+ rev: string;
217
+ expand: Record<string, any>;
218
+ paths: Record<string, any>;
219
+ huggingFaceToken?: string | undefined;
220
+ }, any>;
221
+ export declare const huggingFaceListSpacesRefs: import("ai").Tool<{
222
+ repo: string;
223
+ namespace: string;
224
+ huggingFaceToken?: string | undefined;
225
+ includePrs?: boolean | undefined;
226
+ }, any>;
227
+ export declare const huggingFaceSquashSpacesCommits: import("ai").Tool<{
228
+ repo: string;
229
+ namespace: string;
230
+ rev: string;
231
+ message?: string | undefined;
232
+ huggingFaceToken?: string | undefined;
233
+ }, any>;
234
+ export declare const huggingFaceUpdateSpacesSettings: import("ai").Tool<{
235
+ repo: string;
236
+ namespace: string;
237
+ isPrivate?: boolean | undefined;
238
+ huggingFaceToken?: string | undefined;
239
+ gated?: Record<string, any> | undefined;
240
+ discussionsSorting?: "reactions" | "trending" | "recently-created" | undefined;
241
+ discussionsDisabled?: boolean | undefined;
242
+ gatedNotificationsMode?: "bulk" | "real-time" | undefined;
243
+ gatedNotificationsEmail?: string | undefined;
244
+ }, any>;
245
+ //# sourceMappingURL=spaces.d.ts.map