@superblocksteam/sdk-api 0.0.6 → 0.0.7

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 (487) hide show
  1. package/README.md +351 -427
  2. package/dist/api/definition.d.ts +12 -7
  3. package/dist/api/definition.d.ts.map +1 -1
  4. package/dist/api/definition.js +19 -12
  5. package/dist/api/definition.js.map +1 -1
  6. package/dist/api/definition.test.js +39 -15
  7. package/dist/api/definition.test.js.map +1 -1
  8. package/dist/api/index.d.ts +0 -2
  9. package/dist/api/index.d.ts.map +1 -1
  10. package/dist/api/index.js +0 -2
  11. package/dist/api/index.js.map +1 -1
  12. package/dist/errors.d.ts +1 -45
  13. package/dist/errors.d.ts.map +1 -1
  14. package/dist/errors.js +1 -33
  15. package/dist/errors.js.map +1 -1
  16. package/dist/index.d.ts +16 -17
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +18 -15
  19. package/dist/index.js.map +1 -1
  20. package/dist/integrations/anthropic/types.d.ts +3 -22
  21. package/dist/integrations/anthropic/types.d.ts.map +1 -1
  22. package/dist/integrations/athena/client.d.ts +1 -1
  23. package/dist/integrations/athena/client.d.ts.map +1 -1
  24. package/dist/integrations/athena/client.js.map +1 -1
  25. package/dist/integrations/athena/types.d.ts +2 -2
  26. package/dist/integrations/athena/types.d.ts.map +1 -1
  27. package/dist/integrations/base/graphql-integration-client.d.ts +8 -4
  28. package/dist/integrations/base/graphql-integration-client.d.ts.map +1 -1
  29. package/dist/integrations/base/graphql-integration-client.js +18 -5
  30. package/dist/integrations/base/graphql-integration-client.js.map +1 -1
  31. package/dist/integrations/base/index.d.ts +3 -2
  32. package/dist/integrations/base/index.d.ts.map +1 -1
  33. package/dist/integrations/base/index.js +1 -0
  34. package/dist/integrations/base/index.js.map +1 -1
  35. package/dist/integrations/base/rest-api-client-base.d.ts +48 -0
  36. package/dist/integrations/base/rest-api-client-base.d.ts.map +1 -0
  37. package/dist/integrations/base/rest-api-client-base.js +98 -0
  38. package/dist/integrations/base/rest-api-client-base.js.map +1 -0
  39. package/dist/integrations/base/rest-api-integration-client.d.ts +11 -65
  40. package/dist/integrations/base/rest-api-integration-client.d.ts.map +1 -1
  41. package/dist/integrations/base/rest-api-integration-client.js +11 -174
  42. package/dist/integrations/base/rest-api-integration-client.js.map +1 -1
  43. package/dist/integrations/base/types.d.ts +1 -67
  44. package/dist/integrations/base/types.d.ts.map +1 -1
  45. package/dist/integrations/bigquery/client.d.ts +1 -1
  46. package/dist/integrations/bigquery/client.d.ts.map +1 -1
  47. package/dist/integrations/bigquery/client.js.map +1 -1
  48. package/dist/integrations/bigquery/types.d.ts +3 -3
  49. package/dist/integrations/bigquery/types.d.ts.map +1 -1
  50. package/dist/integrations/box/types.d.ts +1 -1
  51. package/dist/integrations/cockroachdb/client.d.ts +1 -1
  52. package/dist/integrations/cockroachdb/client.d.ts.map +1 -1
  53. package/dist/integrations/cockroachdb/client.js.map +1 -1
  54. package/dist/integrations/cockroachdb/types.d.ts.map +1 -1
  55. package/dist/integrations/cosmosdb/client.d.ts +1 -1
  56. package/dist/integrations/cosmosdb/client.d.ts.map +1 -1
  57. package/dist/integrations/cosmosdb/client.js.map +1 -1
  58. package/dist/integrations/cosmosdb/client.test.js.map +1 -1
  59. package/dist/integrations/cosmosdb/types.d.ts.map +1 -1
  60. package/dist/integrations/databricks/client.d.ts +1 -1
  61. package/dist/integrations/databricks/client.d.ts.map +1 -1
  62. package/dist/integrations/databricks/client.js.map +1 -1
  63. package/dist/integrations/databricks/types.d.ts +3 -3
  64. package/dist/integrations/databricks/types.d.ts.map +1 -1
  65. package/dist/integrations/declarations.d.ts +36 -104
  66. package/dist/integrations/declarations.d.ts.map +1 -1
  67. package/dist/integrations/declarations.js +5 -68
  68. package/dist/integrations/declarations.js.map +1 -1
  69. package/dist/integrations/declarations.test.js.map +1 -1
  70. package/dist/integrations/documentation-resolver.test.d.ts +2 -0
  71. package/dist/integrations/documentation-resolver.test.d.ts.map +1 -0
  72. package/dist/integrations/documentation-resolver.test.js +608 -0
  73. package/dist/integrations/documentation-resolver.test.js.map +1 -0
  74. package/dist/integrations/documentation.d.ts +8 -0
  75. package/dist/integrations/documentation.d.ts.map +1 -0
  76. package/dist/integrations/documentation.js +277 -0
  77. package/dist/integrations/documentation.js.map +1 -0
  78. package/dist/integrations/documentation.test.d.ts +2 -0
  79. package/dist/integrations/documentation.test.d.ts.map +1 -0
  80. package/dist/integrations/documentation.test.js +81 -0
  81. package/dist/integrations/documentation.test.js.map +1 -0
  82. package/dist/integrations/dynamodb/client.d.ts +1 -1
  83. package/dist/integrations/dynamodb/client.d.ts.map +1 -1
  84. package/dist/integrations/dynamodb/client.js.map +1 -1
  85. package/dist/integrations/dynamodb/types.d.ts.map +1 -1
  86. package/dist/integrations/gcs/client.d.ts +1 -1
  87. package/dist/integrations/gcs/client.d.ts.map +1 -1
  88. package/dist/integrations/gcs/client.js.map +1 -1
  89. package/dist/integrations/gcs/types.d.ts.map +1 -1
  90. package/dist/integrations/googledrive/types.d.ts +1 -1
  91. package/dist/integrations/graphql/client.test.d.ts +15 -0
  92. package/dist/integrations/graphql/client.test.d.ts.map +1 -0
  93. package/dist/integrations/graphql/client.test.js +148 -0
  94. package/dist/integrations/graphql/client.test.js.map +1 -0
  95. package/dist/integrations/graphql/types.d.ts +22 -3
  96. package/dist/integrations/graphql/types.d.ts.map +1 -1
  97. package/dist/integrations/gsheets/client.d.ts +1 -1
  98. package/dist/integrations/gsheets/client.d.ts.map +1 -1
  99. package/dist/integrations/gsheets/client.js.map +1 -1
  100. package/dist/integrations/gsheets/types.d.ts.map +1 -1
  101. package/dist/integrations/index.d.ts +2 -12
  102. package/dist/integrations/index.d.ts.map +1 -1
  103. package/dist/integrations/index.js +2 -8
  104. package/dist/integrations/index.js.map +1 -1
  105. package/dist/integrations/lakebase/client.d.ts +1 -1
  106. package/dist/integrations/lakebase/client.d.ts.map +1 -1
  107. package/dist/integrations/lakebase/client.js.map +1 -1
  108. package/dist/integrations/lakebase/types.d.ts +4 -4
  109. package/dist/integrations/lakebase/types.d.ts.map +1 -1
  110. package/dist/integrations/mariadb/client.d.ts +1 -1
  111. package/dist/integrations/mariadb/client.d.ts.map +1 -1
  112. package/dist/integrations/mariadb/client.js.map +1 -1
  113. package/dist/integrations/mariadb/types.d.ts +2 -2
  114. package/dist/integrations/mariadb/types.d.ts.map +1 -1
  115. package/dist/integrations/mongodb/client.d.ts +1 -1
  116. package/dist/integrations/mongodb/client.d.ts.map +1 -1
  117. package/dist/integrations/mongodb/client.js.map +1 -1
  118. package/dist/integrations/mongodb/types.d.ts.map +1 -1
  119. package/dist/integrations/mssql/client.d.ts +1 -1
  120. package/dist/integrations/mssql/client.d.ts.map +1 -1
  121. package/dist/integrations/mssql/client.js.map +1 -1
  122. package/dist/integrations/mssql/types.d.ts +2 -2
  123. package/dist/integrations/mssql/types.d.ts.map +1 -1
  124. package/dist/integrations/mysql/client.d.ts +1 -1
  125. package/dist/integrations/mysql/client.d.ts.map +1 -1
  126. package/dist/integrations/mysql/client.js.map +1 -1
  127. package/dist/integrations/mysql/types.d.ts +4 -4
  128. package/dist/integrations/mysql/types.d.ts.map +1 -1
  129. package/dist/integrations/openai_v2/types.d.ts +4 -22
  130. package/dist/integrations/openai_v2/types.d.ts.map +1 -1
  131. package/dist/integrations/oracledb/client.d.ts +1 -1
  132. package/dist/integrations/oracledb/client.d.ts.map +1 -1
  133. package/dist/integrations/oracledb/client.js.map +1 -1
  134. package/dist/integrations/oracledb/types.d.ts +2 -2
  135. package/dist/integrations/oracledb/types.d.ts.map +1 -1
  136. package/dist/integrations/postgres/client.d.ts +2 -2
  137. package/dist/integrations/postgres/client.d.ts.map +1 -1
  138. package/dist/integrations/postgres/client.js.map +1 -1
  139. package/dist/integrations/postgres/types.d.ts.map +1 -1
  140. package/dist/integrations/redshift/client.d.ts +1 -1
  141. package/dist/integrations/redshift/client.d.ts.map +1 -1
  142. package/dist/integrations/redshift/client.js.map +1 -1
  143. package/dist/integrations/redshift/types.d.ts.map +1 -1
  144. package/dist/integrations/registry.d.ts +6 -27
  145. package/dist/integrations/registry.d.ts.map +1 -1
  146. package/dist/integrations/registry.js +64 -88
  147. package/dist/integrations/registry.js.map +1 -1
  148. package/dist/integrations/registry.test.js +1 -3
  149. package/dist/integrations/registry.test.js.map +1 -1
  150. package/dist/integrations/restapiintegration/types.d.ts +2 -2
  151. package/dist/integrations/restapiintegration/types.d.ts.map +1 -1
  152. package/dist/integrations/s3/client.d.ts +1 -1
  153. package/dist/integrations/s3/client.d.ts.map +1 -1
  154. package/dist/integrations/s3/client.js.map +1 -1
  155. package/dist/integrations/s3/types.d.ts +3 -1
  156. package/dist/integrations/s3/types.d.ts.map +1 -1
  157. package/dist/integrations/salesforce/client.d.ts +1 -1
  158. package/dist/integrations/salesforce/client.d.ts.map +1 -1
  159. package/dist/integrations/salesforce/client.js.map +1 -1
  160. package/dist/integrations/salesforce/types.d.ts.map +1 -1
  161. package/dist/integrations/slack/client.d.ts +13 -9
  162. package/dist/integrations/slack/client.d.ts.map +1 -1
  163. package/dist/integrations/slack/client.js +60 -8
  164. package/dist/integrations/slack/client.js.map +1 -1
  165. package/dist/integrations/slack/client.test.d.ts +11 -0
  166. package/dist/integrations/slack/client.test.d.ts.map +1 -0
  167. package/dist/integrations/slack/client.test.js +368 -0
  168. package/dist/integrations/slack/client.test.js.map +1 -0
  169. package/dist/integrations/slack/index.d.ts +2 -1
  170. package/dist/integrations/slack/index.d.ts.map +1 -1
  171. package/dist/integrations/slack/index.js +1 -0
  172. package/dist/integrations/slack/index.js.map +1 -1
  173. package/dist/integrations/slack/types.d.ts +127 -28
  174. package/dist/integrations/slack/types.d.ts.map +1 -1
  175. package/dist/integrations/slack/types.js +27 -1
  176. package/dist/integrations/slack/types.js.map +1 -1
  177. package/dist/integrations/smtp/client.d.ts +1 -1
  178. package/dist/integrations/smtp/client.d.ts.map +1 -1
  179. package/dist/integrations/smtp/client.js.map +1 -1
  180. package/dist/integrations/snowflake/client.d.ts +3 -3
  181. package/dist/integrations/snowflake/client.d.ts.map +1 -1
  182. package/dist/integrations/snowflake/client.js +2 -2
  183. package/dist/integrations/snowflake/client.js.map +1 -1
  184. package/dist/integrations/snowflake/types.d.ts.map +1 -1
  185. package/dist/integrations/snowflakecortex/client.d.ts +1 -2
  186. package/dist/integrations/snowflakecortex/client.d.ts.map +1 -1
  187. package/dist/integrations/snowflakecortex/client.js +1 -2
  188. package/dist/integrations/snowflakecortex/client.js.map +1 -1
  189. package/dist/integrations/snowflakecortex/types.d.ts +3 -4
  190. package/dist/integrations/snowflakecortex/types.d.ts.map +1 -1
  191. package/dist/integrations/snowflakepostgres/client.d.ts +1 -1
  192. package/dist/integrations/snowflakepostgres/client.d.ts.map +1 -1
  193. package/dist/integrations/snowflakepostgres/client.js.map +1 -1
  194. package/dist/integrations/snowflakepostgres/types.d.ts.map +1 -1
  195. package/dist/runtime/context.d.ts +3 -3
  196. package/dist/runtime/context.d.ts.map +1 -1
  197. package/dist/runtime/context.js.map +1 -1
  198. package/dist/runtime/executor.d.ts +2 -2
  199. package/dist/runtime/index.d.ts +0 -3
  200. package/dist/runtime/index.d.ts.map +1 -1
  201. package/dist/runtime/index.js +1 -6
  202. package/dist/runtime/index.js.map +1 -1
  203. package/dist/types.d.ts +15 -6
  204. package/dist/types.d.ts.map +1 -1
  205. package/package.json +2 -2
  206. package/src/api/definition.test.ts +41 -15
  207. package/src/api/definition.ts +20 -13
  208. package/src/api/index.ts +0 -4
  209. package/src/errors.ts +1 -49
  210. package/src/index.ts +20 -61
  211. package/src/integrations/airtable/docs.manifest.json +5 -0
  212. package/src/integrations/anthropic/README.md +5 -101
  213. package/src/integrations/anthropic/docs.manifest.json +5 -0
  214. package/src/integrations/anthropic/types.ts +3 -29
  215. package/src/integrations/asana/README.md +12 -12
  216. package/src/integrations/asana/docs.manifest.json +5 -0
  217. package/src/integrations/athena/README.md +4 -4
  218. package/src/integrations/athena/client.ts +5 -3
  219. package/src/integrations/athena/docs.manifest.json +5 -0
  220. package/src/integrations/athena/types.ts +3 -2
  221. package/src/integrations/base/graphql-integration-client.ts +27 -5
  222. package/src/integrations/base/index.ts +2 -3
  223. package/src/integrations/base/rest-api-client-base.ts +134 -0
  224. package/src/integrations/base/rest-api-integration-client.ts +15 -239
  225. package/src/integrations/base/types.ts +4 -74
  226. package/src/integrations/bigquery/README.md +28 -3
  227. package/src/integrations/bigquery/client.ts +5 -3
  228. package/src/integrations/bigquery/docs.manifest.json +5 -0
  229. package/src/integrations/bigquery/types.ts +4 -3
  230. package/src/integrations/bitbucket/README.md +19 -19
  231. package/src/integrations/bitbucket/docs.manifest.json +5 -0
  232. package/src/integrations/box/README.md +24 -24
  233. package/src/integrations/box/docs.manifest.json +5 -0
  234. package/src/integrations/box/types.ts +1 -1
  235. package/src/integrations/circleci/README.md +18 -18
  236. package/src/integrations/circleci/docs.manifest.json +5 -0
  237. package/src/integrations/cockroachdb/client.ts +5 -3
  238. package/src/integrations/cockroachdb/docs.manifest.json +5 -0
  239. package/src/integrations/cockroachdb/types.ts +1 -0
  240. package/src/integrations/cohere/README.md +11 -11
  241. package/src/integrations/cohere/docs.manifest.json +5 -0
  242. package/src/integrations/confluence/docs.manifest.json +5 -0
  243. package/src/integrations/cosmosdb/client.test.ts +2 -1
  244. package/src/integrations/cosmosdb/client.ts +5 -3
  245. package/src/integrations/cosmosdb/docs.manifest.json +5 -0
  246. package/src/integrations/cosmosdb/types.ts +1 -0
  247. package/src/integrations/databricks/README.md +29 -4
  248. package/src/integrations/databricks/client.ts +5 -3
  249. package/src/integrations/databricks/docs.manifest.json +5 -0
  250. package/src/integrations/databricks/types.ts +4 -3
  251. package/src/integrations/datadog/docs.manifest.json +5 -0
  252. package/src/integrations/declarations.test.ts +1 -0
  253. package/src/integrations/declarations.ts +36 -136
  254. package/src/integrations/documentation-resolver.test.ts +704 -0
  255. package/src/integrations/documentation.test.ts +120 -0
  256. package/src/integrations/documentation.ts +421 -0
  257. package/src/integrations/dropbox/docs.manifest.json +5 -0
  258. package/src/integrations/dynamodb/client.ts +3 -2
  259. package/src/integrations/dynamodb/docs.manifest.json +5 -0
  260. package/src/integrations/dynamodb/types.ts +1 -0
  261. package/src/integrations/elasticsearch/docs.manifest.json +5 -0
  262. package/src/integrations/fireworks/README.md +43 -17
  263. package/src/integrations/fireworks/docs.manifest.json +5 -0
  264. package/src/integrations/front/docs.manifest.json +5 -0
  265. package/src/integrations/gcs/client.ts +5 -3
  266. package/src/integrations/gcs/docs.manifest.json +5 -0
  267. package/src/integrations/gcs/types.ts +1 -0
  268. package/src/integrations/gemini/docs.manifest.json +5 -0
  269. package/src/integrations/github/docs.manifest.json +5 -0
  270. package/src/integrations/googleanalytics/README.md +2 -2
  271. package/src/integrations/googleanalytics/docs.manifest.json +5 -0
  272. package/src/integrations/googledrive/README.md +27 -24
  273. package/src/integrations/googledrive/docs.manifest.json +5 -0
  274. package/src/integrations/googledrive/types.ts +1 -1
  275. package/src/integrations/graphql/README.md +2 -2
  276. package/src/integrations/graphql/client.test.ts +220 -0
  277. package/src/integrations/graphql/docs.manifest.json +5 -0
  278. package/src/integrations/graphql/types.ts +23 -1
  279. package/src/integrations/groq/README.md +49 -42
  280. package/src/integrations/groq/docs.manifest.json +5 -0
  281. package/src/integrations/gsheets/README.md +2 -2
  282. package/src/integrations/gsheets/client.ts +5 -3
  283. package/src/integrations/gsheets/docs.manifest.json +5 -0
  284. package/src/integrations/gsheets/types.ts +1 -0
  285. package/src/integrations/hubspot/docs.manifest.json +5 -0
  286. package/src/integrations/index.ts +1 -52
  287. package/src/integrations/intercom/docs.manifest.json +5 -0
  288. package/src/integrations/jira/docs.manifest.json +5 -0
  289. package/src/integrations/lakebase/README.md +242 -0
  290. package/src/integrations/lakebase/client.ts +6 -4
  291. package/src/integrations/lakebase/docs.manifest.json +5 -0
  292. package/src/integrations/lakebase/types.ts +5 -4
  293. package/src/integrations/launchdarkly/README.md +2 -2
  294. package/src/integrations/launchdarkly/docs.manifest.json +5 -0
  295. package/src/integrations/mariadb/README.md +3 -3
  296. package/src/integrations/mariadb/client.ts +5 -3
  297. package/src/integrations/mariadb/docs.manifest.json +5 -0
  298. package/src/integrations/mariadb/types.ts +3 -2
  299. package/src/integrations/mistral/README.md +39 -13
  300. package/src/integrations/mistral/docs.manifest.json +5 -0
  301. package/src/integrations/mongodb/README.md +65 -12
  302. package/src/integrations/mongodb/client.ts +5 -3
  303. package/src/integrations/mongodb/docs.manifest.json +5 -0
  304. package/src/integrations/mongodb/types.ts +1 -0
  305. package/src/integrations/mssql/README.md +3 -3
  306. package/src/integrations/mssql/client.ts +5 -3
  307. package/src/integrations/mssql/docs.manifest.json +5 -0
  308. package/src/integrations/mssql/types.ts +3 -2
  309. package/src/integrations/mysql/README.md +4 -4
  310. package/src/integrations/mysql/client.ts +5 -3
  311. package/src/integrations/mysql/docs.manifest.json +5 -0
  312. package/src/integrations/mysql/types.ts +5 -4
  313. package/src/integrations/notion/docs.manifest.json +5 -0
  314. package/src/integrations/openai_v2/README.md +44 -116
  315. package/src/integrations/openai_v2/docs.manifest.json +5 -0
  316. package/src/integrations/openai_v2/types.ts +4 -29
  317. package/src/integrations/oracledb/README.md +3 -3
  318. package/src/integrations/oracledb/client.ts +5 -3
  319. package/src/integrations/oracledb/docs.manifest.json +5 -0
  320. package/src/integrations/oracledb/types.ts +3 -2
  321. package/src/integrations/pagerduty/README.md +2 -2
  322. package/src/integrations/pagerduty/docs.manifest.json +5 -0
  323. package/src/integrations/perplexity/README.md +39 -47
  324. package/src/integrations/perplexity/docs.manifest.json +5 -0
  325. package/src/integrations/postgres/client.ts +6 -4
  326. package/src/integrations/postgres/docs.manifest.json +5 -0
  327. package/src/integrations/postgres/types.ts +1 -0
  328. package/src/integrations/redshift/client.ts +5 -3
  329. package/src/integrations/redshift/docs.manifest.json +5 -0
  330. package/src/integrations/redshift/types.ts +1 -0
  331. package/src/integrations/registry.test.ts +2 -3
  332. package/src/integrations/registry.ts +69 -188
  333. package/src/integrations/restapiintegration/README.md +320 -0
  334. package/src/integrations/restapiintegration/docs.manifest.json +5 -0
  335. package/src/integrations/restapiintegration/types.ts +2 -8
  336. package/src/integrations/s3/client.ts +5 -3
  337. package/src/integrations/s3/docs.manifest.json +5 -0
  338. package/src/integrations/s3/types.ts +4 -1
  339. package/src/integrations/salesforce/README.md +11 -9
  340. package/src/integrations/salesforce/client.ts +3 -2
  341. package/src/integrations/salesforce/docs.manifest.json +5 -0
  342. package/src/integrations/salesforce/types.ts +1 -0
  343. package/src/integrations/segment/docs.manifest.json +5 -0
  344. package/src/integrations/sendgrid/README.md +2 -2
  345. package/src/integrations/sendgrid/docs.manifest.json +5 -0
  346. package/src/integrations/slack/README.md +62 -19
  347. package/src/integrations/slack/client.test.ts +553 -0
  348. package/src/integrations/slack/client.ts +92 -12
  349. package/src/integrations/slack/docs.manifest.json +5 -0
  350. package/src/integrations/slack/index.ts +6 -1
  351. package/src/integrations/slack/types.ts +142 -29
  352. package/src/integrations/smtp/README.md +220 -0
  353. package/src/integrations/smtp/client.ts +4 -2
  354. package/src/integrations/smtp/docs.manifest.json +5 -0
  355. package/src/integrations/snowflake/client.ts +7 -5
  356. package/src/integrations/snowflake/docs.manifest.json +5 -0
  357. package/src/integrations/snowflake/types.ts +1 -0
  358. package/src/integrations/snowflakecortex/README.md +167 -0
  359. package/src/integrations/snowflakecortex/client.ts +2 -3
  360. package/src/integrations/snowflakecortex/docs.manifest.json +5 -0
  361. package/src/integrations/snowflakecortex/types.ts +3 -11
  362. package/src/integrations/snowflakepostgres/README.md +233 -0
  363. package/src/integrations/snowflakepostgres/client.ts +1 -1
  364. package/src/integrations/snowflakepostgres/docs.manifest.json +5 -0
  365. package/src/integrations/snowflakepostgres/types.ts +1 -0
  366. package/src/integrations/stabilityai/README.md +2 -2
  367. package/src/integrations/stabilityai/docs.manifest.json +5 -0
  368. package/src/integrations/stripe/docs.manifest.json +5 -0
  369. package/src/integrations/superblocks-ocr/docs.manifest.json +5 -0
  370. package/src/integrations/twilio/docs.manifest.json +5 -0
  371. package/src/integrations/zendesk/docs.manifest.json +5 -0
  372. package/src/integrations/zoom/README.md +15 -15
  373. package/src/integrations/zoom/docs.manifest.json +5 -0
  374. package/src/runtime/context.ts +11 -11
  375. package/src/runtime/executor.ts +2 -2
  376. package/src/runtime/index.ts +1 -23
  377. package/src/types.ts +16 -6
  378. package/dist/api/streaming.d.ts +0 -229
  379. package/dist/api/streaming.d.ts.map +0 -1
  380. package/dist/api/streaming.js +0 -107
  381. package/dist/api/streaming.js.map +0 -1
  382. package/dist/api/streaming.test.d.ts +0 -5
  383. package/dist/api/streaming.test.d.ts.map +0 -1
  384. package/dist/api/streaming.test.js +0 -364
  385. package/dist/api/streaming.test.js.map +0 -1
  386. package/dist/integrations/couchbase/client.d.ts +0 -36
  387. package/dist/integrations/couchbase/client.d.ts.map +0 -1
  388. package/dist/integrations/couchbase/client.js +0 -148
  389. package/dist/integrations/couchbase/client.js.map +0 -1
  390. package/dist/integrations/couchbase/index.d.ts +0 -8
  391. package/dist/integrations/couchbase/index.d.ts.map +0 -1
  392. package/dist/integrations/couchbase/index.js +0 -7
  393. package/dist/integrations/couchbase/index.js.map +0 -1
  394. package/dist/integrations/couchbase/types.d.ts +0 -100
  395. package/dist/integrations/couchbase/types.d.ts.map +0 -1
  396. package/dist/integrations/couchbase/types.js +0 -5
  397. package/dist/integrations/couchbase/types.js.map +0 -1
  398. package/dist/integrations/kafka/client.d.ts +0 -25
  399. package/dist/integrations/kafka/client.d.ts.map +0 -1
  400. package/dist/integrations/kafka/client.js +0 -124
  401. package/dist/integrations/kafka/client.js.map +0 -1
  402. package/dist/integrations/kafka/index.d.ts +0 -8
  403. package/dist/integrations/kafka/index.d.ts.map +0 -1
  404. package/dist/integrations/kafka/index.js +0 -7
  405. package/dist/integrations/kafka/index.js.map +0 -1
  406. package/dist/integrations/kafka/types.d.ts +0 -113
  407. package/dist/integrations/kafka/types.d.ts.map +0 -1
  408. package/dist/integrations/kafka/types.js +0 -5
  409. package/dist/integrations/kafka/types.js.map +0 -1
  410. package/dist/integrations/kinesis/client.d.ts +0 -31
  411. package/dist/integrations/kinesis/client.d.ts.map +0 -1
  412. package/dist/integrations/kinesis/client.js +0 -101
  413. package/dist/integrations/kinesis/client.js.map +0 -1
  414. package/dist/integrations/kinesis/index.d.ts +0 -8
  415. package/dist/integrations/kinesis/index.d.ts.map +0 -1
  416. package/dist/integrations/kinesis/index.js +0 -7
  417. package/dist/integrations/kinesis/index.js.map +0 -1
  418. package/dist/integrations/kinesis/types.d.ts +0 -97
  419. package/dist/integrations/kinesis/types.d.ts.map +0 -1
  420. package/dist/integrations/kinesis/types.js +0 -7
  421. package/dist/integrations/kinesis/types.js.map +0 -1
  422. package/dist/integrations/python/client.d.ts +0 -42
  423. package/dist/integrations/python/client.d.ts.map +0 -1
  424. package/dist/integrations/python/client.js +0 -89
  425. package/dist/integrations/python/client.js.map +0 -1
  426. package/dist/integrations/python/client.test.d.ts +0 -5
  427. package/dist/integrations/python/client.test.d.ts.map +0 -1
  428. package/dist/integrations/python/client.test.js +0 -214
  429. package/dist/integrations/python/client.test.js.map +0 -1
  430. package/dist/integrations/python/index.d.ts +0 -6
  431. package/dist/integrations/python/index.d.ts.map +0 -1
  432. package/dist/integrations/python/index.js +0 -5
  433. package/dist/integrations/python/index.js.map +0 -1
  434. package/dist/integrations/python/types.d.ts +0 -85
  435. package/dist/integrations/python/types.d.ts.map +0 -1
  436. package/dist/integrations/python/types.js +0 -5
  437. package/dist/integrations/python/types.js.map +0 -1
  438. package/dist/integrations/redis/client.d.ts +0 -43
  439. package/dist/integrations/redis/client.d.ts.map +0 -1
  440. package/dist/integrations/redis/client.js +0 -142
  441. package/dist/integrations/redis/client.js.map +0 -1
  442. package/dist/integrations/redis/index.d.ts +0 -8
  443. package/dist/integrations/redis/index.d.ts.map +0 -1
  444. package/dist/integrations/redis/index.js +0 -7
  445. package/dist/integrations/redis/index.js.map +0 -1
  446. package/dist/integrations/redis/types.d.ts +0 -137
  447. package/dist/integrations/redis/types.d.ts.map +0 -1
  448. package/dist/integrations/redis/types.js +0 -5
  449. package/dist/integrations/redis/types.js.map +0 -1
  450. package/dist/runtime/execute.d.ts +0 -128
  451. package/dist/runtime/execute.d.ts.map +0 -1
  452. package/dist/runtime/execute.js +0 -84
  453. package/dist/runtime/execute.js.map +0 -1
  454. package/dist/runtime/streaming-context.d.ts +0 -49
  455. package/dist/runtime/streaming-context.d.ts.map +0 -1
  456. package/dist/runtime/streaming-context.js +0 -71
  457. package/dist/runtime/streaming-context.js.map +0 -1
  458. package/dist/runtime/streaming-executor.d.ts +0 -159
  459. package/dist/runtime/streaming-executor.d.ts.map +0 -1
  460. package/dist/runtime/streaming-executor.js +0 -229
  461. package/dist/runtime/streaming-executor.js.map +0 -1
  462. package/src/api/streaming.test.ts +0 -432
  463. package/src/api/streaming.ts +0 -302
  464. package/src/integrations/couchbase/README.md +0 -138
  465. package/src/integrations/couchbase/client.ts +0 -224
  466. package/src/integrations/couchbase/index.ts +0 -8
  467. package/src/integrations/couchbase/types.ts +0 -125
  468. package/src/integrations/kafka/README.md +0 -144
  469. package/src/integrations/kafka/client.ts +0 -215
  470. package/src/integrations/kafka/index.ts +0 -14
  471. package/src/integrations/kafka/types.ts +0 -127
  472. package/src/integrations/kinesis/README.md +0 -153
  473. package/src/integrations/kinesis/client.ts +0 -146
  474. package/src/integrations/kinesis/index.ts +0 -14
  475. package/src/integrations/kinesis/types.ts +0 -114
  476. package/src/integrations/python/README.md +0 -566
  477. package/src/integrations/python/client.test.ts +0 -340
  478. package/src/integrations/python/client.ts +0 -134
  479. package/src/integrations/python/index.ts +0 -6
  480. package/src/integrations/python/types.ts +0 -91
  481. package/src/integrations/redis/README.md +0 -200
  482. package/src/integrations/redis/client.ts +0 -207
  483. package/src/integrations/redis/index.ts +0 -8
  484. package/src/integrations/redis/types.ts +0 -166
  485. package/src/runtime/execute.ts +0 -221
  486. package/src/runtime/streaming-context.ts +0 -164
  487. package/src/runtime/streaming-executor.ts +0 -367
@@ -0,0 +1,220 @@
1
+ /**
2
+ * Tests for GraphQLClientImpl.
3
+ *
4
+ * Validates:
5
+ * - The proto request built by query()/mutation() matches the
6
+ * graphql.v1.Plugin shape expected by the orchestrator.
7
+ * - Optional per-request headers are forwarded as the proto's repeated
8
+ * `headers` field (key/value Property entries) so dynamic values like
9
+ * Authorization tokens can be sent from API code.
10
+ * - Variables are serialized into the proto `custom.variables` Property.
11
+ * - Trace metadata is passed through to the executeQuery callback.
12
+ * - Response Zod validation throws RestApiValidationError on mismatch.
13
+ */
14
+
15
+ import { describe, it, expect, vi } from "vitest";
16
+ import { z } from "zod";
17
+
18
+ import { RestApiValidationError } from "../../errors.js";
19
+ import type { IntegrationConfig } from "../types.js";
20
+ import { GraphQLClientImpl } from "./client.js";
21
+
22
+ const TEST_CONFIG: IntegrationConfig = {
23
+ id: "graphql-test-id",
24
+ name: "Test GraphQL",
25
+ pluginId: "graphqlintegration",
26
+ configuration: {},
27
+ };
28
+
29
+ function createClient(mockResult: unknown) {
30
+ const executeQuery = vi.fn().mockResolvedValue(mockResult);
31
+ const client = new GraphQLClientImpl(TEST_CONFIG, executeQuery);
32
+ return { client, executeQuery };
33
+ }
34
+
35
+ const UserResponseSchema = z.object({
36
+ data: z.object({
37
+ user: z.object({
38
+ id: z.string(),
39
+ name: z.string(),
40
+ }),
41
+ }),
42
+ });
43
+
44
+ const SAMPLE_QUERY = `query GetUser($id: ID!) {
45
+ user(id: $id) { id name }
46
+ }`;
47
+
48
+ const SAMPLE_MUTATION = `mutation CreateUser($name: String!) {
49
+ createUser(name: $name) { id name }
50
+ }`;
51
+
52
+ describe("GraphQLClientImpl", () => {
53
+ describe("query()", () => {
54
+ it("returns validated data on a successful response", async () => {
55
+ const { client } = createClient({
56
+ data: { user: { id: "u1", name: "Alice" } },
57
+ });
58
+
59
+ const result = await client.query(
60
+ SAMPLE_QUERY,
61
+ { response: UserResponseSchema },
62
+ { id: "u1" },
63
+ );
64
+
65
+ expect(result.data.user).toEqual({ id: "u1", name: "Alice" });
66
+ });
67
+
68
+ it("builds the proto request with body, variables, and defaults", async () => {
69
+ const { client, executeQuery } = createClient({
70
+ data: { user: { id: "u1", name: "Alice" } },
71
+ });
72
+
73
+ await client.query(
74
+ SAMPLE_QUERY,
75
+ { response: UserResponseSchema },
76
+ { id: "u1" },
77
+ );
78
+
79
+ expect(executeQuery).toHaveBeenCalledOnce();
80
+ const request = executeQuery.mock.calls[0][0];
81
+ expect(request.body).toBe(SAMPLE_QUERY);
82
+ expect(request.verboseHttpOutput).toBe(false);
83
+ expect(request.failOnGraphqlErrors).toBe(true);
84
+ expect(request.custom).toEqual({
85
+ variables: {
86
+ key: "variables",
87
+ value: JSON.stringify({ id: "u1" }),
88
+ },
89
+ });
90
+ expect(request.headers).toBeUndefined();
91
+ });
92
+
93
+ it("omits custom when no variables are provided", async () => {
94
+ const { client, executeQuery } = createClient({
95
+ data: { user: { id: "u1", name: "Alice" } },
96
+ });
97
+
98
+ await client.query(SAMPLE_QUERY, { response: UserResponseSchema });
99
+
100
+ const request = executeQuery.mock.calls[0][0];
101
+ expect(request.custom).toBeUndefined();
102
+ });
103
+
104
+ it("forwards per-request headers into the proto headers field", async () => {
105
+ const { client, executeQuery } = createClient({
106
+ data: { user: { id: "u1", name: "Alice" } },
107
+ });
108
+
109
+ await client.query(
110
+ SAMPLE_QUERY,
111
+ { response: UserResponseSchema },
112
+ { id: "u1" },
113
+ undefined,
114
+ {
115
+ Authorization: "Bearer abc123",
116
+ "X-Trace-Id": "trace-1",
117
+ },
118
+ );
119
+
120
+ const request = executeQuery.mock.calls[0][0];
121
+ expect(request.headers).toEqual([
122
+ { key: "Authorization", value: "Bearer abc123" },
123
+ { key: "X-Trace-Id", value: "trace-1" },
124
+ ]);
125
+ });
126
+
127
+ it("does not set headers when an empty headers object is passed", async () => {
128
+ const { client, executeQuery } = createClient({
129
+ data: { user: { id: "u1", name: "Alice" } },
130
+ });
131
+
132
+ await client.query(
133
+ SAMPLE_QUERY,
134
+ { response: UserResponseSchema },
135
+ undefined,
136
+ undefined,
137
+ {},
138
+ );
139
+
140
+ const request = executeQuery.mock.calls[0][0];
141
+ expect(request.headers).toBeUndefined();
142
+ });
143
+
144
+ it("passes trace metadata through to executeQuery", async () => {
145
+ const { client, executeQuery } = createClient({
146
+ data: { user: { id: "u1", name: "Alice" } },
147
+ });
148
+
149
+ await client.query(
150
+ SAMPLE_QUERY,
151
+ { response: UserResponseSchema },
152
+ undefined,
153
+ { label: "graphql.getUser", description: "Fetch a user by id" },
154
+ );
155
+
156
+ expect(executeQuery).toHaveBeenCalledWith(expect.any(Object), undefined, {
157
+ label: "graphql.getUser",
158
+ description: "Fetch a user by id",
159
+ });
160
+ });
161
+
162
+ it("throws RestApiValidationError when the response fails schema validation", async () => {
163
+ const { client } = createClient({
164
+ data: { user: { id: "u1" /* missing name */ } },
165
+ });
166
+
167
+ await expect(
168
+ client.query(SAMPLE_QUERY, { response: UserResponseSchema }),
169
+ ).rejects.toThrow(RestApiValidationError);
170
+ });
171
+ });
172
+
173
+ describe("mutation()", () => {
174
+ it("returns validated data on a successful response", async () => {
175
+ const { client } = createClient({
176
+ data: { createUser: { id: "u2", name: "Bob" } },
177
+ });
178
+
179
+ const Schema = z.object({
180
+ data: z.object({
181
+ createUser: z.object({ id: z.string(), name: z.string() }),
182
+ }),
183
+ });
184
+
185
+ const result = await client.mutation(
186
+ SAMPLE_MUTATION,
187
+ { response: Schema },
188
+ { name: "Bob" },
189
+ );
190
+
191
+ expect(result.data.createUser).toEqual({ id: "u2", name: "Bob" });
192
+ });
193
+
194
+ it("forwards per-request headers into the proto headers field", async () => {
195
+ const { client, executeQuery } = createClient({
196
+ data: { createUser: { id: "u2", name: "Bob" } },
197
+ });
198
+
199
+ const Schema = z.object({
200
+ data: z.object({
201
+ createUser: z.object({ id: z.string(), name: z.string() }),
202
+ }),
203
+ });
204
+
205
+ await client.mutation(
206
+ SAMPLE_MUTATION,
207
+ { response: Schema },
208
+ { name: "Bob" },
209
+ undefined,
210
+ { Authorization: "Bearer xyz" },
211
+ );
212
+
213
+ const request = executeQuery.mock.calls[0][0];
214
+ expect(request.body).toBe(SAMPLE_MUTATION);
215
+ expect(request.headers).toEqual([
216
+ { key: "Authorization", value: "Bearer xyz" },
217
+ ]);
218
+ });
219
+ });
220
+ });
@@ -0,0 +1,5 @@
1
+ {
2
+ "pluginId": "graphql",
3
+ "base": "README.md",
4
+ "overlays": []
5
+ }
@@ -2,9 +2,10 @@
2
2
  * GraphQL client types.
3
3
  */
4
4
 
5
+ import type { z } from "zod";
6
+
5
7
  import type { BaseIntegrationClient } from "../../types.js";
6
8
  import type { TraceMetadata } from "../registry.js";
7
- import type { z } from "zod";
8
9
 
9
10
  /**
10
11
  * GraphQL client for executing queries and mutations.
@@ -61,6 +62,17 @@ import type { z } from "zod";
61
62
  * { response: MutationResponseSchema },
62
63
  * { name: 'John Doe' }
63
64
  * );
65
+ *
66
+ * // Send per-request headers (e.g. a dynamic Authorization token).
67
+ * // Static headers and auth configured on the integration apply automatically;
68
+ * // use this parameter only for values that vary per request.
69
+ * await graphql.query(
70
+ * `query { me { id } }`,
71
+ * { response: z.object({ data: z.object({ me: z.object({ id: z.string() }) }) }) },
72
+ * undefined,
73
+ * undefined,
74
+ * { Authorization: `Bearer ${token}` },
75
+ * );
64
76
  * ```
65
77
  */
66
78
  export interface GraphQLClient extends BaseIntegrationClient {
@@ -73,6 +85,10 @@ export interface GraphQLClient extends BaseIntegrationClient {
73
85
  * `metadata` accept plain objects, pass `undefined` for variables when you only need metadata:
74
86
  * `query(q, schema, undefined, { label: "..." })`
75
87
  * @param metadata - Optional trace metadata for observability
88
+ * @param headers - Optional HTTP headers to include on this request. Static
89
+ * headers and auth configured on the integration apply automatically; use
90
+ * this parameter only for values that vary per request (e.g. a bearer token
91
+ * derived from the API's input).
76
92
  * @returns Validated query result
77
93
  *
78
94
  * @example
@@ -94,6 +110,7 @@ export interface GraphQLClient extends BaseIntegrationClient {
94
110
  schema: { response: z.ZodSchema<TResponse> },
95
111
  variables?: Record<string, unknown>,
96
112
  metadata?: TraceMetadata,
113
+ headers?: Record<string, string>,
97
114
  ): Promise<TResponse>;
98
115
 
99
116
  /**
@@ -105,6 +122,10 @@ export interface GraphQLClient extends BaseIntegrationClient {
105
122
  * `metadata` accept plain objects, pass `undefined` for variables when you only need metadata:
106
123
  * `mutation(m, schema, undefined, { label: "..." })`
107
124
  * @param metadata - Optional trace metadata for observability
125
+ * @param headers - Optional HTTP headers to include on this request. Static
126
+ * headers and auth configured on the integration apply automatically; use
127
+ * this parameter only for values that vary per request (e.g. a bearer token
128
+ * derived from the API's input).
108
129
  * @returns Validated mutation result
109
130
  *
110
131
  * @example
@@ -127,5 +148,6 @@ export interface GraphQLClient extends BaseIntegrationClient {
127
148
  schema: { response: z.ZodSchema<TResponse> },
128
149
  variables?: Record<string, unknown>,
129
150
  metadata?: TraceMetadata,
151
+ headers?: Record<string, string>,
130
152
  ): Promise<TResponse>;
131
153
  }
@@ -10,7 +10,9 @@ Interact with Groq's ultra-fast inference API for LLM chat completions with low
10
10
 
11
11
  ## Usage
12
12
 
13
- ### Chat Completion
13
+ ### Step 1: List Available Models
14
+
15
+ Model availability varies by account and changes over time. Before making requests, validate which models are available:
14
16
 
15
17
  ```typescript
16
18
  import { api, z, groq } from "@superblocksteam/sdk-api";
@@ -18,6 +20,30 @@ import { api, z, groq } from "@superblocksteam/sdk-api";
18
20
  // Integration ID from the integrations panel
19
21
  const PROD_GROQ = "a1b2c3d4-5678-90ab-cdef-groq00000001";
20
22
 
23
+ const ModelsResponseSchema = z.object({
24
+ data: z.array(
25
+ z.object({
26
+ id: z.string(),
27
+ object: z.string(),
28
+ }),
29
+ ),
30
+ });
31
+
32
+ const models = await ctx.integrations.groq.apiRequest(
33
+ {
34
+ method: "GET",
35
+ path: "/v1/models",
36
+ },
37
+ { response: ModelsResponseSchema },
38
+ );
39
+
40
+ // Use a model ID from the response in subsequent requests
41
+ const availableModelId = models.data[0]?.id;
42
+ ```
43
+
44
+ ### Chat Completion
45
+
46
+ ```typescript
21
47
  const ChatCompletionResponseSchema = z.object({
22
48
  id: z.string(),
23
49
  object: z.literal("chat.completion"),
@@ -59,9 +85,9 @@ export default api({
59
85
  const result = await ctx.integrations.groq.apiRequest(
60
86
  {
61
87
  method: "POST",
62
- path: "/openai/v1/chat/completions",
88
+ path: "/v1/chat/completions",
63
89
  body: {
64
- model: "llama-3.1-70b-versatile",
90
+ model: "llama-3.3-70b-versatile",
65
91
  messages: [
66
92
  { role: "system", content: "You are a helpful assistant." },
67
93
  { role: "user", content: prompt },
@@ -79,13 +105,13 @@ export default api({
79
105
  ### Using Different Models
80
106
 
81
107
  ```typescript
82
- // Llama 3.1 70B - Best balance of speed and quality
108
+ // Llama 3.3 70B - Best balance of speed and quality
83
109
  const llama70b = await ctx.integrations.groq.apiRequest(
84
110
  {
85
111
  method: "POST",
86
- path: "/openai/v1/chat/completions",
112
+ path: "/v1/chat/completions",
87
113
  body: {
88
- model: "llama-3.1-70b-versatile",
114
+ model: "llama-3.3-70b-versatile",
89
115
  messages: [{ role: "user", content: "Hello" }],
90
116
  },
91
117
  },
@@ -96,7 +122,7 @@ const llama70b = await ctx.integrations.groq.apiRequest(
96
122
  const llama8b = await ctx.integrations.groq.apiRequest(
97
123
  {
98
124
  method: "POST",
99
- path: "/openai/v1/chat/completions",
125
+ path: "/v1/chat/completions",
100
126
  body: {
101
127
  model: "llama-3.1-8b-instant",
102
128
  messages: [{ role: "user", content: "Hello" }],
@@ -105,13 +131,13 @@ const llama8b = await ctx.integrations.groq.apiRequest(
105
131
  { response: ChatCompletionResponseSchema },
106
132
  );
107
133
 
108
- // Mixtral 8x7B - Good for code and reasoning
109
- const mixtral = await ctx.integrations.groq.apiRequest(
134
+ // GPT-OSS 120B - Good for code and reasoning
135
+ const gptOss = await ctx.integrations.groq.apiRequest(
110
136
  {
111
137
  method: "POST",
112
- path: "/openai/v1/chat/completions",
138
+ path: "/v1/chat/completions",
113
139
  body: {
114
- model: "mixtral-8x7b-32768",
140
+ model: "openai/gpt-oss-120b",
115
141
  messages: [{ role: "user", content: "Hello" }],
116
142
  },
117
143
  },
@@ -150,9 +176,9 @@ const ToolCallResponseSchema = z.object({
150
176
  const result = await ctx.integrations.groq.apiRequest(
151
177
  {
152
178
  method: "POST",
153
- path: "/openai/v1/chat/completions",
179
+ path: "/v1/chat/completions",
154
180
  body: {
155
- model: "llama-3.1-70b-versatile",
181
+ model: "llama-3.3-70b-versatile",
156
182
  messages: [{ role: "user", content: "What's the weather in Tokyo?" }],
157
183
  tools: [
158
184
  {
@@ -200,9 +226,9 @@ const JSONResponseSchema = z.object({
200
226
  const result = await ctx.integrations.groq.apiRequest(
201
227
  {
202
228
  method: "POST",
203
- path: "/openai/v1/chat/completions",
229
+ path: "/v1/chat/completions",
204
230
  body: {
205
- model: "llama-3.1-70b-versatile",
231
+ model: "llama-3.3-70b-versatile",
206
232
  messages: [
207
233
  {
208
234
  role: "user",
@@ -234,55 +260,36 @@ await groq.createChatCompletion({ ... });
234
260
 
235
261
  // CORRECT - Use apiRequest
236
262
  await ctx.integrations.groq.apiRequest(
237
- { method: "POST", path: "/openai/v1/chat/completions", body: { ... } },
263
+ { method: "POST", path: "/v1/chat/completions", body: { ... } },
238
264
  { response: ChatCompletionResponseSchema }
239
265
  );
240
266
  ```
241
267
 
242
268
  ### OpenAI-Compatible Path
243
269
 
244
- Groq uses OpenAI-compatible endpoints with `/openai/v1/` prefix:
270
+ The integration's base URL already includes `https://api.groq.com/openai`, so paths should start with `/v1/`:
245
271
 
246
272
  ```typescript
247
- // WRONG - Missing /openai prefix
273
+ // WRONG - Duplicates the /openai prefix (base URL already includes it)
248
274
  await ctx.integrations.groq.apiRequest(
249
- { method: "POST", path: "/v1/chat/completions", body: { ... } },
275
+ { method: "POST", path: "/openai/v1/chat/completions", body: { ... } },
250
276
  { response: schema }
251
277
  );
252
278
 
253
- // CORRECT - Include /openai prefix
279
+ // CORRECT - Start with /v1/ (the integration prepends /openai automatically)
254
280
  await ctx.integrations.groq.apiRequest(
255
- { method: "POST", path: "/openai/v1/chat/completions", body: { ... } },
281
+ { method: "POST", path: "/v1/chat/completions", body: { ... } },
256
282
  { response: schema }
257
283
  );
258
284
  ```
259
285
 
260
- ### Model Availability
261
-
262
- Groq has specific models available. Check current availability:
263
-
264
- | Model | Context Window | Best For |
265
- | ----------------------- | -------------- | ------------------ |
266
- | llama-3.1-70b-versatile | 128K | General use |
267
- | llama-3.1-8b-instant | 128K | Fast, simple tasks |
268
- | mixtral-8x7b-32768 | 32K | Code, reasoning |
269
- | gemma2-9b-it | 8K | Lightweight tasks |
270
-
271
- ```typescript
272
- // Ensure model is available
273
- const body = {
274
- model: "llama-3.1-70b-versatile", // Verify model exists
275
- messages: [...],
276
- };
277
- ```
278
-
279
286
  ### Rate Limits
280
287
 
281
288
  Groq has rate limits based on tokens per minute. Monitor usage:
282
289
 
283
290
  ```typescript
284
291
  const result = await ctx.integrations.groq.apiRequest(
285
- { method: "POST", path: "/openai/v1/chat/completions", body: { ... } },
292
+ { method: "POST", path: "/v1/chat/completions", body: { ... } },
286
293
  { response: ChatCompletionResponseSchema }
287
294
  );
288
295
 
@@ -297,7 +304,7 @@ import { RestApiValidationError } from "@superblocksteam/sdk-api";
297
304
 
298
305
  try {
299
306
  const result = await ctx.integrations.groq.apiRequest(
300
- { method: "POST", path: "/openai/v1/chat/completions", body: { ... } },
307
+ { method: "POST", path: "/v1/chat/completions", body: { ... } },
301
308
  { response: ChatCompletionResponseSchema }
302
309
  );
303
310
  } catch (error) {
@@ -0,0 +1,5 @@
1
+ {
2
+ "pluginId": "groq",
3
+ "base": "README.md",
4
+ "overlays": []
5
+ }
@@ -24,7 +24,7 @@ Interact with Google Sheets with full type safety and runtime validation.
24
24
  ### Read Spreadsheet Data
25
25
 
26
26
  ```typescript
27
- import { api, z, gsheets } from "@superblocksteam/sdk-api";
27
+ import { api, z, googleSheets } from "@superblocksteam/sdk-api";
28
28
 
29
29
  // Integration ID from the integrations panel
30
30
  const PROD_GSHEETS = "a1b2c3d4-5678-90ab-cdef-gsheets00001";
@@ -39,7 +39,7 @@ const RowSchema = z.array(
39
39
 
40
40
  export default api({
41
41
  integrations: {
42
- sheets: gsheets(PROD_GSHEETS),
42
+ sheets: googleSheets(PROD_GSHEETS),
43
43
  },
44
44
  name: "GoogleSheetsExample",
45
45
  input: z.object({
@@ -4,13 +4,15 @@
4
4
  * Uses the native Google Sheets plugin type from @superblocksteam/types.
5
5
  */
6
6
 
7
- import type { z } from "zod";
8
7
  import type { PartialMessage } from "@bufbuild/protobuf";
8
+ import type { z } from "zod";
9
+
9
10
  import type { Plugin as GSheetsPlugin } from "@superblocksteam/types/dist/src/plugins/gsheets/v1/plugin_pb";
10
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
11
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
11
+
12
12
  import { RestApiValidationError } from "../../errors.js";
13
13
  import { IntegrationError } from "../../runtime/errors.js";
14
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
15
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
14
16
  import type {
15
17
  GoogleSheetsClient,
16
18
  GoogleSheetsAction,
@@ -0,0 +1,5 @@
1
+ {
2
+ "pluginId": "gsheets",
3
+ "base": "README.md",
4
+ "overlays": []
5
+ }
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import type { z } from "zod";
6
+
6
7
  import type { BaseIntegrationClient } from "../../types.js";
7
8
  import type { TraceMetadata } from "../registry.js";
8
9
 
@@ -0,0 +1,5 @@
1
+ {
2
+ "pluginId": "hubspot",
3
+ "base": "README.md",
4
+ "overlays": []
5
+ }
@@ -66,18 +66,11 @@ export {
66
66
  mongodb,
67
67
  dynamodb,
68
68
  cosmosdb,
69
- couchbase,
70
69
  s3,
71
70
  gcs,
72
71
  googleSheets,
73
- kafka,
74
- kinesis,
75
72
  salesforce,
76
- redis,
77
73
  superblocksOcr,
78
- python,
79
- confluent,
80
- redpanda,
81
74
  lakebase,
82
75
  snowflakePostgres,
83
76
  smtp,
@@ -143,18 +136,11 @@ export {
143
136
  type MongoDBRef,
144
137
  type DynamoDBRef,
145
138
  type CosmosDBRef,
146
- type CouchbaseRef,
147
139
  type S3Ref,
148
140
  type GCSRef,
149
141
  type GoogleSheetsRef,
150
- type KafkaRef,
151
- type KinesisRef,
152
142
  type SalesforceRef,
153
- type RedisRef,
154
143
  type SuperblocksOCRRef,
155
- type PythonRef,
156
- type ConfluentRef,
157
- type RedpandaRef,
158
144
  type LakebaseRef,
159
145
  type SnowflakePostgresRef,
160
146
  type SmtpRef,
@@ -166,9 +152,9 @@ export {
166
152
  createClient,
167
153
  isPluginSupported,
168
154
  SUPPORTED_PLUGINS,
155
+ SUPPORTED_PLUGIN_IDS,
169
156
  type SupportedPluginId,
170
157
  type QueryExecutor,
171
- type StreamingQueryExecutor,
172
158
  type TraceMetadata,
173
159
  type CreateClientOptions,
174
160
  } from "./registry.js";
@@ -384,13 +370,6 @@ export { DynamoDBClientImpl } from "./dynamodb/index.js";
384
370
  export type { CosmosDBClient, CosmosDBQueryOptions } from "./cosmosdb/index.js";
385
371
  export { CosmosDBClientImpl } from "./cosmosdb/index.js";
386
372
 
387
- // Couchbase client
388
- export type {
389
- CouchbaseClient,
390
- CouchbaseIdentifier,
391
- } from "./couchbase/index.js";
392
- export { CouchbaseClientImpl } from "./couchbase/index.js";
393
-
394
373
  // S3 client
395
374
  export type {
396
375
  S3Client,
@@ -417,26 +396,6 @@ export type {
417
396
  } from "./gsheets/index.js";
418
397
  export { GoogleSheetsClientImpl } from "./gsheets/index.js";
419
398
 
420
- // Kafka client
421
- export type {
422
- KafkaClient,
423
- KafkaOperation,
424
- KafkaSeek,
425
- KafkaConsumeParams,
426
- KafkaProduceParams,
427
- } from "./kafka/index.js";
428
- export { KafkaClientImpl } from "./kafka/index.js";
429
-
430
- // Kinesis client
431
- export type {
432
- KinesisClient,
433
- KinesisPutParams,
434
- KinesisGetParams,
435
- KinesisStreamIdentifier,
436
- KinesisShardIteratorType,
437
- } from "./kinesis/index.js";
438
- export { KinesisClientImpl } from "./kinesis/index.js";
439
-
440
399
  // Salesforce client
441
400
  export type {
442
401
  SalesforceClient,
@@ -445,18 +404,10 @@ export type {
445
404
  } from "./salesforce/index.js";
446
405
  export { SalesforceClientImpl } from "./salesforce/index.js";
447
406
 
448
- // Redis client
449
- export type { RedisClient } from "./redis/index.js";
450
- export { RedisClientImpl } from "./redis/index.js";
451
-
452
407
  // Superblocks OCR client
453
408
  export type { SuperblocksOCRClient } from "./superblocks-ocr/index.js";
454
409
  export { SuperblocksOCRClientImpl } from "./superblocks-ocr/index.js";
455
410
 
456
- // Python client
457
- export type { PythonClient } from "./python/index.js";
458
- export { PythonClientImpl } from "./python/index.js";
459
-
460
411
  // Lakebase client
461
412
  export type { LakebaseClient } from "./lakebase/index.js";
462
413
  export { LakebaseClientImpl } from "./lakebase/index.js";
@@ -472,5 +423,3 @@ export { SmtpClientImpl } from "./smtp/index.js";
472
423
  // REST API Integration client
473
424
  export type { RestApiIntegrationPluginClient } from "./restapiintegration/index.js";
474
425
  export { RestApiIntegrationPluginClientImpl } from "./restapiintegration/index.js";
475
-
476
- // Confluent and Redpanda reuse the Kafka client (same proto)
@@ -0,0 +1,5 @@
1
+ {
2
+ "pluginId": "intercom",
3
+ "base": "README.md",
4
+ "overlays": []
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "pluginId": "jira",
3
+ "base": "README.md",
4
+ "overlays": []
5
+ }