@superblocksteam/sdk-api 2.0.101-next.5 → 2.0.101

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 +41 -47
  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 +3 -9
  36. package/dist/integrations/couchbase/client.d.ts.map +1 -1
  37. package/dist/integrations/couchbase/client.js +33 -27
  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 +1 -3
  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 +0 -1
  145. package/src/api/definition.ts +1 -1
  146. package/src/api/streaming.test.ts +2 -3
  147. package/src/api/streaming.ts +1 -2
  148. package/src/integrations/athena/client.ts +3 -5
  149. package/src/integrations/athena/types.ts +0 -1
  150. package/src/integrations/base/graphql-integration-client.ts +2 -3
  151. package/src/integrations/base/rest-api-integration-client.ts +7 -9
  152. package/src/integrations/base/types.ts +0 -1
  153. package/src/integrations/bigquery/client.ts +3 -5
  154. package/src/integrations/bigquery/types.ts +0 -1
  155. package/src/integrations/cockroachdb/client.ts +3 -5
  156. package/src/integrations/cockroachdb/types.ts +0 -1
  157. package/src/integrations/cosmosdb/client.test.ts +1 -2
  158. package/src/integrations/cosmosdb/client.ts +3 -5
  159. package/src/integrations/cosmosdb/types.ts +0 -1
  160. package/src/integrations/couchbase/client.ts +46 -34
  161. package/src/integrations/couchbase/types.ts +0 -1
  162. package/src/integrations/databricks/client.ts +3 -5
  163. package/src/integrations/databricks/types.ts +0 -1
  164. package/src/integrations/declarations.test.ts +0 -1
  165. package/src/integrations/declarations.ts +36 -36
  166. package/src/integrations/dynamodb/client.ts +2 -3
  167. package/src/integrations/dynamodb/types.ts +0 -1
  168. package/src/integrations/gcs/client.ts +3 -5
  169. package/src/integrations/gcs/types.ts +0 -1
  170. package/src/integrations/graphql/types.ts +1 -2
  171. package/src/integrations/gsheets/client.ts +3 -5
  172. package/src/integrations/gsheets/types.ts +0 -1
  173. package/src/integrations/kafka/client.ts +2 -3
  174. package/src/integrations/kafka/types.ts +0 -1
  175. package/src/integrations/kinesis/client.ts +2 -2
  176. package/src/integrations/lakebase/client.ts +4 -6
  177. package/src/integrations/lakebase/types.ts +0 -1
  178. package/src/integrations/mariadb/client.ts +3 -5
  179. package/src/integrations/mariadb/types.ts +0 -1
  180. package/src/integrations/mongodb/client.ts +3 -5
  181. package/src/integrations/mongodb/types.ts +0 -1
  182. package/src/integrations/mssql/client.ts +3 -5
  183. package/src/integrations/mssql/types.ts +0 -1
  184. package/src/integrations/mysql/client.ts +3 -5
  185. package/src/integrations/mysql/types.ts +0 -1
  186. package/src/integrations/oracledb/client.ts +3 -5
  187. package/src/integrations/oracledb/types.ts +0 -1
  188. package/src/integrations/postgres/client.ts +4 -6
  189. package/src/integrations/postgres/types.ts +0 -1
  190. package/src/integrations/python/client.test.ts +2 -3
  191. package/src/integrations/python/client.ts +3 -5
  192. package/src/integrations/python/types.ts +0 -1
  193. package/src/integrations/redis/client.ts +2 -3
  194. package/src/integrations/redis/types.ts +0 -1
  195. package/src/integrations/redshift/client.ts +3 -5
  196. package/src/integrations/redshift/types.ts +0 -1
  197. package/src/integrations/registry.test.ts +0 -1
  198. package/src/integrations/registry.ts +23 -23
  199. package/src/integrations/s3/client.ts +3 -5
  200. package/src/integrations/s3/types.ts +1 -4
  201. package/src/integrations/salesforce/client.ts +2 -3
  202. package/src/integrations/salesforce/types.ts +0 -1
  203. package/src/integrations/smtp/client.ts +2 -4
  204. package/src/integrations/snowflake/client.ts +3 -5
  205. package/src/integrations/snowflake/types.ts +0 -1
  206. package/src/integrations/snowflakepostgres/client.ts +1 -1
  207. package/src/integrations/snowflakepostgres/types.ts +0 -1
  208. package/src/runtime/context.ts +10 -10
  209. package/src/runtime/streaming-context.ts +10 -10
  210. package/src/runtime/streaming-executor.ts +4 -4
  211. package/src/types.ts +0 -1
  212. package/src/integrations/lakebase/README.md +0 -242
  213. package/src/integrations/restapiintegration/README.md +0 -359
  214. package/src/integrations/smtp/README.md +0 -220
  215. package/src/integrations/snowflakecortex/README.md +0 -216
  216. package/src/integrations/snowflakepostgres/README.md +0 -233
@@ -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 { SdkError, InputValidationError, ExecutionError, ErrorCode, } from "./errors.js";
9
8
  import { createStreamingApiContext, } from "./streaming-context.js";
9
+ import { SdkError, InputValidationError, ExecutionError, ErrorCode, } from "./errors.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,QAAQ,EACR,oBAAoB,EACpB,cAAc,EACd,SAAS,GAEV,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,yBAAyB,GAE1B,MAAM,wBAAwB,CAAC;AAmGhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,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D,0BAA0B;IAC1B,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-next.5",
3
+ "version": "2.0.101",
4
4
  "description": "Superblocks SDK for TypeScript-based API definitions",
5
5
  "license": "Superblocks Community Software License",
6
6
  "files": [
@@ -5,7 +5,6 @@
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
-
9
8
  import {
10
9
  api,
11
10
  __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";
47
48
  import {
48
49
  extractIntegrationDeclarations,
49
50
  type IntegrationDeclaration,
50
51
  } 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,11 +4,10 @@
4
4
 
5
5
  import { describe, it, expect, vi } from "vitest";
6
6
  import { z } from "zod";
7
-
7
+ import { streamingApi, isStreamingApi } from "./streaming.js";
8
+ import { api, __setEntryPoint } from "./definition.js";
8
9
  import { postgres, anthropic } from "../integrations/declarations.js";
9
10
  import type { ApiContext } from "../types.js";
10
- import { api, __setEntryPoint } from "./definition.js";
11
- import { streamingApi, isStreamingApi } from "./streaming.js";
12
11
 
13
12
  describe("streamingApi()", () => {
14
13
  describe("basic creation", () => {
@@ -6,12 +6,11 @@
6
6
  */
7
7
 
8
8
  import type { z } from "zod";
9
-
9
+ import type { ApiContext, AnyIntegrationRef } from "../types.js";
10
10
  import {
11
11
  extractIntegrationDeclarations,
12
12
  type IntegrationDeclaration,
13
13
  } from "../integrations/declarations.js";
14
- import type { ApiContext, AnyIntegrationRef } from "../types.js";
15
14
  import { consumeEntryPoint } from "./definition.js";
16
15
 
17
16
  /**
@@ -5,15 +5,13 @@
5
5
  * runtime validation using Zod schemas.
6
6
  */
7
7
 
8
- import type { PartialMessage } from "@bufbuild/protobuf";
9
8
  import type { z } from "zod";
10
-
9
+ import type { PartialMessage } from "@bufbuild/protobuf";
11
10
  import type { Plugin as AthenaPlugin } from "@superblocksteam/types/dist/src/plugins/athena/v1/plugin_pb";
12
-
11
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
12
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
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";
17
15
  import { describeType } from "../utils.js";
18
16
  import type { AthenaClient } from "./types.js";
19
17
 
@@ -5,7 +5,6 @@
5
5
  */
6
6
 
7
7
  import type { z } from "zod";
8
-
9
8
  import type { BaseIntegrationClient } from "../../types.js";
10
9
  import type { TraceMetadata } from "../registry.js";
11
10
 
@@ -5,11 +5,10 @@
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";
8
10
  import { z } from "zod";
9
-
10
11
  import { RestApiValidationError } from "../../errors.js";
11
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
12
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
13
12
 
14
13
  /**
15
14
  * Base class for GraphQL integration clients.
@@ -5,21 +5,14 @@
5
5
  */
6
6
 
7
7
  import type { PartialMessage } from "@bufbuild/protobuf";
8
- import type { z } from "zod";
9
-
10
- import type { Property } from "@superblocksteam/types/dist/src/common/v1/plugin_pb";
11
8
  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";
9
+ import type { Property } from "@superblocksteam/types/dist/src/common/v1/plugin_pb";
10
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
17
11
  import type {
18
12
  QueryExecutor,
19
13
  StreamingQueryExecutor,
20
14
  TraceMetadata,
21
15
  } from "../registry.js";
22
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
23
16
  import type {
24
17
  ApiRequestOptions,
25
18
  ApiRequestSchema,
@@ -27,6 +20,11 @@ import type {
27
20
  StreamApiRequestSchema,
28
21
  SupportsStreamingApiRequest,
29
22
  } from "./types.js";
23
+ import {
24
+ RestApiValidationError,
25
+ StreamChunkValidationError,
26
+ } from "../../errors.js";
27
+ import type { z } from "zod";
30
28
 
31
29
  export type RestApiRequest = PartialMessage<RestApiIntegrationPlugin>;
32
30
 
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import type { z } from "zod";
6
-
7
6
  import type { TraceMetadata } from "../registry.js";
8
7
 
9
8
  /**
@@ -5,15 +5,13 @@
5
5
  * runtime validation using Zod schemas.
6
6
  */
7
7
 
8
- import type { PartialMessage } from "@bufbuild/protobuf";
9
8
  import type { z } from "zod";
10
-
9
+ import type { PartialMessage } from "@bufbuild/protobuf";
11
10
  import type { Plugin as BigQueryPlugin } from "@superblocksteam/types/dist/src/plugins/bigquery/v1/plugin_pb";
12
-
11
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
12
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
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";
17
15
  import { describeType } from "../utils.js";
18
16
  import type { BigQueryClient } from "./types.js";
19
17
 
@@ -5,7 +5,6 @@
5
5
  */
6
6
 
7
7
  import type { z } from "zod";
8
-
9
8
  import type { BaseIntegrationClient } from "../../types.js";
10
9
  import type { TraceMetadata } from "../registry.js";
11
10
 
@@ -5,15 +5,13 @@
5
5
  * runtime validation using Zod schemas.
6
6
  */
7
7
 
8
- import type { PartialMessage } from "@bufbuild/protobuf";
9
8
  import type { z } from "zod";
10
-
9
+ import type { PartialMessage } from "@bufbuild/protobuf";
11
10
  import type { Plugin as CockroachDBPlugin } from "@superblocksteam/types/dist/src/plugins/cockroachdb/v1/plugin_pb";
12
-
11
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
12
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
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";
17
15
  import { describeType } from "../utils.js";
18
16
  import type { CockroachDBClient } from "./types.js";
19
17
 
@@ -5,7 +5,6 @@
5
5
  */
6
6
 
7
7
  import type { z } from "zod";
8
-
9
8
  import type { BaseIntegrationClient } from "../../types.js";
10
9
  import type { TraceMetadata } from "../registry.js";
11
10
 
@@ -7,9 +7,8 @@
7
7
 
8
8
  import { describe, it, expect, vi } from "vitest";
9
9
  import { z } from "zod";
10
-
11
- import type { IntegrationConfig } from "../types.js";
12
10
  import { CosmosDBClientImpl } from "./client.js";
11
+ import type { IntegrationConfig } from "../types.js";
13
12
 
14
13
  /** Minimal integration config for testing. */
15
14
  const TEST_CONFIG: IntegrationConfig = {
@@ -6,15 +6,13 @@
6
6
  * upsert, delete) against CosmosDB containers.
7
7
  */
8
8
 
9
- import type { PartialMessage } from "@bufbuild/protobuf";
10
9
  import type { z } from "zod";
11
-
10
+ import type { PartialMessage } from "@bufbuild/protobuf";
12
11
  import type { Plugin as CosmosDBPlugin } from "@superblocksteam/types/dist/src/plugins/cosmosdb/v1/plugin_pb";
13
-
12
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
13
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
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";
18
16
  import type { CosmosDBClient, CosmosDBQueryOptions } from "./types.js";
19
17
 
20
18
  /**
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import type { z } from "zod";
6
-
7
6
  import type { BaseIntegrationClient } from "../../types.js";
8
7
  import type { TraceMetadata } from "../registry.js";
9
8
 
@@ -1,26 +1,26 @@
1
1
  /**
2
2
  * Couchbase client implementation.
3
3
  *
4
- * Builds proto JSON-style request objects for SQL++ queries, document insert,
4
+ * Uses the native Couchbase plugin type from @superblocksteam/types.
5
+ * Builds proto-style request objects for SQL++ queries, document insert,
5
6
  * 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.
13
7
  */
14
8
 
15
9
  import type { z } from "zod";
16
-
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";
17
14
  import { QueryValidationError, RestApiValidationError } from "../../errors.js";
18
15
  import { IntegrationError } from "../../runtime/errors.js";
19
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
20
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
21
16
  import { describeType } from "../utils.js";
22
17
  import type { CouchbaseClient, CouchbaseIdentifier } from "./types.js";
23
18
 
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,11 +55,14 @@ export class CouchbaseClientImpl
55
55
  metadata?: TraceMetadata,
56
56
  ): Promise<T[]> {
57
57
  const hasParams = params && params.length > 0;
58
- const request = {
58
+ const request: CouchbaseRequest = {
59
59
  bucketName: bucket,
60
- runSql: {
61
- sqlBody: sql,
62
- parameters: hasParams ? JSON.stringify(params) : undefined,
60
+ couchbaseAction: {
61
+ case: "runSql",
62
+ value: {
63
+ sqlBody: sql,
64
+ parameters: hasParams ? JSON.stringify(params) : undefined,
65
+ },
63
66
  },
64
67
  };
65
68
 
@@ -116,14 +119,17 @@ export class CouchbaseClientImpl
116
119
  identifier: CouchbaseIdentifier,
117
120
  metadata?: TraceMetadata,
118
121
  ): Promise<void> {
119
- const request = {
122
+ const request: CouchbaseRequest = {
120
123
  bucketName: identifier.bucket,
121
- insert: {
122
- key,
123
- value: typeof value === "string" ? value : JSON.stringify(value),
124
- identifier: {
125
- scope: identifier.scope,
126
- collection: identifier.collection,
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
+ },
127
133
  },
128
134
  },
129
135
  };
@@ -149,13 +155,16 @@ export class CouchbaseClientImpl
149
155
  identifier: CouchbaseIdentifier,
150
156
  metadata?: TraceMetadata,
151
157
  ): Promise<T> {
152
- const request = {
158
+ const request: CouchbaseRequest = {
153
159
  bucketName: identifier.bucket,
154
- get: {
155
- key,
156
- identifier: {
157
- scope: identifier.scope,
158
- collection: identifier.collection,
160
+ couchbaseAction: {
161
+ case: "get",
162
+ value: {
163
+ key,
164
+ identifier: {
165
+ scope: identifier.scope,
166
+ collection: identifier.collection,
167
+ },
159
168
  },
160
169
  },
161
170
  };
@@ -197,13 +206,16 @@ export class CouchbaseClientImpl
197
206
  identifier: CouchbaseIdentifier,
198
207
  metadata?: TraceMetadata,
199
208
  ): Promise<void> {
200
- const request = {
209
+ const request: CouchbaseRequest = {
201
210
  bucketName: identifier.bucket,
202
- remove: {
203
- key,
204
- identifier: {
205
- scope: identifier.scope,
206
- collection: identifier.collection,
211
+ couchbaseAction: {
212
+ case: "remove",
213
+ value: {
214
+ key,
215
+ identifier: {
216
+ scope: identifier.scope,
217
+ collection: identifier.collection,
218
+ },
207
219
  },
208
220
  },
209
221
  };
@@ -3,7 +3,6 @@
3
3
  */
4
4
 
5
5
  import type { z } from "zod";
6
-
7
6
  import type { BaseIntegrationClient } from "../../types.js";
8
7
  import type { TraceMetadata } from "../registry.js";
9
8
 
@@ -5,15 +5,13 @@
5
5
  * runtime validation using Zod schemas.
6
6
  */
7
7
 
8
- import type { PartialMessage } from "@bufbuild/protobuf";
9
8
  import type { z } from "zod";
10
-
9
+ import type { PartialMessage } from "@bufbuild/protobuf";
11
10
  import type { Plugin as DatabricksPlugin } from "@superblocksteam/types/dist/src/plugins/databricks/v1/plugin_pb";
12
-
11
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
12
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
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";
17
15
  import { describeType } from "../utils.js";
18
16
  import type { DatabricksClient } from "./types.js";
19
17
 
@@ -5,7 +5,6 @@
5
5
  */
6
6
 
7
7
  import type { z } from "zod";
8
-
9
8
  import type { BaseIntegrationClient } from "../../types.js";
10
9
  import type { TraceMetadata } from "../registry.js";
11
10
 
@@ -1,5 +1,4 @@
1
1
  import { describe, expectTypeOf, it } from "vitest";
2
-
3
2
  import {
4
3
  mysql,
5
4
  openai,
@@ -31,71 +31,71 @@
31
31
  * ```
32
32
  */
33
33
 
34
- import type { AirtableClient } from "./airtable/index.js";
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";
35
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
+ import type { AirtableClient } from "./airtable/index.js";
36
44
  import type { AsanaClient } from "./asana/index.js";
37
- import type { AthenaClient } from "./athena/index.js";
38
- import type { BigQueryClient } from "./bigquery/index.js";
39
45
  import type { BitbucketClient } from "./bitbucket/index.js";
40
46
  import type { BoxClient } from "./box/index.js";
41
47
  import type { CircleCIClient } from "./circleci/index.js";
42
- import type { CockroachDBClient } from "./cockroachdb/index.js";
43
48
  import type { CohereClient } from "./cohere/index.js";
44
49
  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";
48
50
  import type { DatadogClient } from "./datadog/index.js";
49
51
  import type { DropboxClient } from "./dropbox/index.js";
50
- import type { DynamoDBClient } from "./dynamodb/index.js";
51
52
  import type { ElasticSearchClient } from "./elasticsearch/index.js";
52
53
  import type { FireworksClient } from "./fireworks/index.js";
53
54
  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";
57
56
  import type { GoogleAnalyticsClient } from "./googleanalytics/index.js";
58
57
  import type { GoogleDriveClient } from "./googledrive/index.js";
59
- import type { GraphQLClient } from "./graphql/index.js";
60
58
  import type { GroqClient } from "./groq/index.js";
61
- import type { GoogleSheetsClient } from "./gsheets/index.js";
62
59
  import type { HubSpotClient } from "./hubspot/index.js";
63
60
  import type { IntercomClient } from "./intercom/index.js";
64
61
  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";
68
62
  import type { LaunchDarklyClient } from "./launchdarkly/index.js";
69
- import type { MariaDBClient } from "./mariadb/index.js";
70
63
  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";
77
64
  import type { PagerDutyClient } from "./pagerduty/index.js";
78
65
  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";
86
66
  import type { SegmentClient } from "./segment/index.js";
87
67
  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";
93
68
  import type { StabilityAIClient } from "./stabilityai/index.js";
94
- import type { StripeClient } from "./stripe/index.js";
95
- import type { SuperblocksOCRClient } from "./superblocks-ocr/index.js";
96
69
  import type { TwilioClient } from "./twilio/index.js";
97
70
  import type { ZendeskClient } from "./zendesk/index.js";
98
71
  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,11 +7,10 @@
7
7
  */
8
8
 
9
9
  import type { z } from "zod";
10
-
10
+ import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
11
+ import type { QueryExecutor, TraceMetadata } from "../registry.js";
11
12
  import { RestApiValidationError } from "../../errors.js";
12
13
  import { IntegrationError } from "../../runtime/errors.js";
13
- import type { QueryExecutor, TraceMetadata } from "../registry.js";
14
- import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
15
14
  import type { DynamoDBClient, DynamoDBAttributeValue } from "./types.js";
16
15
 
17
16
  /**
@@ -6,7 +6,6 @@
6
6
  */
7
7
 
8
8
  import type { z } from "zod";
9
-
10
9
  import type { BaseIntegrationClient } from "../../types.js";
11
10
  import type { TraceMetadata } from "../registry.js";
12
11