@tembo-io/sdk 0.10.0 → 0.12.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 (402) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +30 -3
  3. package/SKILL.md +16 -4
  4. package/api.md +461 -125
  5. package/dist/cjs/client.d.ts +17 -10
  6. package/dist/cjs/client.d.ts.map +1 -1
  7. package/dist/cjs/client.js +10 -3
  8. package/dist/cjs/client.js.map +1 -1
  9. package/dist/cjs/core/EventEmitter.d.ts +29 -0
  10. package/dist/cjs/core/EventEmitter.d.ts.map +1 -0
  11. package/dist/cjs/core/EventEmitter.js +61 -0
  12. package/dist/cjs/core/EventEmitter.js.map +1 -0
  13. package/dist/cjs/index.d.ts +3 -1
  14. package/dist/cjs/index.d.ts.map +1 -1
  15. package/dist/cjs/index.js +5 -1
  16. package/dist/cjs/index.js.map +1 -1
  17. package/dist/cjs/internal/live-socket-browser.d.ts +3 -0
  18. package/dist/cjs/internal/live-socket-browser.d.ts.map +1 -0
  19. package/dist/cjs/internal/live-socket-browser.js +8 -0
  20. package/dist/cjs/internal/live-socket-browser.js.map +1 -0
  21. package/dist/cjs/internal/live-socket.d.ts +3 -0
  22. package/dist/cjs/internal/live-socket.d.ts.map +1 -0
  23. package/dist/cjs/internal/live-socket.js +9 -0
  24. package/dist/cjs/internal/live-socket.js.map +1 -0
  25. package/dist/cjs/internal/ws-adapter-browser.d.ts +34 -0
  26. package/dist/cjs/internal/ws-adapter-browser.d.ts.map +1 -0
  27. package/dist/cjs/internal/ws-adapter-browser.js +89 -0
  28. package/dist/cjs/internal/ws-adapter-browser.js.map +1 -0
  29. package/dist/cjs/internal/ws-adapter-node.d.ts +27 -0
  30. package/dist/cjs/internal/ws-adapter-node.d.ts.map +1 -0
  31. package/dist/cjs/internal/ws-adapter-node.js +91 -0
  32. package/dist/cjs/internal/ws-adapter-node.js.map +1 -0
  33. package/dist/cjs/internal/ws-adapter.d.ts +24 -0
  34. package/dist/cjs/internal/ws-adapter.d.ts.map +1 -0
  35. package/dist/cjs/internal/ws-adapter.js +11 -0
  36. package/dist/cjs/internal/ws-adapter.js.map +1 -0
  37. package/dist/cjs/internal/ws.d.ts +80 -0
  38. package/dist/cjs/internal/ws.d.ts.map +1 -0
  39. package/dist/cjs/internal/ws.js +154 -0
  40. package/dist/cjs/internal/ws.js.map +1 -0
  41. package/dist/cjs/live.d.ts +97 -0
  42. package/dist/cjs/live.d.ts.map +1 -0
  43. package/dist/cjs/live.js +237 -0
  44. package/dist/cjs/live.js.map +1 -0
  45. package/dist/cjs/package.json +6 -1
  46. package/dist/cjs/resources/agents/agents.d.ts +1 -1
  47. package/dist/cjs/resources/agents/agents.d.ts.map +1 -1
  48. package/dist/cjs/resources/agents/agents.js.map +1 -1
  49. package/dist/cjs/resources/agents/templates.d.ts +62 -44
  50. package/dist/cjs/resources/agents/templates.d.ts.map +1 -1
  51. package/dist/cjs/resources/index.d.ts +9 -5
  52. package/dist/cjs/resources/index.d.ts.map +1 -1
  53. package/dist/cjs/resources/index.js +6 -2
  54. package/dist/cjs/resources/index.js.map +1 -1
  55. package/dist/cjs/resources/insights.d.ts +30 -3
  56. package/dist/cjs/resources/insights.d.ts.map +1 -1
  57. package/dist/cjs/resources/insights.js +8 -3
  58. package/dist/cjs/resources/insights.js.map +1 -1
  59. package/dist/cjs/resources/integrations/index.d.ts +7 -0
  60. package/dist/cjs/resources/integrations/index.d.ts.map +1 -0
  61. package/dist/cjs/resources/integrations/index.js +11 -0
  62. package/dist/cjs/resources/integrations/index.js.map +1 -0
  63. package/dist/cjs/resources/integrations/integrations.d.ts +777 -0
  64. package/dist/cjs/resources/integrations/integrations.d.ts.map +1 -0
  65. package/dist/cjs/resources/integrations/integrations.js +275 -0
  66. package/dist/cjs/resources/integrations/integrations.js.map +1 -0
  67. package/dist/cjs/resources/integrations/providers.d.ts +229 -0
  68. package/dist/cjs/resources/integrations/providers.d.ts.map +1 -0
  69. package/dist/cjs/resources/integrations/providers.js +45 -0
  70. package/dist/cjs/resources/integrations/providers.js.map +1 -0
  71. package/dist/cjs/resources/integrations/triggers.d.ts +280 -0
  72. package/dist/cjs/resources/integrations/triggers.d.ts.map +1 -0
  73. package/dist/cjs/resources/integrations/triggers.js +67 -0
  74. package/dist/cjs/resources/integrations/triggers.js.map +1 -0
  75. package/dist/cjs/resources/integrations.d.ts +1 -158
  76. package/dist/cjs/resources/integrations.d.ts.map +1 -1
  77. package/dist/cjs/resources/integrations.js +15 -39
  78. package/dist/cjs/resources/integrations.js.map +1 -1
  79. package/dist/cjs/resources/live/index.d.ts +6 -0
  80. package/dist/cjs/resources/live/index.d.ts.map +1 -0
  81. package/dist/cjs/resources/live/index.js +9 -0
  82. package/dist/cjs/resources/live/index.js.map +1 -0
  83. package/dist/cjs/resources/live/internal-base.d.ts +70 -0
  84. package/dist/cjs/resources/live/internal-base.d.ts.map +1 -0
  85. package/dist/cjs/resources/live/internal-base.js +57 -0
  86. package/dist/cjs/resources/live/internal-base.js.map +1 -0
  87. package/dist/cjs/resources/live/live.d.ts +54 -0
  88. package/dist/cjs/resources/live/live.d.ts.map +1 -0
  89. package/dist/cjs/resources/live/live.js +50 -0
  90. package/dist/cjs/resources/live/live.js.map +1 -0
  91. package/dist/cjs/resources/live/ws-base.d.ts +57 -0
  92. package/dist/cjs/resources/live/ws-base.d.ts.map +1 -0
  93. package/dist/cjs/resources/live/ws-base.js +359 -0
  94. package/dist/cjs/resources/live/ws-base.js.map +1 -0
  95. package/dist/cjs/resources/live/ws-browser.d.ts +14 -0
  96. package/dist/cjs/resources/live/ws-browser.d.ts.map +1 -0
  97. package/dist/cjs/resources/live/ws-browser.js +25 -0
  98. package/dist/cjs/resources/live/ws-browser.js.map +1 -0
  99. package/dist/cjs/resources/live/ws.d.ts +13 -0
  100. package/dist/cjs/resources/live/ws.d.ts.map +1 -0
  101. package/dist/cjs/resources/live/ws.js +31 -0
  102. package/dist/cjs/resources/live/ws.js.map +1 -0
  103. package/dist/cjs/resources/live.d.ts +2 -0
  104. package/dist/cjs/resources/live.d.ts.map +1 -0
  105. package/dist/cjs/resources/live.js +19 -0
  106. package/dist/cjs/resources/live.js.map +1 -0
  107. package/dist/cjs/resources/organizations/index.d.ts +3 -2
  108. package/dist/cjs/resources/organizations/index.d.ts.map +1 -1
  109. package/dist/cjs/resources/organizations/index.js +1 -1
  110. package/dist/cjs/resources/organizations/index.js.map +1 -1
  111. package/dist/cjs/resources/organizations/organizations.d.ts +5 -5
  112. package/dist/cjs/resources/organizations/organizations.d.ts.map +1 -1
  113. package/dist/cjs/resources/organizations/organizations.js +2 -2
  114. package/dist/cjs/resources/organizations/organizations.js.map +1 -1
  115. package/dist/cjs/resources/organizations/settings.d.ts +93 -1
  116. package/dist/cjs/resources/organizations/settings.d.ts.map +1 -1
  117. package/dist/cjs/resources/organizations/settings.js +19 -0
  118. package/dist/cjs/resources/organizations/settings.js.map +1 -1
  119. package/dist/cjs/resources/organizations/subscriptions.d.ts +295 -1
  120. package/dist/cjs/resources/organizations/subscriptions.d.ts.map +1 -1
  121. package/dist/cjs/resources/organizations/subscriptions.js +43 -15
  122. package/dist/cjs/resources/organizations/subscriptions.js.map +1 -1
  123. package/dist/cjs/resources/pins.d.ts +400 -0
  124. package/dist/cjs/resources/pins.d.ts.map +1 -0
  125. package/dist/cjs/resources/pins.js +87 -0
  126. package/dist/cjs/resources/pins.js.map +1 -0
  127. package/dist/cjs/resources/projects/index.d.ts +1 -1
  128. package/dist/cjs/resources/projects/index.d.ts.map +1 -1
  129. package/dist/cjs/resources/projects/index.js.map +1 -1
  130. package/dist/cjs/resources/projects/projects.d.ts +86 -1
  131. package/dist/cjs/resources/projects/projects.d.ts.map +1 -1
  132. package/dist/cjs/resources/projects/projects.js +15 -0
  133. package/dist/cjs/resources/projects/projects.js.map +1 -1
  134. package/dist/cjs/resources/repositories.d.ts +83 -3
  135. package/dist/cjs/resources/repositories.d.ts.map +1 -1
  136. package/dist/cjs/resources/repositories.js +21 -2
  137. package/dist/cjs/resources/repositories.js.map +1 -1
  138. package/dist/cjs/resources/sessions/sessions.d.ts +7 -0
  139. package/dist/cjs/resources/sessions/sessions.d.ts.map +1 -1
  140. package/dist/cjs/resources/sessions/sessions.js +2 -0
  141. package/dist/cjs/resources/sessions/sessions.js.map +1 -1
  142. package/dist/cjs/resources/users/index.d.ts +4 -1
  143. package/dist/cjs/resources/users/index.d.ts.map +1 -1
  144. package/dist/cjs/resources/users/index.js +4 -2
  145. package/dist/cjs/resources/users/index.js.map +1 -1
  146. package/dist/cjs/resources/users/profile-picture.d.ts +77 -0
  147. package/dist/cjs/resources/users/profile-picture.d.ts.map +1 -0
  148. package/dist/cjs/resources/users/profile-picture.js +63 -0
  149. package/dist/cjs/resources/users/profile-picture.js.map +1 -0
  150. package/dist/cjs/resources/users/subscriptions.d.ts +295 -1
  151. package/dist/cjs/resources/users/subscriptions.d.ts.map +1 -1
  152. package/dist/cjs/resources/users/subscriptions.js +40 -15
  153. package/dist/cjs/resources/users/subscriptions.js.map +1 -1
  154. package/dist/cjs/resources/users/users.d.ts +7 -3
  155. package/dist/cjs/resources/users/users.d.ts.map +1 -1
  156. package/dist/cjs/resources/users/users.js +6 -2
  157. package/dist/cjs/resources/users/users.js.map +1 -1
  158. package/dist/cjs/resources.d.ts +2 -2
  159. package/dist/cjs/resources.d.ts.map +1 -1
  160. package/dist/cjs/resources.js +3 -1
  161. package/dist/cjs/resources.js.map +1 -1
  162. package/dist/cjs/version.d.ts +1 -1
  163. package/dist/cjs/version.js +1 -1
  164. package/dist/esm/client.d.ts +17 -10
  165. package/dist/esm/client.d.ts.map +1 -1
  166. package/dist/esm/client.js +10 -3
  167. package/dist/esm/client.js.map +1 -1
  168. package/dist/esm/core/EventEmitter.d.ts +29 -0
  169. package/dist/esm/core/EventEmitter.d.ts.map +1 -0
  170. package/dist/esm/core/EventEmitter.js +56 -0
  171. package/dist/esm/core/EventEmitter.js.map +1 -0
  172. package/dist/esm/index.d.ts +3 -1
  173. package/dist/esm/index.d.ts.map +1 -1
  174. package/dist/esm/index.js +1 -0
  175. package/dist/esm/index.js.map +1 -1
  176. package/dist/esm/internal/live-socket-browser.d.ts +3 -0
  177. package/dist/esm/internal/live-socket-browser.d.ts.map +1 -0
  178. package/dist/esm/internal/live-socket-browser.js +5 -0
  179. package/dist/esm/internal/live-socket-browser.js.map +1 -0
  180. package/dist/esm/internal/live-socket.d.ts +3 -0
  181. package/dist/esm/internal/live-socket.d.ts.map +1 -0
  182. package/dist/esm/internal/live-socket.js +6 -0
  183. package/dist/esm/internal/live-socket.js.map +1 -0
  184. package/dist/esm/internal/ws-adapter-browser.d.ts +34 -0
  185. package/dist/esm/internal/ws-adapter-browser.d.ts.map +1 -0
  186. package/dist/esm/internal/ws-adapter-browser.js +85 -0
  187. package/dist/esm/internal/ws-adapter-browser.js.map +1 -0
  188. package/dist/esm/internal/ws-adapter-node.d.ts +27 -0
  189. package/dist/esm/internal/ws-adapter-node.d.ts.map +1 -0
  190. package/dist/esm/internal/ws-adapter-node.js +87 -0
  191. package/dist/esm/internal/ws-adapter-node.js.map +1 -0
  192. package/dist/esm/internal/ws-adapter.d.ts +24 -0
  193. package/dist/esm/internal/ws-adapter.d.ts.map +1 -0
  194. package/dist/esm/internal/ws-adapter.js +8 -0
  195. package/dist/esm/internal/ws-adapter.js.map +1 -0
  196. package/dist/esm/internal/ws.d.ts +80 -0
  197. package/dist/esm/internal/ws.d.ts.map +1 -0
  198. package/dist/esm/internal/ws.js +148 -0
  199. package/dist/esm/internal/ws.js.map +1 -0
  200. package/dist/esm/live.d.ts +97 -0
  201. package/dist/esm/live.d.ts.map +1 -0
  202. package/dist/esm/live.js +230 -0
  203. package/dist/esm/live.js.map +1 -0
  204. package/dist/esm/resources/agents/agents.d.ts +1 -1
  205. package/dist/esm/resources/agents/agents.d.ts.map +1 -1
  206. package/dist/esm/resources/agents/agents.js.map +1 -1
  207. package/dist/esm/resources/agents/templates.d.ts +62 -44
  208. package/dist/esm/resources/agents/templates.d.ts.map +1 -1
  209. package/dist/esm/resources/index.d.ts +9 -5
  210. package/dist/esm/resources/index.d.ts.map +1 -1
  211. package/dist/esm/resources/index.js +3 -1
  212. package/dist/esm/resources/index.js.map +1 -1
  213. package/dist/esm/resources/insights.d.ts +30 -3
  214. package/dist/esm/resources/insights.d.ts.map +1 -1
  215. package/dist/esm/resources/insights.js +8 -3
  216. package/dist/esm/resources/insights.js.map +1 -1
  217. package/dist/esm/resources/integrations/index.d.ts +7 -0
  218. package/dist/esm/resources/integrations/index.d.ts.map +1 -0
  219. package/dist/esm/resources/integrations/index.js +5 -0
  220. package/dist/esm/resources/integrations/index.js.map +1 -0
  221. package/dist/esm/resources/integrations/integrations.d.ts +777 -0
  222. package/dist/esm/resources/integrations/integrations.d.ts.map +1 -0
  223. package/dist/esm/resources/integrations/integrations.js +238 -0
  224. package/dist/esm/resources/integrations/integrations.js.map +1 -0
  225. package/dist/esm/resources/integrations/providers.d.ts +229 -0
  226. package/dist/esm/resources/integrations/providers.d.ts.map +1 -0
  227. package/dist/esm/resources/integrations/providers.js +41 -0
  228. package/dist/esm/resources/integrations/providers.js.map +1 -0
  229. package/dist/esm/resources/integrations/triggers.d.ts +280 -0
  230. package/dist/esm/resources/integrations/triggers.d.ts.map +1 -0
  231. package/dist/esm/resources/integrations/triggers.js +63 -0
  232. package/dist/esm/resources/integrations/triggers.js.map +1 -0
  233. package/dist/esm/resources/integrations.d.ts +1 -158
  234. package/dist/esm/resources/integrations.d.ts.map +1 -1
  235. package/dist/esm/resources/integrations.js +1 -37
  236. package/dist/esm/resources/integrations.js.map +1 -1
  237. package/dist/esm/resources/live/index.d.ts +6 -0
  238. package/dist/esm/resources/live/index.d.ts.map +1 -0
  239. package/dist/esm/resources/live/index.js +4 -0
  240. package/dist/esm/resources/live/index.js.map +1 -0
  241. package/dist/esm/resources/live/internal-base.d.ts +70 -0
  242. package/dist/esm/resources/live/internal-base.d.ts.map +1 -0
  243. package/dist/esm/resources/live/internal-base.js +50 -0
  244. package/dist/esm/resources/live/internal-base.js.map +1 -0
  245. package/dist/esm/resources/live/live.d.ts +54 -0
  246. package/dist/esm/resources/live/live.d.ts.map +1 -0
  247. package/dist/esm/resources/live/live.js +46 -0
  248. package/dist/esm/resources/live/live.js.map +1 -0
  249. package/dist/esm/resources/live/ws-base.d.ts +57 -0
  250. package/dist/esm/resources/live/ws-base.d.ts.map +1 -0
  251. package/dist/esm/resources/live/ws-base.js +355 -0
  252. package/dist/esm/resources/live/ws-base.js.map +1 -0
  253. package/dist/esm/resources/live/ws-browser.d.ts +14 -0
  254. package/dist/esm/resources/live/ws-browser.d.ts.map +1 -0
  255. package/dist/esm/resources/live/ws-browser.js +21 -0
  256. package/dist/esm/resources/live/ws-browser.js.map +1 -0
  257. package/dist/esm/resources/live/ws.d.ts +13 -0
  258. package/dist/esm/resources/live/ws.d.ts.map +1 -0
  259. package/dist/esm/resources/live/ws.js +27 -0
  260. package/dist/esm/resources/live/ws.js.map +1 -0
  261. package/dist/esm/resources/live.d.ts +2 -0
  262. package/dist/esm/resources/live.d.ts.map +1 -0
  263. package/dist/esm/resources/live.js +3 -0
  264. package/dist/esm/resources/live.js.map +1 -0
  265. package/dist/esm/resources/organizations/index.d.ts +3 -2
  266. package/dist/esm/resources/organizations/index.d.ts.map +1 -1
  267. package/dist/esm/resources/organizations/index.js +1 -1
  268. package/dist/esm/resources/organizations/index.js.map +1 -1
  269. package/dist/esm/resources/organizations/organizations.d.ts +5 -5
  270. package/dist/esm/resources/organizations/organizations.d.ts.map +1 -1
  271. package/dist/esm/resources/organizations/organizations.js +2 -2
  272. package/dist/esm/resources/organizations/organizations.js.map +1 -1
  273. package/dist/esm/resources/organizations/settings.d.ts +93 -1
  274. package/dist/esm/resources/organizations/settings.d.ts.map +1 -1
  275. package/dist/esm/resources/organizations/settings.js +19 -0
  276. package/dist/esm/resources/organizations/settings.js.map +1 -1
  277. package/dist/esm/resources/organizations/subscriptions.d.ts +295 -1
  278. package/dist/esm/resources/organizations/subscriptions.d.ts.map +1 -1
  279. package/dist/esm/resources/organizations/subscriptions.js +41 -1
  280. package/dist/esm/resources/organizations/subscriptions.js.map +1 -1
  281. package/dist/esm/resources/pins.d.ts +400 -0
  282. package/dist/esm/resources/pins.d.ts.map +1 -0
  283. package/dist/esm/resources/pins.js +83 -0
  284. package/dist/esm/resources/pins.js.map +1 -0
  285. package/dist/esm/resources/projects/index.d.ts +1 -1
  286. package/dist/esm/resources/projects/index.d.ts.map +1 -1
  287. package/dist/esm/resources/projects/index.js.map +1 -1
  288. package/dist/esm/resources/projects/projects.d.ts +86 -1
  289. package/dist/esm/resources/projects/projects.d.ts.map +1 -1
  290. package/dist/esm/resources/projects/projects.js +15 -0
  291. package/dist/esm/resources/projects/projects.js.map +1 -1
  292. package/dist/esm/resources/repositories.d.ts +83 -3
  293. package/dist/esm/resources/repositories.d.ts.map +1 -1
  294. package/dist/esm/resources/repositories.js +21 -2
  295. package/dist/esm/resources/repositories.js.map +1 -1
  296. package/dist/esm/resources/sessions/sessions.d.ts +7 -0
  297. package/dist/esm/resources/sessions/sessions.d.ts.map +1 -1
  298. package/dist/esm/resources/sessions/sessions.js +2 -0
  299. package/dist/esm/resources/sessions/sessions.js.map +1 -1
  300. package/dist/esm/resources/users/index.d.ts +4 -1
  301. package/dist/esm/resources/users/index.d.ts.map +1 -1
  302. package/dist/esm/resources/users/index.js +2 -1
  303. package/dist/esm/resources/users/index.js.map +1 -1
  304. package/dist/esm/resources/users/profile-picture.d.ts +77 -0
  305. package/dist/esm/resources/users/profile-picture.d.ts.map +1 -0
  306. package/dist/esm/resources/users/profile-picture.js +59 -0
  307. package/dist/esm/resources/users/profile-picture.js.map +1 -0
  308. package/dist/esm/resources/users/subscriptions.d.ts +295 -1
  309. package/dist/esm/resources/users/subscriptions.d.ts.map +1 -1
  310. package/dist/esm/resources/users/subscriptions.js +38 -1
  311. package/dist/esm/resources/users/subscriptions.js.map +1 -1
  312. package/dist/esm/resources/users/users.d.ts +7 -3
  313. package/dist/esm/resources/users/users.d.ts.map +1 -1
  314. package/dist/esm/resources/users/users.js +6 -2
  315. package/dist/esm/resources/users/users.js.map +1 -1
  316. package/dist/esm/resources.d.ts +2 -2
  317. package/dist/esm/resources.d.ts.map +1 -1
  318. package/dist/esm/resources.js +1 -1
  319. package/dist/esm/resources.js.map +1 -1
  320. package/dist/esm/version.d.ts +1 -1
  321. package/dist/esm/version.js +1 -1
  322. package/package.json +23 -4
  323. package/dist/cjs/resources/organizations/subscriptions/chatgpt.d.ts +0 -186
  324. package/dist/cjs/resources/organizations/subscriptions/chatgpt.d.ts.map +0 -1
  325. package/dist/cjs/resources/organizations/subscriptions/chatgpt.js +0 -58
  326. package/dist/cjs/resources/organizations/subscriptions/chatgpt.js.map +0 -1
  327. package/dist/cjs/resources/organizations/subscriptions/claude.d.ts +0 -128
  328. package/dist/cjs/resources/organizations/subscriptions/claude.d.ts.map +0 -1
  329. package/dist/cjs/resources/organizations/subscriptions/claude.js +0 -40
  330. package/dist/cjs/resources/organizations/subscriptions/claude.js.map +0 -1
  331. package/dist/cjs/resources/organizations/subscriptions/index.d.ts +0 -8
  332. package/dist/cjs/resources/organizations/subscriptions/index.d.ts.map +0 -1
  333. package/dist/cjs/resources/organizations/subscriptions/index.js +0 -13
  334. package/dist/cjs/resources/organizations/subscriptions/index.js.map +0 -1
  335. package/dist/cjs/resources/organizations/subscriptions/subscriptions.d.ts +0 -18
  336. package/dist/cjs/resources/organizations/subscriptions/subscriptions.d.ts.map +0 -1
  337. package/dist/cjs/resources/organizations/subscriptions/subscriptions.js +0 -54
  338. package/dist/cjs/resources/organizations/subscriptions/subscriptions.js.map +0 -1
  339. package/dist/cjs/resources/organizations/subscriptions/supergrok.d.ts +0 -25
  340. package/dist/cjs/resources/organizations/subscriptions/supergrok.d.ts.map +0 -1
  341. package/dist/cjs/resources/organizations/subscriptions/supergrok.js +0 -25
  342. package/dist/cjs/resources/organizations/subscriptions/supergrok.js.map +0 -1
  343. package/dist/cjs/resources/users/subscriptions/chatgpt.d.ts +0 -186
  344. package/dist/cjs/resources/users/subscriptions/chatgpt.d.ts.map +0 -1
  345. package/dist/cjs/resources/users/subscriptions/chatgpt.js +0 -61
  346. package/dist/cjs/resources/users/subscriptions/chatgpt.js.map +0 -1
  347. package/dist/cjs/resources/users/subscriptions/claude.d.ts +0 -128
  348. package/dist/cjs/resources/users/subscriptions/claude.d.ts.map +0 -1
  349. package/dist/cjs/resources/users/subscriptions/claude.js +0 -40
  350. package/dist/cjs/resources/users/subscriptions/claude.js.map +0 -1
  351. package/dist/cjs/resources/users/subscriptions/index.d.ts +0 -8
  352. package/dist/cjs/resources/users/subscriptions/index.d.ts.map +0 -1
  353. package/dist/cjs/resources/users/subscriptions/index.js +0 -13
  354. package/dist/cjs/resources/users/subscriptions/index.js.map +0 -1
  355. package/dist/cjs/resources/users/subscriptions/subscriptions.d.ts +0 -18
  356. package/dist/cjs/resources/users/subscriptions/subscriptions.d.ts.map +0 -1
  357. package/dist/cjs/resources/users/subscriptions/subscriptions.js +0 -54
  358. package/dist/cjs/resources/users/subscriptions/subscriptions.js.map +0 -1
  359. package/dist/cjs/resources/users/subscriptions/supergrok.d.ts +0 -25
  360. package/dist/cjs/resources/users/subscriptions/supergrok.d.ts.map +0 -1
  361. package/dist/cjs/resources/users/subscriptions/supergrok.js +0 -25
  362. package/dist/cjs/resources/users/subscriptions/supergrok.js.map +0 -1
  363. package/dist/esm/resources/organizations/subscriptions/chatgpt.d.ts +0 -186
  364. package/dist/esm/resources/organizations/subscriptions/chatgpt.d.ts.map +0 -1
  365. package/dist/esm/resources/organizations/subscriptions/chatgpt.js +0 -54
  366. package/dist/esm/resources/organizations/subscriptions/chatgpt.js.map +0 -1
  367. package/dist/esm/resources/organizations/subscriptions/claude.d.ts +0 -128
  368. package/dist/esm/resources/organizations/subscriptions/claude.d.ts.map +0 -1
  369. package/dist/esm/resources/organizations/subscriptions/claude.js +0 -36
  370. package/dist/esm/resources/organizations/subscriptions/claude.js.map +0 -1
  371. package/dist/esm/resources/organizations/subscriptions/index.d.ts +0 -8
  372. package/dist/esm/resources/organizations/subscriptions/index.d.ts.map +0 -1
  373. package/dist/esm/resources/organizations/subscriptions/index.js +0 -6
  374. package/dist/esm/resources/organizations/subscriptions/index.js.map +0 -1
  375. package/dist/esm/resources/organizations/subscriptions/subscriptions.d.ts +0 -18
  376. package/dist/esm/resources/organizations/subscriptions/subscriptions.d.ts.map +0 -1
  377. package/dist/esm/resources/organizations/subscriptions/subscriptions.js +0 -17
  378. package/dist/esm/resources/organizations/subscriptions/subscriptions.js.map +0 -1
  379. package/dist/esm/resources/organizations/subscriptions/supergrok.d.ts +0 -25
  380. package/dist/esm/resources/organizations/subscriptions/supergrok.d.ts.map +0 -1
  381. package/dist/esm/resources/organizations/subscriptions/supergrok.js +0 -21
  382. package/dist/esm/resources/organizations/subscriptions/supergrok.js.map +0 -1
  383. package/dist/esm/resources/users/subscriptions/chatgpt.d.ts +0 -186
  384. package/dist/esm/resources/users/subscriptions/chatgpt.d.ts.map +0 -1
  385. package/dist/esm/resources/users/subscriptions/chatgpt.js +0 -57
  386. package/dist/esm/resources/users/subscriptions/chatgpt.js.map +0 -1
  387. package/dist/esm/resources/users/subscriptions/claude.d.ts +0 -128
  388. package/dist/esm/resources/users/subscriptions/claude.d.ts.map +0 -1
  389. package/dist/esm/resources/users/subscriptions/claude.js +0 -36
  390. package/dist/esm/resources/users/subscriptions/claude.js.map +0 -1
  391. package/dist/esm/resources/users/subscriptions/index.d.ts +0 -8
  392. package/dist/esm/resources/users/subscriptions/index.d.ts.map +0 -1
  393. package/dist/esm/resources/users/subscriptions/index.js +0 -6
  394. package/dist/esm/resources/users/subscriptions/index.js.map +0 -1
  395. package/dist/esm/resources/users/subscriptions/subscriptions.d.ts +0 -18
  396. package/dist/esm/resources/users/subscriptions/subscriptions.d.ts.map +0 -1
  397. package/dist/esm/resources/users/subscriptions/subscriptions.js +0 -17
  398. package/dist/esm/resources/users/subscriptions/subscriptions.js.map +0 -1
  399. package/dist/esm/resources/users/subscriptions/supergrok.d.ts +0 -25
  400. package/dist/esm/resources/users/subscriptions/supergrok.d.ts.map +0 -1
  401. package/dist/esm/resources/users/subscriptions/supergrok.js +0 -21
  402. package/dist/esm/resources/users/subscriptions/supergrok.js.map +0 -1
package/api.md CHANGED
@@ -1,4 +1,4 @@
1
- # Tembo Public TypeScript API
1
+ # Tembo SDK TypeScript API
2
2
 
3
3
  Complete reference of every operation, grouped by resource. See [the README](./README.md) for usage and configuration.
4
4
 
@@ -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)
@@ -120,6 +111,7 @@ Complete reference of every operation, grouped by resource. See [the README](./R
120
111
  - [Retrieve a project](#retrieve-a-project)
121
112
  - [Update a project](#update-a-project)
122
113
  - [Delete a project](#delete-a-project)
114
+ - [Duplicate a project](#duplicate-a-project)
123
115
  - [`Projects EnvironmentVariables`](#projects-environmentvariables)
124
116
  - [List project environment variables](#list-project-environment-variables)
125
117
  - [Create project environment variables](#create-project-environment-variables)
@@ -140,6 +132,11 @@ Complete reference of every operation, grouped by resource. See [the README](./R
140
132
  - [Retrieve a project schedule](#retrieve-a-project-schedule)
141
133
  - [Update a project schedule](#update-a-project-schedule)
142
134
  - [Delete a project schedule](#delete-a-project-schedule)
135
+ - [`Pins`](#pins)
136
+ - [List pins](#list-pins)
137
+ - [Create a pin](#create-a-pin)
138
+ - [Update a pin](#update-a-pin)
139
+ - [Delete a pin](#delete-a-pin)
143
140
  - [`PullRequests`](#pullrequests)
144
141
  - [List pull requests](#list-pull-requests)
145
142
  - [Retrieve a pull request](#retrieve-a-pull-request)
@@ -175,12 +172,34 @@ Complete reference of every operation, grouped by resource. See [the README](./R
175
172
  - [`Repositories`](#repositories)
176
173
  - [List repositories](#list-repositories)
177
174
  - [Retrieve a repository](#retrieve-a-repository)
175
+ - [Update a repository](#update-a-repository)
178
176
  - [`Integrations`](#integrations)
179
177
  - [List integrations](#list-integrations)
178
+ - [Create an integration](#create-an-integration)
180
179
  - [Retrieve an integration](#retrieve-an-integration)
180
+ - [Update an integration](#update-an-integration)
181
+ - [Delete an integration](#delete-an-integration)
182
+ - [Authorize an integration](#authorize-an-integration)
183
+ - [Test an integration](#test-an-integration)
184
+ - [Sync an integration](#sync-an-integration)
185
+ - [Sync eligible integrations](#sync-eligible-integrations)
186
+ - [Retrieve eligible integration sync status](#retrieve-eligible-integration-sync-status)
187
+ - [Retrieve an integration rate limit](#retrieve-an-integration-rate-limit)
188
+ - [List Sentry environments](#list-sentry-environments)
189
+ - [List Slack channels](#list-slack-channels)
190
+ - [`Integrations Providers`](#integrations-providers)
191
+ - [List integration providers](#list-integration-providers)
192
+ - [Discover Snyk organizations](#discover-snyk-organizations)
193
+ - [`Integrations Triggers`](#integrations-triggers)
194
+ - [List integration triggers](#list-integration-triggers)
195
+ - [Retrieve an integration trigger](#retrieve-an-integration-trigger)
196
+ - [List integration trigger filter options](#list-integration-trigger-filter-options)
181
197
  - [`Billing`](#billing)
182
198
  - [Retrieve billing](#retrieve-billing)
183
199
  - [List billing usage](#list-billing-usage)
200
+ - [`Live`](#live)
201
+ - [Authorize a live connection](#authorize-a-live-connection)
202
+ - [Live resource subscriptions](#live-resource-subscriptions)
184
203
 
185
204
  ## Setup
186
205
 
@@ -378,10 +397,13 @@ Retrieve pull request contribution insights and their collection status for the
378
397
 
379
398
  | Direction | Type |
380
399
  | --- | --- |
400
+ | Request | [`InsightRetrieveParams`](./src/resources/insights.ts) |
381
401
  | Response | [`InsightRetrieveResponse`](./src/resources/insights.ts) |
382
402
 
383
403
  ```ts
384
- const insight = await client.insights.retrieve();
404
+ const insight = await client.insights.retrieve({
405
+ range: '1y',
406
+ });
385
407
  ```
386
408
 
387
409
  ### Update insights
@@ -411,6 +433,7 @@ List organization members included in pull request insights.
411
433
  ```ts
412
434
  const insight = await client.insights.listMembers({
413
435
  limit: 50,
436
+ range: '1y',
414
437
  });
415
438
  ```
416
439
 
@@ -426,6 +449,7 @@ List repositories included in pull request insights for the current organization
426
449
  ```ts
427
450
  const insight = await client.insights.listRepositories({
428
451
  limit: 50,
452
+ range: '1y',
429
453
  });
430
454
  ```
431
455
 
@@ -668,87 +692,50 @@ Update one or more organization settings.
668
692
  const setting = await client.organizations.settings.update('organizationId', {});
669
693
  ```
670
694
 
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
- ```
698
-
699
- ##### Reset organization ChatGPT subscription usage
695
+ #### Validate organization provider credentials
700
696
 
701
- Redeem one earned rate-limit reset for an organization ChatGPT subscription.
697
+ Validate supplied inference provider credentials for an organization without saving them. The provider must be available on the organization’s plan.
702
698
 
703
699
  | Direction | Type |
704
700
  | --- | --- |
705
- | Request | [`ChatgptResetUsageParams`](./src/resources/organizations/subscriptions/chatgpt.ts) |
706
- | Response | [`ChatgptResetUsageResponse`](./src/resources/organizations/subscriptions/chatgpt.ts) |
701
+ | Request | [`SettingValidateCredentialsParams`](./src/resources/organizations/settings.ts) |
702
+ | Response | [`SettingValidateCredentialsResponse`](./src/resources/organizations/settings.ts) |
707
703
 
708
704
  ```ts
709
- const chatgpt = await client.organizations.subscriptions.chatgpt.resetUsage('organizationId', {
710
- idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
705
+ const setting = await client.organizations.settings.validateCredentials('organizationId', {
706
+ provider: 'anthropic',
707
+ apiKey: '',
711
708
  });
712
709
  ```
713
710
 
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
- ```
711
+ ### `Organizations Subscriptions`
727
712
 
728
- ##### Retrieve organization Claude subscription usage
713
+ #### Retrieve organization subscriptions
729
714
 
730
- Retrieve rate-limit usage for an organization Claude subscription.
715
+ Retrieve connection statuses and available ChatGPT and Claude usage. Provider usage errors are reported without failing the response.
731
716
 
732
717
  | Direction | Type |
733
718
  | --- | --- |
734
- | Response | [`ClaudeRetrieveUsageResponse`](./src/resources/organizations/subscriptions/claude.ts) |
719
+ | Response | [`SubscriptionRetrieveResponse`](./src/resources/organizations/subscriptions.ts) |
735
720
 
736
721
  ```ts
737
- const claude = await client.organizations.subscriptions.claude.retrieveUsage('organizationId');
722
+ const subscription = await client.organizations.subscriptions.retrieve('organizationId');
738
723
  ```
739
724
 
740
- #### `Organizations Subscriptions Supergrok`
725
+ #### Reset organization subscription usage
741
726
 
742
- ##### Retrieve an organization SuperGrok subscription
743
-
744
- Retrieve the connection status for an organization SuperGrok subscription.
727
+ Redeem an earned ChatGPT rate-limit reset.
745
728
 
746
729
  | Direction | Type |
747
730
  | --- | --- |
748
- | Response | [`SupergrokRetrieveResponse`](./src/resources/organizations/subscriptions/supergrok.ts) |
731
+ | Request | [`SubscriptionResetParams`](./src/resources/organizations/subscriptions.ts) |
732
+ | Response | [`SubscriptionResetResponse`](./src/resources/organizations/subscriptions.ts) |
749
733
 
750
734
  ```ts
751
- const supergrok = await client.organizations.subscriptions.supergrok.retrieve('organizationId');
735
+ const subscription = await client.organizations.subscriptions.reset('organizationId', {
736
+ idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
737
+ provider: 'chatgpt',
738
+ });
752
739
  ```
753
740
 
754
741
  ## `McpConnections`
@@ -1128,85 +1115,69 @@ const connectedAccount = await client.users.connectedAccounts.retrieve('connecte
1128
1115
 
1129
1116
  ### `Users Subscriptions`
1130
1117
 
1131
- #### `Users Subscriptions Chatgpt`
1132
-
1133
- ##### Retrieve a user ChatGPT subscription
1118
+ #### Retrieve user subscriptions
1134
1119
 
1135
- Retrieve the connection status for a user ChatGPT subscription.
1120
+ Retrieve connection statuses and available ChatGPT and Claude usage. Provider usage errors are reported without failing the response.
1136
1121
 
1137
1122
  | Direction | Type |
1138
1123
  | --- | --- |
1139
- | Response | [`ChatgptRetrieveResponse`](./src/resources/users/subscriptions/chatgpt.ts) |
1124
+ | Response | [`SubscriptionRetrieveResponse`](./src/resources/users/subscriptions.ts) |
1140
1125
 
1141
1126
  ```ts
1142
- const chatgpt = await client.users.subscriptions.chatgpt.retrieve('userId');
1127
+ const subscription = await client.users.subscriptions.retrieve('userId');
1143
1128
  ```
1144
1129
 
1145
- ##### Retrieve user ChatGPT subscription usage
1130
+ #### Reset user subscription usage
1146
1131
 
1147
- Retrieve plan and rate-limit usage for a user ChatGPT subscription.
1132
+ Redeem an earned ChatGPT rate-limit reset.
1148
1133
 
1149
1134
  | Direction | Type |
1150
1135
  | --- | --- |
1151
- | Response | [`ChatgptRetrieveUsageResponse`](./src/resources/users/subscriptions/chatgpt.ts) |
1136
+ | Request | [`SubscriptionResetParams`](./src/resources/users/subscriptions.ts) |
1137
+ | Response | [`SubscriptionResetResponse`](./src/resources/users/subscriptions.ts) |
1152
1138
 
1153
1139
  ```ts
1154
- const chatgpt = await client.users.subscriptions.chatgpt.retrieveUsage('userId');
1155
- ```
1156
-
1157
- ##### Reset user ChatGPT subscription usage
1158
-
1159
- Redeem one earned rate-limit reset for a user ChatGPT subscription.
1160
-
1161
- | Direction | Type |
1162
- | --- | --- |
1163
- | Request | [`ChatgptResetUsageParams`](./src/resources/users/subscriptions/chatgpt.ts) |
1164
- | Response | [`ChatgptResetUsageResponse`](./src/resources/users/subscriptions/chatgpt.ts) |
1165
-
1166
- ```ts
1167
- const chatgpt = await client.users.subscriptions.chatgpt.resetUsage('userId', {
1140
+ const subscription = await client.users.subscriptions.reset('userId', {
1168
1141
  idempotencyKey: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
1142
+ provider: 'chatgpt',
1169
1143
  });
1170
1144
  ```
1171
1145
 
1172
- #### `Users Subscriptions Claude`
1146
+ ### `Users ProfilePicture`
1173
1147
 
1174
- ##### Retrieve a user Claude subscription
1148
+ #### Retrieve a user profile picture
1175
1149
 
1176
- Retrieve the connection status for a user Claude subscription.
1177
-
1178
- | Direction | Type |
1179
- | --- | --- |
1180
- | Response | [`ClaudeRetrieveResponse`](./src/resources/users/subscriptions/claude.ts) |
1150
+ Redirect to a user's profile picture. Signed URLs are valid for one hour.
1181
1151
 
1182
1152
  ```ts
1183
- const claude = await client.users.subscriptions.claude.retrieve('userId');
1153
+ await client.users.profilePicture.retrieve('userId');
1184
1154
  ```
1185
1155
 
1186
- ##### Retrieve user Claude subscription usage
1156
+ #### Update your profile picture
1187
1157
 
1188
- Retrieve rate-limit usage for a user Claude subscription.
1158
+ Upload a JPEG, PNG, GIF, or WebP profile picture up to 5 MB.
1189
1159
 
1190
1160
  | Direction | Type |
1191
1161
  | --- | --- |
1192
- | Response | [`ClaudeRetrieveUsageResponse`](./src/resources/users/subscriptions/claude.ts) |
1162
+ | Request | [`ProfilePictureUpdateParams`](./src/resources/users/profile-picture.ts) |
1163
+ | Response | [`ProfilePictureUpdateResponse`](./src/resources/users/profile-picture.ts) |
1193
1164
 
1194
1165
  ```ts
1195
- const claude = await client.users.subscriptions.claude.retrieveUsage('userId');
1166
+ const profilePicture = await client.users.profilePicture.update('userId', {
1167
+ file: new File(['file'], 'file'),
1168
+ });
1196
1169
  ```
1197
1170
 
1198
- #### `Users Subscriptions Supergrok`
1199
-
1200
- ##### Retrieve a user SuperGrok subscription
1171
+ #### Delete your profile picture
1201
1172
 
1202
- Retrieve the connection status for a user SuperGrok subscription.
1173
+ Delete your profile picture. This succeeds if no picture exists.
1203
1174
 
1204
1175
  | Direction | Type |
1205
1176
  | --- | --- |
1206
- | Response | [`SupergrokRetrieveResponse`](./src/resources/users/subscriptions/supergrok.ts) |
1177
+ | Response | [`ProfilePictureDeleteResponse`](./src/resources/users/profile-picture.ts) |
1207
1178
 
1208
1179
  ```ts
1209
- const supergrok = await client.users.subscriptions.supergrok.retrieve('userId');
1180
+ const profilePicture = await client.users.profilePicture.delete('userId');
1210
1181
  ```
1211
1182
 
1212
1183
  ## `Sessions`
@@ -1480,6 +1451,18 @@ Delete a project and disable its schedule.
1480
1451
  const project = await client.projects.delete('projectId');
1481
1452
  ```
1482
1453
 
1454
+ ### Duplicate a project
1455
+
1456
+ Create a new project with the same configuration, environment variables, and schedule as an existing project. Snapshots are not copied.
1457
+
1458
+ | Direction | Type |
1459
+ | --- | --- |
1460
+ | Response | [`ProjectDuplicateResponse`](./src/resources/projects/projects.ts) |
1461
+
1462
+ ```ts
1463
+ const project = await client.projects.duplicate('projectId');
1464
+ ```
1465
+
1483
1466
  ### `Projects EnvironmentVariables`
1484
1467
 
1485
1468
  #### List project environment variables
@@ -1728,6 +1711,73 @@ const schedule = await client.projects.schedules.delete('scheduleId', {
1728
1711
  });
1729
1712
  ```
1730
1713
 
1714
+ ## `Pins`
1715
+
1716
+ ### List pins
1717
+
1718
+ List sessions, pull requests, and projects you have pinned, in pin order.
1719
+
1720
+ | Direction | Type |
1721
+ | --- | --- |
1722
+ | Response | [`PinListResponse`](./src/resources/pins.ts) |
1723
+
1724
+ ```ts
1725
+ const pin = await client.pins.list();
1726
+ ```
1727
+
1728
+ ### Create a pin
1729
+
1730
+ Pin a session, pull request, or project you have permission to access.
1731
+
1732
+ | Direction | Type |
1733
+ | --- | --- |
1734
+ | Request | [`PinCreateParams`](./src/resources/pins.ts) |
1735
+ | Response | [`PinCreateResponse`](./src/resources/pins.ts) |
1736
+
1737
+ ```ts
1738
+ const pin = await client.pins.create({
1739
+ type: 'session',
1740
+ id: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
1741
+ });
1742
+ ```
1743
+
1744
+ ### Update a pin
1745
+
1746
+ Update the placement of a pin.
1747
+
1748
+ | Direction | Type |
1749
+ | --- | --- |
1750
+ | Request | [`PinUpdateParams`](./src/resources/pins.ts) |
1751
+ | Response | [`PinUpdateResponse`](./src/resources/pins.ts) |
1752
+
1753
+ ```ts
1754
+ const pin = await client.pins.update('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
1755
+ resourceType: 'session',
1756
+ placement: {
1757
+ target: {
1758
+ type: 'session',
1759
+ id: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
1760
+ },
1761
+ position: 'before',
1762
+ },
1763
+ });
1764
+ ```
1765
+
1766
+ ### Delete a pin
1767
+
1768
+ Unpin a session, pull request, or project.
1769
+
1770
+ | Direction | Type |
1771
+ | --- | --- |
1772
+ | Request | [`PinDeleteParams`](./src/resources/pins.ts) |
1773
+ | Response | [`PinDeleteResponse`](./src/resources/pins.ts) |
1774
+
1775
+ ```ts
1776
+ const pin = await client.pins.delete('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
1777
+ resourceType: 'session',
1778
+ });
1779
+ ```
1780
+
1731
1781
  ## `PullRequests`
1732
1782
 
1733
1783
  ### List pull requests
@@ -2106,7 +2156,7 @@ const contentRevision = await client.agents.contentRevisions.restore(1, {
2106
2156
 
2107
2157
  ### List repositories
2108
2158
 
2109
- List enabled repositories in the authenticated organization.
2159
+ List repositories in the authenticated organization. Defaults to enabled repositories.
2110
2160
 
2111
2161
  | Direction | Type |
2112
2162
  | --- | --- |
@@ -2116,6 +2166,7 @@ List enabled repositories in the authenticated organization.
2116
2166
  ```ts
2117
2167
  const repository = await client.repositories.list({
2118
2168
  limit: 50,
2169
+ enabled: 'all',
2119
2170
  order: 'desc',
2120
2171
  sort: 'pullRequests',
2121
2172
  });
@@ -2123,7 +2174,7 @@ const repository = await client.repositories.list({
2123
2174
 
2124
2175
  ### Retrieve a repository
2125
2176
 
2126
- Retrieve an enabled repository in the authenticated organization.
2177
+ Retrieve a repository in the authenticated organization.
2127
2178
 
2128
2179
  | Direction | Type |
2129
2180
  | --- | --- |
@@ -2133,16 +2184,31 @@ Retrieve an enabled repository in the authenticated organization.
2133
2184
  const repository = await client.repositories.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2134
2185
  ```
2135
2186
 
2187
+ ### Update a repository
2188
+
2189
+ Update repository configuration or enable or disable it.
2190
+
2191
+ | Direction | Type |
2192
+ | --- | --- |
2193
+ | Request | [`RepositoryUpdateParams`](./src/resources/repositories.ts) |
2194
+ | Response | [`RepositoryUpdateResponse`](./src/resources/repositories.ts) |
2195
+
2196
+ ```ts
2197
+ const repository = await client.repositories.update('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
2198
+ enabled: false,
2199
+ });
2200
+ ```
2201
+
2136
2202
  ## `Integrations`
2137
2203
 
2138
2204
  ### List integrations
2139
2205
 
2140
- List integrations for the authenticated organization.
2206
+ List integrations visible to the current organization or authenticated admin.
2141
2207
 
2142
2208
  | Direction | Type |
2143
2209
  | --- | --- |
2144
- | Request | [`IntegrationListParams`](./src/resources/integrations.ts) |
2145
- | Response | [`IntegrationListResponse`](./src/resources/integrations.ts) |
2210
+ | Request | [`IntegrationListParams`](./src/resources/integrations/integrations.ts) |
2211
+ | Response | [`IntegrationListResponse`](./src/resources/integrations/integrations.ts) |
2146
2212
 
2147
2213
  ```ts
2148
2214
  const integration = await client.integrations.list({
@@ -2151,18 +2217,252 @@ const integration = await client.integrations.list({
2151
2217
  });
2152
2218
  ```
2153
2219
 
2220
+ ### Create an integration
2221
+
2222
+ Create an integration that does not require an OAuth callback.
2223
+
2224
+ | Direction | Type |
2225
+ | --- | --- |
2226
+ | Request | [`IntegrationCreateParams`](./src/resources/integrations/integrations.ts) |
2227
+ | Response | [`IntegrationCreateResponse`](./src/resources/integrations/integrations.ts) |
2228
+
2229
+ ```ts
2230
+ const integration = await client.integrations.create({
2231
+ environment: 'x',
2232
+ roleArn: 'x',
2233
+ type: 'aws',
2234
+ });
2235
+ ```
2236
+
2154
2237
  ### Retrieve an integration
2155
2238
 
2156
- Retrieve an integration for the authenticated organization.
2239
+ Retrieve an integration and its configuration.
2157
2240
 
2158
2241
  | Direction | Type |
2159
2242
  | --- | --- |
2160
- | Response | [`IntegrationRetrieveResponse`](./src/resources/integrations.ts) |
2243
+ | Response | [`IntegrationRetrieveResponse`](./src/resources/integrations/integrations.ts) |
2161
2244
 
2162
2245
  ```ts
2163
2246
  const integration = await client.integrations.retrieve('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2164
2247
  ```
2165
2248
 
2249
+ ### Update an integration
2250
+
2251
+ Update provider settings or an editable configuration.
2252
+
2253
+ | Direction | Type |
2254
+ | --- | --- |
2255
+ | Request | [`IntegrationUpdateParams`](./src/resources/integrations/integrations.ts) |
2256
+ | Response | [`IntegrationUpdateResponse`](./src/resources/integrations/integrations.ts) |
2257
+
2258
+ ```ts
2259
+ const integration = await client.integrations.update('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
2260
+ settings: {},
2261
+ });
2262
+ ```
2263
+
2264
+ ### Delete an integration
2265
+
2266
+ Uninstall an integration from its provider when supported, then delete it from Tembo.
2267
+
2268
+ | Direction | Type |
2269
+ | --- | --- |
2270
+ | Response | [`IntegrationDeleteResponse`](./src/resources/integrations/integrations.ts) |
2271
+
2272
+ ```ts
2273
+ const integration = await client.integrations.delete('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2274
+ ```
2275
+
2276
+ ### Authorize an integration
2277
+
2278
+ Return the provider authorization URL for an integration.
2279
+
2280
+ | Direction | Type |
2281
+ | --- | --- |
2282
+ | Request | [`IntegrationAuthorizeParams`](./src/resources/integrations/integrations.ts) |
2283
+ | Response | [`IntegrationAuthorizeResponse`](./src/resources/integrations/integrations.ts) |
2284
+
2285
+ ```ts
2286
+ const integration = await client.integrations.authorize('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2287
+ ```
2288
+
2289
+ ### Test an integration
2290
+
2291
+ Test the saved provider connection.
2292
+
2293
+ | Direction | Type |
2294
+ | --- | --- |
2295
+ | Response | [`IntegrationTestResponse`](./src/resources/integrations/integrations.ts) |
2296
+
2297
+ ```ts
2298
+ const integration = await client.integrations.test('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2299
+ ```
2300
+
2301
+ ### Sync an integration
2302
+
2303
+ Queue or immediately perform an integration sync.
2304
+
2305
+ | Direction | Type |
2306
+ | --- | --- |
2307
+ | Request | [`IntegrationSyncParams`](./src/resources/integrations/integrations.ts) |
2308
+ | Response | [`IntegrationSyncResponse`](./src/resources/integrations/integrations.ts) |
2309
+
2310
+ ```ts
2311
+ const integration = await client.integrations.sync('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
2312
+ mode: 'queued',
2313
+ });
2314
+ ```
2315
+
2316
+ ### Sync eligible integrations
2317
+
2318
+ Queue integration and pull-request sync jobs for integrations with enabled repositories.
2319
+
2320
+ | Direction | Type |
2321
+ | --- | --- |
2322
+ | Request | [`IntegrationSyncAllParams`](./src/resources/integrations/integrations.ts) |
2323
+ | Response | [`IntegrationSyncAllResponse`](./src/resources/integrations/integrations.ts) |
2324
+
2325
+ ```ts
2326
+ const integration = await client.integrations.syncAll({});
2327
+ ```
2328
+
2329
+ ### Retrieve eligible integration sync status
2330
+
2331
+ Count active sync jobs for integrations with enabled repositories.
2332
+
2333
+ | Direction | Type |
2334
+ | --- | --- |
2335
+ | Response | [`IntegrationRetrieveSyncStatusResponse`](./src/resources/integrations/integrations.ts) |
2336
+
2337
+ ```ts
2338
+ const integration = await client.integrations.retrieveSyncStatus();
2339
+ ```
2340
+
2341
+ ### Retrieve an integration rate limit
2342
+
2343
+ Retrieve the GitHub installation rate-limit state.
2344
+
2345
+ | Direction | Type |
2346
+ | --- | --- |
2347
+ | Response | [`IntegrationRetrieveRateLimitResponse`](./src/resources/integrations/integrations.ts) |
2348
+
2349
+ ```ts
2350
+ const integration = await client.integrations.retrieveRateLimit('7c9e6679-7425-40de-944b-e07fc1f90ae7');
2351
+ ```
2352
+
2353
+ ### List Sentry environments
2354
+
2355
+ List environments visible to a Sentry integration.
2356
+
2357
+ | Direction | Type |
2358
+ | --- | --- |
2359
+ | Request | [`IntegrationListSentryEnvironmentsParams`](./src/resources/integrations/integrations.ts) |
2360
+ | Response | [`IntegrationListSentryEnvironmentsResponse`](./src/resources/integrations/integrations.ts) |
2361
+
2362
+ ```ts
2363
+ const integration = await client.integrations.listSentryEnvironments('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
2364
+ limit: 50,
2365
+ });
2366
+ ```
2367
+
2368
+ ### List Slack channels
2369
+
2370
+ List channels visible to a Slack integration.
2371
+
2372
+ | Direction | Type |
2373
+ | --- | --- |
2374
+ | Request | [`IntegrationListSlackChannelsParams`](./src/resources/integrations/integrations.ts) |
2375
+ | Response | [`IntegrationListSlackChannelsResponse`](./src/resources/integrations/integrations.ts) |
2376
+
2377
+ ```ts
2378
+ const integration = await client.integrations.listSlackChannels('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
2379
+ limit: 50,
2380
+ });
2381
+ ```
2382
+
2383
+ ### `Integrations Providers`
2384
+
2385
+ #### List integration providers
2386
+
2387
+ List providers available to the current organization.
2388
+
2389
+ | Direction | Type |
2390
+ | --- | --- |
2391
+ | Request | [`ProviderListParams`](./src/resources/integrations/providers.ts) |
2392
+ | Response | [`ProviderListResponse`](./src/resources/integrations/providers.ts) |
2393
+
2394
+ ```ts
2395
+ const provider = await client.integrations.providers.list({
2396
+ limit: 50,
2397
+ });
2398
+ ```
2399
+
2400
+ #### Discover Snyk organizations
2401
+
2402
+ Validate Snyk service-account credentials and list accessible organizations.
2403
+
2404
+ | Direction | Type |
2405
+ | --- | --- |
2406
+ | Request | [`ProviderDiscoverSnykOrganizationsParams`](./src/resources/integrations/providers.ts) |
2407
+ | Response | [`ProviderDiscoverSnykOrganizationsResponse`](./src/resources/integrations/providers.ts) |
2408
+
2409
+ ```ts
2410
+ const provider = await client.integrations.providers.discoverSnykOrganizations({
2411
+ clientId: 'x',
2412
+ clientSecret: 'x',
2413
+ limit: 50,
2414
+ });
2415
+ ```
2416
+
2417
+ ### `Integrations Triggers`
2418
+
2419
+ #### List integration triggers
2420
+
2421
+ List visible automation triggers grouped by provider.
2422
+
2423
+ | Direction | Type |
2424
+ | --- | --- |
2425
+ | Request | [`TriggerListParams`](./src/resources/integrations/triggers.ts) |
2426
+ | Response | [`TriggerListResponse`](./src/resources/integrations/triggers.ts) |
2427
+
2428
+ ```ts
2429
+ const trigger = await client.integrations.triggers.list({
2430
+ limit: 50,
2431
+ });
2432
+ ```
2433
+
2434
+ #### Retrieve an integration trigger
2435
+
2436
+ Retrieve a trigger definition and its default filter values for an integration in the current organization.
2437
+
2438
+ | Direction | Type |
2439
+ | --- | --- |
2440
+ | Request | [`TriggerRetrieveParams`](./src/resources/integrations/triggers.ts) |
2441
+ | Response | [`TriggerRetrieveResponse`](./src/resources/integrations/triggers.ts) |
2442
+
2443
+ ```ts
2444
+ const trigger = await client.integrations.triggers.retrieve('triggerName', {
2445
+ integrationId: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
2446
+ });
2447
+ ```
2448
+
2449
+ #### List integration trigger filter options
2450
+
2451
+ List one cursor-page of selectable values for an integration trigger filter field, with optional search.
2452
+
2453
+ | Direction | Type |
2454
+ | --- | --- |
2455
+ | Request | [`TriggerListFilterOptionsParams`](./src/resources/integrations/triggers.ts) |
2456
+ | Response | [`TriggerListFilterOptionsResponse`](./src/resources/integrations/triggers.ts) |
2457
+
2458
+ ```ts
2459
+ const trigger = await client.integrations.triggers.listFilterOptions('field', {
2460
+ integrationId: '7c9e6679-7425-40de-944b-e07fc1f90ae7',
2461
+ triggerName: 'triggerName',
2462
+ limit: 50,
2463
+ });
2464
+ ```
2465
+
2166
2466
  ## `Billing`
2167
2467
 
2168
2468
  ### Retrieve billing
@@ -2191,3 +2491,39 @@ const billing = await client.billing.listUsage({
2191
2491
  limit: 50,
2192
2492
  });
2193
2493
  ```
2494
+
2495
+ ## `Live`
2496
+
2497
+ ### Authorize a live connection
2498
+
2499
+ Issue a 30-second WebSocket ticket for one live connection that multiplexes resource subscriptions.
2500
+
2501
+ | Direction | Type |
2502
+ | --- | --- |
2503
+ | Response | [`LiveAuthorizeResponse`](./src/resources/live/live.ts) |
2504
+
2505
+ ```ts
2506
+ const live = await client.live.authorize();
2507
+ ```
2508
+
2509
+ ### Live resource subscriptions
2510
+
2511
+ Native WebSocket. Send `{ op: "subscribe", id, resource, input }`, `{ op: "unsubscribe", id }`, or `{ op: "ping" }`; receive `{ id, type: "ready" | "event" | "error" }` or `{ type: "pong" }`.
2512
+
2513
+ | Direction | Type |
2514
+ | --- | --- |
2515
+ | Request | [`LiveConnectParams`](./src/resources/live/live.ts) |
2516
+
2517
+ ```ts
2518
+ const connection = client.live.connect({
2519
+ ticket: 'ticket',
2520
+ });
2521
+
2522
+ try {
2523
+ for await (const message of connection) {
2524
+ console.log(message);
2525
+ }
2526
+ } finally {
2527
+ connection.close();
2528
+ }
2529
+ ```