@superblocksteam/sdk-api 2.0.101-next.0 → 2.0.101-next.2
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 +1 -1
- package/dist/integrations/couchbase/client.d.ts.map +1 -1
- 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 +3 -2
- 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
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
|
/**
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import type { z } from "zod";
|
|
16
|
-
|
|
17
|
-
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
16
|
+
|
|
18
17
|
import { QueryValidationError, RestApiValidationError } from "../../errors.js";
|
|
19
18
|
import { IntegrationError } from "../../runtime/errors.js";
|
|
19
|
+
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
20
|
+
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
20
21
|
import { describeType } from "../utils.js";
|
|
21
22
|
import type { CouchbaseClient, CouchbaseIdentifier } from "./types.js";
|
|
22
23
|
|
|
@@ -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
|
/**
|
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
* Uses the native GCS plugin type from @superblocksteam/types.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import type { z } from "zod";
|
|
8
7
|
import type { PartialMessage } from "@bufbuild/protobuf";
|
|
8
|
+
import type { z } from "zod";
|
|
9
|
+
|
|
9
10
|
import type { Plugin as GCSPlugin } from "@superblocksteam/types/dist/src/plugins/gcs/v1/plugin_pb";
|
|
10
|
-
|
|
11
|
-
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
11
|
+
|
|
12
12
|
import { RestApiValidationError } from "../../errors.js";
|
|
13
13
|
import { IntegrationError } from "../../runtime/errors.js";
|
|
14
|
+
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
15
|
+
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
14
16
|
import type {
|
|
15
17
|
GCSClient,
|
|
16
18
|
GCSAction,
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* GraphQL client types.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import type { z } from "zod";
|
|
6
|
+
|
|
5
7
|
import type { BaseIntegrationClient } from "../../types.js";
|
|
6
8
|
import type { TraceMetadata } from "../registry.js";
|
|
7
|
-
import type { z } from "zod";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* GraphQL client for executing queries and mutations.
|
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
* Uses the native Google Sheets plugin type from @superblocksteam/types.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import type { z } from "zod";
|
|
8
7
|
import type { PartialMessage } from "@bufbuild/protobuf";
|
|
8
|
+
import type { z } from "zod";
|
|
9
|
+
|
|
9
10
|
import type { Plugin as GSheetsPlugin } from "@superblocksteam/types/dist/src/plugins/gsheets/v1/plugin_pb";
|
|
10
|
-
|
|
11
|
-
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
11
|
+
|
|
12
12
|
import { RestApiValidationError } from "../../errors.js";
|
|
13
13
|
import { IntegrationError } from "../../runtime/errors.js";
|
|
14
|
+
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
15
|
+
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
14
16
|
import type {
|
|
15
17
|
GoogleSheetsClient,
|
|
16
18
|
GoogleSheetsAction,
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import type { z } from "zod";
|
|
8
|
-
|
|
9
|
-
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
8
|
+
|
|
10
9
|
import { RestApiValidationError } from "../../errors.js";
|
|
11
10
|
import { IntegrationError } from "../../runtime/errors.js";
|
|
11
|
+
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
12
|
+
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
12
13
|
import type {
|
|
13
14
|
KafkaClient,
|
|
14
15
|
KafkaConsumeParams,
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Supports PUT (write records) and GET (read records) operations.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
9
|
-
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
10
8
|
import { IntegrationError } from "../../runtime/errors.js";
|
|
9
|
+
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
10
|
+
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
11
11
|
import type {
|
|
12
12
|
KinesisClient,
|
|
13
13
|
KinesisPutParams,
|