@tembo-io/sdk 0.9.0 → 0.11.0

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 (447) hide show
  1. package/README.md +28 -1
  2. package/SKILL.md +12 -0
  3. package/api.md +464 -131
  4. package/dist/cjs/client.d.ts +9 -5
  5. package/dist/cjs/client.d.ts.map +1 -1
  6. package/dist/cjs/client.js +6 -2
  7. package/dist/cjs/client.js.map +1 -1
  8. package/dist/cjs/core/EventEmitter.d.ts +29 -0
  9. package/dist/cjs/core/EventEmitter.d.ts.map +1 -0
  10. package/dist/cjs/core/EventEmitter.js +61 -0
  11. package/dist/cjs/core/EventEmitter.js.map +1 -0
  12. package/dist/cjs/index.d.ts +3 -1
  13. package/dist/cjs/index.d.ts.map +1 -1
  14. package/dist/cjs/index.js +5 -1
  15. package/dist/cjs/index.js.map +1 -1
  16. package/dist/cjs/internal/live-socket-browser.d.ts +3 -0
  17. package/dist/cjs/internal/live-socket-browser.d.ts.map +1 -0
  18. package/dist/cjs/internal/live-socket-browser.js +8 -0
  19. package/dist/cjs/internal/live-socket-browser.js.map +1 -0
  20. package/dist/cjs/internal/live-socket.d.ts +3 -0
  21. package/dist/cjs/internal/live-socket.d.ts.map +1 -0
  22. package/dist/cjs/internal/live-socket.js +9 -0
  23. package/dist/cjs/internal/live-socket.js.map +1 -0
  24. package/dist/cjs/internal/ws-adapter-browser.d.ts +34 -0
  25. package/dist/cjs/internal/ws-adapter-browser.d.ts.map +1 -0
  26. package/dist/cjs/internal/ws-adapter-browser.js +89 -0
  27. package/dist/cjs/internal/ws-adapter-browser.js.map +1 -0
  28. package/dist/cjs/internal/ws-adapter-node.d.ts +27 -0
  29. package/dist/cjs/internal/ws-adapter-node.d.ts.map +1 -0
  30. package/dist/cjs/internal/ws-adapter-node.js +91 -0
  31. package/dist/cjs/internal/ws-adapter-node.js.map +1 -0
  32. package/dist/cjs/internal/ws-adapter.d.ts +24 -0
  33. package/dist/cjs/internal/ws-adapter.d.ts.map +1 -0
  34. package/dist/cjs/internal/ws-adapter.js +11 -0
  35. package/dist/cjs/internal/ws-adapter.js.map +1 -0
  36. package/dist/cjs/internal/ws.d.ts +80 -0
  37. package/dist/cjs/internal/ws.d.ts.map +1 -0
  38. package/dist/cjs/internal/ws.js +154 -0
  39. package/dist/cjs/internal/ws.js.map +1 -0
  40. package/dist/cjs/live.d.ts +97 -0
  41. package/dist/cjs/live.d.ts.map +1 -0
  42. package/dist/cjs/live.js +237 -0
  43. package/dist/cjs/live.js.map +1 -0
  44. package/dist/cjs/package.json +6 -1
  45. package/dist/cjs/resources/agents/agents.d.ts +7 -0
  46. package/dist/cjs/resources/agents/agents.d.ts.map +1 -1
  47. package/dist/cjs/resources/agents/agents.js +4 -0
  48. package/dist/cjs/resources/agents/agents.js.map +1 -1
  49. package/dist/cjs/resources/agents/content-revisions.d.ts +249 -0
  50. package/dist/cjs/resources/agents/content-revisions.d.ts.map +1 -0
  51. package/dist/cjs/resources/agents/content-revisions.js +70 -0
  52. package/dist/cjs/resources/agents/content-revisions.js.map +1 -0
  53. package/dist/cjs/resources/agents/index.d.ts +2 -0
  54. package/dist/cjs/resources/agents/index.d.ts.map +1 -1
  55. package/dist/cjs/resources/agents/index.js +3 -1
  56. package/dist/cjs/resources/agents/index.js.map +1 -1
  57. package/dist/cjs/resources/agents/templates.d.ts +58 -40
  58. package/dist/cjs/resources/agents/templates.d.ts.map +1 -1
  59. package/dist/cjs/resources/index.d.ts +7 -5
  60. package/dist/cjs/resources/index.d.ts.map +1 -1
  61. package/dist/cjs/resources/index.js +5 -3
  62. package/dist/cjs/resources/index.js.map +1 -1
  63. package/dist/cjs/resources/integrations/index.d.ts +7 -0
  64. package/dist/cjs/resources/integrations/index.d.ts.map +1 -0
  65. package/dist/cjs/resources/integrations/index.js +11 -0
  66. package/dist/cjs/resources/integrations/index.js.map +1 -0
  67. package/dist/cjs/resources/integrations/integrations.d.ts +777 -0
  68. package/dist/cjs/resources/integrations/integrations.d.ts.map +1 -0
  69. package/dist/cjs/resources/integrations/integrations.js +275 -0
  70. package/dist/cjs/resources/integrations/integrations.js.map +1 -0
  71. package/dist/cjs/resources/integrations/providers.d.ts +229 -0
  72. package/dist/cjs/resources/integrations/providers.d.ts.map +1 -0
  73. package/dist/cjs/resources/integrations/providers.js +45 -0
  74. package/dist/cjs/resources/integrations/providers.js.map +1 -0
  75. package/dist/cjs/resources/integrations/triggers.d.ts +280 -0
  76. package/dist/cjs/resources/integrations/triggers.d.ts.map +1 -0
  77. package/dist/cjs/resources/integrations/triggers.js +67 -0
  78. package/dist/cjs/resources/integrations/triggers.js.map +1 -0
  79. package/dist/cjs/resources/integrations.d.ts +1 -158
  80. package/dist/cjs/resources/integrations.d.ts.map +1 -1
  81. package/dist/cjs/resources/integrations.js +15 -39
  82. package/dist/cjs/resources/integrations.js.map +1 -1
  83. package/dist/cjs/resources/live/index.d.ts +6 -0
  84. package/dist/cjs/resources/live/index.d.ts.map +1 -0
  85. package/dist/cjs/resources/live/index.js +9 -0
  86. package/dist/cjs/resources/live/index.js.map +1 -0
  87. package/dist/cjs/resources/live/internal-base.d.ts +70 -0
  88. package/dist/cjs/resources/live/internal-base.d.ts.map +1 -0
  89. package/dist/cjs/resources/live/internal-base.js +57 -0
  90. package/dist/cjs/resources/live/internal-base.js.map +1 -0
  91. package/dist/cjs/resources/live/live.d.ts +54 -0
  92. package/dist/cjs/resources/live/live.d.ts.map +1 -0
  93. package/dist/cjs/resources/live/live.js +50 -0
  94. package/dist/cjs/resources/live/live.js.map +1 -0
  95. package/dist/cjs/resources/live/ws-base.d.ts +57 -0
  96. package/dist/cjs/resources/live/ws-base.d.ts.map +1 -0
  97. package/dist/cjs/resources/live/ws-base.js +359 -0
  98. package/dist/cjs/resources/live/ws-base.js.map +1 -0
  99. package/dist/cjs/resources/live/ws-browser.d.ts +14 -0
  100. package/dist/cjs/resources/live/ws-browser.d.ts.map +1 -0
  101. package/dist/cjs/resources/live/ws-browser.js +25 -0
  102. package/dist/cjs/resources/live/ws-browser.js.map +1 -0
  103. package/dist/cjs/resources/live/ws.d.ts +13 -0
  104. package/dist/cjs/resources/live/ws.d.ts.map +1 -0
  105. package/dist/cjs/resources/live/ws.js +31 -0
  106. package/dist/cjs/resources/live/ws.js.map +1 -0
  107. package/dist/cjs/resources/live.d.ts +2 -0
  108. package/dist/cjs/resources/live.d.ts.map +1 -0
  109. package/dist/cjs/resources/live.js +19 -0
  110. package/dist/cjs/resources/live.js.map +1 -0
  111. package/dist/cjs/resources/models.d.ts +6 -6
  112. package/dist/cjs/resources/models.d.ts.map +1 -1
  113. package/dist/cjs/resources/models.js +1 -1
  114. package/dist/cjs/resources/models.js.map +1 -1
  115. package/dist/cjs/resources/organizations/index.d.ts +3 -2
  116. package/dist/cjs/resources/organizations/index.d.ts.map +1 -1
  117. package/dist/cjs/resources/organizations/index.js +1 -1
  118. package/dist/cjs/resources/organizations/index.js.map +1 -1
  119. package/dist/cjs/resources/organizations/organizations.d.ts +5 -5
  120. package/dist/cjs/resources/organizations/organizations.d.ts.map +1 -1
  121. package/dist/cjs/resources/organizations/organizations.js +2 -2
  122. package/dist/cjs/resources/organizations/organizations.js.map +1 -1
  123. package/dist/cjs/resources/organizations/settings.d.ts +93 -1
  124. package/dist/cjs/resources/organizations/settings.d.ts.map +1 -1
  125. package/dist/cjs/resources/organizations/settings.js +19 -0
  126. package/dist/cjs/resources/organizations/settings.js.map +1 -1
  127. package/dist/cjs/resources/organizations/subscriptions.d.ts +295 -1
  128. package/dist/cjs/resources/organizations/subscriptions.d.ts.map +1 -1
  129. package/dist/cjs/resources/organizations/subscriptions.js +43 -15
  130. package/dist/cjs/resources/organizations/subscriptions.js.map +1 -1
  131. package/dist/cjs/resources/projects/builds.d.ts +2 -2
  132. package/dist/cjs/resources/projects/projects.d.ts +19 -2
  133. package/dist/cjs/resources/projects/projects.d.ts.map +1 -1
  134. package/dist/cjs/resources/projects/projects.js.map +1 -1
  135. package/dist/cjs/resources/projects/snapshots.d.ts +3 -3
  136. package/dist/cjs/resources/repositories.d.ts +83 -3
  137. package/dist/cjs/resources/repositories.d.ts.map +1 -1
  138. package/dist/cjs/resources/repositories.js +21 -2
  139. package/dist/cjs/resources/repositories.js.map +1 -1
  140. package/dist/cjs/resources/runtimes.d.ts +2 -2
  141. package/dist/cjs/resources/runtimes.d.ts.map +1 -1
  142. package/dist/cjs/resources/sessions/sessions.d.ts +6 -0
  143. package/dist/cjs/resources/sessions/sessions.d.ts.map +1 -1
  144. package/dist/cjs/resources/sessions/sessions.js +2 -0
  145. package/dist/cjs/resources/sessions/sessions.js.map +1 -1
  146. package/dist/cjs/resources/skills/index.d.ts +5 -0
  147. package/dist/cjs/resources/skills/index.d.ts.map +1 -0
  148. package/dist/cjs/resources/skills/index.js +9 -0
  149. package/dist/cjs/resources/skills/index.js.map +1 -0
  150. package/dist/cjs/resources/skills/marketplace.d.ts +114 -0
  151. package/dist/cjs/resources/skills/marketplace.d.ts.map +1 -0
  152. package/dist/cjs/resources/skills/marketplace.js +45 -0
  153. package/dist/cjs/resources/skills/marketplace.js.map +1 -0
  154. package/dist/cjs/resources/skills/skills.d.ts +269 -0
  155. package/dist/cjs/resources/skills/skills.d.ts.map +1 -0
  156. package/dist/cjs/resources/skills/skills.js +135 -0
  157. package/dist/cjs/resources/skills/skills.js.map +1 -0
  158. package/dist/cjs/resources/skills.d.ts +1 -264
  159. package/dist/cjs/resources/skills.d.ts.map +1 -1
  160. package/dist/cjs/resources/skills.js +15 -94
  161. package/dist/cjs/resources/skills.js.map +1 -1
  162. package/dist/cjs/resources/users/index.d.ts +4 -1
  163. package/dist/cjs/resources/users/index.d.ts.map +1 -1
  164. package/dist/cjs/resources/users/index.js +4 -2
  165. package/dist/cjs/resources/users/index.js.map +1 -1
  166. package/dist/cjs/resources/users/profile-picture.d.ts +77 -0
  167. package/dist/cjs/resources/users/profile-picture.d.ts.map +1 -0
  168. package/dist/cjs/resources/users/profile-picture.js +63 -0
  169. package/dist/cjs/resources/users/profile-picture.js.map +1 -0
  170. package/dist/cjs/resources/users/subscriptions.d.ts +295 -1
  171. package/dist/cjs/resources/users/subscriptions.d.ts.map +1 -1
  172. package/dist/cjs/resources/users/subscriptions.js +40 -15
  173. package/dist/cjs/resources/users/subscriptions.js.map +1 -1
  174. package/dist/cjs/resources/users/users.d.ts +7 -3
  175. package/dist/cjs/resources/users/users.d.ts.map +1 -1
  176. package/dist/cjs/resources/users/users.js +6 -2
  177. package/dist/cjs/resources/users/users.js.map +1 -1
  178. package/dist/cjs/resources.d.ts +2 -2
  179. package/dist/cjs/resources.d.ts.map +1 -1
  180. package/dist/cjs/resources.js +2 -1
  181. package/dist/cjs/resources.js.map +1 -1
  182. package/dist/cjs/version.d.ts +1 -1
  183. package/dist/cjs/version.d.ts.map +1 -1
  184. package/dist/cjs/version.js +1 -1
  185. package/dist/cjs/version.js.map +1 -1
  186. package/dist/esm/client.d.ts +9 -5
  187. package/dist/esm/client.d.ts.map +1 -1
  188. package/dist/esm/client.js +6 -2
  189. package/dist/esm/client.js.map +1 -1
  190. package/dist/esm/core/EventEmitter.d.ts +29 -0
  191. package/dist/esm/core/EventEmitter.d.ts.map +1 -0
  192. package/dist/esm/core/EventEmitter.js +56 -0
  193. package/dist/esm/core/EventEmitter.js.map +1 -0
  194. package/dist/esm/index.d.ts +3 -1
  195. package/dist/esm/index.d.ts.map +1 -1
  196. package/dist/esm/index.js +1 -0
  197. package/dist/esm/index.js.map +1 -1
  198. package/dist/esm/internal/live-socket-browser.d.ts +3 -0
  199. package/dist/esm/internal/live-socket-browser.d.ts.map +1 -0
  200. package/dist/esm/internal/live-socket-browser.js +5 -0
  201. package/dist/esm/internal/live-socket-browser.js.map +1 -0
  202. package/dist/esm/internal/live-socket.d.ts +3 -0
  203. package/dist/esm/internal/live-socket.d.ts.map +1 -0
  204. package/dist/esm/internal/live-socket.js +6 -0
  205. package/dist/esm/internal/live-socket.js.map +1 -0
  206. package/dist/esm/internal/ws-adapter-browser.d.ts +34 -0
  207. package/dist/esm/internal/ws-adapter-browser.d.ts.map +1 -0
  208. package/dist/esm/internal/ws-adapter-browser.js +85 -0
  209. package/dist/esm/internal/ws-adapter-browser.js.map +1 -0
  210. package/dist/esm/internal/ws-adapter-node.d.ts +27 -0
  211. package/dist/esm/internal/ws-adapter-node.d.ts.map +1 -0
  212. package/dist/esm/internal/ws-adapter-node.js +87 -0
  213. package/dist/esm/internal/ws-adapter-node.js.map +1 -0
  214. package/dist/esm/internal/ws-adapter.d.ts +24 -0
  215. package/dist/esm/internal/ws-adapter.d.ts.map +1 -0
  216. package/dist/esm/internal/ws-adapter.js +8 -0
  217. package/dist/esm/internal/ws-adapter.js.map +1 -0
  218. package/dist/esm/internal/ws.d.ts +80 -0
  219. package/dist/esm/internal/ws.d.ts.map +1 -0
  220. package/dist/esm/internal/ws.js +148 -0
  221. package/dist/esm/internal/ws.js.map +1 -0
  222. package/dist/esm/live.d.ts +97 -0
  223. package/dist/esm/live.d.ts.map +1 -0
  224. package/dist/esm/live.js +230 -0
  225. package/dist/esm/live.js.map +1 -0
  226. package/dist/esm/resources/agents/agents.d.ts +7 -0
  227. package/dist/esm/resources/agents/agents.d.ts.map +1 -1
  228. package/dist/esm/resources/agents/agents.js +4 -0
  229. package/dist/esm/resources/agents/agents.js.map +1 -1
  230. package/dist/esm/resources/agents/content-revisions.d.ts +249 -0
  231. package/dist/esm/resources/agents/content-revisions.d.ts.map +1 -0
  232. package/dist/esm/resources/agents/content-revisions.js +66 -0
  233. package/dist/esm/resources/agents/content-revisions.js.map +1 -0
  234. package/dist/esm/resources/agents/index.d.ts +2 -0
  235. package/dist/esm/resources/agents/index.d.ts.map +1 -1
  236. package/dist/esm/resources/agents/index.js +1 -0
  237. package/dist/esm/resources/agents/index.js.map +1 -1
  238. package/dist/esm/resources/agents/templates.d.ts +58 -40
  239. package/dist/esm/resources/agents/templates.d.ts.map +1 -1
  240. package/dist/esm/resources/index.d.ts +7 -5
  241. package/dist/esm/resources/index.d.ts.map +1 -1
  242. package/dist/esm/resources/index.js +3 -2
  243. package/dist/esm/resources/index.js.map +1 -1
  244. package/dist/esm/resources/integrations/index.d.ts +7 -0
  245. package/dist/esm/resources/integrations/index.d.ts.map +1 -0
  246. package/dist/esm/resources/integrations/index.js +5 -0
  247. package/dist/esm/resources/integrations/index.js.map +1 -0
  248. package/dist/esm/resources/integrations/integrations.d.ts +777 -0
  249. package/dist/esm/resources/integrations/integrations.d.ts.map +1 -0
  250. package/dist/esm/resources/integrations/integrations.js +238 -0
  251. package/dist/esm/resources/integrations/integrations.js.map +1 -0
  252. package/dist/esm/resources/integrations/providers.d.ts +229 -0
  253. package/dist/esm/resources/integrations/providers.d.ts.map +1 -0
  254. package/dist/esm/resources/integrations/providers.js +41 -0
  255. package/dist/esm/resources/integrations/providers.js.map +1 -0
  256. package/dist/esm/resources/integrations/triggers.d.ts +280 -0
  257. package/dist/esm/resources/integrations/triggers.d.ts.map +1 -0
  258. package/dist/esm/resources/integrations/triggers.js +63 -0
  259. package/dist/esm/resources/integrations/triggers.js.map +1 -0
  260. package/dist/esm/resources/integrations.d.ts +1 -158
  261. package/dist/esm/resources/integrations.d.ts.map +1 -1
  262. package/dist/esm/resources/integrations.js +1 -37
  263. package/dist/esm/resources/integrations.js.map +1 -1
  264. package/dist/esm/resources/live/index.d.ts +6 -0
  265. package/dist/esm/resources/live/index.d.ts.map +1 -0
  266. package/dist/esm/resources/live/index.js +4 -0
  267. package/dist/esm/resources/live/index.js.map +1 -0
  268. package/dist/esm/resources/live/internal-base.d.ts +70 -0
  269. package/dist/esm/resources/live/internal-base.d.ts.map +1 -0
  270. package/dist/esm/resources/live/internal-base.js +50 -0
  271. package/dist/esm/resources/live/internal-base.js.map +1 -0
  272. package/dist/esm/resources/live/live.d.ts +54 -0
  273. package/dist/esm/resources/live/live.d.ts.map +1 -0
  274. package/dist/esm/resources/live/live.js +46 -0
  275. package/dist/esm/resources/live/live.js.map +1 -0
  276. package/dist/esm/resources/live/ws-base.d.ts +57 -0
  277. package/dist/esm/resources/live/ws-base.d.ts.map +1 -0
  278. package/dist/esm/resources/live/ws-base.js +355 -0
  279. package/dist/esm/resources/live/ws-base.js.map +1 -0
  280. package/dist/esm/resources/live/ws-browser.d.ts +14 -0
  281. package/dist/esm/resources/live/ws-browser.d.ts.map +1 -0
  282. package/dist/esm/resources/live/ws-browser.js +21 -0
  283. package/dist/esm/resources/live/ws-browser.js.map +1 -0
  284. package/dist/esm/resources/live/ws.d.ts +13 -0
  285. package/dist/esm/resources/live/ws.d.ts.map +1 -0
  286. package/dist/esm/resources/live/ws.js +27 -0
  287. package/dist/esm/resources/live/ws.js.map +1 -0
  288. package/dist/esm/resources/live.d.ts +2 -0
  289. package/dist/esm/resources/live.d.ts.map +1 -0
  290. package/dist/esm/resources/live.js +3 -0
  291. package/dist/esm/resources/live.js.map +1 -0
  292. package/dist/esm/resources/models.d.ts +6 -6
  293. package/dist/esm/resources/models.d.ts.map +1 -1
  294. package/dist/esm/resources/models.js +1 -1
  295. package/dist/esm/resources/models.js.map +1 -1
  296. package/dist/esm/resources/organizations/index.d.ts +3 -2
  297. package/dist/esm/resources/organizations/index.d.ts.map +1 -1
  298. package/dist/esm/resources/organizations/index.js +1 -1
  299. package/dist/esm/resources/organizations/index.js.map +1 -1
  300. package/dist/esm/resources/organizations/organizations.d.ts +5 -5
  301. package/dist/esm/resources/organizations/organizations.d.ts.map +1 -1
  302. package/dist/esm/resources/organizations/organizations.js +2 -2
  303. package/dist/esm/resources/organizations/organizations.js.map +1 -1
  304. package/dist/esm/resources/organizations/settings.d.ts +93 -1
  305. package/dist/esm/resources/organizations/settings.d.ts.map +1 -1
  306. package/dist/esm/resources/organizations/settings.js +19 -0
  307. package/dist/esm/resources/organizations/settings.js.map +1 -1
  308. package/dist/esm/resources/organizations/subscriptions.d.ts +295 -1
  309. package/dist/esm/resources/organizations/subscriptions.d.ts.map +1 -1
  310. package/dist/esm/resources/organizations/subscriptions.js +41 -1
  311. package/dist/esm/resources/organizations/subscriptions.js.map +1 -1
  312. package/dist/esm/resources/projects/builds.d.ts +2 -2
  313. package/dist/esm/resources/projects/projects.d.ts +19 -2
  314. package/dist/esm/resources/projects/projects.d.ts.map +1 -1
  315. package/dist/esm/resources/projects/projects.js.map +1 -1
  316. package/dist/esm/resources/projects/snapshots.d.ts +3 -3
  317. package/dist/esm/resources/repositories.d.ts +83 -3
  318. package/dist/esm/resources/repositories.d.ts.map +1 -1
  319. package/dist/esm/resources/repositories.js +21 -2
  320. package/dist/esm/resources/repositories.js.map +1 -1
  321. package/dist/esm/resources/runtimes.d.ts +2 -2
  322. package/dist/esm/resources/runtimes.d.ts.map +1 -1
  323. package/dist/esm/resources/sessions/sessions.d.ts +6 -0
  324. package/dist/esm/resources/sessions/sessions.d.ts.map +1 -1
  325. package/dist/esm/resources/sessions/sessions.js +2 -0
  326. package/dist/esm/resources/sessions/sessions.js.map +1 -1
  327. package/dist/esm/resources/skills/index.d.ts +5 -0
  328. package/dist/esm/resources/skills/index.d.ts.map +1 -0
  329. package/dist/esm/resources/skills/index.js +4 -0
  330. package/dist/esm/resources/skills/index.js.map +1 -0
  331. package/dist/esm/resources/skills/marketplace.d.ts +114 -0
  332. package/dist/esm/resources/skills/marketplace.d.ts.map +1 -0
  333. package/dist/esm/resources/skills/marketplace.js +41 -0
  334. package/dist/esm/resources/skills/marketplace.js.map +1 -0
  335. package/dist/esm/resources/skills/skills.d.ts +269 -0
  336. package/dist/esm/resources/skills/skills.d.ts.map +1 -0
  337. package/dist/esm/resources/skills/skills.js +98 -0
  338. package/dist/esm/resources/skills/skills.js.map +1 -0
  339. package/dist/esm/resources/skills.d.ts +1 -264
  340. package/dist/esm/resources/skills.d.ts.map +1 -1
  341. package/dist/esm/resources/skills.js +1 -92
  342. package/dist/esm/resources/skills.js.map +1 -1
  343. package/dist/esm/resources/users/index.d.ts +4 -1
  344. package/dist/esm/resources/users/index.d.ts.map +1 -1
  345. package/dist/esm/resources/users/index.js +2 -1
  346. package/dist/esm/resources/users/index.js.map +1 -1
  347. package/dist/esm/resources/users/profile-picture.d.ts +77 -0
  348. package/dist/esm/resources/users/profile-picture.d.ts.map +1 -0
  349. package/dist/esm/resources/users/profile-picture.js +59 -0
  350. package/dist/esm/resources/users/profile-picture.js.map +1 -0
  351. package/dist/esm/resources/users/subscriptions.d.ts +295 -1
  352. package/dist/esm/resources/users/subscriptions.d.ts.map +1 -1
  353. package/dist/esm/resources/users/subscriptions.js +38 -1
  354. package/dist/esm/resources/users/subscriptions.js.map +1 -1
  355. package/dist/esm/resources/users/users.d.ts +7 -3
  356. package/dist/esm/resources/users/users.d.ts.map +1 -1
  357. package/dist/esm/resources/users/users.js +6 -2
  358. package/dist/esm/resources/users/users.js.map +1 -1
  359. package/dist/esm/resources.d.ts +2 -2
  360. package/dist/esm/resources.d.ts.map +1 -1
  361. package/dist/esm/resources.js +1 -1
  362. package/dist/esm/resources.js.map +1 -1
  363. package/dist/esm/version.d.ts +1 -1
  364. package/dist/esm/version.d.ts.map +1 -1
  365. package/dist/esm/version.js +1 -1
  366. package/dist/esm/version.js.map +1 -1
  367. package/package.json +22 -3
  368. package/dist/cjs/resources/organizations/subscriptions/chatgpt.d.ts +0 -186
  369. package/dist/cjs/resources/organizations/subscriptions/chatgpt.d.ts.map +0 -1
  370. package/dist/cjs/resources/organizations/subscriptions/chatgpt.js +0 -58
  371. package/dist/cjs/resources/organizations/subscriptions/chatgpt.js.map +0 -1
  372. package/dist/cjs/resources/organizations/subscriptions/claude.d.ts +0 -128
  373. package/dist/cjs/resources/organizations/subscriptions/claude.d.ts.map +0 -1
  374. package/dist/cjs/resources/organizations/subscriptions/claude.js +0 -40
  375. package/dist/cjs/resources/organizations/subscriptions/claude.js.map +0 -1
  376. package/dist/cjs/resources/organizations/subscriptions/index.d.ts +0 -8
  377. package/dist/cjs/resources/organizations/subscriptions/index.d.ts.map +0 -1
  378. package/dist/cjs/resources/organizations/subscriptions/index.js +0 -13
  379. package/dist/cjs/resources/organizations/subscriptions/index.js.map +0 -1
  380. package/dist/cjs/resources/organizations/subscriptions/subscriptions.d.ts +0 -18
  381. package/dist/cjs/resources/organizations/subscriptions/subscriptions.d.ts.map +0 -1
  382. package/dist/cjs/resources/organizations/subscriptions/subscriptions.js +0 -54
  383. package/dist/cjs/resources/organizations/subscriptions/subscriptions.js.map +0 -1
  384. package/dist/cjs/resources/organizations/subscriptions/supergrok.d.ts +0 -25
  385. package/dist/cjs/resources/organizations/subscriptions/supergrok.d.ts.map +0 -1
  386. package/dist/cjs/resources/organizations/subscriptions/supergrok.js +0 -25
  387. package/dist/cjs/resources/organizations/subscriptions/supergrok.js.map +0 -1
  388. package/dist/cjs/resources/users/subscriptions/chatgpt.d.ts +0 -186
  389. package/dist/cjs/resources/users/subscriptions/chatgpt.d.ts.map +0 -1
  390. package/dist/cjs/resources/users/subscriptions/chatgpt.js +0 -61
  391. package/dist/cjs/resources/users/subscriptions/chatgpt.js.map +0 -1
  392. package/dist/cjs/resources/users/subscriptions/claude.d.ts +0 -128
  393. package/dist/cjs/resources/users/subscriptions/claude.d.ts.map +0 -1
  394. package/dist/cjs/resources/users/subscriptions/claude.js +0 -40
  395. package/dist/cjs/resources/users/subscriptions/claude.js.map +0 -1
  396. package/dist/cjs/resources/users/subscriptions/index.d.ts +0 -8
  397. package/dist/cjs/resources/users/subscriptions/index.d.ts.map +0 -1
  398. package/dist/cjs/resources/users/subscriptions/index.js +0 -13
  399. package/dist/cjs/resources/users/subscriptions/index.js.map +0 -1
  400. package/dist/cjs/resources/users/subscriptions/subscriptions.d.ts +0 -18
  401. package/dist/cjs/resources/users/subscriptions/subscriptions.d.ts.map +0 -1
  402. package/dist/cjs/resources/users/subscriptions/subscriptions.js +0 -54
  403. package/dist/cjs/resources/users/subscriptions/subscriptions.js.map +0 -1
  404. package/dist/cjs/resources/users/subscriptions/supergrok.d.ts +0 -25
  405. package/dist/cjs/resources/users/subscriptions/supergrok.d.ts.map +0 -1
  406. package/dist/cjs/resources/users/subscriptions/supergrok.js +0 -25
  407. package/dist/cjs/resources/users/subscriptions/supergrok.js.map +0 -1
  408. package/dist/esm/resources/organizations/subscriptions/chatgpt.d.ts +0 -186
  409. package/dist/esm/resources/organizations/subscriptions/chatgpt.d.ts.map +0 -1
  410. package/dist/esm/resources/organizations/subscriptions/chatgpt.js +0 -54
  411. package/dist/esm/resources/organizations/subscriptions/chatgpt.js.map +0 -1
  412. package/dist/esm/resources/organizations/subscriptions/claude.d.ts +0 -128
  413. package/dist/esm/resources/organizations/subscriptions/claude.d.ts.map +0 -1
  414. package/dist/esm/resources/organizations/subscriptions/claude.js +0 -36
  415. package/dist/esm/resources/organizations/subscriptions/claude.js.map +0 -1
  416. package/dist/esm/resources/organizations/subscriptions/index.d.ts +0 -8
  417. package/dist/esm/resources/organizations/subscriptions/index.d.ts.map +0 -1
  418. package/dist/esm/resources/organizations/subscriptions/index.js +0 -6
  419. package/dist/esm/resources/organizations/subscriptions/index.js.map +0 -1
  420. package/dist/esm/resources/organizations/subscriptions/subscriptions.d.ts +0 -18
  421. package/dist/esm/resources/organizations/subscriptions/subscriptions.d.ts.map +0 -1
  422. package/dist/esm/resources/organizations/subscriptions/subscriptions.js +0 -17
  423. package/dist/esm/resources/organizations/subscriptions/subscriptions.js.map +0 -1
  424. package/dist/esm/resources/organizations/subscriptions/supergrok.d.ts +0 -25
  425. package/dist/esm/resources/organizations/subscriptions/supergrok.d.ts.map +0 -1
  426. package/dist/esm/resources/organizations/subscriptions/supergrok.js +0 -21
  427. package/dist/esm/resources/organizations/subscriptions/supergrok.js.map +0 -1
  428. package/dist/esm/resources/users/subscriptions/chatgpt.d.ts +0 -186
  429. package/dist/esm/resources/users/subscriptions/chatgpt.d.ts.map +0 -1
  430. package/dist/esm/resources/users/subscriptions/chatgpt.js +0 -57
  431. package/dist/esm/resources/users/subscriptions/chatgpt.js.map +0 -1
  432. package/dist/esm/resources/users/subscriptions/claude.d.ts +0 -128
  433. package/dist/esm/resources/users/subscriptions/claude.d.ts.map +0 -1
  434. package/dist/esm/resources/users/subscriptions/claude.js +0 -36
  435. package/dist/esm/resources/users/subscriptions/claude.js.map +0 -1
  436. package/dist/esm/resources/users/subscriptions/index.d.ts +0 -8
  437. package/dist/esm/resources/users/subscriptions/index.d.ts.map +0 -1
  438. package/dist/esm/resources/users/subscriptions/index.js +0 -6
  439. package/dist/esm/resources/users/subscriptions/index.js.map +0 -1
  440. package/dist/esm/resources/users/subscriptions/subscriptions.d.ts +0 -18
  441. package/dist/esm/resources/users/subscriptions/subscriptions.d.ts.map +0 -1
  442. package/dist/esm/resources/users/subscriptions/subscriptions.js +0 -17
  443. package/dist/esm/resources/users/subscriptions/subscriptions.js.map +0 -1
  444. package/dist/esm/resources/users/subscriptions/supergrok.d.ts +0 -25
  445. package/dist/esm/resources/users/subscriptions/supergrok.d.ts.map +0 -1
  446. package/dist/esm/resources/users/subscriptions/supergrok.js +0 -21
  447. package/dist/esm/resources/users/subscriptions/supergrok.js.map +0 -1
package/api.md CHANGED
@@ -16,6 +16,9 @@ Complete reference of every operation, grouped by resource. See [the README](./R
16
16
  - [Retrieve a skill](#retrieve-a-skill)
17
17
  - [Update a skill](#update-a-skill)
18
18
  - [Delete a skill](#delete-a-skill)
19
+ - [`Skills Marketplace`](#skills-marketplace)
20
+ - [List marketplace skills](#list-marketplace-skills)
21
+ - [Retrieve a marketplace skill](#retrieve-a-marketplace-skill)
19
22
  - [`Insights`](#insights)
20
23
  - [Retrieve insights](#retrieve-insights)
21
24
  - [Update insights](#update-insights)
@@ -41,16 +44,10 @@ Complete reference of every operation, grouped by resource. See [the README](./R
41
44
  - [`Organizations Settings`](#organizations-settings)
42
45
  - [Retrieve organization settings](#retrieve-organization-settings)
43
46
  - [Update organization settings](#update-organization-settings)
47
+ - [Validate organization provider credentials](#validate-organization-provider-credentials)
44
48
  - [`Organizations Subscriptions`](#organizations-subscriptions)
45
- - [`Organizations Subscriptions Chatgpt`](#organizations-subscriptions-chatgpt)
46
- - [Retrieve an organization ChatGPT subscription](#retrieve-an-organization-chatgpt-subscription)
47
- - [Retrieve organization ChatGPT subscription usage](#retrieve-organization-chatgpt-subscription-usage)
48
- - [Reset organization ChatGPT subscription usage](#reset-organization-chatgpt-subscription-usage)
49
- - [`Organizations Subscriptions Claude`](#organizations-subscriptions-claude)
50
- - [Retrieve an organization Claude subscription](#retrieve-an-organization-claude-subscription)
51
- - [Retrieve organization Claude subscription usage](#retrieve-organization-claude-subscription-usage)
52
- - [`Organizations Subscriptions Supergrok`](#organizations-subscriptions-supergrok)
53
- - [Retrieve an organization SuperGrok subscription](#retrieve-an-organization-supergrok-subscription)
49
+ - [Retrieve organization subscriptions](#retrieve-organization-subscriptions)
50
+ - [Reset organization subscription usage](#reset-organization-subscription-usage)
54
51
  - [`McpConnections`](#mcpconnections)
55
52
  - [List MCP connections](#list-mcp-connections)
56
53
  - [Create an MCP connection](#create-an-mcp-connection)
@@ -86,15 +83,12 @@ Complete reference of every operation, grouped by resource. See [the README](./R
86
83
  - [List user connected accounts](#list-user-connected-accounts)
87
84
  - [Retrieve a user connected account](#retrieve-a-user-connected-account)
88
85
  - [`Users Subscriptions`](#users-subscriptions)
89
- - [`Users Subscriptions Chatgpt`](#users-subscriptions-chatgpt)
90
- - [Retrieve a user ChatGPT subscription](#retrieve-a-user-chatgpt-subscription)
91
- - [Retrieve user ChatGPT subscription usage](#retrieve-user-chatgpt-subscription-usage)
92
- - [Reset user ChatGPT subscription usage](#reset-user-chatgpt-subscription-usage)
93
- - [`Users Subscriptions Claude`](#users-subscriptions-claude)
94
- - [Retrieve a user Claude subscription](#retrieve-a-user-claude-subscription)
95
- - [Retrieve user Claude subscription usage](#retrieve-user-claude-subscription-usage)
96
- - [`Users Subscriptions Supergrok`](#users-subscriptions-supergrok)
97
- - [Retrieve a user SuperGrok subscription](#retrieve-a-user-supergrok-subscription)
86
+ - [Retrieve user subscriptions](#retrieve-user-subscriptions)
87
+ - [Reset user subscription usage](#reset-user-subscription-usage)
88
+ - [`Users ProfilePicture`](#users-profilepicture)
89
+ - [Retrieve a user profile picture](#retrieve-a-user-profile-picture)
90
+ - [Update your profile picture](#update-your-profile-picture)
91
+ - [Delete your profile picture](#delete-your-profile-picture)
98
92
  - [`Sessions`](#sessions)
99
93
  - [List sessions](#list-sessions)
100
94
  - [Create a session](#create-a-session)
@@ -165,15 +159,41 @@ Complete reference of every operation, grouped by resource. See [the README](./R
165
159
  - [List agent runs](#list-agent-runs)
166
160
  - [Create an agent run](#create-an-agent-run)
167
161
  - [Retrieve an agent run](#retrieve-an-agent-run)
162
+ - [`Agents ContentRevisions`](#agents-contentrevisions)
163
+ - [List agent instruction revisions](#list-agent-instruction-revisions)
164
+ - [Retrieve an agent instruction revision](#retrieve-an-agent-instruction-revision)
165
+ - [Restore agent instructions](#restore-agent-instructions)
168
166
  - [`Repositories`](#repositories)
169
167
  - [List repositories](#list-repositories)
170
168
  - [Retrieve a repository](#retrieve-a-repository)
169
+ - [Update a repository](#update-a-repository)
171
170
  - [`Integrations`](#integrations)
172
171
  - [List integrations](#list-integrations)
172
+ - [Create an integration](#create-an-integration)
173
173
  - [Retrieve an integration](#retrieve-an-integration)
174
+ - [Update an integration](#update-an-integration)
175
+ - [Delete an integration](#delete-an-integration)
176
+ - [Authorize an integration](#authorize-an-integration)
177
+ - [Test an integration](#test-an-integration)
178
+ - [Sync an integration](#sync-an-integration)
179
+ - [Sync eligible integrations](#sync-eligible-integrations)
180
+ - [Retrieve eligible integration sync status](#retrieve-eligible-integration-sync-status)
181
+ - [Retrieve an integration rate limit](#retrieve-an-integration-rate-limit)
182
+ - [List Sentry environments](#list-sentry-environments)
183
+ - [List Slack channels](#list-slack-channels)
184
+ - [`Integrations Providers`](#integrations-providers)
185
+ - [List integration providers](#list-integration-providers)
186
+ - [Discover Snyk organizations](#discover-snyk-organizations)
187
+ - [`Integrations Triggers`](#integrations-triggers)
188
+ - [List integration triggers](#list-integration-triggers)
189
+ - [Retrieve an integration trigger](#retrieve-an-integration-trigger)
190
+ - [List integration trigger filter options](#list-integration-trigger-filter-options)
174
191
  - [`Billing`](#billing)
175
192
  - [Retrieve billing](#retrieve-billing)
176
193
  - [List billing usage](#list-billing-usage)
194
+ - [`Live`](#live)
195
+ - [Authorize a live connection](#authorize-a-live-connection)
196
+ - [Live resource subscriptions](#live-resource-subscriptions)
177
197
 
178
198
  ## Setup
179
199
 
@@ -262,8 +282,8 @@ List organization skills or skills checked into a repository.
262
282
 
263
283
  | Direction | Type |
264
284
  | --- | --- |
265
- | Request | [`SkillListParams`](./src/resources/skills.ts) |
266
- | Response | [`SkillListResponse`](./src/resources/skills.ts) |
285
+ | Request | [`SkillListParams`](./src/resources/skills/skills.ts) |
286
+ | Response | [`SkillListResponse`](./src/resources/skills/skills.ts) |
267
287
 
268
288
  ```ts
269
289
  const skill = await client.skills.list({
@@ -278,8 +298,8 @@ Create an organization skill with its files.
278
298
 
279
299
  | Direction | Type |
280
300
  | --- | --- |
281
- | Request | [`SkillCreateParams`](./src/resources/skills.ts) |
282
- | Response | [`SkillCreateResponse`](./src/resources/skills.ts) |
301
+ | Request | [`SkillCreateParams`](./src/resources/skills/skills.ts) |
302
+ | Response | [`SkillCreateResponse`](./src/resources/skills/skills.ts) |
283
303
 
284
304
  ```ts
285
305
  const skill = await client.skills.create({
@@ -300,7 +320,7 @@ Retrieve an organization skill and all of its files.
300
320
 
301
321
  | Direction | Type |
302
322
  | --- | --- |
303
- | Response | [`SkillRetrieveResponse`](./src/resources/skills.ts) |
323
+ | Response | [`SkillRetrieveResponse`](./src/resources/skills/skills.ts) |
304
324
 
305
325
  ```ts
306
326
  const skill = await client.skills.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
@@ -312,8 +332,8 @@ Update an organization skill. When files are provided, they replace the complete
312
332
 
313
333
  | Direction | Type |
314
334
  | --- | --- |
315
- | Request | [`SkillUpdateParams`](./src/resources/skills.ts) |
316
- | Response | [`SkillUpdateResponse`](./src/resources/skills.ts) |
335
+ | Request | [`SkillUpdateParams`](./src/resources/skills/skills.ts) |
336
+ | Response | [`SkillUpdateResponse`](./src/resources/skills/skills.ts) |
317
337
 
318
338
  ```ts
319
339
  const skill = await client.skills.update('7c9e6679-7425-40de-944b-e07fc1f90ae7', {});
@@ -325,12 +345,44 @@ Delete an organization skill.
325
345
 
326
346
  | Direction | Type |
327
347
  | --- | --- |
328
- | Response | [`SkillDeleteResponse`](./src/resources/skills.ts) |
348
+ | Response | [`SkillDeleteResponse`](./src/resources/skills/skills.ts) |
329
349
 
330
350
  ```ts
331
351
  const skill = await client.skills.delete('7c9e6679-7425-40de-944b-e07fc1f90ae7');
332
352
  ```
333
353
 
354
+ ### `Skills Marketplace`
355
+
356
+ #### List marketplace skills
357
+
358
+ List popular marketplace skills or search the catalog. Results have no continuation cursor.
359
+
360
+ | Direction | Type |
361
+ | --- | --- |
362
+ | Request | [`MarketplaceListParams`](./src/resources/skills/marketplace.ts) |
363
+ | Response | [`MarketplaceListResponse`](./src/resources/skills/marketplace.ts) |
364
+
365
+ ```ts
366
+ const marketplace = await client.skills.marketplace.list({
367
+ limit: 50,
368
+ });
369
+ ```
370
+
371
+ #### Retrieve a marketplace skill
372
+
373
+ Retrieve the files and content hash for a marketplace skill. This does not install the skill.
374
+
375
+ | Direction | Type |
376
+ | --- | --- |
377
+ | Request | [`MarketplaceRetrieveParams`](./src/resources/skills/marketplace.ts) |
378
+ | Response | [`MarketplaceRetrieveResponse`](./src/resources/skills/marketplace.ts) |
379
+
380
+ ```ts
381
+ const marketplace = await client.skills.marketplace.retrieve('skillId', {
382
+ source: 'source',
383
+ });
384
+ ```
385
+
334
386
  ## `Insights`
335
387
 
336
388
  ### Retrieve insights
@@ -629,87 +681,50 @@ Update one or more organization settings.
629
681
  const setting = await client.organizations.settings.update('organizationId', {});
630
682
  ```
631
683
 
632
- ### `Organizations Subscriptions`
633
-
634
- #### `Organizations Subscriptions Chatgpt`
635
-
636
- ##### Retrieve an organization ChatGPT subscription
637
-
638
- Retrieve the connection status for an organization ChatGPT subscription.
639
-
640
- | Direction | Type |
641
- | --- | --- |
642
- | Response | [`ChatgptRetrieveResponse`](./src/resources/organizations/subscriptions/chatgpt.ts) |
643
-
644
- ```ts
645
- const chatgpt = await client.organizations.subscriptions.chatgpt.retrieve('organizationId');
646
- ```
647
-
648
- ##### Retrieve organization ChatGPT subscription usage
649
-
650
- Retrieve plan and rate-limit usage for an organization ChatGPT subscription.
651
-
652
- | Direction | Type |
653
- | --- | --- |
654
- | Response | [`ChatgptRetrieveUsageResponse`](./src/resources/organizations/subscriptions/chatgpt.ts) |
655
-
656
- ```ts
657
- const chatgpt = await client.organizations.subscriptions.chatgpt.retrieveUsage('organizationId');
658
- ```
659
-
660
- ##### Reset organization ChatGPT subscription usage
684
+ #### Validate organization provider credentials
661
685
 
662
- Redeem one earned rate-limit reset for an organization ChatGPT subscription.
686
+ Validate supplied inference provider credentials for an organization without saving them. The provider must be available on the organization’s plan.
663
687
 
664
688
  | Direction | Type |
665
689
  | --- | --- |
666
- | Request | [`ChatgptResetUsageParams`](./src/resources/organizations/subscriptions/chatgpt.ts) |
667
- | Response | [`ChatgptResetUsageResponse`](./src/resources/organizations/subscriptions/chatgpt.ts) |
690
+ | Request | [`SettingValidateCredentialsParams`](./src/resources/organizations/settings.ts) |
691
+ | Response | [`SettingValidateCredentialsResponse`](./src/resources/organizations/settings.ts) |
668
692
 
669
693
  ```ts
670
- const chatgpt = await client.organizations.subscriptions.chatgpt.resetUsage('organizationId', {
671
- idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
694
+ const setting = await client.organizations.settings.validateCredentials('organizationId', {
695
+ provider: 'anthropic',
696
+ apiKey: '',
672
697
  });
673
698
  ```
674
699
 
675
- #### `Organizations Subscriptions Claude`
676
-
677
- ##### Retrieve an organization Claude subscription
678
-
679
- Retrieve the connection status for an organization Claude subscription.
680
-
681
- | Direction | Type |
682
- | --- | --- |
683
- | Response | [`ClaudeRetrieveResponse`](./src/resources/organizations/subscriptions/claude.ts) |
684
-
685
- ```ts
686
- const claude = await client.organizations.subscriptions.claude.retrieve('organizationId');
687
- ```
700
+ ### `Organizations Subscriptions`
688
701
 
689
- ##### Retrieve organization Claude subscription usage
702
+ #### Retrieve organization subscriptions
690
703
 
691
- Retrieve rate-limit usage for an organization Claude subscription.
704
+ Retrieve connection statuses and available ChatGPT and Claude usage. Provider usage errors are reported without failing the response.
692
705
 
693
706
  | Direction | Type |
694
707
  | --- | --- |
695
- | Response | [`ClaudeRetrieveUsageResponse`](./src/resources/organizations/subscriptions/claude.ts) |
708
+ | Response | [`SubscriptionRetrieveResponse`](./src/resources/organizations/subscriptions.ts) |
696
709
 
697
710
  ```ts
698
- const claude = await client.organizations.subscriptions.claude.retrieveUsage('organizationId');
711
+ const subscription = await client.organizations.subscriptions.retrieve('organizationId');
699
712
  ```
700
713
 
701
- #### `Organizations Subscriptions Supergrok`
714
+ #### Reset organization subscription usage
702
715
 
703
- ##### Retrieve an organization SuperGrok subscription
704
-
705
- Retrieve the connection status for an organization SuperGrok subscription.
716
+ Redeem an earned ChatGPT rate-limit reset.
706
717
 
707
718
  | Direction | Type |
708
719
  | --- | --- |
709
- | Response | [`SupergrokRetrieveResponse`](./src/resources/organizations/subscriptions/supergrok.ts) |
720
+ | Request | [`SubscriptionResetParams`](./src/resources/organizations/subscriptions.ts) |
721
+ | Response | [`SubscriptionResetResponse`](./src/resources/organizations/subscriptions.ts) |
710
722
 
711
723
  ```ts
712
- const supergrok = await client.organizations.subscriptions.supergrok.retrieve('organizationId');
724
+ const subscription = await client.organizations.subscriptions.reset('organizationId', {
725
+ idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
726
+ provider: 'chatgpt',
727
+ });
713
728
  ```
714
729
 
715
730
  ## `McpConnections`
@@ -1089,85 +1104,69 @@ const connectedAccount = await client.users.connectedAccounts.retrieve('connecte
1089
1104
 
1090
1105
  ### `Users Subscriptions`
1091
1106
 
1092
- #### `Users Subscriptions Chatgpt`
1093
-
1094
- ##### Retrieve a user ChatGPT subscription
1107
+ #### Retrieve user subscriptions
1095
1108
 
1096
- Retrieve the connection status for a user ChatGPT subscription.
1109
+ Retrieve connection statuses and available ChatGPT and Claude usage. Provider usage errors are reported without failing the response.
1097
1110
 
1098
1111
  | Direction | Type |
1099
1112
  | --- | --- |
1100
- | Response | [`ChatgptRetrieveResponse`](./src/resources/users/subscriptions/chatgpt.ts) |
1113
+ | Response | [`SubscriptionRetrieveResponse`](./src/resources/users/subscriptions.ts) |
1101
1114
 
1102
1115
  ```ts
1103
- const chatgpt = await client.users.subscriptions.chatgpt.retrieve('userId');
1116
+ const subscription = await client.users.subscriptions.retrieve('userId');
1104
1117
  ```
1105
1118
 
1106
- ##### Retrieve user ChatGPT subscription usage
1119
+ #### Reset user subscription usage
1107
1120
 
1108
- Retrieve plan and rate-limit usage for a user ChatGPT subscription.
1121
+ Redeem an earned ChatGPT rate-limit reset.
1109
1122
 
1110
1123
  | Direction | Type |
1111
1124
  | --- | --- |
1112
- | Response | [`ChatgptRetrieveUsageResponse`](./src/resources/users/subscriptions/chatgpt.ts) |
1125
+ | Request | [`SubscriptionResetParams`](./src/resources/users/subscriptions.ts) |
1126
+ | Response | [`SubscriptionResetResponse`](./src/resources/users/subscriptions.ts) |
1113
1127
 
1114
1128
  ```ts
1115
- const chatgpt = await client.users.subscriptions.chatgpt.retrieveUsage('userId');
1116
- ```
1117
-
1118
- ##### Reset user ChatGPT subscription usage
1119
-
1120
- Redeem one earned rate-limit reset for a user ChatGPT subscription.
1121
-
1122
- | Direction | Type |
1123
- | --- | --- |
1124
- | Request | [`ChatgptResetUsageParams`](./src/resources/users/subscriptions/chatgpt.ts) |
1125
- | Response | [`ChatgptResetUsageResponse`](./src/resources/users/subscriptions/chatgpt.ts) |
1126
-
1127
- ```ts
1128
- const chatgpt = await client.users.subscriptions.chatgpt.resetUsage('userId', {
1129
+ const subscription = await client.users.subscriptions.reset('userId', {
1129
1130
  idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
1131
+ provider: 'chatgpt',
1130
1132
  });
1131
1133
  ```
1132
1134
 
1133
- #### `Users Subscriptions Claude`
1134
-
1135
- ##### Retrieve a user Claude subscription
1135
+ ### `Users ProfilePicture`
1136
1136
 
1137
- Retrieve the connection status for a user Claude subscription.
1137
+ #### Retrieve a user profile picture
1138
1138
 
1139
- | Direction | Type |
1140
- | --- | --- |
1141
- | Response | [`ClaudeRetrieveResponse`](./src/resources/users/subscriptions/claude.ts) |
1139
+ Redirect to a user's profile picture. Signed URLs are valid for one hour.
1142
1140
 
1143
1141
  ```ts
1144
- const claude = await client.users.subscriptions.claude.retrieve('userId');
1142
+ await client.users.profilePicture.retrieve('userId');
1145
1143
  ```
1146
1144
 
1147
- ##### Retrieve user Claude subscription usage
1145
+ #### Update your profile picture
1148
1146
 
1149
- Retrieve rate-limit usage for a user Claude subscription.
1147
+ Upload a JPEG, PNG, GIF, or WebP profile picture up to 5 MB.
1150
1148
 
1151
1149
  | Direction | Type |
1152
1150
  | --- | --- |
1153
- | Response | [`ClaudeRetrieveUsageResponse`](./src/resources/users/subscriptions/claude.ts) |
1151
+ | Request | [`ProfilePictureUpdateParams`](./src/resources/users/profile-picture.ts) |
1152
+ | Response | [`ProfilePictureUpdateResponse`](./src/resources/users/profile-picture.ts) |
1154
1153
 
1155
1154
  ```ts
1156
- const claude = await client.users.subscriptions.claude.retrieveUsage('userId');
1155
+ const profilePicture = await client.users.profilePicture.update('userId', {
1156
+ file: new File(['file'], 'file'),
1157
+ });
1157
1158
  ```
1158
1159
 
1159
- #### `Users Subscriptions Supergrok`
1160
-
1161
- ##### Retrieve a user SuperGrok subscription
1160
+ #### Delete your profile picture
1162
1161
 
1163
- Retrieve the connection status for a user SuperGrok subscription.
1162
+ Delete your profile picture. This succeeds if no picture exists.
1164
1163
 
1165
1164
  | Direction | Type |
1166
1165
  | --- | --- |
1167
- | Response | [`SupergrokRetrieveResponse`](./src/resources/users/subscriptions/supergrok.ts) |
1166
+ | Response | [`ProfilePictureDeleteResponse`](./src/resources/users/profile-picture.ts) |
1168
1167
 
1169
1168
  ```ts
1170
- const supergrok = await client.users.subscriptions.supergrok.retrieve('userId');
1169
+ const profilePicture = await client.users.profilePicture.delete('userId');
1171
1170
  ```
1172
1171
 
1173
1172
  ## `Sessions`
@@ -2015,11 +2014,59 @@ const run = await client.agents.runs.retrieve('7c9e6679-7425-40de-944b-e07fc1f90
2015
2014
  });
2016
2015
  ```
2017
2016
 
2017
+ ### `Agents ContentRevisions`
2018
+
2019
+ #### List agent instruction revisions
2020
+
2021
+ List saved revisions of an agent’s instruction JSON document, newest first. Revisions do not include other agent configuration. Author details are redacted from public API responses.
2022
+
2023
+ | Direction | Type |
2024
+ | --- | --- |
2025
+ | Request | [`ContentRevisionListParams`](./src/resources/agents/content-revisions.ts) |
2026
+ | Response | [`ContentRevisionListResponse`](./src/resources/agents/content-revisions.ts) |
2027
+
2028
+ ```ts
2029
+ const contentRevision = await client.agents.contentRevisions.list('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
2030
+ limit: 50,
2031
+ });
2032
+ ```
2033
+
2034
+ #### Retrieve an agent instruction revision
2035
+
2036
+ Retrieve the instruction JSON document saved in one revision. Other agent configuration is not included. Author details are redacted from public API responses.
2037
+
2038
+ | Direction | Type |
2039
+ | --- | --- |
2040
+ | Request | [`ContentRevisionRetrieveParams`](./src/resources/agents/content-revisions.ts) |
2041
+ | Response | [`ContentRevisionRetrieveResponse`](./src/resources/agents/content-revisions.ts) |
2042
+
2043
+ ```ts
2044
+ const contentRevision = await client.agents.contentRevisions.retrieve(1, {
2045
+ agentId: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
2046
+ });
2047
+ ```
2048
+
2049
+ #### Restore agent instructions
2050
+
2051
+ Restore a saved instruction JSON document and its mentioned integrations, without reverting other agent configuration. A changed document creates a new revision attributed to the caller. Supply the agent’s current contentVersion as expectedContentVersion; a concurrent instruction change returns 409.
2052
+
2053
+ | Direction | Type |
2054
+ | --- | --- |
2055
+ | Request | [`ContentRevisionRestoreParams`](./src/resources/agents/content-revisions.ts) |
2056
+ | Response | [`ContentRevisionRestoreResponse`](./src/resources/agents/content-revisions.ts) |
2057
+
2058
+ ```ts
2059
+ const contentRevision = await client.agents.contentRevisions.restore(1, {
2060
+ agentId: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
2061
+ expectedContentVersion: 1,
2062
+ });
2063
+ ```
2064
+
2018
2065
  ## `Repositories`
2019
2066
 
2020
2067
  ### List repositories
2021
2068
 
2022
- List enabled repositories in the authenticated organization.
2069
+ List repositories in the authenticated organization. Defaults to enabled repositories.
2023
2070
 
2024
2071
  | Direction | Type |
2025
2072
  | --- | --- |
@@ -2029,6 +2076,7 @@ List enabled repositories in the authenticated organization.
2029
2076
  ```ts
2030
2077
  const repository = await client.repositories.list({
2031
2078
  limit: 50,
2079
+ enabled: 'all',
2032
2080
  order: 'desc',
2033
2081
  sort: 'pullRequests',
2034
2082
  });
@@ -2036,7 +2084,7 @@ const repository = await client.repositories.list({
2036
2084
 
2037
2085
  ### Retrieve a repository
2038
2086
 
2039
- Retrieve an enabled repository in the authenticated organization.
2087
+ Retrieve a repository in the authenticated organization.
2040
2088
 
2041
2089
  | Direction | Type |
2042
2090
  | --- | --- |
@@ -2046,16 +2094,31 @@ Retrieve an enabled repository in the authenticated organization.
2046
2094
  const repository = await client.repositories.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2047
2095
  ```
2048
2096
 
2097
+ ### Update a repository
2098
+
2099
+ Update repository configuration or enable or disable it.
2100
+
2101
+ | Direction | Type |
2102
+ | --- | --- |
2103
+ | Request | [`RepositoryUpdateParams`](./src/resources/repositories.ts) |
2104
+ | Response | [`RepositoryUpdateResponse`](./src/resources/repositories.ts) |
2105
+
2106
+ ```ts
2107
+ const repository = await client.repositories.update('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
2108
+ enabled: false,
2109
+ });
2110
+ ```
2111
+
2049
2112
  ## `Integrations`
2050
2113
 
2051
2114
  ### List integrations
2052
2115
 
2053
- List integrations for the authenticated organization.
2116
+ List integrations visible to the current organization or authenticated admin.
2054
2117
 
2055
2118
  | Direction | Type |
2056
2119
  | --- | --- |
2057
- | Request | [`IntegrationListParams`](./src/resources/integrations.ts) |
2058
- | Response | [`IntegrationListResponse`](./src/resources/integrations.ts) |
2120
+ | Request | [`IntegrationListParams`](./src/resources/integrations/integrations.ts) |
2121
+ | Response | [`IntegrationListResponse`](./src/resources/integrations/integrations.ts) |
2059
2122
 
2060
2123
  ```ts
2061
2124
  const integration = await client.integrations.list({
@@ -2064,18 +2127,252 @@ const integration = await client.integrations.list({
2064
2127
  });
2065
2128
  ```
2066
2129
 
2130
+ ### Create an integration
2131
+
2132
+ Create an integration that does not require an OAuth callback.
2133
+
2134
+ | Direction | Type |
2135
+ | --- | --- |
2136
+ | Request | [`IntegrationCreateParams`](./src/resources/integrations/integrations.ts) |
2137
+ | Response | [`IntegrationCreateResponse`](./src/resources/integrations/integrations.ts) |
2138
+
2139
+ ```ts
2140
+ const integration = await client.integrations.create({
2141
+ environment: 'x',
2142
+ roleArn: 'x',
2143
+ type: 'aws',
2144
+ });
2145
+ ```
2146
+
2067
2147
  ### Retrieve an integration
2068
2148
 
2069
- Retrieve an integration for the authenticated organization.
2149
+ Retrieve an integration and its configuration.
2070
2150
 
2071
2151
  | Direction | Type |
2072
2152
  | --- | --- |
2073
- | Response | [`IntegrationRetrieveResponse`](./src/resources/integrations.ts) |
2153
+ | Response | [`IntegrationRetrieveResponse`](./src/resources/integrations/integrations.ts) |
2074
2154
 
2075
2155
  ```ts
2076
2156
  const integration = await client.integrations.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2077
2157
  ```
2078
2158
 
2159
+ ### Update an integration
2160
+
2161
+ Update provider settings or an editable configuration.
2162
+
2163
+ | Direction | Type |
2164
+ | --- | --- |
2165
+ | Request | [`IntegrationUpdateParams`](./src/resources/integrations/integrations.ts) |
2166
+ | Response | [`IntegrationUpdateResponse`](./src/resources/integrations/integrations.ts) |
2167
+
2168
+ ```ts
2169
+ const integration = await client.integrations.update('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
2170
+ settings: {},
2171
+ });
2172
+ ```
2173
+
2174
+ ### Delete an integration
2175
+
2176
+ Uninstall an integration from its provider when supported, then delete it from Tembo.
2177
+
2178
+ | Direction | Type |
2179
+ | --- | --- |
2180
+ | Response | [`IntegrationDeleteResponse`](./src/resources/integrations/integrations.ts) |
2181
+
2182
+ ```ts
2183
+ const integration = await client.integrations.delete('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2184
+ ```
2185
+
2186
+ ### Authorize an integration
2187
+
2188
+ Return the provider authorization URL for an integration.
2189
+
2190
+ | Direction | Type |
2191
+ | --- | --- |
2192
+ | Request | [`IntegrationAuthorizeParams`](./src/resources/integrations/integrations.ts) |
2193
+ | Response | [`IntegrationAuthorizeResponse`](./src/resources/integrations/integrations.ts) |
2194
+
2195
+ ```ts
2196
+ const integration = await client.integrations.authorize('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2197
+ ```
2198
+
2199
+ ### Test an integration
2200
+
2201
+ Test the saved provider connection.
2202
+
2203
+ | Direction | Type |
2204
+ | --- | --- |
2205
+ | Response | [`IntegrationTestResponse`](./src/resources/integrations/integrations.ts) |
2206
+
2207
+ ```ts
2208
+ const integration = await client.integrations.test('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2209
+ ```
2210
+
2211
+ ### Sync an integration
2212
+
2213
+ Queue or immediately perform an integration sync.
2214
+
2215
+ | Direction | Type |
2216
+ | --- | --- |
2217
+ | Request | [`IntegrationSyncParams`](./src/resources/integrations/integrations.ts) |
2218
+ | Response | [`IntegrationSyncResponse`](./src/resources/integrations/integrations.ts) |
2219
+
2220
+ ```ts
2221
+ const integration = await client.integrations.sync('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
2222
+ mode: 'queued',
2223
+ });
2224
+ ```
2225
+
2226
+ ### Sync eligible integrations
2227
+
2228
+ Queue integration and pull-request sync jobs for integrations with enabled repositories.
2229
+
2230
+ | Direction | Type |
2231
+ | --- | --- |
2232
+ | Request | [`IntegrationSyncAllParams`](./src/resources/integrations/integrations.ts) |
2233
+ | Response | [`IntegrationSyncAllResponse`](./src/resources/integrations/integrations.ts) |
2234
+
2235
+ ```ts
2236
+ const integration = await client.integrations.syncAll({});
2237
+ ```
2238
+
2239
+ ### Retrieve eligible integration sync status
2240
+
2241
+ Count active sync jobs for integrations with enabled repositories.
2242
+
2243
+ | Direction | Type |
2244
+ | --- | --- |
2245
+ | Response | [`IntegrationRetrieveSyncStatusResponse`](./src/resources/integrations/integrations.ts) |
2246
+
2247
+ ```ts
2248
+ const integration = await client.integrations.retrieveSyncStatus();
2249
+ ```
2250
+
2251
+ ### Retrieve an integration rate limit
2252
+
2253
+ Retrieve the GitHub installation rate-limit state.
2254
+
2255
+ | Direction | Type |
2256
+ | --- | --- |
2257
+ | Response | [`IntegrationRetrieveRateLimitResponse`](./src/resources/integrations/integrations.ts) |
2258
+
2259
+ ```ts
2260
+ const integration = await client.integrations.retrieveRateLimit('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2261
+ ```
2262
+
2263
+ ### List Sentry environments
2264
+
2265
+ List environments visible to a Sentry integration.
2266
+
2267
+ | Direction | Type |
2268
+ | --- | --- |
2269
+ | Request | [`IntegrationListSentryEnvironmentsParams`](./src/resources/integrations/integrations.ts) |
2270
+ | Response | [`IntegrationListSentryEnvironmentsResponse`](./src/resources/integrations/integrations.ts) |
2271
+
2272
+ ```ts
2273
+ const integration = await client.integrations.listSentryEnvironments('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
2274
+ limit: 50,
2275
+ });
2276
+ ```
2277
+
2278
+ ### List Slack channels
2279
+
2280
+ List channels visible to a Slack integration.
2281
+
2282
+ | Direction | Type |
2283
+ | --- | --- |
2284
+ | Request | [`IntegrationListSlackChannelsParams`](./src/resources/integrations/integrations.ts) |
2285
+ | Response | [`IntegrationListSlackChannelsResponse`](./src/resources/integrations/integrations.ts) |
2286
+
2287
+ ```ts
2288
+ const integration = await client.integrations.listSlackChannels('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
2289
+ limit: 50,
2290
+ });
2291
+ ```
2292
+
2293
+ ### `Integrations Providers`
2294
+
2295
+ #### List integration providers
2296
+
2297
+ List providers available to the current organization.
2298
+
2299
+ | Direction | Type |
2300
+ | --- | --- |
2301
+ | Request | [`ProviderListParams`](./src/resources/integrations/providers.ts) |
2302
+ | Response | [`ProviderListResponse`](./src/resources/integrations/providers.ts) |
2303
+
2304
+ ```ts
2305
+ const provider = await client.integrations.providers.list({
2306
+ limit: 50,
2307
+ });
2308
+ ```
2309
+
2310
+ #### Discover Snyk organizations
2311
+
2312
+ Validate Snyk service-account credentials and list accessible organizations.
2313
+
2314
+ | Direction | Type |
2315
+ | --- | --- |
2316
+ | Request | [`ProviderDiscoverSnykOrganizationsParams`](./src/resources/integrations/providers.ts) |
2317
+ | Response | [`ProviderDiscoverSnykOrganizationsResponse`](./src/resources/integrations/providers.ts) |
2318
+
2319
+ ```ts
2320
+ const provider = await client.integrations.providers.discoverSnykOrganizations({
2321
+ clientId: 'x',
2322
+ clientSecret: 'x',
2323
+ limit: 50,
2324
+ });
2325
+ ```
2326
+
2327
+ ### `Integrations Triggers`
2328
+
2329
+ #### List integration triggers
2330
+
2331
+ List visible automation triggers grouped by provider.
2332
+
2333
+ | Direction | Type |
2334
+ | --- | --- |
2335
+ | Request | [`TriggerListParams`](./src/resources/integrations/triggers.ts) |
2336
+ | Response | [`TriggerListResponse`](./src/resources/integrations/triggers.ts) |
2337
+
2338
+ ```ts
2339
+ const trigger = await client.integrations.triggers.list({
2340
+ limit: 50,
2341
+ });
2342
+ ```
2343
+
2344
+ #### Retrieve an integration trigger
2345
+
2346
+ Retrieve a trigger definition and its default filter values for an integration in the current organization.
2347
+
2348
+ | Direction | Type |
2349
+ | --- | --- |
2350
+ | Request | [`TriggerRetrieveParams`](./src/resources/integrations/triggers.ts) |
2351
+ | Response | [`TriggerRetrieveResponse`](./src/resources/integrations/triggers.ts) |
2352
+
2353
+ ```ts
2354
+ const trigger = await client.integrations.triggers.retrieve('triggerName', {
2355
+ integrationId: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
2356
+ });
2357
+ ```
2358
+
2359
+ #### List integration trigger filter options
2360
+
2361
+ List one cursor-page of selectable values for an integration trigger filter field, with optional search.
2362
+
2363
+ | Direction | Type |
2364
+ | --- | --- |
2365
+ | Request | [`TriggerListFilterOptionsParams`](./src/resources/integrations/triggers.ts) |
2366
+ | Response | [`TriggerListFilterOptionsResponse`](./src/resources/integrations/triggers.ts) |
2367
+
2368
+ ```ts
2369
+ const trigger = await client.integrations.triggers.listFilterOptions('field', {
2370
+ integrationId: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
2371
+ triggerName: 'triggerName',
2372
+ limit: 50,
2373
+ });
2374
+ ```
2375
+
2079
2376
  ## `Billing`
2080
2377
 
2081
2378
  ### Retrieve billing
@@ -2104,3 +2401,39 @@ const billing = await client.billing.listUsage({
2104
2401
  limit: 50,
2105
2402
  });
2106
2403
  ```
2404
+
2405
+ ## `Live`
2406
+
2407
+ ### Authorize a live connection
2408
+
2409
+ Issue a 30-second WebSocket ticket for one live connection that multiplexes resource subscriptions.
2410
+
2411
+ | Direction | Type |
2412
+ | --- | --- |
2413
+ | Response | [`LiveAuthorizeResponse`](./src/resources/live/live.ts) |
2414
+
2415
+ ```ts
2416
+ const live = await client.live.authorize();
2417
+ ```
2418
+
2419
+ ### Live resource subscriptions
2420
+
2421
+ Native WebSocket. Send `{ op: "subscribe", id, resource, input }` or `{ op: "unsubscribe", id }`; receive `{ id, type: "ready" | "event" | "error" }`.
2422
+
2423
+ | Direction | Type |
2424
+ | --- | --- |
2425
+ | Request | [`LiveConnectParams`](./src/resources/live/live.ts) |
2426
+
2427
+ ```ts
2428
+ const connection = client.live.connect({
2429
+ ticket: 'ticket',
2430
+ });
2431
+
2432
+ try {
2433
+ for await (const message of connection) {
2434
+ console.log(message);
2435
+ }
2436
+ } finally {
2437
+ connection.close();
2438
+ }
2439
+ ```