@rnsk/toolkits 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/README.md +15 -1
  2. package/dist/index.d.ts +15 -1
  3. package/dist/index.js +29 -1
  4. package/dist/toolkits/bitbucket/icon.d.ts +5 -0
  5. package/dist/toolkits/bitbucket/icon.js +6 -0
  6. package/dist/toolkits/bitbucket/manifest.d.ts +3 -0
  7. package/dist/toolkits/bitbucket/manifest.js +56 -0
  8. package/dist/toolkits/bitbucket/tools/client.d.ts +38 -0
  9. package/dist/toolkits/bitbucket/tools/client.js +87 -0
  10. package/dist/toolkits/bitbucket/tools/commits.d.ts +149 -0
  11. package/dist/toolkits/bitbucket/tools/commits.js +444 -0
  12. package/dist/toolkits/bitbucket/tools/index.d.ts +1093 -0
  13. package/dist/toolkits/bitbucket/tools/index.js +770 -0
  14. package/dist/toolkits/bitbucket/tools/issues.d.ts +73 -0
  15. package/dist/toolkits/bitbucket/tools/issues.js +234 -0
  16. package/dist/toolkits/bitbucket/tools/pipelines.d.ts +124 -0
  17. package/dist/toolkits/bitbucket/tools/pipelines.js +446 -0
  18. package/dist/toolkits/bitbucket/tools/pull-requests.d.ts +174 -0
  19. package/dist/toolkits/bitbucket/tools/pull-requests.js +541 -0
  20. package/dist/toolkits/bitbucket/tools/reports.d.ts +84 -0
  21. package/dist/toolkits/bitbucket/tools/reports.js +213 -0
  22. package/dist/toolkits/bitbucket/tools/repositories.d.ts +156 -0
  23. package/dist/toolkits/bitbucket/tools/repositories.js +531 -0
  24. package/dist/toolkits/bitbucket/tools/search.d.ts +17 -0
  25. package/dist/toolkits/bitbucket/tools/search.js +67 -0
  26. package/dist/toolkits/bitbucket/tools/snippets.d.ts +34 -0
  27. package/dist/toolkits/bitbucket/tools/snippets.js +122 -0
  28. package/dist/toolkits/bitbucket/tools/users-workspaces.d.ts +65 -0
  29. package/dist/toolkits/bitbucket/tools/users-workspaces.js +294 -0
  30. package/dist/toolkits/discord/icon.d.ts +5 -0
  31. package/dist/toolkits/discord/icon.js +12 -0
  32. package/dist/toolkits/discord/manifest.d.ts +3 -0
  33. package/dist/toolkits/discord/manifest.js +52 -0
  34. package/dist/toolkits/discord/tools/applications.d.ts +79 -0
  35. package/dist/toolkits/discord/tools/applications.js +216 -0
  36. package/dist/toolkits/discord/tools/client.d.ts +22 -0
  37. package/dist/toolkits/discord/tools/client.js +69 -0
  38. package/dist/toolkits/discord/tools/guilds.d.ts +39 -0
  39. package/dist/toolkits/discord/tools/guilds.js +123 -0
  40. package/dist/toolkits/discord/tools/index.d.ts +222 -0
  41. package/dist/toolkits/discord/tools/index.js +170 -0
  42. package/dist/toolkits/discord/tools/misc.d.ts +7 -0
  43. package/dist/toolkits/discord/tools/misc.js +40 -0
  44. package/dist/toolkits/discord/tools/users.d.ts +28 -0
  45. package/dist/toolkits/discord/tools/users.js +128 -0
  46. package/dist/toolkits/figma/tools/index.d.ts +1 -1
  47. package/dist/toolkits/figma/tools/render-images-of-file-nodes.d.ts +1 -1
  48. package/dist/toolkits/gitlab/icon.d.ts +5 -0
  49. package/dist/toolkits/gitlab/icon.js +6 -0
  50. package/dist/toolkits/gitlab/manifest.d.ts +3 -0
  51. package/dist/toolkits/gitlab/manifest.js +36 -0
  52. package/dist/toolkits/gitlab/tools/client.d.ts +7 -0
  53. package/dist/toolkits/gitlab/tools/client.js +45 -0
  54. package/dist/toolkits/gitlab/tools/index.d.ts +306 -0
  55. package/dist/toolkits/gitlab/tools/index.js +36 -0
  56. package/dist/toolkits/gitlab/tools/issues.d.ts +45 -0
  57. package/dist/toolkits/gitlab/tools/issues.js +103 -0
  58. package/dist/toolkits/gitlab/tools/merge-requests.d.ts +35 -0
  59. package/dist/toolkits/gitlab/tools/merge-requests.js +91 -0
  60. package/dist/toolkits/gitlab/tools/pipelines.d.ts +30 -0
  61. package/dist/toolkits/gitlab/tools/pipelines.js +66 -0
  62. package/dist/toolkits/gitlab/tools/projects.d.ts +36 -0
  63. package/dist/toolkits/gitlab/tools/projects.js +94 -0
  64. package/dist/toolkits/gitlab/tools/repository.d.ts +21 -0
  65. package/dist/toolkits/gitlab/tools/repository.js +53 -0
  66. package/dist/toolkits/gitlab/tools/users-groups.d.ts +11 -0
  67. package/dist/toolkits/gitlab/tools/users-groups.js +30 -0
  68. package/dist/toolkits/google-ads/tools/get-rmf-report.d.ts +2 -2
  69. package/dist/toolkits/google-ads/tools/index.d.ts +2 -2
  70. package/dist/toolkits/google-analytics/icon.d.ts +5 -0
  71. package/dist/toolkits/google-analytics/icon.js +11 -0
  72. package/dist/toolkits/google-analytics/manifest.d.ts +3 -0
  73. package/dist/toolkits/google-analytics/manifest.js +48 -0
  74. package/dist/toolkits/google-analytics/tools/admin.d.ts +73 -0
  75. package/dist/toolkits/google-analytics/tools/admin.js +238 -0
  76. package/dist/toolkits/google-analytics/tools/audiences.d.ts +81 -0
  77. package/dist/toolkits/google-analytics/tools/audiences.js +190 -0
  78. package/dist/toolkits/google-analytics/tools/client.d.ts +47 -0
  79. package/dist/toolkits/google-analytics/tools/client.js +74 -0
  80. package/dist/toolkits/google-analytics/tools/custom-definitions.d.ts +62 -0
  81. package/dist/toolkits/google-analytics/tools/custom-definitions.js +106 -0
  82. package/dist/toolkits/google-analytics/tools/index.d.ts +16 -0
  83. package/dist/toolkits/google-analytics/tools/index.js +88 -0
  84. package/dist/toolkits/google-analytics/tools/links.d.ts +22 -0
  85. package/dist/toolkits/google-analytics/tools/links.js +56 -0
  86. package/dist/toolkits/google-analytics/tools/measurement.d.ts +3 -0
  87. package/dist/toolkits/google-analytics/tools/measurement.js +55 -0
  88. package/dist/toolkits/google-analytics/tools/reports.d.ts +136 -0
  89. package/dist/toolkits/google-analytics/tools/reports.js +200 -0
  90. package/dist/toolkits/google-contacts/icon.d.ts +5 -0
  91. package/dist/toolkits/google-contacts/icon.js +6 -0
  92. package/dist/toolkits/google-contacts/manifest.d.ts +3 -0
  93. package/dist/toolkits/google-contacts/manifest.js +48 -0
  94. package/dist/toolkits/google-contacts/tools/client.d.ts +19 -0
  95. package/dist/toolkits/google-contacts/tools/client.js +44 -0
  96. package/dist/toolkits/google-contacts/tools/contacts.d.ts +94 -0
  97. package/dist/toolkits/google-contacts/tools/contacts.js +273 -0
  98. package/dist/toolkits/google-contacts/tools/directory.d.ts +36 -0
  99. package/dist/toolkits/google-contacts/tools/directory.js +99 -0
  100. package/dist/toolkits/google-contacts/tools/groups.d.ts +68 -0
  101. package/dist/toolkits/google-contacts/tools/groups.js +169 -0
  102. package/dist/toolkits/google-contacts/tools/index.d.ts +347 -0
  103. package/dist/toolkits/google-contacts/tools/index.js +34 -0
  104. package/dist/toolkits/google-contacts/tools/photos.d.ts +26 -0
  105. package/dist/toolkits/google-contacts/tools/photos.js +52 -0
  106. package/dist/toolkits/google-maps/icon.d.ts +5 -0
  107. package/dist/toolkits/google-maps/icon.js +39 -0
  108. package/dist/toolkits/google-maps/manifest.d.ts +3 -0
  109. package/dist/toolkits/google-maps/manifest.js +55 -0
  110. package/dist/toolkits/google-maps/tools/client.d.ts +27 -0
  111. package/dist/toolkits/google-maps/tools/client.js +72 -0
  112. package/dist/toolkits/google-maps/tools/geocode.d.ts +49 -0
  113. package/dist/toolkits/google-maps/tools/geocode.js +168 -0
  114. package/dist/toolkits/google-maps/tools/index.d.ts +432 -0
  115. package/dist/toolkits/google-maps/tools/index.js +31 -0
  116. package/dist/toolkits/google-maps/tools/misc.d.ts +70 -0
  117. package/dist/toolkits/google-maps/tools/misc.js +158 -0
  118. package/dist/toolkits/google-maps/tools/places.d.ts +112 -0
  119. package/dist/toolkits/google-maps/tools/places.js +185 -0
  120. package/dist/toolkits/google-maps/tools/routes.d.ts +48 -0
  121. package/dist/toolkits/google-maps/tools/routes.js +97 -0
  122. package/dist/toolkits/google-maps/tools/tiles.d.ts +51 -0
  123. package/dist/toolkits/google-maps/tools/tiles.js +84 -0
  124. package/dist/toolkits/google-photos/icon.d.ts +5 -0
  125. package/dist/toolkits/google-photos/icon.js +6 -0
  126. package/dist/toolkits/google-photos/manifest.d.ts +3 -0
  127. package/dist/toolkits/google-photos/manifest.js +47 -0
  128. package/dist/toolkits/google-photos/tools/albums.d.ts +83 -0
  129. package/dist/toolkits/google-photos/tools/albums.js +180 -0
  130. package/dist/toolkits/google-photos/tools/client.d.ts +24 -0
  131. package/dist/toolkits/google-photos/tools/client.js +77 -0
  132. package/dist/toolkits/google-photos/tools/index.d.ts +261 -0
  133. package/dist/toolkits/google-photos/tools/index.js +22 -0
  134. package/dist/toolkits/google-photos/tools/media.d.ts +52 -0
  135. package/dist/toolkits/google-photos/tools/media.js +142 -0
  136. package/dist/toolkits/google-photos/tools/uploads.d.ts +58 -0
  137. package/dist/toolkits/google-photos/tools/uploads.js +107 -0
  138. package/dist/toolkits/google-tasks/tools/index.d.ts +1 -1
  139. package/dist/toolkits/google-tasks/tools/update-task-full.d.ts +1 -1
  140. package/dist/toolkits/groww/tools/index.d.ts +1 -1
  141. package/dist/toolkits/groww/tools/instruments.d.ts +1 -1
  142. package/dist/toolkits/hacker-news/icon.d.ts +5 -0
  143. package/dist/toolkits/hacker-news/icon.js +9 -0
  144. package/dist/toolkits/hacker-news/manifest.d.ts +3 -0
  145. package/dist/toolkits/hacker-news/manifest.js +25 -0
  146. package/dist/toolkits/hacker-news/tools/client.d.ts +8 -0
  147. package/dist/toolkits/hacker-news/tools/client.js +51 -0
  148. package/dist/toolkits/hacker-news/tools/index.d.ts +89 -0
  149. package/dist/toolkits/hacker-news/tools/index.js +22 -0
  150. package/dist/toolkits/hacker-news/tools/items.d.ts +42 -0
  151. package/dist/toolkits/hacker-news/tools/items.js +126 -0
  152. package/dist/toolkits/hacker-news/tools/search.d.ts +12 -0
  153. package/dist/toolkits/hacker-news/tools/search.js +40 -0
  154. package/dist/toolkits/hacker-news/tools/stories.d.ts +25 -0
  155. package/dist/toolkits/hacker-news/tools/stories.js +98 -0
  156. package/dist/toolkits/hostinger/icon.d.ts +5 -0
  157. package/dist/toolkits/hostinger/icon.js +6 -0
  158. package/dist/toolkits/hostinger/manifest.d.ts +3 -0
  159. package/dist/toolkits/hostinger/manifest.js +36 -0
  160. package/dist/toolkits/hostinger/tools/billing.d.ts +12 -0
  161. package/dist/toolkits/hostinger/tools/billing.js +35 -0
  162. package/dist/toolkits/hostinger/tools/client.d.ts +6 -0
  163. package/dist/toolkits/hostinger/tools/client.js +57 -0
  164. package/dist/toolkits/hostinger/tools/dns.d.ts +22 -0
  165. package/dist/toolkits/hostinger/tools/dns.js +47 -0
  166. package/dist/toolkits/hostinger/tools/domains.d.ts +21 -0
  167. package/dist/toolkits/hostinger/tools/domains.js +62 -0
  168. package/dist/toolkits/hostinger/tools/hosting.d.ts +17 -0
  169. package/dist/toolkits/hostinger/tools/hosting.js +38 -0
  170. package/dist/toolkits/hostinger/tools/index.d.ts +179 -0
  171. package/dist/toolkits/hostinger/tools/index.js +35 -0
  172. package/dist/toolkits/hostinger/tools/vps.d.ts +27 -0
  173. package/dist/toolkits/hostinger/tools/vps.js +77 -0
  174. package/dist/toolkits/hostinger/tools/whois.d.ts +33 -0
  175. package/dist/toolkits/hostinger/tools/whois.js +85 -0
  176. package/dist/toolkits/hugging-face/icon.d.ts +5 -0
  177. package/dist/toolkits/hugging-face/icon.js +6 -0
  178. package/dist/toolkits/hugging-face/manifest.d.ts +3 -0
  179. package/dist/toolkits/hugging-face/manifest.js +42 -0
  180. package/dist/toolkits/hugging-face/tools/client.d.ts +93 -0
  181. package/dist/toolkits/hugging-face/tools/client.js +192 -0
  182. package/dist/toolkits/hugging-face/tools/datasets-viewer.d.ts +65 -0
  183. package/dist/toolkits/hugging-face/tools/datasets-viewer.js +150 -0
  184. package/dist/toolkits/hugging-face/tools/datasets.d.ts +160 -0
  185. package/dist/toolkits/hugging-face/tools/datasets.js +383 -0
  186. package/dist/toolkits/hugging-face/tools/discussions.d.ts +68 -0
  187. package/dist/toolkits/hugging-face/tools/discussions.js +144 -0
  188. package/dist/toolkits/hugging-face/tools/index.d.ts +523 -0
  189. package/dist/toolkits/hugging-face/tools/index.js +163 -0
  190. package/dist/toolkits/hugging-face/tools/inference.d.ts +42 -0
  191. package/dist/toolkits/hugging-face/tools/inference.js +86 -0
  192. package/dist/toolkits/hugging-face/tools/models.d.ts +117 -0
  193. package/dist/toolkits/hugging-face/tools/models.js +273 -0
  194. package/dist/toolkits/hugging-face/tools/papers.d.ts +37 -0
  195. package/dist/toolkits/hugging-face/tools/papers.js +91 -0
  196. package/dist/toolkits/hugging-face/tools/repos.d.ts +96 -0
  197. package/dist/toolkits/hugging-face/tools/repos.js +201 -0
  198. package/dist/toolkits/hugging-face/tools/settings.d.ts +53 -0
  199. package/dist/toolkits/hugging-face/tools/settings.js +88 -0
  200. package/dist/toolkits/hugging-face/tools/spaces.d.ts +245 -0
  201. package/dist/toolkits/hugging-face/tools/spaces.js +468 -0
  202. package/dist/toolkits/hugging-face/tools/sql.d.ts +21 -0
  203. package/dist/toolkits/hugging-face/tools/sql.js +47 -0
  204. package/dist/toolkits/hugging-face/tools/users.d.ts +60 -0
  205. package/dist/toolkits/hugging-face/tools/users.js +132 -0
  206. package/dist/toolkits/hugging-face/tools/webhooks.d.ts +35 -0
  207. package/dist/toolkits/hugging-face/tools/webhooks.js +87 -0
  208. package/dist/toolkits/jira/icon.d.ts +5 -0
  209. package/dist/toolkits/jira/icon.js +6 -0
  210. package/dist/toolkits/jira/manifest.d.ts +3 -0
  211. package/dist/toolkits/jira/manifest.js +53 -0
  212. package/dist/toolkits/jira/tools/boards.d.ts +52 -0
  213. package/dist/toolkits/jira/tools/boards.js +104 -0
  214. package/dist/toolkits/jira/tools/client.d.ts +23 -0
  215. package/dist/toolkits/jira/tools/client.js +270 -0
  216. package/dist/toolkits/jira/tools/index.d.ts +1280 -0
  217. package/dist/toolkits/jira/tools/index.js +119 -0
  218. package/dist/toolkits/jira/tools/issue-fields.d.ts +10 -0
  219. package/dist/toolkits/jira/tools/issue-fields.js +111 -0
  220. package/dist/toolkits/jira/tools/issues.d.ts +304 -0
  221. package/dist/toolkits/jira/tools/issues.js +593 -0
  222. package/dist/toolkits/jira/tools/meta.d.ts +212 -0
  223. package/dist/toolkits/jira/tools/meta.js +369 -0
  224. package/dist/toolkits/jira/tools/projects.d.ts +130 -0
  225. package/dist/toolkits/jira/tools/projects.js +263 -0
  226. package/dist/toolkits/jira/tools/search.d.ts +90 -0
  227. package/dist/toolkits/jira/tools/search.js +181 -0
  228. package/dist/toolkits/jira/tools/users.d.ts +114 -0
  229. package/dist/toolkits/jira/tools/users.js +221 -0
  230. package/dist/toolkits/neo4j/icon.d.ts +5 -0
  231. package/dist/toolkits/neo4j/icon.js +6 -0
  232. package/dist/toolkits/neo4j/manifest.d.ts +3 -0
  233. package/dist/toolkits/neo4j/manifest.js +33 -0
  234. package/dist/toolkits/neo4j/tools/analytics.d.ts +21 -0
  235. package/dist/toolkits/neo4j/tools/analytics.js +91 -0
  236. package/dist/toolkits/neo4j/tools/client.d.ts +6 -0
  237. package/dist/toolkits/neo4j/tools/client.js +105 -0
  238. package/dist/toolkits/neo4j/tools/index.d.ts +198 -0
  239. package/dist/toolkits/neo4j/tools/index.js +30 -0
  240. package/dist/toolkits/neo4j/tools/instances.d.ts +47 -0
  241. package/dist/toolkits/neo4j/tools/instances.js +127 -0
  242. package/dist/toolkits/neo4j/tools/projects.d.ts +44 -0
  243. package/dist/toolkits/neo4j/tools/projects.js +110 -0
  244. package/dist/toolkits/neo4j/tools/snapshots.d.ts +20 -0
  245. package/dist/toolkits/neo4j/tools/snapshots.js +57 -0
  246. package/dist/toolkits/neon/icon.d.ts +5 -0
  247. package/dist/toolkits/neon/icon.js +8 -0
  248. package/dist/toolkits/neon/manifest.d.ts +3 -0
  249. package/dist/toolkits/neon/manifest.js +36 -0
  250. package/dist/toolkits/neon/tools/auth.d.ts +115 -0
  251. package/dist/toolkits/neon/tools/auth.js +286 -0
  252. package/dist/toolkits/neon/tools/branches.d.ts +189 -0
  253. package/dist/toolkits/neon/tools/branches.js +465 -0
  254. package/dist/toolkits/neon/tools/client.d.ts +10 -0
  255. package/dist/toolkits/neon/tools/client.js +69 -0
  256. package/dist/toolkits/neon/tools/dataapi.d.ts +42 -0
  257. package/dist/toolkits/neon/tools/dataapi.js +111 -0
  258. package/dist/toolkits/neon/tools/endpoints.d.ts +59 -0
  259. package/dist/toolkits/neon/tools/endpoints.js +163 -0
  260. package/dist/toolkits/neon/tools/index.d.ts +976 -0
  261. package/dist/toolkits/neon/tools/index.js +130 -0
  262. package/dist/toolkits/neon/tools/meta.d.ts +4 -0
  263. package/dist/toolkits/neon/tools/meta.js +16 -0
  264. package/dist/toolkits/neon/tools/orgs.d.ts +112 -0
  265. package/dist/toolkits/neon/tools/orgs.js +303 -0
  266. package/dist/toolkits/neon/tools/projects.d.ts +177 -0
  267. package/dist/toolkits/neon/tools/projects.js +468 -0
  268. package/dist/toolkits/neon/tools/snapshots.d.ts +24 -0
  269. package/dist/toolkits/neon/tools/snapshots.js +67 -0
  270. package/dist/toolkits/reddit/tools/index.d.ts +1 -1
  271. package/dist/toolkits/reddit/tools/search-across-subreddits.d.ts +1 -1
  272. package/dist/toolkits/slack/icon.d.ts +5 -0
  273. package/dist/toolkits/slack/icon.js +20 -0
  274. package/dist/toolkits/slack/manifest.d.ts +3 -0
  275. package/dist/toolkits/slack/manifest.js +93 -0
  276. package/dist/toolkits/slack/tools/admin-apps.d.ts +32 -0
  277. package/dist/toolkits/slack/tools/admin-apps.js +116 -0
  278. package/dist/toolkits/slack/tools/admin-conversations.d.ts +62 -0
  279. package/dist/toolkits/slack/tools/admin-conversations.js +246 -0
  280. package/dist/toolkits/slack/tools/admin-invites.d.ts +19 -0
  281. package/dist/toolkits/slack/tools/admin-invites.js +75 -0
  282. package/dist/toolkits/slack/tools/admin-users.d.ts +52 -0
  283. package/dist/toolkits/slack/tools/admin-users.js +182 -0
  284. package/dist/toolkits/slack/tools/audit.d.ts +20 -0
  285. package/dist/toolkits/slack/tools/audit.js +81 -0
  286. package/dist/toolkits/slack/tools/calls.d.ts +38 -0
  287. package/dist/toolkits/slack/tools/calls.js +141 -0
  288. package/dist/toolkits/slack/tools/canvas.d.ts +24 -0
  289. package/dist/toolkits/slack/tools/canvas.js +102 -0
  290. package/dist/toolkits/slack/tools/client.d.ts +22 -0
  291. package/dist/toolkits/slack/tools/client.js +73 -0
  292. package/dist/toolkits/slack/tools/conversations.d.ts +131 -0
  293. package/dist/toolkits/slack/tools/conversations.js +463 -0
  294. package/dist/toolkits/slack/tools/emoji.d.ts +29 -0
  295. package/dist/toolkits/slack/tools/emoji.js +118 -0
  296. package/dist/toolkits/slack/tools/files.d.ts +113 -0
  297. package/dist/toolkits/slack/tools/files.js +368 -0
  298. package/dist/toolkits/slack/tools/index.d.ts +28 -0
  299. package/dist/toolkits/slack/tools/index.js +187 -0
  300. package/dist/toolkits/slack/tools/messages.d.ts +106 -0
  301. package/dist/toolkits/slack/tools/messages.js +340 -0
  302. package/dist/toolkits/slack/tools/misc.d.ts +42 -0
  303. package/dist/toolkits/slack/tools/misc.js +127 -0
  304. package/dist/toolkits/slack/tools/reactions-stars-pins.d.ts +69 -0
  305. package/dist/toolkits/slack/tools/reactions-stars-pins.js +236 -0
  306. package/dist/toolkits/slack/tools/reminders.d.ts +22 -0
  307. package/dist/toolkits/slack/tools/reminders.js +83 -0
  308. package/dist/toolkits/slack/tools/search.d.ts +49 -0
  309. package/dist/toolkits/slack/tools/search.js +155 -0
  310. package/dist/toolkits/slack/tools/slack-lists.d.ts +65 -0
  311. package/dist/toolkits/slack/tools/slack-lists.js +282 -0
  312. package/dist/toolkits/slack/tools/teams.d.ts +75 -0
  313. package/dist/toolkits/slack/tools/teams.js +285 -0
  314. package/dist/toolkits/slack/tools/usergroups.d.ts +56 -0
  315. package/dist/toolkits/slack/tools/usergroups.js +194 -0
  316. package/dist/toolkits/slack/tools/users.d.ts +87 -0
  317. package/dist/toolkits/slack/tools/users.js +396 -0
  318. package/dist/toolkits/youtube/tools/add-video-to-playlist.d.ts +1 -1
  319. package/dist/toolkits/youtube/tools/delete-video.d.ts +1 -1
  320. package/dist/toolkits/youtube/tools/index.d.ts +10 -10
  321. package/dist/toolkits/youtube/tools/list-caption-track.d.ts +1 -1
  322. package/dist/toolkits/youtube/tools/list-playlist-items.d.ts +1 -1
  323. package/dist/toolkits/youtube/tools/list-video-categories.d.ts +1 -1
  324. package/dist/toolkits/youtube/tools/post-comment.d.ts +1 -1
  325. package/dist/toolkits/youtube/tools/report-video-abuse.d.ts +1 -1
  326. package/dist/toolkits/youtube/tools/search-youtube.d.ts +1 -1
  327. package/dist/toolkits/youtube/tools/update-thumbnail.d.ts +1 -1
  328. package/dist/toolkits/youtube/tools/update-video.d.ts +1 -1
  329. package/package.json +1 -1
@@ -0,0 +1,111 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { neon, setNested } from './client.js';
5
+ const tokenField = z.string().optional().describe('Injected by system; do not provide');
6
+ export const neonCreateBranchesDataApi = tool({
7
+ description: "Creates a new instance of Neon Data API in the specified branch. The Data API provides a RESTful interface to query your Postgres database using HTTP requests. Use this action when you need to expose database access via REST API endpoints with JWT-based authentication.",
8
+ inputSchema: z.object({
9
+ neonApiKey: tokenField,
10
+ jwksUrl: z.string().optional().describe("The URL that lists the JWKS (JSON Web Key Set) for external authentication. Required when auth_provider is 'external'."),
11
+ settings: z.record(z.any()).optional().describe("Configuration settings for the Neon Data API"),
12
+ branchId: z.string().describe("The branch ID where the Data API will be created (e.g., 'br-muddy-pond-ahkofech'). Obtain via NEON_GET_BRANCHES_FOR_PROJECT action."),
13
+ projectId: z.string().describe("The Neon project ID (e.g., 'proud-meadow-87189985'). Obtain via NEON_RETRIEVE_PROJECTS_LIST action."),
14
+ jwtAudience: z.string().optional().describe("JWT audience claim to validate. WARNING: tokens without audience claim will still be accepted."),
15
+ authProvider: z.enum(["neon_auth", "external"]).optional().describe("Authentication provider options for Neon Data API"),
16
+ databaseName: z.string().describe("The database name for the Data API (e.g., 'neondb'). Must be an existing database in the branch."),
17
+ providerName: z.string().optional().describe("The name of the authentication provider (e.g., 'Clerk', 'Stytch', 'Auth0'). Used for documentation purposes."),
18
+ skipAuthSchema: z.boolean().optional().describe("Skip creating the auth schema and RLS functions. Default: false"),
19
+ addDefaultGrants: z.boolean().optional().describe("Grant all permissions to the tables in the public schema to authenticated users. Default: false"),
20
+ }),
21
+ execute: async ({ neonApiKey, jwksUrl, settings, branchId, projectId, jwtAudience, authProvider, databaseName, providerName, skipAuthSchema, addDefaultGrants }) => {
22
+ const queryParams = undefined;
23
+ const body = {};
24
+ if (jwksUrl !== undefined)
25
+ setNested(body, 'jwks_url', jwksUrl);
26
+ if (settings !== undefined)
27
+ setNested(body, 'settings', settings);
28
+ if (jwtAudience !== undefined)
29
+ setNested(body, 'jwt_audience', jwtAudience);
30
+ if (authProvider !== undefined)
31
+ setNested(body, 'auth_provider', authProvider);
32
+ if (providerName !== undefined)
33
+ setNested(body, 'provider_name', providerName);
34
+ if (skipAuthSchema !== undefined)
35
+ setNested(body, 'skip_auth_schema', skipAuthSchema);
36
+ if (addDefaultGrants !== undefined)
37
+ setNested(body, 'add_default_grants', addDefaultGrants);
38
+ return neon(neonApiKey, { path: `/projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(branchId)}/data-api/${encodeURIComponent(databaseName)}`, method: 'POST', query: queryParams, body });
39
+ },
40
+ });
41
+ export const neonDeleteBranchDataApi = tool({
42
+ description: "Deletes the Neon Data API for a specified branch and database. Use this when you need to remove Data API access for a specific database within a branch.",
43
+ inputSchema: z.object({
44
+ neonApiKey: tokenField,
45
+ branchId: z.string().describe("The branch ID. Format: 'br-' prefix followed by alphanumeric characters (e.g., 'br-rough-voice-ah2lazzk'). Obtain from list branches endpoint."),
46
+ projectId: z.string().describe("The Neon project ID. Format: {adjective}-{noun}-{number} (e.g., 'proud-meadow-87189985'). Obtain from list projects endpoint."),
47
+ databaseName: z.string().describe("The database name for which to delete the Neon Data API. This is the database name as it appears in PostgreSQL (e.g., 'neondb')."),
48
+ }),
49
+ execute: async ({ neonApiKey, branchId, projectId, databaseName }) => {
50
+ const queryParams = undefined;
51
+ return neon(neonApiKey, { path: `/projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(branchId)}/data-api/${encodeURIComponent(databaseName)}`, method: 'DELETE', query: queryParams });
52
+ },
53
+ });
54
+ export const neonGetBranchesDataApi = tool({
55
+ description: "Retrieves the Neon Data API information for a specific branch and database. Use when you need to access the Data API URL, deployment status, or configuration settings for a particular database within a branch.",
56
+ inputSchema: z.object({
57
+ neonApiKey: tokenField,
58
+ branchId: z.string().describe("The Neon branch ID"),
59
+ projectId: z.string().describe("The Neon project ID"),
60
+ databaseName: z.string().describe("The database name"),
61
+ }),
62
+ execute: async ({ neonApiKey, branchId, projectId, databaseName }) => {
63
+ const queryParams = undefined;
64
+ return neon(neonApiKey, { path: `/projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(branchId)}/data-api/${encodeURIComponent(databaseName)}`, method: 'GET', query: queryParams });
65
+ },
66
+ });
67
+ export const neonUpdateBranchesDataApi = tool({
68
+ description: "Updates the Neon Data API configuration for the specified branch. Use when you need to modify Data API settings such as aggregates, anonymous role, search paths, schemas, JWT settings, or CORS configuration. The schema cache is always refreshed as part of this operation.",
69
+ inputSchema: z.object({
70
+ neonApiKey: tokenField,
71
+ branchId: z.string().describe("The Neon branch ID (e.g., 'br-gentle-lab-af8riisw')"),
72
+ projectId: z.string().describe("The Neon project ID (e.g., 'small-recipe-63664710')"),
73
+ databaseName: z.string().describe("The database name (e.g., 'neondb')"),
74
+ settingsDbSchemas: z.array(z.string()).optional().describe("List of schemas to expose via the API. Default: [\"public\"]"),
75
+ settingsDbMaxRows: z.number().int().optional().describe("Maximum number of rows that can be returned in a single request"),
76
+ settingsOpenapiMode: z.string().optional().describe("OpenAPI specification mode (ignore-privileges, disabled). Default: 'disabled'"),
77
+ settingsDbAnonRole: z.string().optional().describe("Database role to use for anonymous requests. Default: 'anonymous'"),
78
+ settingsJwtRoleClaimKey: z.string().optional().describe("JWT claim key to use for role extraction. Default: \".\\\"role\\\"\""),
79
+ settingsDbAggregatesEnabled: z.boolean().optional().describe("Enable aggregates feature. Default: true"),
80
+ settingsDbExtraSearchPath: z.string().optional().describe("Extra schemas to add to the search path"),
81
+ settingsServerTimingEnabled: z.boolean().optional().describe("Enable server timing headers"),
82
+ settingsJwtCacheMaxLifetime: z.number().int().optional().describe("Maximum lifetime for JWT cache in seconds"),
83
+ settingsServerCorsAllowedOrigins: z.string().optional().describe("CORS allowed origins"),
84
+ }),
85
+ execute: async ({ neonApiKey, branchId, projectId, databaseName, settingsDbSchemas, settingsDbMaxRows, settingsOpenapiMode, settingsDbAnonRole, settingsJwtRoleClaimKey, settingsDbAggregatesEnabled, settingsDbExtraSearchPath, settingsServerTimingEnabled, settingsJwtCacheMaxLifetime, settingsServerCorsAllowedOrigins }) => {
86
+ const queryParams = undefined;
87
+ const body = {};
88
+ if (settingsDbSchemas !== undefined)
89
+ setNested(body, 'settings.db_schemas', settingsDbSchemas);
90
+ if (settingsDbMaxRows !== undefined)
91
+ setNested(body, 'settings.db_max_rows', settingsDbMaxRows);
92
+ if (settingsOpenapiMode !== undefined)
93
+ setNested(body, 'settings.openapi_mode', settingsOpenapiMode);
94
+ if (settingsDbAnonRole !== undefined)
95
+ setNested(body, 'settings.db_anon_role', settingsDbAnonRole);
96
+ if (settingsJwtRoleClaimKey !== undefined)
97
+ setNested(body, 'settings.jwt_role_claim_key', settingsJwtRoleClaimKey);
98
+ if (settingsDbAggregatesEnabled !== undefined)
99
+ setNested(body, 'settings.db_aggregates_enabled', settingsDbAggregatesEnabled);
100
+ if (settingsDbExtraSearchPath !== undefined)
101
+ setNested(body, 'settings.db_extra_search_path', settingsDbExtraSearchPath);
102
+ if (settingsServerTimingEnabled !== undefined)
103
+ setNested(body, 'settings.server_timing_enabled', settingsServerTimingEnabled);
104
+ if (settingsJwtCacheMaxLifetime !== undefined)
105
+ setNested(body, 'settings.jwt_cache_max_lifetime', settingsJwtCacheMaxLifetime);
106
+ if (settingsServerCorsAllowedOrigins !== undefined)
107
+ setNested(body, 'settings.server_cors_allowed_origins', settingsServerCorsAllowedOrigins);
108
+ return neon(neonApiKey, { path: `/projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(branchId)}/data-api/${encodeURIComponent(databaseName)}`, method: 'PATCH', query: queryParams, body });
109
+ },
110
+ });
111
+ //# sourceMappingURL=dataapi.js.map
@@ -0,0 +1,59 @@
1
+ export declare const neonCreateComputeEndpoint: import("ai").Tool<{
2
+ projectId: string;
3
+ neonApiKey?: string | undefined;
4
+ endpointType?: "read_only" | "read_write" | undefined;
5
+ endpointDisabled?: boolean | undefined;
6
+ endpointBranchId?: string | undefined;
7
+ endpointRegionId?: string | undefined;
8
+ endpointProvisioner?: string | undefined;
9
+ endpointPoolerMode?: "transaction" | undefined;
10
+ endpointPoolerEnabled?: boolean | undefined;
11
+ endpointPasswordlessAccess?: boolean | undefined;
12
+ endpointSettingsPgSettings?: Record<string, any> | undefined;
13
+ endpointSuspendTimeoutSeconds?: number | undefined;
14
+ endpointAutoscalingLimitMaxCu?: number | undefined;
15
+ endpointAutoscalingLimitMinCu?: number | undefined;
16
+ endpointSettingsPgbouncerSettings?: Record<string, any> | undefined;
17
+ }, any>;
18
+ export declare const neonDeleteProjectEndpoint: import("ai").Tool<{
19
+ projectId: string;
20
+ endpointId: string;
21
+ neonApiKey?: string | undefined;
22
+ }, any>;
23
+ export declare const neonRestartProjectEndpoint: import("ai").Tool<{
24
+ projectId: string;
25
+ endpointId: string;
26
+ neonApiKey?: string | undefined;
27
+ }, any>;
28
+ export declare const neonRetrieveProjectEndpointDetails: import("ai").Tool<{
29
+ projectId: string;
30
+ endpointId: string;
31
+ neonApiKey?: string | undefined;
32
+ }, any>;
33
+ export declare const neonStartEndpointForProject: import("ai").Tool<{
34
+ projectId: string;
35
+ endpointId: string;
36
+ neonApiKey?: string | undefined;
37
+ }, any>;
38
+ export declare const neonSuspendProjectEndpointById: import("ai").Tool<{
39
+ projectId: string;
40
+ endpointId: string;
41
+ neonApiKey?: string | undefined;
42
+ }, any>;
43
+ export declare const neonUpdateProjectComputeEndpointSettings: import("ai").Tool<{
44
+ projectId: string;
45
+ endpointId: string;
46
+ neonApiKey?: string | undefined;
47
+ endpointDisabled?: boolean | undefined;
48
+ endpointBranchId?: string | undefined;
49
+ endpointProvisioner?: string | undefined;
50
+ endpointPoolerMode?: "transaction" | undefined;
51
+ endpointPoolerEnabled?: boolean | undefined;
52
+ endpointPasswordlessAccess?: boolean | undefined;
53
+ endpointSettingsPgSettings?: Record<string, any> | undefined;
54
+ endpointSuspendTimeoutSeconds?: number | undefined;
55
+ endpointAutoscalingLimitMaxCu?: number | undefined;
56
+ endpointAutoscalingLimitMinCu?: number | undefined;
57
+ endpointSettingsPgbouncerSettings?: Record<string, any> | undefined;
58
+ }, any>;
59
+ //# sourceMappingURL=endpoints.d.ts.map
@@ -0,0 +1,163 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { neon, setNested } from './client.js';
5
+ const tokenField = z.string().optional().describe('Injected by system; do not provide');
6
+ export const neonCreateComputeEndpoint = tool({
7
+ description: "Creates a new compute endpoint for a specified branch within a Neon project. This endpoint allows for detailed configuration of database resources, including read/write capabilities, regional placement, autoscaling limits, and connection pooling settings. It's primarily used when setting up new database instances or modifying existing database configurations to meet specific performance, scaling, or operational requirements. The endpoint provides fine-grained control over compute resources, enabling optimized database operations for various use cases from development to production environments.",
8
+ inputSchema: z.object({
9
+ neonApiKey: tokenField,
10
+ projectId: z.string().describe("The Neon project ID"),
11
+ endpointType: z.enum(["read_only", "read_write"]).optional().describe("The compute endpoint type. Either 'read_write' or 'read_only'. "),
12
+ endpointDisabled: z.boolean().optional().describe("Whether to restrict connections to the compute endpoint. Enabling this option schedules a suspend compute operation. A disabled compute endpoint cannot be enabled by a connection or console action. However, the compute endpoint is periodically enabled by check_availability operations. "),
13
+ endpointBranchId: z.string().optional().describe("The ID of the branch the compute endpoint will be associated with "),
14
+ endpointRegionId: z.string().optional().describe("The region where the compute endpoint will be created. Only the project\"s 'region_id' is permitted. "),
15
+ endpointProvisioner: z.string().optional().describe("The Neon compute provisioner. Specify the 'k8s-neonvm' provisioner to create a compute endpoint that supports Autoscaling. Provisioner can be one of the following values: * k8s-pod * k8s-neonvm Clients must expect, that any string value that is not documented in the description above should be treated as a error. UNKNOWN value if safe to treat as an error too. "),
16
+ endpointPoolerMode: z.enum(["transaction"]).optional().describe("The connection pooler mode. Neon supports PgBouncer in 'transaction' mode only. "),
17
+ endpointPoolerEnabled: z.boolean().optional().describe("Whether to enable connection pooling for the compute endpoint "),
18
+ endpointPasswordlessAccess: z.boolean().optional().describe("NOT YET IMPLEMENTED. Whether to permit passwordless access to the compute endpoint. "),
19
+ endpointSettingsPgSettings: z.record(z.any()).optional().describe("A raw representation of Postgres settings"),
20
+ endpointSuspendTimeoutSeconds: z.number().int().optional().describe("Duration of inactivity in seconds after which the compute endpoint is automatically suspended. The value '0' means use the global default. The value '-1' means never suspend. The default value is '300' seconds (5 minutes). The minimum value is '60' seconds (1 minute). The maximum value is '604800' seconds (1 week). For more information, see [Auto-suspend configuration](https://neon.tech/docs/manage/endpoints#auto-suspend-configuration). "),
21
+ endpointAutoscalingLimitMaxCu: z.number().int().optional().describe("Autoscaling Limit Max Cu"),
22
+ endpointAutoscalingLimitMinCu: z.number().int().optional().describe("Autoscaling Limit Min Cu"),
23
+ endpointSettingsPgbouncerSettings: z.record(z.any()).optional().describe("A raw representation of PgBouncer settings"),
24
+ }),
25
+ execute: async ({ neonApiKey, projectId, endpointType, endpointDisabled, endpointBranchId, endpointRegionId, endpointProvisioner, endpointPoolerMode, endpointPoolerEnabled, endpointPasswordlessAccess, endpointSettingsPgSettings, endpointSuspendTimeoutSeconds, endpointAutoscalingLimitMaxCu, endpointAutoscalingLimitMinCu, endpointSettingsPgbouncerSettings }) => {
26
+ const queryParams = undefined;
27
+ const body = {};
28
+ if (endpointType !== undefined)
29
+ setNested(body, 'endpoint.type', endpointType);
30
+ if (endpointDisabled !== undefined)
31
+ setNested(body, 'endpoint.disabled', endpointDisabled);
32
+ if (endpointBranchId !== undefined)
33
+ setNested(body, 'endpoint.branch_id', endpointBranchId);
34
+ if (endpointRegionId !== undefined)
35
+ setNested(body, 'endpoint.region_id', endpointRegionId);
36
+ if (endpointProvisioner !== undefined)
37
+ setNested(body, 'endpoint.provisioner', endpointProvisioner);
38
+ if (endpointPoolerMode !== undefined)
39
+ setNested(body, 'endpoint.pooler_mode', endpointPoolerMode);
40
+ if (endpointPoolerEnabled !== undefined)
41
+ setNested(body, 'endpoint.pooler_enabled', endpointPoolerEnabled);
42
+ if (endpointPasswordlessAccess !== undefined)
43
+ setNested(body, 'endpoint.passwordless_access', endpointPasswordlessAccess);
44
+ if (endpointSettingsPgSettings !== undefined)
45
+ setNested(body, 'endpoint.settings.pg_settings', endpointSettingsPgSettings);
46
+ if (endpointSuspendTimeoutSeconds !== undefined)
47
+ setNested(body, 'endpoint.suspend_timeout_seconds', endpointSuspendTimeoutSeconds);
48
+ if (endpointAutoscalingLimitMaxCu !== undefined)
49
+ setNested(body, 'endpoint.autoscaling_limit_max_cu', endpointAutoscalingLimitMaxCu);
50
+ if (endpointAutoscalingLimitMinCu !== undefined)
51
+ setNested(body, 'endpoint.autoscaling_limit_min_cu', endpointAutoscalingLimitMinCu);
52
+ if (endpointSettingsPgbouncerSettings !== undefined)
53
+ setNested(body, 'endpoint.settings.pgbouncer_settings', endpointSettingsPgbouncerSettings);
54
+ return neon(neonApiKey, { path: `/projects/${encodeURIComponent(projectId)}/endpoints`, method: 'POST', query: queryParams, body });
55
+ },
56
+ });
57
+ export const neonDeleteProjectEndpoint = tool({
58
+ description: "Deletes a specific endpoint within a Neon project. This operation permanently removes the endpoint and all associated resources, such as configurations and access points. Use this endpoint when you need to decommission or clean up unused endpoints in your project. It's important to note that this action is irreversible, so ensure you have backed up any necessary data or configurations before proceeding. This endpoint should be used with caution, as it will immediately terminate access to the specified endpoint and may impact any systems or applications relying on it.",
59
+ inputSchema: z.object({
60
+ neonApiKey: tokenField,
61
+ projectId: z.string().describe("The Neon project ID. Format: {adjective}-{noun}-{number} (e.g., 'dry-smoke-26258271'). Obtain from NEON_RETRIEVE_PROJECTS_LIST."),
62
+ endpointId: z.string().describe("The compute endpoint ID to delete. Format: ep-{name}-{id} (e.g., 'ep-flat-mud-af9isowb'). Obtain from NEON_GET_PROJECT_ENDPOINT_INFORMATION."),
63
+ }),
64
+ execute: async ({ neonApiKey, projectId, endpointId }) => {
65
+ const queryParams = undefined;
66
+ return neon(neonApiKey, { path: `/projects/${encodeURIComponent(projectId)}/endpoints/${encodeURIComponent(endpointId)}`, method: 'DELETE', query: queryParams });
67
+ },
68
+ });
69
+ export const neonRestartProjectEndpoint = tool({
70
+ description: "Restarts a Neon compute endpoint (Postgres instance) within a project. The restart operation suspends and then starts the compute endpoint, which is useful for: - Applying configuration changes - Clearing cached data or connections - Troubleshooting connection or performance issues - Recovering from error states The operation triggers two sequential actions: 'suspend_compute' followed by 'start_compute'. During restart, the endpoint will be briefly unavailable. The response includes the updated endpoint details and the operations triggered. Note: If the endpoint is in a 'locked' state (HTTP 423) due to an ongoing operation, wait for it to complete before retrying. If the endpoint is 'idle', it will be started directly without suspension.",
71
+ inputSchema: z.object({
72
+ neonApiKey: tokenField,
73
+ projectId: z.string().describe("The Neon project ID (e.g., 'dry-smoke-26258271'). Can be obtained from list projects API."),
74
+ endpointId: z.string().describe("The Neon compute endpoint ID to restart (e.g., 'ep-patient-morning-afvkyj5f'). Can be obtained from list project endpoints API."),
75
+ }),
76
+ execute: async ({ neonApiKey, projectId, endpointId }) => {
77
+ const queryParams = undefined;
78
+ return neon(neonApiKey, { path: `/projects/${encodeURIComponent(projectId)}/endpoints/${encodeURIComponent(endpointId)}/restart`, method: 'POST', query: queryParams });
79
+ },
80
+ });
81
+ export const neonRetrieveProjectEndpointDetails = tool({
82
+ description: "Retrieves detailed information about a specific compute endpoint within a Neon serverless PostgreSQL project. Compute endpoints are the connection points for your Neon databases. Use this action to get information about a specific endpoint including its hostname for connections, autoscaling settings, current state (active/idle/suspended), connection pooling config, and PostgreSQL settings. This is useful for getting the connection hostname, checking endpoint health, verifying compute resources, or troubleshooting connection issues. The endpoint_id can be obtained from the list endpoints action. Note: This is a read-only operation.",
83
+ inputSchema: z.object({
84
+ neonApiKey: tokenField,
85
+ projectId: z.string().describe("The unique identifier for a Neon project (e.g., 'dry-smoke-26258271'). Can be obtained from the projects list endpoint or project details."),
86
+ endpointId: z.string().describe("The unique identifier of the compute endpoint (e.g., 'ep-empty-bush-af3x7l26'). Endpoint IDs start with 'ep-' prefix. Can be obtained from the list endpoints action."),
87
+ }),
88
+ execute: async ({ neonApiKey, projectId, endpointId }) => {
89
+ const queryParams = undefined;
90
+ return neon(neonApiKey, { path: `/projects/${encodeURIComponent(projectId)}/endpoints/${encodeURIComponent(endpointId)}`, method: 'GET', query: queryParams });
91
+ },
92
+ });
93
+ export const neonStartEndpointForProject = tool({
94
+ description: "Starts a suspended or idle compute endpoint for a Neon PostgreSQL project. Neon compute endpoints automatically suspend after a period of inactivity to save resources. Use this action to wake up a suspended endpoint and make it available for database connections. The endpoint will transition from 'idle' or 'suspended' state to 'active'. If the endpoint is already active, the call is idempotent and returns the current endpoint state with no operations. The response includes the endpoint details and any triggered operations. Note: Endpoint startup typically takes a few seconds.",
95
+ inputSchema: z.object({
96
+ neonApiKey: tokenField,
97
+ projectId: z.string().describe("The unique Neon project identifier (e.g., 'dry-smoke-26258271'). Can be obtained from the projects list endpoint."),
98
+ endpointId: z.string().describe("The unique compute endpoint identifier (e.g., 'ep-patient-morning-afvkyj5f'). Can be obtained from the project endpoints list."),
99
+ }),
100
+ execute: async ({ neonApiKey, projectId, endpointId }) => {
101
+ const queryParams = undefined;
102
+ return neon(neonApiKey, { path: `/projects/${encodeURIComponent(projectId)}/endpoints/${encodeURIComponent(endpointId)}/start`, method: 'POST', query: queryParams });
103
+ },
104
+ });
105
+ export const neonSuspendProjectEndpointById = tool({
106
+ description: "Suspends a specific endpoint within a project in the Neon B2B SaaS integration platform. This operation temporarily disables the endpoint, preventing it from processing further requests until it is resumed. Use this endpoint when you need to conserve resources, perform maintenance, or temporarily halt operations for a particular integration point. The suspension is reversible, allowing you to resume the endpoint's functionality when needed. This tool is particularly useful for managing resource utilization and costs in your Neon project by allowing fine-grained control over individual endpoints.",
107
+ inputSchema: z.object({
108
+ neonApiKey: tokenField,
109
+ projectId: z.string().describe("The Neon project ID"),
110
+ endpointId: z.string().describe("The endpoint ID"),
111
+ }),
112
+ execute: async ({ neonApiKey, projectId, endpointId }) => {
113
+ const queryParams = undefined;
114
+ return neon(neonApiKey, { path: `/projects/${encodeURIComponent(projectId)}/endpoints/${encodeURIComponent(endpointId)}/suspend`, method: 'POST', query: queryParams });
115
+ },
116
+ });
117
+ export const neonUpdateProjectComputeEndpointSettings = tool({
118
+ description: "Updates the configuration of a specific compute endpoint within a Neon project. This endpoint allows fine-tuning of various settings such as autoscaling limits, provisioner type, connection pooling, and auto-suspend behavior. It's particularly useful for optimizing performance, resource allocation, and cost management of your Neon compute endpoints. The endpoint should be used when you need to modify the behavior or resources of an existing compute endpoint to better suit your application's needs or to implement changes in your infrastructure strategy. Note that some parameters are deprecated, and care should be taken to use the most current features and settings.",
119
+ inputSchema: z.object({
120
+ neonApiKey: tokenField,
121
+ projectId: z.string().describe("The Neon project ID"),
122
+ endpointId: z.string().describe("The endpoint ID"),
123
+ endpointDisabled: z.boolean().optional().describe("Whether to restrict connections to the compute endpoint. Enabling this option schedules a suspend compute operation. A disabled compute endpoint cannot be enabled by a connection or console action. However, the compute endpoint is periodically enabled by check_availability operations. "),
124
+ endpointBranchId: z.string().optional().describe("DEPRECATED: This field will be removed in a future release. The destination branch ID. The destination branch must not have an exsiting read-write endpoint. "),
125
+ endpointProvisioner: z.string().optional().describe("The Neon compute provisioner. Specify the 'k8s-neonvm' provisioner to create a compute endpoint that supports Autoscaling. Provisioner can be one of the following values: * k8s-pod * k8s-neonvm Clients must expect, that any string value that is not documented in the description above should be treated as a error. UNKNOWN value if safe to treat as an error too. "),
126
+ endpointPoolerMode: z.enum(["transaction"]).optional().describe("The connection pooler mode. Neon supports PgBouncer in 'transaction' mode only. "),
127
+ endpointPoolerEnabled: z.boolean().optional().describe("Whether to enable connection pooling for the compute endpoint "),
128
+ endpointPasswordlessAccess: z.boolean().optional().describe("NOT YET IMPLEMENTED. Whether to permit passwordless access to the compute endpoint. "),
129
+ endpointSettingsPgSettings: z.record(z.any()).optional().describe("A raw representation of Postgres settings"),
130
+ endpointSuspendTimeoutSeconds: z.number().int().optional().describe("Duration of inactivity in seconds after which the compute endpoint is automatically suspended. The value '0' means use the global default. The value '-1' means never suspend. The default value is '300' seconds (5 minutes). The minimum value is '60' seconds (1 minute). The maximum value is '604800' seconds (1 week). For more information, see [Auto-suspend configuration](https://neon.tech/docs/manage/endpoints#auto-suspend-configuration). "),
131
+ endpointAutoscalingLimitMaxCu: z.number().int().optional().describe("Autoscaling Limit Max Cu"),
132
+ endpointAutoscalingLimitMinCu: z.number().int().optional().describe("Autoscaling Limit Min Cu"),
133
+ endpointSettingsPgbouncerSettings: z.record(z.any()).optional().describe("A raw representation of PgBouncer settings"),
134
+ }),
135
+ execute: async ({ neonApiKey, projectId, endpointId, endpointDisabled, endpointBranchId, endpointProvisioner, endpointPoolerMode, endpointPoolerEnabled, endpointPasswordlessAccess, endpointSettingsPgSettings, endpointSuspendTimeoutSeconds, endpointAutoscalingLimitMaxCu, endpointAutoscalingLimitMinCu, endpointSettingsPgbouncerSettings }) => {
136
+ const queryParams = undefined;
137
+ const body = {};
138
+ if (endpointDisabled !== undefined)
139
+ setNested(body, 'endpoint.disabled', endpointDisabled);
140
+ if (endpointBranchId !== undefined)
141
+ setNested(body, 'endpoint.branch_id', endpointBranchId);
142
+ if (endpointProvisioner !== undefined)
143
+ setNested(body, 'endpoint.provisioner', endpointProvisioner);
144
+ if (endpointPoolerMode !== undefined)
145
+ setNested(body, 'endpoint.pooler_mode', endpointPoolerMode);
146
+ if (endpointPoolerEnabled !== undefined)
147
+ setNested(body, 'endpoint.pooler_enabled', endpointPoolerEnabled);
148
+ if (endpointPasswordlessAccess !== undefined)
149
+ setNested(body, 'endpoint.passwordless_access', endpointPasswordlessAccess);
150
+ if (endpointSettingsPgSettings !== undefined)
151
+ setNested(body, 'endpoint.settings.pg_settings', endpointSettingsPgSettings);
152
+ if (endpointSuspendTimeoutSeconds !== undefined)
153
+ setNested(body, 'endpoint.suspend_timeout_seconds', endpointSuspendTimeoutSeconds);
154
+ if (endpointAutoscalingLimitMaxCu !== undefined)
155
+ setNested(body, 'endpoint.autoscaling_limit_max_cu', endpointAutoscalingLimitMaxCu);
156
+ if (endpointAutoscalingLimitMinCu !== undefined)
157
+ setNested(body, 'endpoint.autoscaling_limit_min_cu', endpointAutoscalingLimitMinCu);
158
+ if (endpointSettingsPgbouncerSettings !== undefined)
159
+ setNested(body, 'endpoint.settings.pgbouncer_settings', endpointSettingsPgbouncerSettings);
160
+ return neon(neonApiKey, { path: `/projects/${encodeURIComponent(projectId)}/endpoints/${encodeURIComponent(endpointId)}`, method: 'PATCH', query: queryParams, body });
161
+ },
162
+ });
163
+ //# sourceMappingURL=endpoints.js.map