@superblocksteam/sdk-api 2.0.102 → 2.0.103-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.
- package/README.md +47 -41
- package/dist/api/definition.d.ts +1 -1
- package/dist/api/definition.d.ts.map +1 -1
- package/dist/api/definition.js.map +1 -1
- package/dist/api/definition.test.js.map +1 -1
- package/dist/api/streaming.d.ts +1 -1
- package/dist/api/streaming.d.ts.map +1 -1
- package/dist/api/streaming.js.map +1 -1
- package/dist/api/streaming.test.js +2 -2
- package/dist/api/streaming.test.js.map +1 -1
- package/dist/integrations/athena/client.d.ts +1 -1
- package/dist/integrations/athena/client.d.ts.map +1 -1
- package/dist/integrations/athena/client.js.map +1 -1
- package/dist/integrations/athena/types.d.ts.map +1 -1
- package/dist/integrations/base/graphql-integration-client.d.ts +2 -2
- package/dist/integrations/base/graphql-integration-client.d.ts.map +1 -1
- package/dist/integrations/base/graphql-integration-client.js.map +1 -1
- package/dist/integrations/base/rest-api-integration-client.d.ts +3 -3
- package/dist/integrations/base/rest-api-integration-client.d.ts.map +1 -1
- package/dist/integrations/base/rest-api-integration-client.js.map +1 -1
- package/dist/integrations/base/types.d.ts.map +1 -1
- package/dist/integrations/bigquery/client.d.ts +1 -1
- package/dist/integrations/bigquery/client.d.ts.map +1 -1
- package/dist/integrations/bigquery/client.js.map +1 -1
- package/dist/integrations/bigquery/types.d.ts.map +1 -1
- package/dist/integrations/cockroachdb/client.d.ts +1 -1
- package/dist/integrations/cockroachdb/client.d.ts.map +1 -1
- package/dist/integrations/cockroachdb/client.js.map +1 -1
- package/dist/integrations/cockroachdb/types.d.ts.map +1 -1
- package/dist/integrations/cosmosdb/client.d.ts +1 -1
- package/dist/integrations/cosmosdb/client.d.ts.map +1 -1
- package/dist/integrations/cosmosdb/client.js.map +1 -1
- package/dist/integrations/cosmosdb/client.test.js.map +1 -1
- package/dist/integrations/cosmosdb/types.d.ts.map +1 -1
- package/dist/integrations/couchbase/client.d.ts +9 -3
- package/dist/integrations/couchbase/client.d.ts.map +1 -1
- package/dist/integrations/couchbase/client.js +27 -33
- package/dist/integrations/couchbase/client.js.map +1 -1
- package/dist/integrations/couchbase/types.d.ts.map +1 -1
- package/dist/integrations/databricks/client.d.ts +1 -1
- package/dist/integrations/databricks/client.d.ts.map +1 -1
- package/dist/integrations/databricks/client.js.map +1 -1
- package/dist/integrations/databricks/types.d.ts.map +1 -1
- package/dist/integrations/declarations.d.ts +36 -36
- package/dist/integrations/declarations.d.ts.map +1 -1
- package/dist/integrations/declarations.test.js.map +1 -1
- package/dist/integrations/dynamodb/client.d.ts +1 -1
- package/dist/integrations/dynamodb/client.d.ts.map +1 -1
- package/dist/integrations/dynamodb/client.js.map +1 -1
- package/dist/integrations/dynamodb/types.d.ts.map +1 -1
- package/dist/integrations/gcs/client.d.ts +1 -1
- package/dist/integrations/gcs/client.d.ts.map +1 -1
- package/dist/integrations/gcs/client.js.map +1 -1
- package/dist/integrations/gcs/types.d.ts.map +1 -1
- package/dist/integrations/graphql/types.d.ts +1 -1
- package/dist/integrations/graphql/types.d.ts.map +1 -1
- package/dist/integrations/gsheets/client.d.ts +1 -1
- package/dist/integrations/gsheets/client.d.ts.map +1 -1
- package/dist/integrations/gsheets/client.js.map +1 -1
- package/dist/integrations/gsheets/types.d.ts.map +1 -1
- package/dist/integrations/kafka/client.d.ts +1 -1
- package/dist/integrations/kafka/client.d.ts.map +1 -1
- package/dist/integrations/kafka/client.js.map +1 -1
- package/dist/integrations/kafka/types.d.ts.map +1 -1
- package/dist/integrations/kinesis/client.d.ts +1 -1
- package/dist/integrations/kinesis/client.d.ts.map +1 -1
- package/dist/integrations/kinesis/client.js.map +1 -1
- package/dist/integrations/lakebase/client.d.ts +1 -1
- package/dist/integrations/lakebase/client.d.ts.map +1 -1
- package/dist/integrations/lakebase/client.js.map +1 -1
- package/dist/integrations/lakebase/types.d.ts.map +1 -1
- package/dist/integrations/mariadb/client.d.ts +1 -1
- package/dist/integrations/mariadb/client.d.ts.map +1 -1
- package/dist/integrations/mariadb/client.js.map +1 -1
- package/dist/integrations/mariadb/types.d.ts.map +1 -1
- package/dist/integrations/mongodb/client.d.ts +1 -1
- package/dist/integrations/mongodb/client.d.ts.map +1 -1
- package/dist/integrations/mongodb/client.js.map +1 -1
- package/dist/integrations/mongodb/types.d.ts.map +1 -1
- package/dist/integrations/mssql/client.d.ts +1 -1
- package/dist/integrations/mssql/client.d.ts.map +1 -1
- package/dist/integrations/mssql/client.js.map +1 -1
- package/dist/integrations/mssql/types.d.ts.map +1 -1
- package/dist/integrations/mysql/client.d.ts +1 -1
- package/dist/integrations/mysql/client.d.ts.map +1 -1
- package/dist/integrations/mysql/client.js.map +1 -1
- package/dist/integrations/mysql/types.d.ts.map +1 -1
- package/dist/integrations/oracledb/client.d.ts +1 -1
- package/dist/integrations/oracledb/client.d.ts.map +1 -1
- package/dist/integrations/oracledb/client.js.map +1 -1
- package/dist/integrations/oracledb/types.d.ts.map +1 -1
- package/dist/integrations/postgres/client.d.ts +2 -2
- package/dist/integrations/postgres/client.d.ts.map +1 -1
- package/dist/integrations/postgres/client.js.map +1 -1
- package/dist/integrations/postgres/types.d.ts.map +1 -1
- package/dist/integrations/python/client.d.ts +2 -2
- package/dist/integrations/python/client.d.ts.map +1 -1
- package/dist/integrations/python/client.js.map +1 -1
- package/dist/integrations/python/client.test.js.map +1 -1
- package/dist/integrations/python/types.d.ts.map +1 -1
- package/dist/integrations/redis/client.d.ts +1 -1
- package/dist/integrations/redis/client.d.ts.map +1 -1
- package/dist/integrations/redis/client.js.map +1 -1
- package/dist/integrations/redis/types.d.ts.map +1 -1
- package/dist/integrations/redshift/client.d.ts +1 -1
- package/dist/integrations/redshift/client.d.ts.map +1 -1
- package/dist/integrations/redshift/client.js.map +1 -1
- package/dist/integrations/redshift/types.d.ts.map +1 -1
- package/dist/integrations/registry.d.ts.map +1 -1
- package/dist/integrations/registry.js +22 -22
- package/dist/integrations/registry.js.map +1 -1
- package/dist/integrations/registry.test.js.map +1 -1
- package/dist/integrations/s3/client.d.ts +1 -1
- package/dist/integrations/s3/client.d.ts.map +1 -1
- package/dist/integrations/s3/client.js.map +1 -1
- package/dist/integrations/s3/types.d.ts +3 -1
- package/dist/integrations/s3/types.d.ts.map +1 -1
- package/dist/integrations/salesforce/client.d.ts +1 -1
- package/dist/integrations/salesforce/client.d.ts.map +1 -1
- package/dist/integrations/salesforce/client.js.map +1 -1
- package/dist/integrations/salesforce/types.d.ts.map +1 -1
- package/dist/integrations/smtp/client.d.ts +1 -1
- package/dist/integrations/smtp/client.d.ts.map +1 -1
- package/dist/integrations/smtp/client.js.map +1 -1
- package/dist/integrations/snowflake/client.d.ts +1 -1
- package/dist/integrations/snowflake/client.d.ts.map +1 -1
- package/dist/integrations/snowflake/client.js.map +1 -1
- package/dist/integrations/snowflake/types.d.ts.map +1 -1
- package/dist/integrations/snowflakepostgres/client.d.ts +1 -1
- package/dist/integrations/snowflakepostgres/client.d.ts.map +1 -1
- package/dist/integrations/snowflakepostgres/client.js.map +1 -1
- package/dist/integrations/snowflakepostgres/types.d.ts.map +1 -1
- package/dist/runtime/context.d.ts +2 -2
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/context.js.map +1 -1
- package/dist/runtime/streaming-context.d.ts +2 -2
- package/dist/runtime/streaming-context.d.ts.map +1 -1
- package/dist/runtime/streaming-context.js.map +1 -1
- package/dist/runtime/streaming-executor.d.ts.map +1 -1
- package/dist/runtime/streaming-executor.js +1 -1
- package/dist/runtime/streaming-executor.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/definition.test.ts +1 -0
- package/src/api/definition.ts +1 -1
- package/src/api/streaming.test.ts +3 -2
- package/src/api/streaming.ts +2 -1
- package/src/integrations/athena/client.ts +5 -3
- package/src/integrations/athena/types.ts +1 -0
- package/src/integrations/base/graphql-integration-client.ts +3 -2
- package/src/integrations/base/rest-api-integration-client.ts +9 -7
- package/src/integrations/base/types.ts +1 -0
- package/src/integrations/bigquery/client.ts +5 -3
- package/src/integrations/bigquery/types.ts +1 -0
- package/src/integrations/cockroachdb/client.ts +5 -3
- package/src/integrations/cockroachdb/types.ts +1 -0
- package/src/integrations/cosmosdb/client.test.ts +2 -1
- package/src/integrations/cosmosdb/client.ts +5 -3
- package/src/integrations/cosmosdb/types.ts +1 -0
- package/src/integrations/couchbase/client.ts +34 -46
- package/src/integrations/couchbase/types.ts +1 -0
- package/src/integrations/databricks/client.ts +5 -3
- package/src/integrations/databricks/types.ts +1 -0
- package/src/integrations/declarations.test.ts +1 -0
- package/src/integrations/declarations.ts +36 -36
- package/src/integrations/dynamodb/client.ts +3 -2
- package/src/integrations/dynamodb/types.ts +1 -0
- package/src/integrations/gcs/client.ts +5 -3
- package/src/integrations/gcs/types.ts +1 -0
- package/src/integrations/graphql/types.ts +2 -1
- package/src/integrations/gsheets/client.ts +5 -3
- package/src/integrations/gsheets/types.ts +1 -0
- package/src/integrations/kafka/client.ts +3 -2
- package/src/integrations/kafka/types.ts +1 -0
- package/src/integrations/kinesis/client.ts +2 -2
- package/src/integrations/lakebase/README.md +242 -0
- package/src/integrations/lakebase/client.ts +6 -4
- package/src/integrations/lakebase/types.ts +1 -0
- package/src/integrations/mariadb/client.ts +5 -3
- package/src/integrations/mariadb/types.ts +1 -0
- package/src/integrations/mongodb/client.ts +5 -3
- package/src/integrations/mongodb/types.ts +1 -0
- package/src/integrations/mssql/client.ts +5 -3
- package/src/integrations/mssql/types.ts +1 -0
- package/src/integrations/mysql/client.ts +5 -3
- package/src/integrations/mysql/types.ts +1 -0
- package/src/integrations/oracledb/client.ts +5 -3
- package/src/integrations/oracledb/types.ts +1 -0
- package/src/integrations/postgres/client.ts +6 -4
- package/src/integrations/postgres/types.ts +1 -0
- package/src/integrations/python/client.test.ts +3 -2
- package/src/integrations/python/client.ts +5 -3
- package/src/integrations/python/types.ts +1 -0
- package/src/integrations/redis/client.ts +3 -2
- package/src/integrations/redis/types.ts +1 -0
- package/src/integrations/redshift/client.ts +5 -3
- package/src/integrations/redshift/types.ts +1 -0
- package/src/integrations/registry.test.ts +1 -0
- package/src/integrations/registry.ts +23 -23
- package/src/integrations/restapiintegration/README.md +359 -0
- package/src/integrations/s3/client.ts +5 -3
- package/src/integrations/s3/types.ts +4 -1
- package/src/integrations/salesforce/client.ts +3 -2
- package/src/integrations/salesforce/types.ts +1 -0
- package/src/integrations/smtp/README.md +220 -0
- package/src/integrations/smtp/client.ts +4 -2
- package/src/integrations/snowflake/client.ts +5 -3
- package/src/integrations/snowflake/types.ts +1 -0
- package/src/integrations/snowflakecortex/README.md +216 -0
- package/src/integrations/snowflakepostgres/README.md +233 -0
- package/src/integrations/snowflakepostgres/client.ts +1 -1
- package/src/integrations/snowflakepostgres/types.ts +1 -0
- package/src/runtime/context.ts +10 -10
- package/src/runtime/streaming-context.ts +10 -10
- package/src/runtime/streaming-executor.ts +4 -4
- 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;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"streaming-executor.d.ts","sourceRoot":"","sources":["../../src/runtime/streaming-executor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AA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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,
|
|
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,yC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,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjE,MAAM,IAAI,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACzC,CAAC;AACH,CAAC"}
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,eAAe,EAChB,MAAM,gCAAgC,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,WAAW,SAAS,CACxB,MAAM,SAAS,CAAC,CAAC,OAAO,EACxB,OAAO,SAAS,CAAC,CAAC,OAAO,EACzB,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,GAAG,MAAM,CAC9D,MAAM,EACN,KAAK,CACN;IAED;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAE7B,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IAEd,uCAAuC;IACvC,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;;;OAMG;IACH,GAAG,EAAE,CACH,GAAG,EAAE,UAAU,CAAC,aAAa,CAAC,EAC9B,KAAK,EAAE,CAAC,CAAC,KAAK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OAAO,CAAC,GAAG,IAAI,CAAC;IAE5D,2BAA2B;IAC3B,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAE7D,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
package/src/api/definition.ts
CHANGED
|
@@ -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
|
-
|
|
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", () => {
|
package/src/api/streaming.ts
CHANGED
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type { z } from "zod";
|
|
9
|
-
|
|
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
|
-
|
|
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,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 {
|
|
8
|
+
import type { z } from "zod";
|
|
9
|
+
|
|
9
10
|
import type { Property } from "@superblocksteam/types/dist/src/common/v1/plugin_pb";
|
|
10
|
-
import type {
|
|
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
|
|
|
@@ -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
|
-
|
|
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,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
|
-
|
|
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
|
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import { describe, it, expect, vi } from "vitest";
|
|
9
9
|
import { z } from "zod";
|
|
10
|
-
|
|
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
|
-
|
|
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
|
/**
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Couchbase client implementation.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
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
|
-
|
|
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
|
|
58
|
+
const request = {
|
|
59
59
|
bucketName: bucket,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
|
119
|
+
const request = {
|
|
123
120
|
bucketName: identifier.bucket,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
value:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
|
152
|
+
const request = {
|
|
159
153
|
bucketName: identifier.bucket,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|
|
200
|
+
const request = {
|
|
210
201
|
bucketName: identifier.bucket,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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
|
};
|
|
@@ -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
|
-
|
|
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
|
|
|
@@ -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
|
-
|
|
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
|
/**
|