@tembo-io/sdk 0.10.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 (371) hide show
  1. package/README.md +28 -1
  2. package/SKILL.md +12 -0
  3. package/api.md +369 -123
  4. package/dist/cjs/client.d.ts +8 -4
  5. package/dist/cjs/client.d.ts.map +1 -1
  6. package/dist/cjs/client.js +5 -1
  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/templates.d.ts +58 -40
  46. package/dist/cjs/resources/agents/templates.d.ts.map +1 -1
  47. package/dist/cjs/resources/index.d.ts +5 -3
  48. package/dist/cjs/resources/index.d.ts.map +1 -1
  49. package/dist/cjs/resources/index.js +4 -2
  50. package/dist/cjs/resources/index.js.map +1 -1
  51. package/dist/cjs/resources/integrations/index.d.ts +7 -0
  52. package/dist/cjs/resources/integrations/index.d.ts.map +1 -0
  53. package/dist/cjs/resources/integrations/index.js +11 -0
  54. package/dist/cjs/resources/integrations/index.js.map +1 -0
  55. package/dist/cjs/resources/integrations/integrations.d.ts +777 -0
  56. package/dist/cjs/resources/integrations/integrations.d.ts.map +1 -0
  57. package/dist/cjs/resources/integrations/integrations.js +275 -0
  58. package/dist/cjs/resources/integrations/integrations.js.map +1 -0
  59. package/dist/cjs/resources/integrations/providers.d.ts +229 -0
  60. package/dist/cjs/resources/integrations/providers.d.ts.map +1 -0
  61. package/dist/cjs/resources/integrations/providers.js +45 -0
  62. package/dist/cjs/resources/integrations/providers.js.map +1 -0
  63. package/dist/cjs/resources/integrations/triggers.d.ts +280 -0
  64. package/dist/cjs/resources/integrations/triggers.d.ts.map +1 -0
  65. package/dist/cjs/resources/integrations/triggers.js +67 -0
  66. package/dist/cjs/resources/integrations/triggers.js.map +1 -0
  67. package/dist/cjs/resources/integrations.d.ts +1 -158
  68. package/dist/cjs/resources/integrations.d.ts.map +1 -1
  69. package/dist/cjs/resources/integrations.js +15 -39
  70. package/dist/cjs/resources/integrations.js.map +1 -1
  71. package/dist/cjs/resources/live/index.d.ts +6 -0
  72. package/dist/cjs/resources/live/index.d.ts.map +1 -0
  73. package/dist/cjs/resources/live/index.js +9 -0
  74. package/dist/cjs/resources/live/index.js.map +1 -0
  75. package/dist/cjs/resources/live/internal-base.d.ts +70 -0
  76. package/dist/cjs/resources/live/internal-base.d.ts.map +1 -0
  77. package/dist/cjs/resources/live/internal-base.js +57 -0
  78. package/dist/cjs/resources/live/internal-base.js.map +1 -0
  79. package/dist/cjs/resources/live/live.d.ts +54 -0
  80. package/dist/cjs/resources/live/live.d.ts.map +1 -0
  81. package/dist/cjs/resources/live/live.js +50 -0
  82. package/dist/cjs/resources/live/live.js.map +1 -0
  83. package/dist/cjs/resources/live/ws-base.d.ts +57 -0
  84. package/dist/cjs/resources/live/ws-base.d.ts.map +1 -0
  85. package/dist/cjs/resources/live/ws-base.js +359 -0
  86. package/dist/cjs/resources/live/ws-base.js.map +1 -0
  87. package/dist/cjs/resources/live/ws-browser.d.ts +14 -0
  88. package/dist/cjs/resources/live/ws-browser.d.ts.map +1 -0
  89. package/dist/cjs/resources/live/ws-browser.js +25 -0
  90. package/dist/cjs/resources/live/ws-browser.js.map +1 -0
  91. package/dist/cjs/resources/live/ws.d.ts +13 -0
  92. package/dist/cjs/resources/live/ws.d.ts.map +1 -0
  93. package/dist/cjs/resources/live/ws.js +31 -0
  94. package/dist/cjs/resources/live/ws.js.map +1 -0
  95. package/dist/cjs/resources/live.d.ts +2 -0
  96. package/dist/cjs/resources/live.d.ts.map +1 -0
  97. package/dist/cjs/resources/live.js +19 -0
  98. package/dist/cjs/resources/live.js.map +1 -0
  99. package/dist/cjs/resources/organizations/index.d.ts +3 -2
  100. package/dist/cjs/resources/organizations/index.d.ts.map +1 -1
  101. package/dist/cjs/resources/organizations/index.js +1 -1
  102. package/dist/cjs/resources/organizations/index.js.map +1 -1
  103. package/dist/cjs/resources/organizations/organizations.d.ts +5 -5
  104. package/dist/cjs/resources/organizations/organizations.d.ts.map +1 -1
  105. package/dist/cjs/resources/organizations/organizations.js +2 -2
  106. package/dist/cjs/resources/organizations/organizations.js.map +1 -1
  107. package/dist/cjs/resources/organizations/settings.d.ts +93 -1
  108. package/dist/cjs/resources/organizations/settings.d.ts.map +1 -1
  109. package/dist/cjs/resources/organizations/settings.js +19 -0
  110. package/dist/cjs/resources/organizations/settings.js.map +1 -1
  111. package/dist/cjs/resources/organizations/subscriptions.d.ts +295 -1
  112. package/dist/cjs/resources/organizations/subscriptions.d.ts.map +1 -1
  113. package/dist/cjs/resources/organizations/subscriptions.js +43 -15
  114. package/dist/cjs/resources/organizations/subscriptions.js.map +1 -1
  115. package/dist/cjs/resources/projects/projects.d.ts +17 -0
  116. package/dist/cjs/resources/projects/projects.d.ts.map +1 -1
  117. package/dist/cjs/resources/projects/projects.js.map +1 -1
  118. package/dist/cjs/resources/repositories.d.ts +83 -3
  119. package/dist/cjs/resources/repositories.d.ts.map +1 -1
  120. package/dist/cjs/resources/repositories.js +21 -2
  121. package/dist/cjs/resources/repositories.js.map +1 -1
  122. package/dist/cjs/resources/sessions/sessions.d.ts +6 -0
  123. package/dist/cjs/resources/sessions/sessions.d.ts.map +1 -1
  124. package/dist/cjs/resources/sessions/sessions.js +2 -0
  125. package/dist/cjs/resources/sessions/sessions.js.map +1 -1
  126. package/dist/cjs/resources/users/index.d.ts +4 -1
  127. package/dist/cjs/resources/users/index.d.ts.map +1 -1
  128. package/dist/cjs/resources/users/index.js +4 -2
  129. package/dist/cjs/resources/users/index.js.map +1 -1
  130. package/dist/cjs/resources/users/profile-picture.d.ts +77 -0
  131. package/dist/cjs/resources/users/profile-picture.d.ts.map +1 -0
  132. package/dist/cjs/resources/users/profile-picture.js +63 -0
  133. package/dist/cjs/resources/users/profile-picture.js.map +1 -0
  134. package/dist/cjs/resources/users/subscriptions.d.ts +295 -1
  135. package/dist/cjs/resources/users/subscriptions.d.ts.map +1 -1
  136. package/dist/cjs/resources/users/subscriptions.js +40 -15
  137. package/dist/cjs/resources/users/subscriptions.js.map +1 -1
  138. package/dist/cjs/resources/users/users.d.ts +7 -3
  139. package/dist/cjs/resources/users/users.d.ts.map +1 -1
  140. package/dist/cjs/resources/users/users.js +6 -2
  141. package/dist/cjs/resources/users/users.js.map +1 -1
  142. package/dist/cjs/resources.d.ts +2 -2
  143. package/dist/cjs/resources.d.ts.map +1 -1
  144. package/dist/cjs/resources.js +2 -1
  145. package/dist/cjs/resources.js.map +1 -1
  146. package/dist/cjs/version.d.ts +1 -1
  147. package/dist/cjs/version.js +1 -1
  148. package/dist/esm/client.d.ts +8 -4
  149. package/dist/esm/client.d.ts.map +1 -1
  150. package/dist/esm/client.js +5 -1
  151. package/dist/esm/client.js.map +1 -1
  152. package/dist/esm/core/EventEmitter.d.ts +29 -0
  153. package/dist/esm/core/EventEmitter.d.ts.map +1 -0
  154. package/dist/esm/core/EventEmitter.js +56 -0
  155. package/dist/esm/core/EventEmitter.js.map +1 -0
  156. package/dist/esm/index.d.ts +3 -1
  157. package/dist/esm/index.d.ts.map +1 -1
  158. package/dist/esm/index.js +1 -0
  159. package/dist/esm/index.js.map +1 -1
  160. package/dist/esm/internal/live-socket-browser.d.ts +3 -0
  161. package/dist/esm/internal/live-socket-browser.d.ts.map +1 -0
  162. package/dist/esm/internal/live-socket-browser.js +5 -0
  163. package/dist/esm/internal/live-socket-browser.js.map +1 -0
  164. package/dist/esm/internal/live-socket.d.ts +3 -0
  165. package/dist/esm/internal/live-socket.d.ts.map +1 -0
  166. package/dist/esm/internal/live-socket.js +6 -0
  167. package/dist/esm/internal/live-socket.js.map +1 -0
  168. package/dist/esm/internal/ws-adapter-browser.d.ts +34 -0
  169. package/dist/esm/internal/ws-adapter-browser.d.ts.map +1 -0
  170. package/dist/esm/internal/ws-adapter-browser.js +85 -0
  171. package/dist/esm/internal/ws-adapter-browser.js.map +1 -0
  172. package/dist/esm/internal/ws-adapter-node.d.ts +27 -0
  173. package/dist/esm/internal/ws-adapter-node.d.ts.map +1 -0
  174. package/dist/esm/internal/ws-adapter-node.js +87 -0
  175. package/dist/esm/internal/ws-adapter-node.js.map +1 -0
  176. package/dist/esm/internal/ws-adapter.d.ts +24 -0
  177. package/dist/esm/internal/ws-adapter.d.ts.map +1 -0
  178. package/dist/esm/internal/ws-adapter.js +8 -0
  179. package/dist/esm/internal/ws-adapter.js.map +1 -0
  180. package/dist/esm/internal/ws.d.ts +80 -0
  181. package/dist/esm/internal/ws.d.ts.map +1 -0
  182. package/dist/esm/internal/ws.js +148 -0
  183. package/dist/esm/internal/ws.js.map +1 -0
  184. package/dist/esm/live.d.ts +97 -0
  185. package/dist/esm/live.d.ts.map +1 -0
  186. package/dist/esm/live.js +230 -0
  187. package/dist/esm/live.js.map +1 -0
  188. package/dist/esm/resources/agents/templates.d.ts +58 -40
  189. package/dist/esm/resources/agents/templates.d.ts.map +1 -1
  190. package/dist/esm/resources/index.d.ts +5 -3
  191. package/dist/esm/resources/index.d.ts.map +1 -1
  192. package/dist/esm/resources/index.js +2 -1
  193. package/dist/esm/resources/index.js.map +1 -1
  194. package/dist/esm/resources/integrations/index.d.ts +7 -0
  195. package/dist/esm/resources/integrations/index.d.ts.map +1 -0
  196. package/dist/esm/resources/integrations/index.js +5 -0
  197. package/dist/esm/resources/integrations/index.js.map +1 -0
  198. package/dist/esm/resources/integrations/integrations.d.ts +777 -0
  199. package/dist/esm/resources/integrations/integrations.d.ts.map +1 -0
  200. package/dist/esm/resources/integrations/integrations.js +238 -0
  201. package/dist/esm/resources/integrations/integrations.js.map +1 -0
  202. package/dist/esm/resources/integrations/providers.d.ts +229 -0
  203. package/dist/esm/resources/integrations/providers.d.ts.map +1 -0
  204. package/dist/esm/resources/integrations/providers.js +41 -0
  205. package/dist/esm/resources/integrations/providers.js.map +1 -0
  206. package/dist/esm/resources/integrations/triggers.d.ts +280 -0
  207. package/dist/esm/resources/integrations/triggers.d.ts.map +1 -0
  208. package/dist/esm/resources/integrations/triggers.js +63 -0
  209. package/dist/esm/resources/integrations/triggers.js.map +1 -0
  210. package/dist/esm/resources/integrations.d.ts +1 -158
  211. package/dist/esm/resources/integrations.d.ts.map +1 -1
  212. package/dist/esm/resources/integrations.js +1 -37
  213. package/dist/esm/resources/integrations.js.map +1 -1
  214. package/dist/esm/resources/live/index.d.ts +6 -0
  215. package/dist/esm/resources/live/index.d.ts.map +1 -0
  216. package/dist/esm/resources/live/index.js +4 -0
  217. package/dist/esm/resources/live/index.js.map +1 -0
  218. package/dist/esm/resources/live/internal-base.d.ts +70 -0
  219. package/dist/esm/resources/live/internal-base.d.ts.map +1 -0
  220. package/dist/esm/resources/live/internal-base.js +50 -0
  221. package/dist/esm/resources/live/internal-base.js.map +1 -0
  222. package/dist/esm/resources/live/live.d.ts +54 -0
  223. package/dist/esm/resources/live/live.d.ts.map +1 -0
  224. package/dist/esm/resources/live/live.js +46 -0
  225. package/dist/esm/resources/live/live.js.map +1 -0
  226. package/dist/esm/resources/live/ws-base.d.ts +57 -0
  227. package/dist/esm/resources/live/ws-base.d.ts.map +1 -0
  228. package/dist/esm/resources/live/ws-base.js +355 -0
  229. package/dist/esm/resources/live/ws-base.js.map +1 -0
  230. package/dist/esm/resources/live/ws-browser.d.ts +14 -0
  231. package/dist/esm/resources/live/ws-browser.d.ts.map +1 -0
  232. package/dist/esm/resources/live/ws-browser.js +21 -0
  233. package/dist/esm/resources/live/ws-browser.js.map +1 -0
  234. package/dist/esm/resources/live/ws.d.ts +13 -0
  235. package/dist/esm/resources/live/ws.d.ts.map +1 -0
  236. package/dist/esm/resources/live/ws.js +27 -0
  237. package/dist/esm/resources/live/ws.js.map +1 -0
  238. package/dist/esm/resources/live.d.ts +2 -0
  239. package/dist/esm/resources/live.d.ts.map +1 -0
  240. package/dist/esm/resources/live.js +3 -0
  241. package/dist/esm/resources/live.js.map +1 -0
  242. package/dist/esm/resources/organizations/index.d.ts +3 -2
  243. package/dist/esm/resources/organizations/index.d.ts.map +1 -1
  244. package/dist/esm/resources/organizations/index.js +1 -1
  245. package/dist/esm/resources/organizations/index.js.map +1 -1
  246. package/dist/esm/resources/organizations/organizations.d.ts +5 -5
  247. package/dist/esm/resources/organizations/organizations.d.ts.map +1 -1
  248. package/dist/esm/resources/organizations/organizations.js +2 -2
  249. package/dist/esm/resources/organizations/organizations.js.map +1 -1
  250. package/dist/esm/resources/organizations/settings.d.ts +93 -1
  251. package/dist/esm/resources/organizations/settings.d.ts.map +1 -1
  252. package/dist/esm/resources/organizations/settings.js +19 -0
  253. package/dist/esm/resources/organizations/settings.js.map +1 -1
  254. package/dist/esm/resources/organizations/subscriptions.d.ts +295 -1
  255. package/dist/esm/resources/organizations/subscriptions.d.ts.map +1 -1
  256. package/dist/esm/resources/organizations/subscriptions.js +41 -1
  257. package/dist/esm/resources/organizations/subscriptions.js.map +1 -1
  258. package/dist/esm/resources/projects/projects.d.ts +17 -0
  259. package/dist/esm/resources/projects/projects.d.ts.map +1 -1
  260. package/dist/esm/resources/projects/projects.js.map +1 -1
  261. package/dist/esm/resources/repositories.d.ts +83 -3
  262. package/dist/esm/resources/repositories.d.ts.map +1 -1
  263. package/dist/esm/resources/repositories.js +21 -2
  264. package/dist/esm/resources/repositories.js.map +1 -1
  265. package/dist/esm/resources/sessions/sessions.d.ts +6 -0
  266. package/dist/esm/resources/sessions/sessions.d.ts.map +1 -1
  267. package/dist/esm/resources/sessions/sessions.js +2 -0
  268. package/dist/esm/resources/sessions/sessions.js.map +1 -1
  269. package/dist/esm/resources/users/index.d.ts +4 -1
  270. package/dist/esm/resources/users/index.d.ts.map +1 -1
  271. package/dist/esm/resources/users/index.js +2 -1
  272. package/dist/esm/resources/users/index.js.map +1 -1
  273. package/dist/esm/resources/users/profile-picture.d.ts +77 -0
  274. package/dist/esm/resources/users/profile-picture.d.ts.map +1 -0
  275. package/dist/esm/resources/users/profile-picture.js +59 -0
  276. package/dist/esm/resources/users/profile-picture.js.map +1 -0
  277. package/dist/esm/resources/users/subscriptions.d.ts +295 -1
  278. package/dist/esm/resources/users/subscriptions.d.ts.map +1 -1
  279. package/dist/esm/resources/users/subscriptions.js +38 -1
  280. package/dist/esm/resources/users/subscriptions.js.map +1 -1
  281. package/dist/esm/resources/users/users.d.ts +7 -3
  282. package/dist/esm/resources/users/users.d.ts.map +1 -1
  283. package/dist/esm/resources/users/users.js +6 -2
  284. package/dist/esm/resources/users/users.js.map +1 -1
  285. package/dist/esm/resources.d.ts +2 -2
  286. package/dist/esm/resources.d.ts.map +1 -1
  287. package/dist/esm/resources.js +1 -1
  288. package/dist/esm/resources.js.map +1 -1
  289. package/dist/esm/version.d.ts +1 -1
  290. package/dist/esm/version.js +1 -1
  291. package/package.json +22 -3
  292. package/dist/cjs/resources/organizations/subscriptions/chatgpt.d.ts +0 -186
  293. package/dist/cjs/resources/organizations/subscriptions/chatgpt.d.ts.map +0 -1
  294. package/dist/cjs/resources/organizations/subscriptions/chatgpt.js +0 -58
  295. package/dist/cjs/resources/organizations/subscriptions/chatgpt.js.map +0 -1
  296. package/dist/cjs/resources/organizations/subscriptions/claude.d.ts +0 -128
  297. package/dist/cjs/resources/organizations/subscriptions/claude.d.ts.map +0 -1
  298. package/dist/cjs/resources/organizations/subscriptions/claude.js +0 -40
  299. package/dist/cjs/resources/organizations/subscriptions/claude.js.map +0 -1
  300. package/dist/cjs/resources/organizations/subscriptions/index.d.ts +0 -8
  301. package/dist/cjs/resources/organizations/subscriptions/index.d.ts.map +0 -1
  302. package/dist/cjs/resources/organizations/subscriptions/index.js +0 -13
  303. package/dist/cjs/resources/organizations/subscriptions/index.js.map +0 -1
  304. package/dist/cjs/resources/organizations/subscriptions/subscriptions.d.ts +0 -18
  305. package/dist/cjs/resources/organizations/subscriptions/subscriptions.d.ts.map +0 -1
  306. package/dist/cjs/resources/organizations/subscriptions/subscriptions.js +0 -54
  307. package/dist/cjs/resources/organizations/subscriptions/subscriptions.js.map +0 -1
  308. package/dist/cjs/resources/organizations/subscriptions/supergrok.d.ts +0 -25
  309. package/dist/cjs/resources/organizations/subscriptions/supergrok.d.ts.map +0 -1
  310. package/dist/cjs/resources/organizations/subscriptions/supergrok.js +0 -25
  311. package/dist/cjs/resources/organizations/subscriptions/supergrok.js.map +0 -1
  312. package/dist/cjs/resources/users/subscriptions/chatgpt.d.ts +0 -186
  313. package/dist/cjs/resources/users/subscriptions/chatgpt.d.ts.map +0 -1
  314. package/dist/cjs/resources/users/subscriptions/chatgpt.js +0 -61
  315. package/dist/cjs/resources/users/subscriptions/chatgpt.js.map +0 -1
  316. package/dist/cjs/resources/users/subscriptions/claude.d.ts +0 -128
  317. package/dist/cjs/resources/users/subscriptions/claude.d.ts.map +0 -1
  318. package/dist/cjs/resources/users/subscriptions/claude.js +0 -40
  319. package/dist/cjs/resources/users/subscriptions/claude.js.map +0 -1
  320. package/dist/cjs/resources/users/subscriptions/index.d.ts +0 -8
  321. package/dist/cjs/resources/users/subscriptions/index.d.ts.map +0 -1
  322. package/dist/cjs/resources/users/subscriptions/index.js +0 -13
  323. package/dist/cjs/resources/users/subscriptions/index.js.map +0 -1
  324. package/dist/cjs/resources/users/subscriptions/subscriptions.d.ts +0 -18
  325. package/dist/cjs/resources/users/subscriptions/subscriptions.d.ts.map +0 -1
  326. package/dist/cjs/resources/users/subscriptions/subscriptions.js +0 -54
  327. package/dist/cjs/resources/users/subscriptions/subscriptions.js.map +0 -1
  328. package/dist/cjs/resources/users/subscriptions/supergrok.d.ts +0 -25
  329. package/dist/cjs/resources/users/subscriptions/supergrok.d.ts.map +0 -1
  330. package/dist/cjs/resources/users/subscriptions/supergrok.js +0 -25
  331. package/dist/cjs/resources/users/subscriptions/supergrok.js.map +0 -1
  332. package/dist/esm/resources/organizations/subscriptions/chatgpt.d.ts +0 -186
  333. package/dist/esm/resources/organizations/subscriptions/chatgpt.d.ts.map +0 -1
  334. package/dist/esm/resources/organizations/subscriptions/chatgpt.js +0 -54
  335. package/dist/esm/resources/organizations/subscriptions/chatgpt.js.map +0 -1
  336. package/dist/esm/resources/organizations/subscriptions/claude.d.ts +0 -128
  337. package/dist/esm/resources/organizations/subscriptions/claude.d.ts.map +0 -1
  338. package/dist/esm/resources/organizations/subscriptions/claude.js +0 -36
  339. package/dist/esm/resources/organizations/subscriptions/claude.js.map +0 -1
  340. package/dist/esm/resources/organizations/subscriptions/index.d.ts +0 -8
  341. package/dist/esm/resources/organizations/subscriptions/index.d.ts.map +0 -1
  342. package/dist/esm/resources/organizations/subscriptions/index.js +0 -6
  343. package/dist/esm/resources/organizations/subscriptions/index.js.map +0 -1
  344. package/dist/esm/resources/organizations/subscriptions/subscriptions.d.ts +0 -18
  345. package/dist/esm/resources/organizations/subscriptions/subscriptions.d.ts.map +0 -1
  346. package/dist/esm/resources/organizations/subscriptions/subscriptions.js +0 -17
  347. package/dist/esm/resources/organizations/subscriptions/subscriptions.js.map +0 -1
  348. package/dist/esm/resources/organizations/subscriptions/supergrok.d.ts +0 -25
  349. package/dist/esm/resources/organizations/subscriptions/supergrok.d.ts.map +0 -1
  350. package/dist/esm/resources/organizations/subscriptions/supergrok.js +0 -21
  351. package/dist/esm/resources/organizations/subscriptions/supergrok.js.map +0 -1
  352. package/dist/esm/resources/users/subscriptions/chatgpt.d.ts +0 -186
  353. package/dist/esm/resources/users/subscriptions/chatgpt.d.ts.map +0 -1
  354. package/dist/esm/resources/users/subscriptions/chatgpt.js +0 -57
  355. package/dist/esm/resources/users/subscriptions/chatgpt.js.map +0 -1
  356. package/dist/esm/resources/users/subscriptions/claude.d.ts +0 -128
  357. package/dist/esm/resources/users/subscriptions/claude.d.ts.map +0 -1
  358. package/dist/esm/resources/users/subscriptions/claude.js +0 -36
  359. package/dist/esm/resources/users/subscriptions/claude.js.map +0 -1
  360. package/dist/esm/resources/users/subscriptions/index.d.ts +0 -8
  361. package/dist/esm/resources/users/subscriptions/index.d.ts.map +0 -1
  362. package/dist/esm/resources/users/subscriptions/index.js +0 -6
  363. package/dist/esm/resources/users/subscriptions/index.js.map +0 -1
  364. package/dist/esm/resources/users/subscriptions/subscriptions.d.ts +0 -18
  365. package/dist/esm/resources/users/subscriptions/subscriptions.d.ts.map +0 -1
  366. package/dist/esm/resources/users/subscriptions/subscriptions.js +0 -17
  367. package/dist/esm/resources/users/subscriptions/subscriptions.js.map +0 -1
  368. package/dist/esm/resources/users/subscriptions/supergrok.d.ts +0 -25
  369. package/dist/esm/resources/users/subscriptions/supergrok.d.ts.map +0 -1
  370. package/dist/esm/resources/users/subscriptions/supergrok.js +0 -21
  371. package/dist/esm/resources/users/subscriptions/supergrok.js.map +0 -1
package/api.md CHANGED
@@ -44,16 +44,10 @@ Complete reference of every operation, grouped by resource. See [the README](./R
44
44
  - [`Organizations Settings`](#organizations-settings)
45
45
  - [Retrieve organization settings](#retrieve-organization-settings)
46
46
  - [Update organization settings](#update-organization-settings)
47
+ - [Validate organization provider credentials](#validate-organization-provider-credentials)
47
48
  - [`Organizations Subscriptions`](#organizations-subscriptions)
48
- - [`Organizations Subscriptions Chatgpt`](#organizations-subscriptions-chatgpt)
49
- - [Retrieve an organization ChatGPT subscription](#retrieve-an-organization-chatgpt-subscription)
50
- - [Retrieve organization ChatGPT subscription usage](#retrieve-organization-chatgpt-subscription-usage)
51
- - [Reset organization ChatGPT subscription usage](#reset-organization-chatgpt-subscription-usage)
52
- - [`Organizations Subscriptions Claude`](#organizations-subscriptions-claude)
53
- - [Retrieve an organization Claude subscription](#retrieve-an-organization-claude-subscription)
54
- - [Retrieve organization Claude subscription usage](#retrieve-organization-claude-subscription-usage)
55
- - [`Organizations Subscriptions Supergrok`](#organizations-subscriptions-supergrok)
56
- - [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)
57
51
  - [`McpConnections`](#mcpconnections)
58
52
  - [List MCP connections](#list-mcp-connections)
59
53
  - [Create an MCP connection](#create-an-mcp-connection)
@@ -89,15 +83,12 @@ Complete reference of every operation, grouped by resource. See [the README](./R
89
83
  - [List user connected accounts](#list-user-connected-accounts)
90
84
  - [Retrieve a user connected account](#retrieve-a-user-connected-account)
91
85
  - [`Users Subscriptions`](#users-subscriptions)
92
- - [`Users Subscriptions Chatgpt`](#users-subscriptions-chatgpt)
93
- - [Retrieve a user ChatGPT subscription](#retrieve-a-user-chatgpt-subscription)
94
- - [Retrieve user ChatGPT subscription usage](#retrieve-user-chatgpt-subscription-usage)
95
- - [Reset user ChatGPT subscription usage](#reset-user-chatgpt-subscription-usage)
96
- - [`Users Subscriptions Claude`](#users-subscriptions-claude)
97
- - [Retrieve a user Claude subscription](#retrieve-a-user-claude-subscription)
98
- - [Retrieve user Claude subscription usage](#retrieve-user-claude-subscription-usage)
99
- - [`Users Subscriptions Supergrok`](#users-subscriptions-supergrok)
100
- - [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)
101
92
  - [`Sessions`](#sessions)
102
93
  - [List sessions](#list-sessions)
103
94
  - [Create a session](#create-a-session)
@@ -175,12 +166,34 @@ Complete reference of every operation, grouped by resource. See [the README](./R
175
166
  - [`Repositories`](#repositories)
176
167
  - [List repositories](#list-repositories)
177
168
  - [Retrieve a repository](#retrieve-a-repository)
169
+ - [Update a repository](#update-a-repository)
178
170
  - [`Integrations`](#integrations)
179
171
  - [List integrations](#list-integrations)
172
+ - [Create an integration](#create-an-integration)
180
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)
181
191
  - [`Billing`](#billing)
182
192
  - [Retrieve billing](#retrieve-billing)
183
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)
184
197
 
185
198
  ## Setup
186
199
 
@@ -668,87 +681,50 @@ Update one or more organization settings.
668
681
  const setting = await client.organizations.settings.update('organizationId', {});
669
682
  ```
670
683
 
671
- ### `Organizations Subscriptions`
672
-
673
- #### `Organizations Subscriptions Chatgpt`
674
-
675
- ##### Retrieve an organization ChatGPT subscription
676
-
677
- Retrieve the connection status for an organization ChatGPT subscription.
678
-
679
- | Direction | Type |
680
- | --- | --- |
681
- | Response | [`ChatgptRetrieveResponse`](./src/resources/organizations/subscriptions/chatgpt.ts) |
682
-
683
- ```ts
684
- const chatgpt = await client.organizations.subscriptions.chatgpt.retrieve('organizationId');
685
- ```
686
-
687
- ##### Retrieve organization ChatGPT subscription usage
688
-
689
- Retrieve plan and rate-limit usage for an organization ChatGPT subscription.
690
-
691
- | Direction | Type |
692
- | --- | --- |
693
- | Response | [`ChatgptRetrieveUsageResponse`](./src/resources/organizations/subscriptions/chatgpt.ts) |
694
-
695
- ```ts
696
- const chatgpt = await client.organizations.subscriptions.chatgpt.retrieveUsage('organizationId');
697
- ```
684
+ #### Validate organization provider credentials
698
685
 
699
- ##### Reset organization ChatGPT subscription usage
700
-
701
- 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.
702
687
 
703
688
  | Direction | Type |
704
689
  | --- | --- |
705
- | Request | [`ChatgptResetUsageParams`](./src/resources/organizations/subscriptions/chatgpt.ts) |
706
- | Response | [`ChatgptResetUsageResponse`](./src/resources/organizations/subscriptions/chatgpt.ts) |
690
+ | Request | [`SettingValidateCredentialsParams`](./src/resources/organizations/settings.ts) |
691
+ | Response | [`SettingValidateCredentialsResponse`](./src/resources/organizations/settings.ts) |
707
692
 
708
693
  ```ts
709
- const chatgpt = await client.organizations.subscriptions.chatgpt.resetUsage('organizationId', {
710
- idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
694
+ const setting = await client.organizations.settings.validateCredentials('organizationId', {
695
+ provider: 'anthropic',
696
+ apiKey: '',
711
697
  });
712
698
  ```
713
699
 
714
- #### `Organizations Subscriptions Claude`
715
-
716
- ##### Retrieve an organization Claude subscription
717
-
718
- Retrieve the connection status for an organization Claude subscription.
719
-
720
- | Direction | Type |
721
- | --- | --- |
722
- | Response | [`ClaudeRetrieveResponse`](./src/resources/organizations/subscriptions/claude.ts) |
723
-
724
- ```ts
725
- const claude = await client.organizations.subscriptions.claude.retrieve('organizationId');
726
- ```
700
+ ### `Organizations Subscriptions`
727
701
 
728
- ##### Retrieve organization Claude subscription usage
702
+ #### Retrieve organization subscriptions
729
703
 
730
- 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.
731
705
 
732
706
  | Direction | Type |
733
707
  | --- | --- |
734
- | Response | [`ClaudeRetrieveUsageResponse`](./src/resources/organizations/subscriptions/claude.ts) |
708
+ | Response | [`SubscriptionRetrieveResponse`](./src/resources/organizations/subscriptions.ts) |
735
709
 
736
710
  ```ts
737
- const claude = await client.organizations.subscriptions.claude.retrieveUsage('organizationId');
711
+ const subscription = await client.organizations.subscriptions.retrieve('organizationId');
738
712
  ```
739
713
 
740
- #### `Organizations Subscriptions Supergrok`
741
-
742
- ##### Retrieve an organization SuperGrok subscription
714
+ #### Reset organization subscription usage
743
715
 
744
- Retrieve the connection status for an organization SuperGrok subscription.
716
+ Redeem an earned ChatGPT rate-limit reset.
745
717
 
746
718
  | Direction | Type |
747
719
  | --- | --- |
748
- | Response | [`SupergrokRetrieveResponse`](./src/resources/organizations/subscriptions/supergrok.ts) |
720
+ | Request | [`SubscriptionResetParams`](./src/resources/organizations/subscriptions.ts) |
721
+ | Response | [`SubscriptionResetResponse`](./src/resources/organizations/subscriptions.ts) |
749
722
 
750
723
  ```ts
751
- 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
+ });
752
728
  ```
753
729
 
754
730
  ## `McpConnections`
@@ -1128,85 +1104,69 @@ const connectedAccount = await client.users.connectedAccounts.retrieve('connecte
1128
1104
 
1129
1105
  ### `Users Subscriptions`
1130
1106
 
1131
- #### `Users Subscriptions Chatgpt`
1132
-
1133
- ##### Retrieve a user ChatGPT subscription
1134
-
1135
- Retrieve the connection status for a user ChatGPT subscription.
1136
-
1137
- | Direction | Type |
1138
- | --- | --- |
1139
- | Response | [`ChatgptRetrieveResponse`](./src/resources/users/subscriptions/chatgpt.ts) |
1107
+ #### Retrieve user subscriptions
1140
1108
 
1141
- ```ts
1142
- const chatgpt = await client.users.subscriptions.chatgpt.retrieve('userId');
1143
- ```
1144
-
1145
- ##### Retrieve user ChatGPT subscription usage
1146
-
1147
- Retrieve plan and rate-limit usage for a user ChatGPT subscription.
1109
+ Retrieve connection statuses and available ChatGPT and Claude usage. Provider usage errors are reported without failing the response.
1148
1110
 
1149
1111
  | Direction | Type |
1150
1112
  | --- | --- |
1151
- | Response | [`ChatgptRetrieveUsageResponse`](./src/resources/users/subscriptions/chatgpt.ts) |
1113
+ | Response | [`SubscriptionRetrieveResponse`](./src/resources/users/subscriptions.ts) |
1152
1114
 
1153
1115
  ```ts
1154
- const chatgpt = await client.users.subscriptions.chatgpt.retrieveUsage('userId');
1116
+ const subscription = await client.users.subscriptions.retrieve('userId');
1155
1117
  ```
1156
1118
 
1157
- ##### Reset user ChatGPT subscription usage
1119
+ #### Reset user subscription usage
1158
1120
 
1159
- Redeem one earned rate-limit reset for a user ChatGPT subscription.
1121
+ Redeem an earned ChatGPT rate-limit reset.
1160
1122
 
1161
1123
  | Direction | Type |
1162
1124
  | --- | --- |
1163
- | Request | [`ChatgptResetUsageParams`](./src/resources/users/subscriptions/chatgpt.ts) |
1164
- | Response | [`ChatgptResetUsageResponse`](./src/resources/users/subscriptions/chatgpt.ts) |
1125
+ | Request | [`SubscriptionResetParams`](./src/resources/users/subscriptions.ts) |
1126
+ | Response | [`SubscriptionResetResponse`](./src/resources/users/subscriptions.ts) |
1165
1127
 
1166
1128
  ```ts
1167
- const chatgpt = await client.users.subscriptions.chatgpt.resetUsage('userId', {
1129
+ const subscription = await client.users.subscriptions.reset('userId', {
1168
1130
  idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
1131
+ provider: 'chatgpt',
1169
1132
  });
1170
1133
  ```
1171
1134
 
1172
- #### `Users Subscriptions Claude`
1173
-
1174
- ##### Retrieve a user Claude subscription
1135
+ ### `Users ProfilePicture`
1175
1136
 
1176
- Retrieve the connection status for a user Claude subscription.
1137
+ #### Retrieve a user profile picture
1177
1138
 
1178
- | Direction | Type |
1179
- | --- | --- |
1180
- | Response | [`ClaudeRetrieveResponse`](./src/resources/users/subscriptions/claude.ts) |
1139
+ Redirect to a user's profile picture. Signed URLs are valid for one hour.
1181
1140
 
1182
1141
  ```ts
1183
- const claude = await client.users.subscriptions.claude.retrieve('userId');
1142
+ await client.users.profilePicture.retrieve('userId');
1184
1143
  ```
1185
1144
 
1186
- ##### Retrieve user Claude subscription usage
1145
+ #### Update your profile picture
1187
1146
 
1188
- Retrieve rate-limit usage for a user Claude subscription.
1147
+ Upload a JPEG, PNG, GIF, or WebP profile picture up to 5 MB.
1189
1148
 
1190
1149
  | Direction | Type |
1191
1150
  | --- | --- |
1192
- | 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) |
1193
1153
 
1194
1154
  ```ts
1195
- 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
+ });
1196
1158
  ```
1197
1159
 
1198
- #### `Users Subscriptions Supergrok`
1199
-
1200
- ##### Retrieve a user SuperGrok subscription
1160
+ #### Delete your profile picture
1201
1161
 
1202
- Retrieve the connection status for a user SuperGrok subscription.
1162
+ Delete your profile picture. This succeeds if no picture exists.
1203
1163
 
1204
1164
  | Direction | Type |
1205
1165
  | --- | --- |
1206
- | Response | [`SupergrokRetrieveResponse`](./src/resources/users/subscriptions/supergrok.ts) |
1166
+ | Response | [`ProfilePictureDeleteResponse`](./src/resources/users/profile-picture.ts) |
1207
1167
 
1208
1168
  ```ts
1209
- const supergrok = await client.users.subscriptions.supergrok.retrieve('userId');
1169
+ const profilePicture = await client.users.profilePicture.delete('userId');
1210
1170
  ```
1211
1171
 
1212
1172
  ## `Sessions`
@@ -2106,7 +2066,7 @@ const contentRevision = await client.agents.contentRevisions.restore(1, {
2106
2066
 
2107
2067
  ### List repositories
2108
2068
 
2109
- List enabled repositories in the authenticated organization.
2069
+ List repositories in the authenticated organization. Defaults to enabled repositories.
2110
2070
 
2111
2071
  | Direction | Type |
2112
2072
  | --- | --- |
@@ -2116,6 +2076,7 @@ List enabled repositories in the authenticated organization.
2116
2076
  ```ts
2117
2077
  const repository = await client.repositories.list({
2118
2078
  limit: 50,
2079
+ enabled: 'all',
2119
2080
  order: 'desc',
2120
2081
  sort: 'pullRequests',
2121
2082
  });
@@ -2123,7 +2084,7 @@ const repository = await client.repositories.list({
2123
2084
 
2124
2085
  ### Retrieve a repository
2125
2086
 
2126
- Retrieve an enabled repository in the authenticated organization.
2087
+ Retrieve a repository in the authenticated organization.
2127
2088
 
2128
2089
  | Direction | Type |
2129
2090
  | --- | --- |
@@ -2133,16 +2094,31 @@ Retrieve an enabled repository in the authenticated organization.
2133
2094
  const repository = await client.repositories.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2134
2095
  ```
2135
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
+
2136
2112
  ## `Integrations`
2137
2113
 
2138
2114
  ### List integrations
2139
2115
 
2140
- List integrations for the authenticated organization.
2116
+ List integrations visible to the current organization or authenticated admin.
2141
2117
 
2142
2118
  | Direction | Type |
2143
2119
  | --- | --- |
2144
- | Request | [`IntegrationListParams`](./src/resources/integrations.ts) |
2145
- | Response | [`IntegrationListResponse`](./src/resources/integrations.ts) |
2120
+ | Request | [`IntegrationListParams`](./src/resources/integrations/integrations.ts) |
2121
+ | Response | [`IntegrationListResponse`](./src/resources/integrations/integrations.ts) |
2146
2122
 
2147
2123
  ```ts
2148
2124
  const integration = await client.integrations.list({
@@ -2151,18 +2127,252 @@ const integration = await client.integrations.list({
2151
2127
  });
2152
2128
  ```
2153
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
+
2154
2147
  ### Retrieve an integration
2155
2148
 
2156
- Retrieve an integration for the authenticated organization.
2149
+ Retrieve an integration and its configuration.
2157
2150
 
2158
2151
  | Direction | Type |
2159
2152
  | --- | --- |
2160
- | Response | [`IntegrationRetrieveResponse`](./src/resources/integrations.ts) |
2153
+ | Response | [`IntegrationRetrieveResponse`](./src/resources/integrations/integrations.ts) |
2161
2154
 
2162
2155
  ```ts
2163
2156
  const integration = await client.integrations.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2164
2157
  ```
2165
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
+
2166
2376
  ## `Billing`
2167
2377
 
2168
2378
  ### Retrieve billing
@@ -2191,3 +2401,39 @@ const billing = await client.billing.listUsage({
2191
2401
  limit: 50,
2192
2402
  });
2193
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
+ ```