@superblocksteam/sdk-api 2.0.101 → 2.0.102-next.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 (216) hide show
  1. package/README.md +47 -41
  2. package/dist/api/definition.d.ts +1 -1
  3. package/dist/api/definition.d.ts.map +1 -1
  4. package/dist/api/definition.js.map +1 -1
  5. package/dist/api/definition.test.js.map +1 -1
  6. package/dist/api/streaming.d.ts +1 -1
  7. package/dist/api/streaming.d.ts.map +1 -1
  8. package/dist/api/streaming.js.map +1 -1
  9. package/dist/api/streaming.test.js +2 -2
  10. package/dist/api/streaming.test.js.map +1 -1
  11. package/dist/integrations/athena/client.d.ts +1 -1
  12. package/dist/integrations/athena/client.d.ts.map +1 -1
  13. package/dist/integrations/athena/client.js.map +1 -1
  14. package/dist/integrations/athena/types.d.ts.map +1 -1
  15. package/dist/integrations/base/graphql-integration-client.d.ts +2 -2
  16. package/dist/integrations/base/graphql-integration-client.d.ts.map +1 -1
  17. package/dist/integrations/base/graphql-integration-client.js.map +1 -1
  18. package/dist/integrations/base/rest-api-integration-client.d.ts +3 -3
  19. package/dist/integrations/base/rest-api-integration-client.d.ts.map +1 -1
  20. package/dist/integrations/base/rest-api-integration-client.js.map +1 -1
  21. package/dist/integrations/base/types.d.ts.map +1 -1
  22. package/dist/integrations/bigquery/client.d.ts +1 -1
  23. package/dist/integrations/bigquery/client.d.ts.map +1 -1
  24. package/dist/integrations/bigquery/client.js.map +1 -1
  25. package/dist/integrations/bigquery/types.d.ts.map +1 -1
  26. package/dist/integrations/cockroachdb/client.d.ts +1 -1
  27. package/dist/integrations/cockroachdb/client.d.ts.map +1 -1
  28. package/dist/integrations/cockroachdb/client.js.map +1 -1
  29. package/dist/integrations/cockroachdb/types.d.ts.map +1 -1
  30. package/dist/integrations/cosmosdb/client.d.ts +1 -1
  31. package/dist/integrations/cosmosdb/client.d.ts.map +1 -1
  32. package/dist/integrations/cosmosdb/client.js.map +1 -1
  33. package/dist/integrations/cosmosdb/client.test.js.map +1 -1
  34. package/dist/integrations/cosmosdb/types.d.ts.map +1 -1
  35. package/dist/integrations/couchbase/client.d.ts +9 -3
  36. package/dist/integrations/couchbase/client.d.ts.map +1 -1
  37. package/dist/integrations/couchbase/client.js +27 -33
  38. package/dist/integrations/couchbase/client.js.map +1 -1
  39. package/dist/integrations/couchbase/types.d.ts.map +1 -1
  40. package/dist/integrations/databricks/client.d.ts +1 -1
  41. package/dist/integrations/databricks/client.d.ts.map +1 -1
  42. package/dist/integrations/databricks/client.js.map +1 -1
  43. package/dist/integrations/databricks/types.d.ts.map +1 -1
  44. package/dist/integrations/declarations.d.ts +36 -36
  45. package/dist/integrations/declarations.d.ts.map +1 -1
  46. package/dist/integrations/declarations.test.js.map +1 -1
  47. package/dist/integrations/dynamodb/client.d.ts +1 -1
  48. package/dist/integrations/dynamodb/client.d.ts.map +1 -1
  49. package/dist/integrations/dynamodb/client.js.map +1 -1
  50. package/dist/integrations/dynamodb/types.d.ts.map +1 -1
  51. package/dist/integrations/gcs/client.d.ts +1 -1
  52. package/dist/integrations/gcs/client.d.ts.map +1 -1
  53. package/dist/integrations/gcs/client.js.map +1 -1
  54. package/dist/integrations/gcs/types.d.ts.map +1 -1
  55. package/dist/integrations/graphql/types.d.ts +1 -1
  56. package/dist/integrations/graphql/types.d.ts.map +1 -1
  57. package/dist/integrations/gsheets/client.d.ts +1 -1
  58. package/dist/integrations/gsheets/client.d.ts.map +1 -1
  59. package/dist/integrations/gsheets/client.js.map +1 -1
  60. package/dist/integrations/gsheets/types.d.ts.map +1 -1
  61. package/dist/integrations/kafka/client.d.ts +1 -1
  62. package/dist/integrations/kafka/client.d.ts.map +1 -1
  63. package/dist/integrations/kafka/client.js.map +1 -1
  64. package/dist/integrations/kafka/types.d.ts.map +1 -1
  65. package/dist/integrations/kinesis/client.d.ts +1 -1
  66. package/dist/integrations/kinesis/client.d.ts.map +1 -1
  67. package/dist/integrations/kinesis/client.js.map +1 -1
  68. package/dist/integrations/lakebase/client.d.ts +1 -1
  69. package/dist/integrations/lakebase/client.d.ts.map +1 -1
  70. package/dist/integrations/lakebase/client.js.map +1 -1
  71. package/dist/integrations/lakebase/types.d.ts.map +1 -1
  72. package/dist/integrations/mariadb/client.d.ts +1 -1
  73. package/dist/integrations/mariadb/client.d.ts.map +1 -1
  74. package/dist/integrations/mariadb/client.js.map +1 -1
  75. package/dist/integrations/mariadb/types.d.ts.map +1 -1
  76. package/dist/integrations/mongodb/client.d.ts +1 -1
  77. package/dist/integrations/mongodb/client.d.ts.map +1 -1
  78. package/dist/integrations/mongodb/client.js.map +1 -1
  79. package/dist/integrations/mongodb/types.d.ts.map +1 -1
  80. package/dist/integrations/mssql/client.d.ts +1 -1
  81. package/dist/integrations/mssql/client.d.ts.map +1 -1
  82. package/dist/integrations/mssql/client.js.map +1 -1
  83. package/dist/integrations/mssql/types.d.ts.map +1 -1
  84. package/dist/integrations/mysql/client.d.ts +1 -1
  85. package/dist/integrations/mysql/client.d.ts.map +1 -1
  86. package/dist/integrations/mysql/client.js.map +1 -1
  87. package/dist/integrations/mysql/types.d.ts.map +1 -1
  88. package/dist/integrations/oracledb/client.d.ts +1 -1
  89. package/dist/integrations/oracledb/client.d.ts.map +1 -1
  90. package/dist/integrations/oracledb/client.js.map +1 -1
  91. package/dist/integrations/oracledb/types.d.ts.map +1 -1
  92. package/dist/integrations/postgres/client.d.ts +2 -2
  93. package/dist/integrations/postgres/client.d.ts.map +1 -1
  94. package/dist/integrations/postgres/client.js.map +1 -1
  95. package/dist/integrations/postgres/types.d.ts.map +1 -1
  96. package/dist/integrations/python/client.d.ts +2 -2
  97. package/dist/integrations/python/client.d.ts.map +1 -1
  98. package/dist/integrations/python/client.js.map +1 -1
  99. package/dist/integrations/python/client.test.js.map +1 -1
  100. package/dist/integrations/python/types.d.ts.map +1 -1
  101. package/dist/integrations/redis/client.d.ts +1 -1
  102. package/dist/integrations/redis/client.d.ts.map +1 -1
  103. package/dist/integrations/redis/client.js.map +1 -1
  104. package/dist/integrations/redis/types.d.ts.map +1 -1
  105. package/dist/integrations/redshift/client.d.ts +1 -1
  106. package/dist/integrations/redshift/client.d.ts.map +1 -1
  107. package/dist/integrations/redshift/client.js.map +1 -1
  108. package/dist/integrations/redshift/types.d.ts.map +1 -1
  109. package/dist/integrations/registry.d.ts.map +1 -1
  110. package/dist/integrations/registry.js +22 -22
  111. package/dist/integrations/registry.js.map +1 -1
  112. package/dist/integrations/registry.test.js.map +1 -1
  113. package/dist/integrations/s3/client.d.ts +1 -1
  114. package/dist/integrations/s3/client.d.ts.map +1 -1
  115. package/dist/integrations/s3/client.js.map +1 -1
  116. package/dist/integrations/s3/types.d.ts +3 -1
  117. package/dist/integrations/s3/types.d.ts.map +1 -1
  118. package/dist/integrations/salesforce/client.d.ts +1 -1
  119. package/dist/integrations/salesforce/client.d.ts.map +1 -1
  120. package/dist/integrations/salesforce/client.js.map +1 -1
  121. package/dist/integrations/salesforce/types.d.ts.map +1 -1
  122. package/dist/integrations/smtp/client.d.ts +1 -1
  123. package/dist/integrations/smtp/client.d.ts.map +1 -1
  124. package/dist/integrations/smtp/client.js.map +1 -1
  125. package/dist/integrations/snowflake/client.d.ts +1 -1
  126. package/dist/integrations/snowflake/client.d.ts.map +1 -1
  127. package/dist/integrations/snowflake/client.js.map +1 -1
  128. package/dist/integrations/snowflake/types.d.ts.map +1 -1
  129. package/dist/integrations/snowflakepostgres/client.d.ts +1 -1
  130. package/dist/integrations/snowflakepostgres/client.d.ts.map +1 -1
  131. package/dist/integrations/snowflakepostgres/client.js.map +1 -1
  132. package/dist/integrations/snowflakepostgres/types.d.ts.map +1 -1
  133. package/dist/runtime/context.d.ts +2 -2
  134. package/dist/runtime/context.d.ts.map +1 -1
  135. package/dist/runtime/context.js.map +1 -1
  136. package/dist/runtime/streaming-context.d.ts +2 -2
  137. package/dist/runtime/streaming-context.d.ts.map +1 -1
  138. package/dist/runtime/streaming-context.js.map +1 -1
  139. package/dist/runtime/streaming-executor.d.ts.map +1 -1
  140. package/dist/runtime/streaming-executor.js +1 -1
  141. package/dist/runtime/streaming-executor.js.map +1 -1
  142. package/dist/types.d.ts.map +1 -1
  143. package/package.json +1 -1
  144. package/src/api/definition.test.ts +1 -0
  145. package/src/api/definition.ts +1 -1
  146. package/src/api/streaming.test.ts +3 -2
  147. package/src/api/streaming.ts +2 -1
  148. package/src/integrations/athena/client.ts +5 -3
  149. package/src/integrations/athena/types.ts +1 -0
  150. package/src/integrations/base/graphql-integration-client.ts +3 -2
  151. package/src/integrations/base/rest-api-integration-client.ts +9 -7
  152. package/src/integrations/base/types.ts +1 -0
  153. package/src/integrations/bigquery/client.ts +5 -3
  154. package/src/integrations/bigquery/types.ts +1 -0
  155. package/src/integrations/cockroachdb/client.ts +5 -3
  156. package/src/integrations/cockroachdb/types.ts +1 -0
  157. package/src/integrations/cosmosdb/client.test.ts +2 -1
  158. package/src/integrations/cosmosdb/client.ts +5 -3
  159. package/src/integrations/cosmosdb/types.ts +1 -0
  160. package/src/integrations/couchbase/client.ts +34 -46
  161. package/src/integrations/couchbase/types.ts +1 -0
  162. package/src/integrations/databricks/client.ts +5 -3
  163. package/src/integrations/databricks/types.ts +1 -0
  164. package/src/integrations/declarations.test.ts +1 -0
  165. package/src/integrations/declarations.ts +36 -36
  166. package/src/integrations/dynamodb/client.ts +3 -2
  167. package/src/integrations/dynamodb/types.ts +1 -0
  168. package/src/integrations/gcs/client.ts +5 -3
  169. package/src/integrations/gcs/types.ts +1 -0
  170. package/src/integrations/graphql/types.ts +2 -1
  171. package/src/integrations/gsheets/client.ts +5 -3
  172. package/src/integrations/gsheets/types.ts +1 -0
  173. package/src/integrations/kafka/client.ts +3 -2
  174. package/src/integrations/kafka/types.ts +1 -0
  175. package/src/integrations/kinesis/client.ts +2 -2
  176. package/src/integrations/lakebase/README.md +242 -0
  177. package/src/integrations/lakebase/client.ts +6 -4
  178. package/src/integrations/lakebase/types.ts +1 -0
  179. package/src/integrations/mariadb/client.ts +5 -3
  180. package/src/integrations/mariadb/types.ts +1 -0
  181. package/src/integrations/mongodb/client.ts +5 -3
  182. package/src/integrations/mongodb/types.ts +1 -0
  183. package/src/integrations/mssql/client.ts +5 -3
  184. package/src/integrations/mssql/types.ts +1 -0
  185. package/src/integrations/mysql/client.ts +5 -3
  186. package/src/integrations/mysql/types.ts +1 -0
  187. package/src/integrations/oracledb/client.ts +5 -3
  188. package/src/integrations/oracledb/types.ts +1 -0
  189. package/src/integrations/postgres/client.ts +6 -4
  190. package/src/integrations/postgres/types.ts +1 -0
  191. package/src/integrations/python/client.test.ts +3 -2
  192. package/src/integrations/python/client.ts +5 -3
  193. package/src/integrations/python/types.ts +1 -0
  194. package/src/integrations/redis/client.ts +3 -2
  195. package/src/integrations/redis/types.ts +1 -0
  196. package/src/integrations/redshift/client.ts +5 -3
  197. package/src/integrations/redshift/types.ts +1 -0
  198. package/src/integrations/registry.test.ts +1 -0
  199. package/src/integrations/registry.ts +23 -23
  200. package/src/integrations/restapiintegration/README.md +359 -0
  201. package/src/integrations/s3/client.ts +5 -3
  202. package/src/integrations/s3/types.ts +4 -1
  203. package/src/integrations/salesforce/client.ts +3 -2
  204. package/src/integrations/salesforce/types.ts +1 -0
  205. package/src/integrations/smtp/README.md +220 -0
  206. package/src/integrations/smtp/client.ts +4 -2
  207. package/src/integrations/snowflake/client.ts +5 -3
  208. package/src/integrations/snowflake/types.ts +1 -0
  209. package/src/integrations/snowflakecortex/README.md +216 -0
  210. package/src/integrations/snowflakepostgres/README.md +233 -0
  211. package/src/integrations/snowflakepostgres/client.ts +1 -1
  212. package/src/integrations/snowflakepostgres/types.ts +1 -0
  213. package/src/runtime/context.ts +10 -10
  214. package/src/runtime/streaming-context.ts +10 -10
  215. package/src/runtime/streaming-executor.ts +4 -4
  216. package/src/types.ts +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"streaming-executor.d.ts","sourceRoot":"","sources":["../../src/runtime/streaming-executor.ts"],"names":[],"mappings":"AAAA;;;;;GA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M,KAAK,IAAI,CAAC;IAE3C;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6DAA6D;IAC7D,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,MAAM,yBAAyB,GACjC;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GACtC;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,GAAG,OAAO,EAAE,MAAM,GAAG,OAAO,EAC1E,GAAG,EAAE,oBAAoB,CAAC,MAAM,EAAE,MAAM,CAAC,EACzC,OAAO,EAAE,0BAA0B,EACnC,SAAS,EAAE,qBAAqB,CAAC,MAAM,CAAC,GACvC,OAAO,CAAC,yBAAyB,CAAC,CAkHpC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAuB,2BAA2B,CAChD,MAAM,GAAG,OAAO,EAChB,MAAM,GAAG,OAAO,EAEhB,GAAG,EAAE,oBAAoB,CAAC,MAAM,EAAE,MAAM,CAAC,EACzC,OAAO,EAAE,0BAA0B,GAClC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,SAAS,CAAC,CAuDzC"}
@@ -5,8 +5,8 @@
5
5
  * handling input validation, chunk validation, and error management.
6
6
  */
7
7
  import { getIntegrationDeclarations } from "../integrations/declarations.js";
8
- import { createStreamingApiContext, } from "./streaming-context.js";
9
8
  import { SdkError, InputValidationError, ExecutionError, ErrorCode, } from "./errors.js";
9
+ import { createStreamingApiContext, } from "./streaming-context.js";
10
10
  /**
11
11
  * Executes a compiled streaming API with the given request.
12
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"streaming-executor.js","sourceRoot":"","sources":["../../src/runtime/streaming-executor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAI7E,OAAO,EACL,yBAAyB,GAE1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,cAAc,EACd,SAAS,GAEV,MAAM,aAAa,CAAC;AAmGrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,GAAyC,EACzC,OAAmC,EACnC,SAAwC;IAExC,IAAI,WAAW,GAAG,CAAC,CAAC;IAEpB,IAAI,CAAC;QACH,oBAAoB;QACpB,MAAM,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC7D,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;YACzB,MAAM,KAAK,GAAsB;gBAC/B,IAAI,EAAE,SAAS,CAAC,gBAAgB;gBAChC,OAAO,EAAE,yBAAyB;gBAClC,OAAO,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE;gBAC7C,aAAa,EAAE,CAAC;aACjB,CAAC;YACF,SAAS,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;QACnD,CAAC;QAED,yCAAyC;QACzC,MAAM,YAAY,GAAG,IAAI,GAAG,EAA6B,CAAC;QAC1D,KAAK,MAAM,MAAM,IAAI,OAAO,CAAC,YAA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B,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC9D;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,2BAA2B;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,qDAAqD;IACrD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAGD,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/sdk-api",
3
- "version": "2.0.101",
3
+ "version": "2.0.102-next.0",
4
4
  "description": "Superblocks SDK for TypeScript-based API definitions",
5
5
  "license": "Superblocks Community Software License",
6
6
  "files": [
@@ -5,6 +5,7 @@
5
5
  /* eslint-disable @typescript-eslint/no-unused-vars */
6
6
  import { describe, it, expect, expectTypeOf } from "vitest";
7
7
  import { z } from "zod";
8
+
8
9
  import {
9
10
  api,
10
11
  __setEntryPoint,
@@ -44,11 +44,11 @@ export type ExtractApiInput<T> =
44
44
  export type ExtractApiOutput<T> =
45
45
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
46
46
  T extends CompiledApi<any, infer TOutput> ? TOutput : never;
47
- import type { ApiConfig, ApiContext, AnyIntegrationRef } from "../types.js";
48
47
  import {
49
48
  extractIntegrationDeclarations,
50
49
  type IntegrationDeclaration,
51
50
  } from "../integrations/declarations.js";
51
+ import type { ApiConfig, ApiContext, AnyIntegrationRef } from "../types.js";
52
52
 
53
53
  // ---------------------------------------------------------------------------
54
54
  // Entry point setter — used by the Vite plugin to stamp the source file path
@@ -4,10 +4,11 @@
4
4
 
5
5
  import { describe, it, expect, vi } from "vitest";
6
6
  import { z } from "zod";
7
- import { streamingApi, isStreamingApi } from "./streaming.js";
8
- import { api, __setEntryPoint } from "./definition.js";
7
+
9
8
  import { postgres, anthropic } from "../integrations/declarations.js";
10
9
  import type { ApiContext } from "../types.js";
10
+ import { api, __setEntryPoint } from "./definition.js";
11
+ import { streamingApi, isStreamingApi } from "./streaming.js";
11
12
 
12
13
  describe("streamingApi()", () => {
13
14
  describe("basic creation", () => {
@@ -6,11 +6,12 @@
6
6
  */
7
7
 
8
8
  import type { z } from "zod";
9
- import type { ApiContext, AnyIntegrationRef } from "../types.js";
9
+
10
10
  import {
11
11
  extractIntegrationDeclarations,
12
12
  type IntegrationDeclaration,
13
13
  } from "../integrations/declarations.js";
14
+ import type { ApiContext, AnyIntegrationRef } from "../types.js";
14
15
  import { consumeEntryPoint } from "./definition.js";
15
16
 
16
17
  /**
@@ -5,13 +5,15 @@
5
5
  * runtime validation using Zod schemas.
6
6
  */
7
7
 
8
- import type { z } from "zod";
9
8
  import type { PartialMessage } from "@bufbuild/protobuf";
9
+ import type { z } from "zod";
10
+
10
11
  import type { Plugin as AthenaPlugin } from "@superblocksteam/types/dist/src/plugins/athena/v1/plugin_pb";
11
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
12
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
12
+
13
13
  import { QueryValidationError } from "../../errors.js";
14
14
  import { IntegrationError } from "../../runtime/errors.js";
15
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
16
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
15
17
  import { describeType } from "../utils.js";
16
18
  import type { AthenaClient } from "./types.js";
17
19
 
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { z } from "zod";
8
+
8
9
  import type { BaseIntegrationClient } from "../../types.js";
9
10
  import type { TraceMetadata } from "../registry.js";
10
11
 
@@ -5,10 +5,11 @@
5
5
  * Handles proto message construction and response validation.
6
6
  */
7
7
 
8
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
9
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
10
8
  import { z } from "zod";
9
+
11
10
  import { RestApiValidationError } from "../../errors.js";
11
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
12
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
12
13
 
13
14
  /**
14
15
  * Base class for GraphQL integration clients.
@@ -5,14 +5,21 @@
5
5
  */
6
6
 
7
7
  import type { PartialMessage } from "@bufbuild/protobuf";
8
- import type { Plugin as RestApiIntegrationPlugin } from "@superblocksteam/types/dist/src/plugins/restapiintegration/v1/plugin_pb";
8
+ import type { z } from "zod";
9
+
9
10
  import type { Property } from "@superblocksteam/types/dist/src/common/v1/plugin_pb";
10
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
11
+ import type { Plugin as RestApiIntegrationPlugin } from "@superblocksteam/types/dist/src/plugins/restapiintegration/v1/plugin_pb";
12
+
13
+ import {
14
+ RestApiValidationError,
15
+ StreamChunkValidationError,
16
+ } from "../../errors.js";
11
17
  import type {
12
18
  QueryExecutor,
13
19
  StreamingQueryExecutor,
14
20
  TraceMetadata,
15
21
  } from "../registry.js";
22
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
16
23
  import type {
17
24
  ApiRequestOptions,
18
25
  ApiRequestSchema,
@@ -20,11 +27,6 @@ import type {
20
27
  StreamApiRequestSchema,
21
28
  SupportsStreamingApiRequest,
22
29
  } from "./types.js";
23
- import {
24
- RestApiValidationError,
25
- StreamChunkValidationError,
26
- } from "../../errors.js";
27
- import type { z } from "zod";
28
30
 
29
31
  export type RestApiRequest = PartialMessage<RestApiIntegrationPlugin>;
30
32
 
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import type { z } from "zod";
6
+
6
7
  import type { TraceMetadata } from "../registry.js";
7
8
 
8
9
  /**
@@ -5,13 +5,15 @@
5
5
  * runtime validation using Zod schemas.
6
6
  */
7
7
 
8
- import type { z } from "zod";
9
8
  import type { PartialMessage } from "@bufbuild/protobuf";
9
+ import type { z } from "zod";
10
+
10
11
  import type { Plugin as BigQueryPlugin } from "@superblocksteam/types/dist/src/plugins/bigquery/v1/plugin_pb";
11
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
12
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
12
+
13
13
  import { QueryValidationError } from "../../errors.js";
14
14
  import { IntegrationError } from "../../runtime/errors.js";
15
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
16
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
15
17
  import { describeType } from "../utils.js";
16
18
  import type { BigQueryClient } from "./types.js";
17
19
 
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { z } from "zod";
8
+
8
9
  import type { BaseIntegrationClient } from "../../types.js";
9
10
  import type { TraceMetadata } from "../registry.js";
10
11
 
@@ -5,13 +5,15 @@
5
5
  * runtime validation using Zod schemas.
6
6
  */
7
7
 
8
- import type { z } from "zod";
9
8
  import type { PartialMessage } from "@bufbuild/protobuf";
9
+ import type { z } from "zod";
10
+
10
11
  import type { Plugin as CockroachDBPlugin } from "@superblocksteam/types/dist/src/plugins/cockroachdb/v1/plugin_pb";
11
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
12
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
12
+
13
13
  import { QueryValidationError } from "../../errors.js";
14
14
  import { IntegrationError } from "../../runtime/errors.js";
15
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
16
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
15
17
  import { describeType } from "../utils.js";
16
18
  import type { CockroachDBClient } from "./types.js";
17
19
 
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { z } from "zod";
8
+
8
9
  import type { BaseIntegrationClient } from "../../types.js";
9
10
  import type { TraceMetadata } from "../registry.js";
10
11
 
@@ -7,8 +7,9 @@
7
7
 
8
8
  import { describe, it, expect, vi } from "vitest";
9
9
  import { z } from "zod";
10
- import { CosmosDBClientImpl } from "./client.js";
10
+
11
11
  import type { IntegrationConfig } from "../types.js";
12
+ import { CosmosDBClientImpl } from "./client.js";
12
13
 
13
14
  /** Minimal integration config for testing. */
14
15
  const TEST_CONFIG: IntegrationConfig = {
@@ -6,13 +6,15 @@
6
6
  * upsert, delete) against CosmosDB containers.
7
7
  */
8
8
 
9
- import type { z } from "zod";
10
9
  import type { PartialMessage } from "@bufbuild/protobuf";
10
+ import type { z } from "zod";
11
+
11
12
  import type { Plugin as CosmosDBPlugin } from "@superblocksteam/types/dist/src/plugins/cosmosdb/v1/plugin_pb";
12
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
13
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
13
+
14
14
  import { RestApiValidationError } from "../../errors.js";
15
15
  import { IntegrationError } from "../../runtime/errors.js";
16
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
17
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
16
18
  import type { CosmosDBClient, CosmosDBQueryOptions } from "./types.js";
17
19
 
18
20
  /**
@@ -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
 
@@ -1,26 +1,26 @@
1
1
  /**
2
2
  * Couchbase client implementation.
3
3
  *
4
- * Uses the native Couchbase plugin type from @superblocksteam/types.
5
- * Builds proto-style request objects for SQL++ queries, document insert,
4
+ * Builds proto JSON-style request objects for SQL++ queries, document insert,
6
5
  * get, and remove operations against Couchbase buckets.
6
+ *
7
+ * IMPORTANT: Request objects use plain objects with flat proto JSON keys
8
+ * (e.g. `{runSql: {sqlBody}}`) rather than the protobuf-es `CouchbaseRequest`
9
+ * type. The protobuf-es type uses oneof wrappers (`{case: "runSql", value: {...}}`)
10
+ * which get lost during the JSON → Go proto → JSON roundtrip in the orchestrator,
11
+ * resulting in "invalid operation: undefined". The Go orchestrator expects the
12
+ * standard proto JSON format with flat field names, not the TS-specific wrapper.
7
13
  */
8
14
 
9
15
  import type { z } from "zod";
10
- import type { PartialMessage } from "@bufbuild/protobuf";
11
- import type { Plugin as CouchbasePlugin } from "@superblocksteam/types/dist/src/plugins/couchbase/v1/plugin_pb";
12
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
13
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
16
+
14
17
  import { QueryValidationError, RestApiValidationError } from "../../errors.js";
15
18
  import { IntegrationError } from "../../runtime/errors.js";
19
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
20
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
16
21
  import { describeType } from "../utils.js";
17
22
  import type { CouchbaseClient, CouchbaseIdentifier } from "./types.js";
18
23
 
19
- /**
20
- * Couchbase request type derived from proto definition.
21
- */
22
- type CouchbaseRequest = PartialMessage<CouchbasePlugin>;
23
-
24
24
  /**
25
25
  * Internal implementation of CouchbaseClient.
26
26
  *
@@ -55,14 +55,11 @@ export class CouchbaseClientImpl
55
55
  metadata?: TraceMetadata,
56
56
  ): Promise<T[]> {
57
57
  const hasParams = params && params.length > 0;
58
- const request: CouchbaseRequest = {
58
+ const request = {
59
59
  bucketName: bucket,
60
- couchbaseAction: {
61
- case: "runSql",
62
- value: {
63
- sqlBody: sql,
64
- parameters: hasParams ? JSON.stringify(params) : undefined,
65
- },
60
+ runSql: {
61
+ sqlBody: sql,
62
+ parameters: hasParams ? JSON.stringify(params) : undefined,
66
63
  },
67
64
  };
68
65
 
@@ -119,17 +116,14 @@ export class CouchbaseClientImpl
119
116
  identifier: CouchbaseIdentifier,
120
117
  metadata?: TraceMetadata,
121
118
  ): Promise<void> {
122
- const request: CouchbaseRequest = {
119
+ const request = {
123
120
  bucketName: identifier.bucket,
124
- couchbaseAction: {
125
- case: "insert",
126
- value: {
127
- key,
128
- value: typeof value === "string" ? value : JSON.stringify(value),
129
- identifier: {
130
- scope: identifier.scope,
131
- collection: identifier.collection,
132
- },
121
+ insert: {
122
+ key,
123
+ value: typeof value === "string" ? value : JSON.stringify(value),
124
+ identifier: {
125
+ scope: identifier.scope,
126
+ collection: identifier.collection,
133
127
  },
134
128
  },
135
129
  };
@@ -155,16 +149,13 @@ export class CouchbaseClientImpl
155
149
  identifier: CouchbaseIdentifier,
156
150
  metadata?: TraceMetadata,
157
151
  ): Promise<T> {
158
- const request: CouchbaseRequest = {
152
+ const request = {
159
153
  bucketName: identifier.bucket,
160
- couchbaseAction: {
161
- case: "get",
162
- value: {
163
- key,
164
- identifier: {
165
- scope: identifier.scope,
166
- collection: identifier.collection,
167
- },
154
+ get: {
155
+ key,
156
+ identifier: {
157
+ scope: identifier.scope,
158
+ collection: identifier.collection,
168
159
  },
169
160
  },
170
161
  };
@@ -206,16 +197,13 @@ export class CouchbaseClientImpl
206
197
  identifier: CouchbaseIdentifier,
207
198
  metadata?: TraceMetadata,
208
199
  ): Promise<void> {
209
- const request: CouchbaseRequest = {
200
+ const request = {
210
201
  bucketName: identifier.bucket,
211
- couchbaseAction: {
212
- case: "remove",
213
- value: {
214
- key,
215
- identifier: {
216
- scope: identifier.scope,
217
- collection: identifier.collection,
218
- },
202
+ remove: {
203
+ key,
204
+ identifier: {
205
+ scope: identifier.scope,
206
+ collection: identifier.collection,
219
207
  },
220
208
  },
221
209
  };
@@ -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
 
@@ -5,13 +5,15 @@
5
5
  * runtime validation using Zod schemas.
6
6
  */
7
7
 
8
- import type { z } from "zod";
9
8
  import type { PartialMessage } from "@bufbuild/protobuf";
9
+ import type { z } from "zod";
10
+
10
11
  import type { Plugin as DatabricksPlugin } from "@superblocksteam/types/dist/src/plugins/databricks/v1/plugin_pb";
11
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
12
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
12
+
13
13
  import { QueryValidationError } from "../../errors.js";
14
14
  import { IntegrationError } from "../../runtime/errors.js";
15
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
16
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
15
17
  import { describeType } from "../utils.js";
16
18
  import type { DatabricksClient } from "./types.js";
17
19
 
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import type { z } from "zod";
8
+
8
9
  import type { BaseIntegrationClient } from "../../types.js";
9
10
  import type { TraceMetadata } from "../registry.js";
10
11
 
@@ -1,4 +1,5 @@
1
1
  import { describe, expectTypeOf, it } from "vitest";
2
+
2
3
  import {
3
4
  mysql,
4
5
  openai,
@@ -31,71 +31,71 @@
31
31
  * ```
32
32
  */
33
33
 
34
- import type { PostgresClient } from "./postgres/index.js";
35
- import type { SlackClient } from "./slack/index.js";
36
- import type { OpenAIClient } from "./openai_v2/index.js";
37
- import type { AnthropicClient } from "./anthropic/index.js";
38
- import type { StripeClient } from "./stripe/index.js";
39
- import type { GitHubClient } from "./github/index.js";
40
- import type { NotionClient } from "./notion/index.js";
41
- import type { SnowflakeClient } from "./snowflake/index.js";
42
- import type { SnowflakeCortexClient } from "./snowflakecortex/index.js";
43
34
  import type { AirtableClient } from "./airtable/index.js";
35
+ import type { AnthropicClient } from "./anthropic/index.js";
44
36
  import type { AsanaClient } from "./asana/index.js";
37
+ import type { AthenaClient } from "./athena/index.js";
38
+ import type { BigQueryClient } from "./bigquery/index.js";
45
39
  import type { BitbucketClient } from "./bitbucket/index.js";
46
40
  import type { BoxClient } from "./box/index.js";
47
41
  import type { CircleCIClient } from "./circleci/index.js";
42
+ import type { CockroachDBClient } from "./cockroachdb/index.js";
48
43
  import type { CohereClient } from "./cohere/index.js";
49
44
  import type { ConfluenceClient } from "./confluence/index.js";
45
+ import type { CosmosDBClient } from "./cosmosdb/index.js";
46
+ import type { CouchbaseClient } from "./couchbase/index.js";
47
+ import type { DatabricksClient } from "./databricks/index.js";
50
48
  import type { DatadogClient } from "./datadog/index.js";
51
49
  import type { DropboxClient } from "./dropbox/index.js";
50
+ import type { DynamoDBClient } from "./dynamodb/index.js";
52
51
  import type { ElasticSearchClient } from "./elasticsearch/index.js";
53
52
  import type { FireworksClient } from "./fireworks/index.js";
54
53
  import type { FrontClient } from "./front/index.js";
54
+ import type { GCSClient } from "./gcs/index.js";
55
55
  import type { GeminiClient } from "./gemini/index.js";
56
+ import type { GitHubClient } from "./github/index.js";
56
57
  import type { GoogleAnalyticsClient } from "./googleanalytics/index.js";
57
58
  import type { GoogleDriveClient } from "./googledrive/index.js";
59
+ import type { GraphQLClient } from "./graphql/index.js";
58
60
  import type { GroqClient } from "./groq/index.js";
61
+ import type { GoogleSheetsClient } from "./gsheets/index.js";
59
62
  import type { HubSpotClient } from "./hubspot/index.js";
60
63
  import type { IntercomClient } from "./intercom/index.js";
61
64
  import type { JiraClient } from "./jira/index.js";
65
+ import type { KafkaClient } from "./kafka/index.js";
66
+ import type { KinesisClient } from "./kinesis/index.js";
67
+ import type { LakebaseClient } from "./lakebase/index.js";
62
68
  import type { LaunchDarklyClient } from "./launchdarkly/index.js";
69
+ import type { MariaDBClient } from "./mariadb/index.js";
63
70
  import type { MistralClient } from "./mistral/index.js";
71
+ import type { MongoDBClient } from "./mongodb/index.js";
72
+ import type { MSSQLClient } from "./mssql/index.js";
73
+ import type { MySQLClient } from "./mysql/index.js";
74
+ import type { NotionClient } from "./notion/index.js";
75
+ import type { OpenAIClient } from "./openai_v2/index.js";
76
+ import type { OracleDBClient } from "./oracledb/index.js";
64
77
  import type { PagerDutyClient } from "./pagerduty/index.js";
65
78
  import type { PerplexityClient } from "./perplexity/index.js";
79
+ import type { PostgresClient } from "./postgres/index.js";
80
+ import type { PythonClient } from "./python/index.js";
81
+ import type { RedisClient } from "./redis/index.js";
82
+ import type { RedshiftClient } from "./redshift/index.js";
83
+ import type { RestApiIntegrationPluginClient } from "./restapiintegration/index.js";
84
+ import type { S3Client } from "./s3/index.js";
85
+ import type { SalesforceClient } from "./salesforce/index.js";
66
86
  import type { SegmentClient } from "./segment/index.js";
67
87
  import type { SendGridClient } from "./sendgrid/index.js";
88
+ import type { SlackClient } from "./slack/index.js";
89
+ import type { SmtpClient } from "./smtp/index.js";
90
+ import type { SnowflakeClient } from "./snowflake/index.js";
91
+ import type { SnowflakeCortexClient } from "./snowflakecortex/index.js";
92
+ import type { SnowflakePostgresClient } from "./snowflakepostgres/index.js";
68
93
  import type { StabilityAIClient } from "./stabilityai/index.js";
94
+ import type { StripeClient } from "./stripe/index.js";
95
+ import type { SuperblocksOCRClient } from "./superblocks-ocr/index.js";
69
96
  import type { TwilioClient } from "./twilio/index.js";
70
97
  import type { ZendeskClient } from "./zendesk/index.js";
71
98
  import type { ZoomClient } from "./zoom/index.js";
72
- import type { GraphQLClient } from "./graphql/index.js";
73
- import type { MySQLClient } from "./mysql/index.js";
74
- import type { MariaDBClient } from "./mariadb/index.js";
75
- import type { MSSQLClient } from "./mssql/index.js";
76
- import type { CockroachDBClient } from "./cockroachdb/index.js";
77
- import type { OracleDBClient } from "./oracledb/index.js";
78
- import type { RedshiftClient } from "./redshift/index.js";
79
- import type { AthenaClient } from "./athena/index.js";
80
- import type { DatabricksClient } from "./databricks/index.js";
81
- import type { BigQueryClient } from "./bigquery/index.js";
82
- import type { MongoDBClient } from "./mongodb/index.js";
83
- import type { DynamoDBClient } from "./dynamodb/index.js";
84
- import type { CosmosDBClient } from "./cosmosdb/index.js";
85
- import type { CouchbaseClient } from "./couchbase/index.js";
86
- import type { S3Client } from "./s3/index.js";
87
- import type { GCSClient } from "./gcs/index.js";
88
- import type { GoogleSheetsClient } from "./gsheets/index.js";
89
- import type { KafkaClient } from "./kafka/index.js";
90
- import type { KinesisClient } from "./kinesis/index.js";
91
- import type { SalesforceClient } from "./salesforce/index.js";
92
- import type { RedisClient } from "./redis/index.js";
93
- import type { SuperblocksOCRClient } from "./superblocks-ocr/index.js";
94
- import type { LakebaseClient } from "./lakebase/index.js";
95
- import type { SnowflakePostgresClient } from "./snowflakepostgres/index.js";
96
- import type { SmtpClient } from "./smtp/index.js";
97
- import type { RestApiIntegrationPluginClient } from "./restapiintegration/index.js";
98
- import type { PythonClient } from "./python/index.js";
99
99
 
100
100
  // -----------------------------------------------------------------------------
101
101
  // Base Types
@@ -7,10 +7,11 @@
7
7
  */
8
8
 
9
9
  import type { z } from "zod";
10
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
11
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
10
+
12
11
  import { RestApiValidationError } from "../../errors.js";
13
12
  import { IntegrationError } from "../../runtime/errors.js";
13
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
14
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
14
15
  import type { DynamoDBClient, DynamoDBAttributeValue } from "./types.js";
15
16
 
16
17
  /**
@@ -6,6 +6,7 @@
6
6
  */
7
7
 
8
8
  import type { z } from "zod";
9
+
9
10
  import type { BaseIntegrationClient } from "../../types.js";
10
11
  import type { TraceMetadata } from "../registry.js";
11
12