@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,468 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { hfApi, hfCommit, 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 huggingFaceCheckSpacesUploadMethod = tool({
10
+ description: "Tool to check if files should be uploaded through the Large File mechanism or directly to Hugging Face Spaces. Use when preparing to upload files to a Hugging Face Space repository to determine the appropriate upload method for each file.",
11
+ inputSchema: z.object({
12
+ huggingFaceToken: tokenField,
13
+ rev: z.string().describe("The git revision (branch, tag, or commit hash) to upload to."),
14
+ repo: z.string().describe("The name of the Space repository."),
15
+ files: z.array(z.record(z.any())).max(1000).describe("List of files to check for upload method. Maximum 1000 files."),
16
+ gitIgnore: z.string().optional().describe("Content of the .gitignore file for the revision. Optional, otherwise uses existing .gitignore content."),
17
+ namespace: z.string().describe("The namespace (user or organization) that owns the Space repository."),
18
+ gitAttributes: z.string().optional().describe("Content of the .gitattributes file. Provide this if you plan to modify .gitattributes yourself when uploading LFS files. Not needed if relying on automatic LFS detection."),
19
+ }),
20
+ execute: async ({ huggingFaceToken, rev, repo, files, gitIgnore, namespace, gitAttributes }) => {
21
+ const repoId = repoIdOf(namespace, repo, undefined);
22
+ const queryParams = undefined;
23
+ const body = { files: files, git_attributes: gitAttributes, git_ignore: gitIgnore };
24
+ return hfApi(huggingFaceToken, { method: 'POST', url: `${HOSTS.HUB}/api/spaces/${repoId}/preupload/${encodeURIComponent(rev)}`, queryParams, body });
25
+ },
26
+ });
27
+ export const huggingFaceCreateSpacesBranch = tool({
28
+ description: "Tool to create a new branch in a Hugging Face space repository. Use when you need to create a branch for experimenting with space changes, versioning, or creating isolated development environments.",
29
+ inputSchema: z.object({
30
+ huggingFaceToken: tokenField,
31
+ rev: z.string().describe("The name for the new branch to be created (e.g., 'feature-branch', 'experiment-v2'). This will be the branch name in the repository."),
32
+ repo: z.string().describe("The name of the space repository where the branch will be created. For example, for space 'huggingface/my-space', the repo is 'my-space'."),
33
+ namespace: z.string().describe("The namespace (username or organization) that owns the space repository. For example, for space 'huggingface/my-space', the namespace is 'huggingface'."),
34
+ overwrite: z.boolean().optional().describe("Overwrite the branch if it already exists. If False (default), creating a branch that already exists will result in an error."),
35
+ emptyBranch: z.boolean().optional().describe("Create an empty branch without any files. If True, startingPoint is not required. If False (default), startingPoint should be provided."),
36
+ startingPoint: z.string().optional().describe("The commit hash or branch name to start the new branch from (e.g., 'main', 'dev', or a commit hash). Required unless creating an empty branch. Defaults to 'main' if not specified and emptyBranch is False."),
37
+ }),
38
+ execute: async ({ huggingFaceToken, rev, repo, namespace, overwrite, emptyBranch, startingPoint }) => {
39
+ const repoId = repoIdOf(namespace, repo, undefined);
40
+ const queryParams = undefined;
41
+ const body = { starting_point: startingPoint, empty_branch: emptyBranch, overwrite: overwrite };
42
+ return hfApi(huggingFaceToken, { method: 'POST', url: `${HOSTS.HUB}/api/spaces/${repoId}/branch/${encodeURIComponent(rev)}`, queryParams, body });
43
+ },
44
+ });
45
+ export const huggingFaceCreateSpacesCommit = tool({
46
+ description: "Tool to create a commit in a Hugging Face Space repository. Use when you need to add, update, or delete files in a Space. Supports both JSON and NDJSON (recommended) payload formats for commits.",
47
+ inputSchema: z.object({
48
+ huggingFaceToken: tokenField,
49
+ rev: z.string().describe("The revision (branch or commit) to commit to. Typically 'main' for the default branch"),
50
+ repo: z.string().describe("The name of the Space repository where the commit will be created. For example, for Space 'user/my-space', the repo is 'my-space'"),
51
+ files: z.array(z.record(z.any())).min(1).optional().describe("List of files to add or update in the commit. For JSON payload format only"),
52
+ summary: z.string().describe("Summary of the commit (required). This is the commit message title"),
53
+ createPr: z.string().optional().describe("Whether to create a pull request from the commit instead of committing directly. Set to 'true' to create a PR, 'false' or omit to commit directly"),
54
+ lfsFiles: z.array(z.record(z.any())).min(1).optional().describe("List of Large File Storage (LFS) files to add or update. For JSON payload format only"),
55
+ hotReload: z.string().optional().describe("For Spaces, whether to try to hot reload the commit (only works for single Python file updates). Set to 'true' to enable hot reload"),
56
+ namespace: z.string().describe("The namespace (username or organization) that owns the Space. For example, for Space 'user/my-space', the namespace is 'user'"),
57
+ contentType: z.enum(["application/json", "application/x-ndjson"]).optional().describe("Content type for the commit request."),
58
+ description: z.string().optional().describe("Detailed description of the commit (optional, defaults to empty string). This is the commit message body"),
59
+ parentCommit: z.string().optional().describe("The parent commit SHA (40-character hexadecimal). Optional, defaults to current HEAD of the branch"),
60
+ deletedEntries: z.array(z.record(z.any())).min(1).optional().describe("List of file paths to delete in the commit. For JSON payload format only"),
61
+ }),
62
+ execute: async ({ huggingFaceToken, rev, repo, files, summary, createPr, lfsFiles, hotReload, namespace, contentType, description, parentCommit, deletedEntries }) => {
63
+ const repoId = repoIdOf(namespace, repo, undefined);
64
+ const queryParams = undefined;
65
+ const typeSeg = { model: 'models', dataset: 'datasets', space: 'spaces' }['spaces'];
66
+ return hfCommit(huggingFaceToken, { repoType: typeSeg, repoId: repoIdOf(namespace, repo, undefined), rev, summary, description, parentCommit, files, lfsFiles, deletedEntries, createPr });
67
+ },
68
+ });
69
+ export const huggingFaceCreateSpacesSecrets = tool({
70
+ description: "Tool to create or update a secret in a Hugging Face Space. Use when you need to add or update environment variables or sensitive configuration values for a Space. This action upserts the secret, meaning it will create a new secret if it doesn't exist or update it if it already exists.",
71
+ inputSchema: z.object({
72
+ huggingFaceToken: tokenField,
73
+ key: z.string().describe("The name of the secret key. Must start with a letter and contain only letters, digits, and underscores (pattern: ^[a-zA-Z][_a-zA-Z0-9]*$). For example: 'API_KEY', 'DATABASE_URL', 'TEST_SECRET_KEY'."),
74
+ repo: z.string().describe("The name of the Space repository where the secret will be created or updated. For example, for Space 'huggingface/my-space', the repo is 'my-space'."),
75
+ value: z.string().optional().describe("The value of the secret. This will be stored securely and not visible after creation. Defaults to empty string if not provided."),
76
+ namespace: z.string().describe("The namespace (username or organization) that owns the Space. For example, for Space 'huggingface/my-space', the namespace is 'huggingface'."),
77
+ description: z.string().optional().describe("Optional description of the secret to help identify its purpose. For example: 'API key for external service', 'Database connection string'."),
78
+ }),
79
+ execute: async ({ huggingFaceToken, key, repo, value, namespace, description }) => {
80
+ const repoId = repoIdOf(namespace, repo, undefined);
81
+ const queryParams = undefined;
82
+ const body = { key: key, value: value, description: description };
83
+ return hfApi(huggingFaceToken, { method: 'POST', url: `${HOSTS.HUB}/api/spaces/${repoId}/secrets`, queryParams, body });
84
+ },
85
+ });
86
+ export const huggingFaceCreateSpacesTag = tool({
87
+ description: "Tool to create a tag on a Hugging Face space repository. Use when you need to mark a specific revision with a named tag.",
88
+ inputSchema: z.object({
89
+ huggingFaceToken: tokenField,
90
+ rev: z.string().describe("The revision (branch or commit SHA) to create the tag from, typically 'main'."),
91
+ tag: z.string().describe("The name of the tag to create (e.g., 'v1.0', 'release-2024')."),
92
+ repo: z.string().describe("The name of the space repository to create a tag for."),
93
+ message: z.string().optional().describe("Optional message describing the purpose of this tag."),
94
+ namespace: z.string().describe("The namespace (username or organization) that owns the space."),
95
+ }),
96
+ execute: async ({ huggingFaceToken, rev, tag, repo, message, namespace }) => {
97
+ const repoId = repoIdOf(namespace, repo, undefined);
98
+ const queryParams = undefined;
99
+ const body = { revision: rev, message: message };
100
+ return hfApi(huggingFaceToken, { method: 'POST', url: `${HOSTS.HUB}/api/spaces/${repoId}/tag/${encodeURIComponent(tag)}`, queryParams, body });
101
+ },
102
+ });
103
+ export const huggingFaceCreateSpacesVariables = tool({
104
+ description: "Tool to create or update a variable in a Hugging Face Space. Use when you need to add or update environment variables or configuration values for a Space. This action upserts the variable, meaning it will create a new variable if it doesn't exist or update it if it already exists.",
105
+ inputSchema: z.object({
106
+ huggingFaceToken: tokenField,
107
+ key: z.string().describe("The name of the variable key. Must start with a letter and contain only letters, digits, and underscores (pattern: ^[a-zA-Z][_a-zA-Z0-9]*$). For example: 'APP_MODE', 'DEBUG_ENABLED', 'TEST_VAR_123'."),
108
+ repo: z.string().describe("The name of the Space repository where the variable will be created or updated. For example, for Space 'huggingface/my-space', the repo is 'my-space'."),
109
+ value: z.string().optional().describe("The value of the variable. This will be stored and can be accessed by the Space. Defaults to empty string if not provided."),
110
+ namespace: z.string().describe("The namespace (username or organization) that owns the Space. For example, for Space 'huggingface/my-space', the namespace is 'huggingface'."),
111
+ description: z.string().optional().describe("Optional description of the variable to help identify its purpose. For example: 'Environment mode setting', 'Debug flag for development'."),
112
+ }),
113
+ execute: async ({ huggingFaceToken, key, repo, value, namespace, description }) => {
114
+ const repoId = repoIdOf(namespace, repo, undefined);
115
+ const queryParams = undefined;
116
+ const body = { key: key, value: value, description: description };
117
+ return hfApi(huggingFaceToken, { method: 'POST', url: `${HOSTS.HUB}/api/spaces/${repoId}/variables`, queryParams, body });
118
+ },
119
+ });
120
+ export const huggingFaceDeleteSpacesBranch = tool({
121
+ description: "Tool to delete a branch from a Hugging Face space repository. Use when you need to remove a branch that is no longer needed. This action permanently removes the specified branch from the space.",
122
+ inputSchema: z.object({
123
+ huggingFaceToken: tokenField,
124
+ rev: z.string().describe("The name of the branch to delete from the space repository. This should be a valid branch name (not the main branch in most cases)."),
125
+ repo: z.string().describe("The name of the space repository from which to delete the branch. This is the repository identifier without the namespace."),
126
+ namespace: z.string().describe("The namespace (user or organization) that owns the space. For example, '121tester' for a user or 'huggingface' for an organization."),
127
+ }),
128
+ execute: async ({ huggingFaceToken, rev, repo, namespace }) => {
129
+ const repoId = repoIdOf(namespace, repo, undefined);
130
+ const queryParams = undefined;
131
+ return hfApi(huggingFaceToken, { method: 'DELETE', url: `${HOSTS.HUB}/api/spaces/${repoId}/branch/${encodeURIComponent(rev)}`, queryParams });
132
+ },
133
+ });
134
+ export const huggingFaceDeleteSpacesSecrets = tool({
135
+ description: "Tool to delete a secret from a Hugging Face space. Use when you need to remove sensitive credentials or configuration values that are no longer needed. This action permanently removes the specified secret from the space's environment variables.",
136
+ inputSchema: z.object({
137
+ huggingFaceToken: tokenField,
138
+ key: z.string().describe("The key name of the secret to delete from the space. This should be the exact name of the secret as it appears in the space's settings."),
139
+ repo: z.string().describe("The name of the space repository from which to delete the secret. This is the repository identifier without the namespace."),
140
+ namespace: z.string().describe("The namespace (user or organization) that owns the space. For example, '121tester' for a user or 'huggingface' for an organization."),
141
+ }),
142
+ execute: async ({ huggingFaceToken, key, repo, namespace }) => {
143
+ const repoId = repoIdOf(namespace, repo, undefined);
144
+ const queryParams = undefined;
145
+ return hfApi(huggingFaceToken, { method: 'DELETE', url: `${HOSTS.HUB}/api/spaces/${repoId}/secrets/${encodeURIComponent(key)}`, queryParams });
146
+ },
147
+ });
148
+ export const huggingFaceDeleteSpacesTag = tool({
149
+ description: "Tool to delete a tag from a Hugging Face space. Use when you need to remove a specific tag revision from a space repository.",
150
+ inputSchema: z.object({
151
+ huggingFaceToken: tokenField,
152
+ rev: z.string().describe("The tag revision to delete from the space."),
153
+ repo: z.string().describe("The repository name of the space."),
154
+ namespace: z.string().describe("The namespace (organization or user) that owns the space."),
155
+ }),
156
+ execute: async ({ huggingFaceToken, rev, repo, namespace }) => {
157
+ const repoId = repoIdOf(namespace, repo, undefined);
158
+ const queryParams = undefined;
159
+ return hfApi(huggingFaceToken, { method: 'DELETE', url: `${HOSTS.HUB}/api/spaces/${repoId}/tag/${encodeURIComponent(rev)}`, queryParams });
160
+ },
161
+ });
162
+ export const huggingFaceDeleteSpacesVariables = tool({
163
+ description: "Tool to delete a variable from a Hugging Face space. Use when you need to remove configuration values or environment variables that are no longer needed. This action permanently removes the specified variable from the space's environment.",
164
+ inputSchema: z.object({
165
+ huggingFaceToken: tokenField,
166
+ key: z.string().describe("The key name of the variable to delete from the space. This should be the exact name of the variable as it appears in the space's settings."),
167
+ repo: z.string().describe("The name of the space repository from which to delete the variable. This is the repository identifier without the namespace."),
168
+ namespace: z.string().describe("The namespace (user or organization) that owns the space. For example, '121tester' for a user or 'huggingface' for an organization."),
169
+ }),
170
+ execute: async ({ huggingFaceToken, key, repo, namespace }) => {
171
+ const repoId = repoIdOf(namespace, repo, undefined);
172
+ const queryParams = undefined;
173
+ return hfApi(huggingFaceToken, { method: 'DELETE', url: `${HOSTS.HUB}/api/spaces/${repoId}/variables/${encodeURIComponent(key)}`, queryParams });
174
+ },
175
+ });
176
+ export const huggingFaceGetResolveCacheSpaces = tool({
177
+ description: "Tool to resolve and retrieve a file from Hugging Face Spaces cache. Use when you need to download a file from a Space repository or get XET file information. This endpoint follows redirections (HTTP 302/307) to resolve the final file location.",
178
+ inputSchema: z.object({
179
+ huggingFaceToken: tokenField,
180
+ rev: z.string().describe("The git revision (branch, tag, or commit hash) to retrieve the file from. Use a full commit SHA for exact version, or 'main' for the default branch."),
181
+ path: z.string().describe("The path to the file within the repository. This is a wildcard path parameter that can include subdirectories and filename."),
182
+ repo: z.string().describe("The repository name of the Space. For example, 'gradio-user-history' for the Wauplin/gradio-user-history Space."),
183
+ range: z.string().optional().describe("The range in bytes of the file to download. Format: 'bytes=start-end'. If not provided, the entire file will be retrieved."),
184
+ accept: z.string().optional().describe("Accept header to specify the response format. Use 'application/vnd.xet-fileinfo+json' to get JSON information about XET file info instead of the file content."),
185
+ namespace: z.string().describe("The namespace (user or organization) that owns the Space. For example, 'Wauplin' for the Wauplin/gradio-user-history Space."),
186
+ }),
187
+ execute: async ({ huggingFaceToken, rev, path, repo, range, accept, namespace }) => {
188
+ const typeSeg = { model: 'models', dataset: 'datasets', space: 'spaces' }['spaces'];
189
+ const queryParams = undefined;
190
+ return hfRedirect(huggingFaceToken, { url: `${HOSTS.HUB}/api/${typeSeg}/${repoIdOf(namespace, repo, undefined)}/${encodeURIComponent(rev)}/${path}`, queryParams });
191
+ },
192
+ });
193
+ export const huggingFaceGetSpaceInfo = tool({
194
+ description: "Tool to retrieve detailed information about a Hugging Face Space repository. Use when you need metadata, SDK type, hardware configuration, runtime status, or other information about a specific Space.",
195
+ inputSchema: z.object({
196
+ huggingFaceToken: tokenField,
197
+ repoId: z.string().describe("Space repository ID in the format author/space-name (e.g., 'Qwen/Qwen3-TTS', 'stabilityai/stable-diffusion')"),
198
+ revision: z.string().optional().describe("Git revision (branch, tag, or commit SHA) to retrieve information for. If not specified, defaults to the main branch"),
199
+ }),
200
+ execute: async ({ huggingFaceToken, repoId, revision }) => {
201
+ const queryParams = { revision: revision };
202
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces/${repoId}`, queryParams });
203
+ },
204
+ });
205
+ export const huggingFaceGetSpacesCompare = tool({
206
+ description: "Tool to compare two revisions of a Hugging Face Space repository. Returns a git diff showing file changes between commits. Use when you need to see what changed between Space versions.",
207
+ inputSchema: z.object({
208
+ huggingFaceToken: tokenField,
209
+ raw: z.boolean().optional().describe("If true, returns raw diff output. If false or omitted, returns formatted diff."),
210
+ repo: z.string().describe("The repository name of the Space (e.g., 'Qwen3-TTS', 'chatgpt-demo')."),
211
+ compare: z.string().describe("Comparison specification in the format 'commit1..commit2' (two dots). Each commit is a full Git commit hash. For example: 'bb80b9adea7bc1d818bc635e839db60b7d4aa8f1..8a132844625e28e09f36427c30070276dfd9b2ed'. Do NOT use three dots (...) as this format is not supported by the API."),
212
+ namespace: z.string().describe("The namespace or organization name that owns the Space (e.g., 'Qwen', 'openai', 'gradio')."),
213
+ }),
214
+ execute: async ({ huggingFaceToken, raw, repo, compare, namespace }) => {
215
+ const prefix = { models: '', datasets: 'datasets', spaces: 'spaces' }['spaces'];
216
+ const basePath = prefix ? `/${prefix}/${repoIdOf(namespace, repo, undefined)}` : `/${repoIdOf(namespace, repo, undefined)}`;
217
+ const queryParams = { raw: raw };
218
+ return hfText(huggingFaceToken, { url: `${HOSTS.HUB}${basePath}/compare/${compare}`, queryParams });
219
+ },
220
+ });
221
+ export const huggingFaceGetSpacesEvents = tool({
222
+ description: "Tool to stream status updates for a Hugging Face Space using SSE protocol. Use when you need to monitor Space build stages, runtime status, or receive real-time updates about Space state changes.",
223
+ inputSchema: z.object({
224
+ huggingFaceToken: tokenField,
225
+ repo: z.string().describe("The repository name of the Space."),
226
+ timeout: z.number().int().min(1).max(30).optional().describe("Maximum time in seconds to wait for status updates. Defaults to 5 seconds."),
227
+ namespace: z.string().describe("The namespace (username or organization) that owns the Space."),
228
+ sessionUuid: z.string().optional().describe("Optional session UUID to filter events for a specific session."),
229
+ }),
230
+ execute: async ({ huggingFaceToken, repo, timeout, namespace, sessionUuid }) => {
231
+ const repoId = repoIdOf(namespace, repo, undefined);
232
+ const queryParams = { timeout: timeout, session_uuid: sessionUuid };
233
+ return hfStream(huggingFaceToken, { url: `${HOSTS.HUB}/api/spaces/${repoId}/events`, queryParams, timeoutMs: ((timeout ?? 5) * 1000) });
234
+ },
235
+ });
236
+ export const huggingFaceGetSpacesJwt = tool({
237
+ description: "Tool to generate a JWT token for accessing a Hugging Face space repository. Use when you need authenticated access to spaces, with optional write access for spaces in dev mode, custom expiration, and encryption support.",
238
+ inputSchema: z.object({
239
+ huggingFaceToken: tokenField,
240
+ repo: z.string().describe("The name of the space repository."),
241
+ write: z.string().optional().describe("Enable write access for spaces in dev mode. Set to 'true' to enable write access."),
242
+ encrypted: z.string().optional().describe("Request an encrypted token. Set to 'true' to receive an encrypted JWT token and key ID."),
243
+ namespace: z.string().describe("The namespace (organization or user) that owns the space repository."),
244
+ expiration: z.string().optional().describe("Custom expiration time for the JWT token. Specify the duration or timestamp for token validity."),
245
+ inferenceApi: z.string().optional().describe("Enable inference API access with the token. Set to 'true' to enable."),
246
+ includeProStatus: z.string().optional().describe("Include PRO subscription status in the token. Set to 'true' to include PRO status information."),
247
+ }),
248
+ execute: async ({ huggingFaceToken, repo, write, encrypted, namespace, expiration, inferenceApi, includeProStatus }) => {
249
+ const repoId = repoIdOf(namespace, repo, undefined);
250
+ const queryParams = { write: write, encrypted: encrypted, expiration: expiration, inference_api: inferenceApi, include_pro_status: includeProStatus };
251
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces/${repoId}/jwt`, queryParams });
252
+ },
253
+ });
254
+ export const huggingFaceGetSpacesMetrics = tool({
255
+ description: "Tool to get live metrics for a specific Space in a streaming fashion, with SSE protocol, such as current Zero-GPU usage. Use when you need real-time monitoring of Space resource utilization.",
256
+ inputSchema: z.object({
257
+ huggingFaceToken: tokenField,
258
+ repo: z.string().describe("The repository name of the Space."),
259
+ timeout: z.number().int().min(1).max(30).optional().describe("Maximum time in seconds to wait for metrics updates. Defaults to 5 seconds."),
260
+ namespace: z.string().describe("The namespace (username or organization) that owns the Space."),
261
+ }),
262
+ execute: async ({ huggingFaceToken, repo, timeout, namespace }) => {
263
+ const repoId = repoIdOf(namespace, repo, undefined);
264
+ const queryParams = { timeout: timeout };
265
+ return hfStream(huggingFaceToken, { url: `${HOSTS.HUB}/api/spaces/${repoId}/metrics`, queryParams, timeoutMs: ((timeout ?? 5) * 1000) });
266
+ },
267
+ });
268
+ export const huggingFaceGetSpacesNotebook = tool({
269
+ description: "Tool to retrieve a Jupyter notebook URL from a Hugging Face space repository. Use when you need to access or display a notebook file stored in a space.",
270
+ inputSchema: z.object({
271
+ huggingFaceToken: tokenField,
272
+ rev: z.string().describe("The revision, branch name, tag, or commit hash to retrieve the notebook from (e.g., 'main', 'dev', or a commit SHA)."),
273
+ path: z.string().describe("The path to the Jupyter notebook file within the repository, including the .ipynb extension (e.g., 'notebooks/automatic_mask_generator_example.ipynb')."),
274
+ repo: z.string().describe("The repository name of the space (e.g., 'SAM2-Video-Predictor')."),
275
+ namespace: z.string().describe("The namespace or organization name that owns the space repository (e.g., 'fffiloni')."),
276
+ }),
277
+ execute: async ({ huggingFaceToken, rev, path, repo, namespace }) => {
278
+ const repoId = repoIdOf(namespace, repo, undefined);
279
+ const queryParams = undefined;
280
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces/${repoId}/notebook/${encodeURIComponent(rev)}/${encodeURIComponent(path)}`, queryParams });
281
+ },
282
+ });
283
+ export const huggingFaceGetSpacesResolve = tool({
284
+ description: "Tool to resolve and retrieve a file from a Hugging Face Space repository. Use when you need to download a file from a Space or get XET file information. This endpoint follows redirections (HTTP 302/307) to resolve the final file location.",
285
+ inputSchema: z.object({
286
+ huggingFaceToken: tokenField,
287
+ rev: z.string().describe("The git revision (branch, tag, or commit hash) to retrieve the file from. Use 'main' for the default branch or a specific commit SHA for exact version."),
288
+ path: z.string().describe("The file path within the repository to resolve. This wildcard path parameter can include subdirectories and filename."),
289
+ repo: z.string().describe("The repository name of the Space. For example, 'stable-diffusion-3-medium' for the stabilityai/stable-diffusion-3-medium Space."),
290
+ range: z.string().optional().describe("The range in bytes of the file to download. Format: 'bytes=start-end'. If not provided, the entire file will be retrieved."),
291
+ accept: z.string().optional().describe("Accept header to specify the response format. Use 'application/vnd.xet-fileinfo+json' to get JSON information about XET file info instead of the file content."),
292
+ namespace: z.string().describe("The namespace (user or organization) that owns the Space. For example, 'stabilityai' for the stabilityai/stable-diffusion-3-medium Space."),
293
+ }),
294
+ execute: async ({ huggingFaceToken, rev, path, repo, range, accept, namespace }) => {
295
+ const prefix = uiPrefix(repoType);
296
+ const basePath = prefix ? `/${prefix}/${repoIdOf(namespace, repo, undefined)}` : `/${repoIdOf(namespace, repo, undefined)}`;
297
+ const queryParams = undefined;
298
+ return hfRedirect(huggingFaceToken, { url: `${HOSTS.HUB}${basePath}/resolve/${encodeURIComponent(rev)}/${path}`, queryParams, headers: { ...(accept ? { Accept: accept } : {}), ...(range ? { Range: range } : {}) } });
299
+ },
300
+ });
301
+ export const huggingFaceGetSpacesScan = tool({
302
+ description: "Tool to retrieve the security scan status of a Hugging Face space repository. Use when you need to check for malware, pickle vulnerabilities, or other security issues in a space.",
303
+ inputSchema: z.object({
304
+ huggingFaceToken: tokenField,
305
+ repo: z.string().describe("The name of the space repository to check security status for"),
306
+ namespace: z.string().describe("The namespace (organization or user) that owns the space repository"),
307
+ }),
308
+ execute: async ({ huggingFaceToken, repo, namespace }) => {
309
+ const repoId = repoIdOf(namespace, repo, undefined);
310
+ const queryParams = undefined;
311
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces/${repoId}/scan`, queryParams });
312
+ },
313
+ });
314
+ export const huggingFaceGetSpacesTreesize = tool({
315
+ description: "Tool to get the total size of a Hugging Face space repository at a specific revision and path. Use when you need to determine storage requirements or track repository size changes.",
316
+ inputSchema: z.object({
317
+ huggingFaceToken: tokenField,
318
+ rev: z.string().describe("The Git revision or branch name to query (e.g., 'main', 'dev', or a commit SHA)."),
319
+ path: z.string().optional().describe("The path within the repository to calculate size for. Use '.' for root directory or specify a subdirectory path (e.g., 'static/images'). The size is calculated recursively for all files under this path."),
320
+ repo: z.string().describe("The repository name of the space (e.g., 'hello_world', 'chatbot')."),
321
+ namespace: z.string().describe("The namespace or organization name that owns the space (e.g., 'gradio', 'huggingface')."),
322
+ }),
323
+ execute: async ({ huggingFaceToken, rev, path, repo, namespace }) => {
324
+ const repoId = repoIdOf(namespace, repo, undefined);
325
+ const queryParams = { path: path };
326
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces/${repoId}/treesize/${encodeURIComponent(rev)}`, queryParams });
327
+ },
328
+ });
329
+ export const huggingFaceGetSpacesXetReadToken = tool({
330
+ description: "Tool to retrieve a short-lived XET read access token for a Hugging Face Space repository. Use when you need to access XET (eXtensible Tensor) data for a specific Space revision.",
331
+ inputSchema: z.object({
332
+ huggingFaceToken: tokenField,
333
+ rev: z.string().describe("The revision (branch, tag, or commit hash) to get the XET read token for. Common values include 'main', 'master', or specific commit hashes."),
334
+ repo: z.string().describe("The repository name of the Space. For example, 'Ace-Step-v1.5' in 'ACE-Step/Ace-Step-v1.5'."),
335
+ namespace: z.string().describe("The namespace (organization or user) that owns the Space repository. For example, 'ACE-Step' in 'ACE-Step/Ace-Step-v1.5'."),
336
+ }),
337
+ execute: async ({ huggingFaceToken, rev, repo, namespace }) => {
338
+ const repoId = repoIdOf(namespace, repo, undefined);
339
+ const queryParams = undefined;
340
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces/${repoId}/xet-read-token/${encodeURIComponent(rev)}`, queryParams });
341
+ },
342
+ });
343
+ export const huggingFaceGetSpacesXetWriteToken = tool({
344
+ description: "Tool to retrieve a short-lived XET write access token for a Hugging Face space repository. Use when you need to upload or write XET data to a specific space revision.",
345
+ inputSchema: z.object({
346
+ huggingFaceToken: tokenField,
347
+ rev: z.string().describe("The revision (branch, tag, or commit hash) to get the XET write token for. Common values include 'main', 'master', or specific commit hashes."),
348
+ repo: z.string().describe("The repository name of the space. For example, 'ComfyUI' in 'SpacesExamples/ComfyUI'."),
349
+ createPr: z.number().int().optional().describe("Pass 1 to enable PR creation mode for users without direct write access to the repository. When set, changes will be submitted as a pull request instead of direct commits."),
350
+ namespace: z.string().describe("The namespace (organization or user) that owns the space repository. For example, 'SpacesExamples' in 'SpacesExamples/ComfyUI'."),
351
+ }),
352
+ execute: async ({ huggingFaceToken, rev, repo, createPr, namespace }) => {
353
+ const repoId = repoIdOf(namespace, repo, undefined);
354
+ const queryParams = { create_pr: createPr };
355
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces/${repoId}/xet-write-token/${encodeURIComponent(rev)}`, queryParams });
356
+ },
357
+ });
358
+ export const huggingFaceListSpacesCommits = tool({
359
+ description: "Tool to list commits from a Hugging Face Space repository. Use when you need to retrieve the commit history for a specific Space branch or revision.",
360
+ inputSchema: z.object({
361
+ huggingFaceToken: tokenField,
362
+ p: z.number().int().min(0).optional().describe("Page number for pagination. Starts from 0 for the first page."),
363
+ rev: z.string().describe("The revision (branch, tag, or commit hash) to list commits from."),
364
+ repo: z.string().describe("The repository name of the Space."),
365
+ limit: z.number().int().min(1).max(100).optional().describe("Maximum number of commits to return per page. Default is 50."),
366
+ expand: z.array(z.string()).optional().describe("List of fields to expand in the response. Use 'formatted' to include formatted commit messages."),
367
+ namespace: z.string().describe("The namespace (username or organization) that owns the Space."),
368
+ }),
369
+ execute: async ({ huggingFaceToken, p, rev, repo, limit, expand, namespace }) => {
370
+ const repoId = repoIdOf(namespace, repo, undefined);
371
+ const queryParams = { p: p, limit: limit, expand: expand };
372
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces/${repoId}/commits/${encodeURIComponent(rev)}`, queryParams });
373
+ },
374
+ });
375
+ export const huggingFaceListSpacesHardware = tool({
376
+ description: "Tool to retrieve available hardware configurations for Hugging Face Spaces with their specifications and pricing. Use when you need to discover compute options for running spaces.",
377
+ inputSchema: z.object({
378
+ huggingFaceToken: tokenField,
379
+ }),
380
+ execute: async ({ huggingFaceToken }) => {
381
+ const queryParams = undefined;
382
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces/hardware`, queryParams });
383
+ },
384
+ });
385
+ export const huggingFaceListSpacesLfsFiles = tool({
386
+ description: "Tool to list LFS (Large File Storage) files from a Hugging Face Space repository. Use when you need to retrieve large files stored in a Space using Git LFS.",
387
+ inputSchema: z.object({
388
+ huggingFaceToken: tokenField,
389
+ xet: z.string().optional().describe("Filter for Xet-specific files. Used for Xet-enabled repositories."),
390
+ repo: z.string().describe("The repository name of the Space."),
391
+ limit: z.number().int().min(1).max(10000).optional().describe("Maximum number of LFS files to return. Default is 1000."),
392
+ cursor: z.string().optional().describe("Cursor for pagination. Use the cursor returned from a previous request to fetch the next page of results."),
393
+ namespace: z.string().describe("The namespace (username or organization) that owns the Space."),
394
+ }),
395
+ execute: async ({ huggingFaceToken, xet, repo, limit, cursor, namespace }) => {
396
+ const repoId = repoIdOf(namespace, repo, undefined);
397
+ const queryParams = { limit: limit, cursor: cursor, xet: xet };
398
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces/${repoId}/lfs-files`, queryParams });
399
+ },
400
+ });
401
+ export const huggingFaceListSpacesPathsInfo = tool({
402
+ description: "Tool to list detailed information about specific paths in a Hugging Face space repository. Use when you need to get metadata about files or directories in a space, including size, type, commit history, and security scan status.",
403
+ inputSchema: z.object({
404
+ huggingFaceToken: tokenField,
405
+ rev: z.string().describe("Git revision (branch, tag, or commit hash) to query"),
406
+ repo: z.string().describe("Space repository name"),
407
+ paths: z.record(z.any()).describe("List of paths to get information about, or a single path string. Paths are relative to the repository root."),
408
+ expand: z.record(z.any()).describe("Whether to expand the response with last commit and security file status information. Can be a boolean or an object with expansion options."),
409
+ namespace: z.string().describe("Namespace (user or organization) that owns the space"),
410
+ }),
411
+ execute: async ({ huggingFaceToken, rev, repo, paths, expand, namespace }) => {
412
+ const repoId = repoIdOf(namespace, repo, undefined);
413
+ const queryParams = undefined;
414
+ const body = { paths: paths, expand: expand };
415
+ return hfApi(huggingFaceToken, { method: 'POST', url: `${HOSTS.HUB}/api/spaces/${repoId}/paths-info/${encodeURIComponent(rev)}`, queryParams, body });
416
+ },
417
+ });
418
+ export const huggingFaceListSpacesRefs = tool({
419
+ description: "Tool to list all references (branches, tags, converts, pull requests) in a Hugging Face space repository. Use when you need to retrieve available references for a specific space.",
420
+ inputSchema: z.object({
421
+ huggingFaceToken: tokenField,
422
+ repo: z.string().describe("The repository name of the space."),
423
+ namespace: z.string().describe("The namespace (organization or user) that owns the space."),
424
+ includePrs: z.boolean().optional().describe("Whether to include pull requests in the response. Set to true to include pull requests."),
425
+ }),
426
+ execute: async ({ huggingFaceToken, repo, namespace, includePrs }) => {
427
+ const repoId = repoIdOf(namespace, repo, undefined);
428
+ const queryParams = { include_prs: includePrs };
429
+ return hfApi(huggingFaceToken, { method: 'GET', url: `${HOSTS.HUB}/api/spaces/${repoId}/refs`, queryParams });
430
+ },
431
+ });
432
+ export const huggingFaceSquashSpacesCommits = tool({
433
+ description: "Tool to squash all commits in a space ref into a single commit with the given message. Use when consolidating commit history into a single commit. WARNING: This operation is irreversible.",
434
+ inputSchema: z.object({
435
+ huggingFaceToken: tokenField,
436
+ rev: z.string().describe("The ref (branch or revision) to squash. This operation is irreversible and will squash all commits in this ref into a single commit. Typically 'main' or a branch name."),
437
+ repo: z.string().describe("The name of the space repository where commits will be squashed. For example, for space '121tester/test-curl-space', the repo is 'test-curl-space'."),
438
+ message: z.string().max(500).optional().describe("The commit message for the squashed commit. Maximum length is 500 characters. If not provided, a default message will be used."),
439
+ namespace: z.string().describe("The namespace (username or organization) that owns the space repository. For example, for space '121tester/test-curl-space', the namespace is '121tester'."),
440
+ }),
441
+ execute: async ({ huggingFaceToken, rev, repo, message, namespace }) => {
442
+ const repoId = repoIdOf(namespace, repo, undefined);
443
+ const queryParams = undefined;
444
+ const body = { message: message };
445
+ return hfApi(huggingFaceToken, { method: 'POST', url: `${HOSTS.HUB}/api/spaces/${repoId}/super-squash/${encodeURIComponent(rev)}`, queryParams, body });
446
+ },
447
+ });
448
+ export const huggingFaceUpdateSpacesSettings = tool({
449
+ description: "Tool to update settings for a Hugging Face Spaces repository. Use when you need to modify repository configuration such as privacy, discussions, or gated access settings.",
450
+ inputSchema: z.object({
451
+ huggingFaceToken: tokenField,
452
+ repo: z.string().describe("The name of the Spaces repository to update settings for."),
453
+ gated: z.record(z.any()).optional().describe("Gating configuration for the Spaces repository. Controls access restrictions and gating behavior. Can be a boolean to enable/disable gating, or an object with gating configuration."),
454
+ isPrivate: z.boolean().optional().describe("Whether the Spaces repository should be private (requires authentication to access) or public."),
455
+ namespace: z.string().describe("The namespace (username or organization) that owns the Spaces repository."),
456
+ discussionsSorting: z.enum(["recently-created", "trending", "reactions"]).optional().describe("Sorting order for discussions."),
457
+ discussionsDisabled: z.boolean().optional().describe("Whether to disable discussions for this Spaces repository. Set to true to disable, false to enable."),
458
+ gatedNotificationsMode: z.enum(["bulk", "real-time"]).optional().describe("Notification mode for gated access requests."),
459
+ gatedNotificationsEmail: z.string().optional().describe("Email address to receive notifications about gated access requests. Must be a valid email format."),
460
+ }),
461
+ execute: async ({ huggingFaceToken, repo, gated, isPrivate, namespace, discussionsSorting, discussionsDisabled, gatedNotificationsMode, gatedNotificationsEmail }) => {
462
+ const repoId = repoIdOf(namespace, repo, undefined);
463
+ const queryParams = undefined;
464
+ const body = { gated: gated, private: isPrivate, discussions_sorting: discussionsSorting, discussions_disabled: discussionsDisabled, gated_notifications_mode: gatedNotificationsMode, gated_notifications_email: gatedNotificationsEmail };
465
+ return hfApi(huggingFaceToken, { method: 'PUT', url: `${HOSTS.HUB}/api/spaces/${repoId}/settings`, queryParams, body });
466
+ },
467
+ });
468
+ //# sourceMappingURL=spaces.js.map
@@ -0,0 +1,21 @@
1
+ export declare const huggingFaceCreateSqlConsoleEmbed: import("ai").Tool<{
2
+ title: string;
3
+ repo: string;
4
+ namespace: string;
5
+ sql: string;
6
+ views: Record<string, any>[];
7
+ isPrivate?: boolean | undefined;
8
+ huggingFaceToken?: string | undefined;
9
+ repoType?: "datasets" | undefined;
10
+ }, any>;
11
+ export declare const huggingFaceUpdateSqlConsoleEmbed: import("ai").Tool<{
12
+ id: string;
13
+ repo: string;
14
+ namespace: string;
15
+ repoType: "datasets";
16
+ title?: string | undefined;
17
+ isPrivate?: boolean | undefined;
18
+ huggingFaceToken?: string | undefined;
19
+ sql?: string | undefined;
20
+ }, any>;
21
+ //# sourceMappingURL=sql.d.ts.map
@@ -0,0 +1,47 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { hfApi, 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 huggingFaceCreateSqlConsoleEmbed = tool({
10
+ description: "Tool to create a SQL Console embed for querying datasets on Hugging Face. Use when you need to create a shareable SQL query interface for exploring dataset splits. The embed allows users to execute SQL queries against dataset views (e.g., train, test, validation splits).",
11
+ inputSchema: z.object({
12
+ huggingFaceToken: tokenField,
13
+ sql: z.string().describe("The SQL query to be embedded in the console. This is the query users will see and can execute."),
14
+ repo: z.string().describe("The name of the dataset repository without the namespace prefix."),
15
+ title: z.string().max(200).describe("Title for the SQL console embed. Maximum 200 characters."),
16
+ views: z.array(z.record(z.any())).min(1).describe("List of available views (splits) in the dataset that can be queried. Must contain at least one view."),
17
+ isPrivate: z.boolean().optional().describe("Whether the SQL console embed should be private. If true, only authorized users can access it."),
18
+ repoType: z.enum(["datasets"]).optional().describe("The type of repository. Currently only 'datasets' is supported."),
19
+ namespace: z.string().describe("The namespace (username or organization) that owns the dataset repository."),
20
+ }),
21
+ execute: async ({ huggingFaceToken, sql, repo, title, views, isPrivate, repoType, namespace }) => {
22
+ const repoId = repoIdOf(namespace, repo, undefined);
23
+ const queryParams = undefined;
24
+ const body = { sql: sql, title: title, views: views, private: isPrivate };
25
+ return hfApi(huggingFaceToken, { method: 'POST', url: `${HOSTS.HUB}/api/datasets/${repoId}/sql-console/embeds`, queryParams, body });
26
+ },
27
+ });
28
+ export const huggingFaceUpdateSqlConsoleEmbed = tool({
29
+ description: "Tool to update an existing SQL console embed for a Hugging Face dataset. Use when you need to modify the SQL query, title, or privacy settings of an existing embed.",
30
+ inputSchema: z.object({
31
+ huggingFaceToken: tokenField,
32
+ id: z.string().describe("The slug identifier of the SQL console embed to update (not the _id). This is returned as 'slug' when creating an embed"),
33
+ sql: z.string().optional().describe("The SQL query string to execute in the console embed"),
34
+ repo: z.string().describe("The name of the dataset repository"),
35
+ title: z.string().max(200).optional().describe("The title of the SQL console embed. Maximum 200 characters"),
36
+ isPrivate: z.boolean().optional().describe("Whether the SQL console embed is private. Set to true to make it private, false to make it public"),
37
+ namespace: z.string().describe("The namespace (username or organization) that owns the dataset repository"),
38
+ repoType: z.enum(["datasets"]).describe("The type of repository. Currently only 'datasets' is supported"),
39
+ }),
40
+ execute: async ({ huggingFaceToken, id, sql, repo, title, isPrivate, namespace, repoType }) => {
41
+ const repoId = repoIdOf(namespace, repo, undefined);
42
+ const queryParams = undefined;
43
+ const body = { sql: sql, title: title, private: isPrivate };
44
+ return hfApi(huggingFaceToken, { method: 'PUT', url: `${HOSTS.HUB}/api/datasets/${repoId}/sql-console/embeds/${encodeURIComponent(id)}`, queryParams, body });
45
+ },
46
+ });
47
+ //# sourceMappingURL=sql.js.map
@@ -0,0 +1,60 @@
1
+ export declare const huggingFaceDeleteNotifications: import("ai").Tool<{
2
+ huggingFaceToken?: string | undefined;
3
+ repoType?: "dataset" | "model" | "space" | "bucket" | undefined;
4
+ paperId?: string | undefined;
5
+ p?: number | undefined;
6
+ mention?: "all" | "participating" | "mentions" | undefined;
7
+ repoName?: string | undefined;
8
+ articleId?: string | undefined;
9
+ lastUpdate?: string | undefined;
10
+ postAuthor?: string | undefined;
11
+ readStatus?: "all" | "unread" | undefined;
12
+ applyToAll?: boolean | undefined;
13
+ discussionIds?: string[] | undefined;
14
+ }, any>;
15
+ export declare const huggingFaceGetOrganizationsAvatar: import("ai").Tool<{
16
+ name: string;
17
+ redirect?: string | undefined;
18
+ huggingFaceToken?: string | undefined;
19
+ }, any>;
20
+ export declare const huggingFaceGetOrganizationsMembers: import("ai").Tool<{
21
+ name: string;
22
+ limit?: number | undefined;
23
+ email?: string | undefined;
24
+ search?: string | undefined;
25
+ cursor?: string | undefined;
26
+ huggingFaceToken?: string | undefined;
27
+ }, any>;
28
+ export declare const huggingFaceGetOrganizationsSocials: import("ai").Tool<{
29
+ name: string;
30
+ huggingFaceToken?: string | undefined;
31
+ }, any>;
32
+ export declare const huggingFaceGetUsersAvatar: import("ai").Tool<{
33
+ username: string;
34
+ redirect?: string | undefined;
35
+ huggingFaceToken?: string | undefined;
36
+ }, any>;
37
+ export declare const huggingFaceGetUsersOverview: import("ai").Tool<{
38
+ username: string;
39
+ huggingFaceToken?: string | undefined;
40
+ }, any>;
41
+ export declare const huggingFaceGetUsersSocials: import("ai").Tool<{
42
+ username: string;
43
+ huggingFaceToken?: string | undefined;
44
+ }, any>;
45
+ export declare const huggingFaceGetWhoami: import("ai").Tool<{
46
+ huggingFaceToken?: string | undefined;
47
+ }, any>;
48
+ export declare const huggingFaceListNotifications: import("ai").Tool<{
49
+ huggingFaceToken?: string | undefined;
50
+ repoType?: "dataset" | "model" | "space" | "bucket" | undefined;
51
+ paperId?: string | undefined;
52
+ p?: number | undefined;
53
+ mention?: "all" | "participating" | "mentions" | undefined;
54
+ repoName?: string | undefined;
55
+ articleId?: string | undefined;
56
+ lastUpdate?: string | undefined;
57
+ postAuthor?: string | undefined;
58
+ readStatus?: "all" | "unread" | undefined;
59
+ }, any>;
60
+ //# sourceMappingURL=users.d.ts.map