@superblocksteam/sdk-api 2.0.93 → 2.0.94-next.1
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 +137 -98
- package/dist/api/definition.d.ts +10 -0
- package/dist/api/definition.d.ts.map +1 -1
- package/dist/api/definition.js +17 -0
- package/dist/api/definition.js.map +1 -1
- package/dist/api/definition.test.d.ts +1 -1
- package/dist/api/definition.test.js +56 -3
- package/dist/api/definition.test.js.map +1 -1
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/streaming.d.ts +17 -3
- package/dist/api/streaming.d.ts.map +1 -1
- package/dist/api/streaming.js +10 -7
- package/dist/api/streaming.js.map +1 -1
- package/dist/api/streaming.test.js +147 -80
- package/dist/api/streaming.test.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +5 -5
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/airtable/client.d.ts +2 -2
- package/dist/integrations/airtable/client.d.ts.map +1 -1
- package/dist/integrations/airtable/client.js +1 -1
- package/dist/integrations/airtable/client.js.map +1 -1
- package/dist/integrations/airtable/index.d.ts +2 -2
- package/dist/integrations/airtable/index.js +1 -1
- package/dist/integrations/airtable/types.d.ts +5 -10
- package/dist/integrations/airtable/types.d.ts.map +1 -1
- package/dist/integrations/anthropic/client.d.ts +2 -2
- package/dist/integrations/anthropic/client.d.ts.map +1 -1
- package/dist/integrations/anthropic/client.js +1 -1
- package/dist/integrations/anthropic/client.js.map +1 -1
- package/dist/integrations/anthropic/index.d.ts +2 -2
- package/dist/integrations/anthropic/index.js +1 -1
- package/dist/integrations/anthropic/types.d.ts +5 -4
- package/dist/integrations/anthropic/types.d.ts.map +1 -1
- package/dist/integrations/asana/client.d.ts +2 -2
- package/dist/integrations/asana/client.d.ts.map +1 -1
- package/dist/integrations/asana/client.js +1 -1
- package/dist/integrations/asana/client.js.map +1 -1
- package/dist/integrations/asana/index.d.ts +2 -2
- package/dist/integrations/asana/index.js +1 -1
- package/dist/integrations/asana/types.d.ts +4 -3
- package/dist/integrations/asana/types.d.ts.map +1 -1
- package/dist/integrations/athena/client.d.ts +4 -4
- package/dist/integrations/athena/client.d.ts.map +1 -1
- package/dist/integrations/athena/client.js +8 -8
- package/dist/integrations/athena/client.js.map +1 -1
- package/dist/integrations/athena/index.d.ts +2 -2
- package/dist/integrations/athena/index.js +1 -1
- package/dist/integrations/athena/types.d.ts +4 -3
- package/dist/integrations/athena/types.d.ts.map +1 -1
- package/dist/integrations/base/graphql-integration-client.d.ts +3 -3
- package/dist/integrations/base/graphql-integration-client.js +3 -3
- package/dist/integrations/base/index.d.ts +4 -4
- package/dist/integrations/base/index.js +2 -2
- package/dist/integrations/base/rest-api-integration-client.d.ts.map +1 -1
- package/dist/integrations/base/rest-api-integration-client.js +1 -1
- package/dist/integrations/base/rest-api-integration-client.js.map +1 -1
- package/dist/integrations/base/types.d.ts +5 -10
- package/dist/integrations/base/types.d.ts.map +1 -1
- package/dist/integrations/bigquery/client.d.ts +4 -4
- package/dist/integrations/bigquery/client.d.ts.map +1 -1
- package/dist/integrations/bigquery/client.js +8 -8
- package/dist/integrations/bigquery/client.js.map +1 -1
- package/dist/integrations/bigquery/index.d.ts +2 -2
- package/dist/integrations/bigquery/index.js +1 -1
- package/dist/integrations/bigquery/types.d.ts +4 -3
- package/dist/integrations/bigquery/types.d.ts.map +1 -1
- package/dist/integrations/bitbucket/client.d.ts +2 -2
- package/dist/integrations/bitbucket/client.d.ts.map +1 -1
- package/dist/integrations/bitbucket/client.js +1 -1
- package/dist/integrations/bitbucket/client.js.map +1 -1
- package/dist/integrations/bitbucket/index.d.ts +2 -2
- package/dist/integrations/bitbucket/index.js +1 -1
- package/dist/integrations/bitbucket/types.d.ts +4 -3
- package/dist/integrations/bitbucket/types.d.ts.map +1 -1
- package/dist/integrations/box/client.d.ts +2 -2
- package/dist/integrations/box/client.d.ts.map +1 -1
- package/dist/integrations/box/client.js +1 -1
- package/dist/integrations/box/client.js.map +1 -1
- package/dist/integrations/box/index.d.ts +2 -2
- package/dist/integrations/box/index.js +1 -1
- package/dist/integrations/box/types.d.ts +4 -3
- package/dist/integrations/box/types.d.ts.map +1 -1
- package/dist/integrations/circleci/client.d.ts +2 -2
- package/dist/integrations/circleci/client.d.ts.map +1 -1
- package/dist/integrations/circleci/client.js +1 -1
- package/dist/integrations/circleci/client.js.map +1 -1
- package/dist/integrations/circleci/index.d.ts +2 -2
- package/dist/integrations/circleci/index.js +1 -1
- package/dist/integrations/circleci/types.d.ts +4 -3
- package/dist/integrations/circleci/types.d.ts.map +1 -1
- package/dist/integrations/cockroachdb/client.d.ts +4 -4
- package/dist/integrations/cockroachdb/client.d.ts.map +1 -1
- package/dist/integrations/cockroachdb/client.js +8 -8
- package/dist/integrations/cockroachdb/client.js.map +1 -1
- package/dist/integrations/cockroachdb/index.d.ts +2 -2
- package/dist/integrations/cockroachdb/index.js +1 -1
- package/dist/integrations/cockroachdb/types.d.ts +4 -3
- package/dist/integrations/cockroachdb/types.d.ts.map +1 -1
- package/dist/integrations/cohere/client.d.ts +2 -2
- package/dist/integrations/cohere/client.d.ts.map +1 -1
- package/dist/integrations/cohere/client.js +1 -1
- package/dist/integrations/cohere/client.js.map +1 -1
- package/dist/integrations/cohere/index.d.ts +2 -2
- package/dist/integrations/cohere/index.js +1 -1
- package/dist/integrations/cohere/types.d.ts +5 -10
- package/dist/integrations/cohere/types.d.ts.map +1 -1
- package/dist/integrations/confluence/client.d.ts +2 -2
- package/dist/integrations/confluence/client.d.ts.map +1 -1
- package/dist/integrations/confluence/client.js +1 -1
- package/dist/integrations/confluence/client.js.map +1 -1
- package/dist/integrations/confluence/index.d.ts +2 -2
- package/dist/integrations/confluence/index.js +1 -1
- package/dist/integrations/confluence/types.d.ts +4 -3
- package/dist/integrations/confluence/types.d.ts.map +1 -1
- package/dist/integrations/cosmosdb/client.d.ts +4 -4
- package/dist/integrations/cosmosdb/client.d.ts.map +1 -1
- package/dist/integrations/cosmosdb/client.js +23 -23
- package/dist/integrations/cosmosdb/client.js.map +1 -1
- package/dist/integrations/cosmosdb/index.d.ts +2 -2
- package/dist/integrations/cosmosdb/index.js +1 -1
- package/dist/integrations/cosmosdb/types.d.ts +4 -3
- package/dist/integrations/cosmosdb/types.d.ts.map +1 -1
- package/dist/integrations/couchbase/client.d.ts +4 -4
- package/dist/integrations/couchbase/client.d.ts.map +1 -1
- package/dist/integrations/couchbase/client.js +13 -13
- package/dist/integrations/couchbase/client.js.map +1 -1
- package/dist/integrations/couchbase/index.d.ts +2 -2
- package/dist/integrations/couchbase/index.js +1 -1
- package/dist/integrations/couchbase/types.d.ts +8 -7
- package/dist/integrations/couchbase/types.d.ts.map +1 -1
- package/dist/integrations/databricks/client.d.ts +4 -4
- package/dist/integrations/databricks/client.d.ts.map +1 -1
- package/dist/integrations/databricks/client.js +8 -8
- package/dist/integrations/databricks/client.js.map +1 -1
- package/dist/integrations/databricks/index.d.ts +2 -2
- package/dist/integrations/databricks/index.js +1 -1
- package/dist/integrations/databricks/types.d.ts +4 -3
- package/dist/integrations/databricks/types.d.ts.map +1 -1
- package/dist/integrations/datadog/client.d.ts +2 -2
- package/dist/integrations/datadog/client.d.ts.map +1 -1
- package/dist/integrations/datadog/client.js +1 -1
- package/dist/integrations/datadog/client.js.map +1 -1
- package/dist/integrations/datadog/index.d.ts +2 -2
- package/dist/integrations/datadog/index.js +1 -1
- package/dist/integrations/datadog/types.d.ts +4 -3
- package/dist/integrations/datadog/types.d.ts.map +1 -1
- package/dist/integrations/declarations.d.ts +130 -130
- package/dist/integrations/declarations.d.ts.map +1 -1
- package/dist/integrations/declarations.js +66 -66
- package/dist/integrations/declarations.js.map +1 -1
- package/dist/integrations/dropbox/client.d.ts +2 -2
- package/dist/integrations/dropbox/client.d.ts.map +1 -1
- package/dist/integrations/dropbox/client.js +1 -1
- package/dist/integrations/dropbox/client.js.map +1 -1
- package/dist/integrations/dropbox/index.d.ts +2 -2
- package/dist/integrations/dropbox/index.js +1 -1
- package/dist/integrations/dropbox/types.d.ts +4 -3
- package/dist/integrations/dropbox/types.d.ts.map +1 -1
- package/dist/integrations/dynamodb/client.d.ts +4 -4
- package/dist/integrations/dynamodb/client.d.ts.map +1 -1
- package/dist/integrations/dynamodb/client.js +30 -30
- package/dist/integrations/dynamodb/client.js.map +1 -1
- package/dist/integrations/dynamodb/index.d.ts +2 -2
- package/dist/integrations/dynamodb/index.js +1 -1
- package/dist/integrations/dynamodb/types.d.ts +10 -9
- package/dist/integrations/dynamodb/types.d.ts.map +1 -1
- package/dist/integrations/elasticsearch/client.d.ts +2 -2
- package/dist/integrations/elasticsearch/client.d.ts.map +1 -1
- package/dist/integrations/elasticsearch/client.js +1 -1
- package/dist/integrations/elasticsearch/client.js.map +1 -1
- package/dist/integrations/elasticsearch/index.d.ts +2 -2
- package/dist/integrations/elasticsearch/index.js +1 -1
- package/dist/integrations/elasticsearch/types.d.ts +4 -3
- package/dist/integrations/elasticsearch/types.d.ts.map +1 -1
- package/dist/integrations/fireworks/client.d.ts +2 -2
- package/dist/integrations/fireworks/client.d.ts.map +1 -1
- package/dist/integrations/fireworks/client.js +1 -1
- package/dist/integrations/fireworks/client.js.map +1 -1
- package/dist/integrations/fireworks/index.d.ts +2 -2
- package/dist/integrations/fireworks/index.js +1 -1
- package/dist/integrations/fireworks/types.d.ts +4 -3
- package/dist/integrations/fireworks/types.d.ts.map +1 -1
- package/dist/integrations/front/client.d.ts +2 -2
- package/dist/integrations/front/client.d.ts.map +1 -1
- package/dist/integrations/front/client.js +1 -1
- package/dist/integrations/front/client.js.map +1 -1
- package/dist/integrations/front/index.d.ts +2 -2
- package/dist/integrations/front/index.js +1 -1
- package/dist/integrations/front/types.d.ts +4 -3
- package/dist/integrations/front/types.d.ts.map +1 -1
- package/dist/integrations/gcs/client.d.ts +4 -4
- package/dist/integrations/gcs/client.js +20 -20
- package/dist/integrations/gcs/index.d.ts +2 -2
- package/dist/integrations/gcs/index.js +1 -1
- package/dist/integrations/gcs/types.d.ts +3 -3
- package/dist/integrations/gcs/types.d.ts.map +1 -1
- package/dist/integrations/gemini/client.d.ts +2 -2
- package/dist/integrations/gemini/client.d.ts.map +1 -1
- package/dist/integrations/gemini/client.js +1 -1
- package/dist/integrations/gemini/client.js.map +1 -1
- package/dist/integrations/gemini/index.d.ts +2 -2
- package/dist/integrations/gemini/index.js +1 -1
- package/dist/integrations/gemini/types.d.ts +4 -3
- package/dist/integrations/gemini/types.d.ts.map +1 -1
- package/dist/integrations/github/client.d.ts +2 -2
- package/dist/integrations/github/client.d.ts.map +1 -1
- package/dist/integrations/github/client.js +1 -1
- package/dist/integrations/github/client.js.map +1 -1
- package/dist/integrations/github/index.d.ts +2 -2
- package/dist/integrations/github/index.js +1 -1
- package/dist/integrations/github/types.d.ts +6 -5
- package/dist/integrations/github/types.d.ts.map +1 -1
- package/dist/integrations/googleanalytics/client.d.ts +2 -2
- package/dist/integrations/googleanalytics/client.d.ts.map +1 -1
- package/dist/integrations/googleanalytics/client.js +1 -1
- package/dist/integrations/googleanalytics/client.js.map +1 -1
- package/dist/integrations/googleanalytics/index.d.ts +2 -2
- package/dist/integrations/googleanalytics/index.js +1 -1
- package/dist/integrations/googleanalytics/types.d.ts +4 -3
- package/dist/integrations/googleanalytics/types.d.ts.map +1 -1
- package/dist/integrations/googledrive/client.d.ts +2 -2
- package/dist/integrations/googledrive/client.d.ts.map +1 -1
- package/dist/integrations/googledrive/client.js +1 -1
- package/dist/integrations/googledrive/client.js.map +1 -1
- package/dist/integrations/googledrive/index.d.ts +2 -2
- package/dist/integrations/googledrive/index.js +1 -1
- package/dist/integrations/googledrive/types.d.ts +4 -3
- package/dist/integrations/googledrive/types.d.ts.map +1 -1
- package/dist/integrations/graphql/client.d.ts +2 -2
- package/dist/integrations/graphql/client.d.ts.map +1 -1
- package/dist/integrations/graphql/client.js +1 -1
- package/dist/integrations/graphql/client.js.map +1 -1
- package/dist/integrations/graphql/index.d.ts +2 -2
- package/dist/integrations/graphql/index.js +1 -1
- package/dist/integrations/graphql/types.d.ts +4 -3
- package/dist/integrations/graphql/types.d.ts.map +1 -1
- package/dist/integrations/groq/client.d.ts +2 -2
- package/dist/integrations/groq/client.d.ts.map +1 -1
- package/dist/integrations/groq/client.js +1 -1
- package/dist/integrations/groq/client.js.map +1 -1
- package/dist/integrations/groq/index.d.ts +2 -2
- package/dist/integrations/groq/index.js +1 -1
- package/dist/integrations/groq/types.d.ts +4 -3
- package/dist/integrations/groq/types.d.ts.map +1 -1
- package/dist/integrations/gsheets/client.d.ts +4 -4
- package/dist/integrations/gsheets/client.d.ts.map +1 -1
- package/dist/integrations/gsheets/client.js +3 -3
- package/dist/integrations/gsheets/client.js.map +1 -1
- package/dist/integrations/gsheets/index.d.ts +2 -2
- package/dist/integrations/gsheets/index.js +1 -1
- package/dist/integrations/gsheets/types.d.ts +7 -6
- package/dist/integrations/gsheets/types.d.ts.map +1 -1
- package/dist/integrations/hubspot/client.d.ts +2 -2
- package/dist/integrations/hubspot/client.d.ts.map +1 -1
- package/dist/integrations/hubspot/client.js +1 -1
- package/dist/integrations/hubspot/client.js.map +1 -1
- package/dist/integrations/hubspot/index.d.ts +2 -2
- package/dist/integrations/hubspot/index.js +1 -1
- package/dist/integrations/hubspot/types.d.ts +4 -3
- package/dist/integrations/hubspot/types.d.ts.map +1 -1
- package/dist/integrations/index.d.ts +131 -131
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +66 -66
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/intercom/client.d.ts +2 -2
- package/dist/integrations/intercom/client.d.ts.map +1 -1
- package/dist/integrations/intercom/client.js +1 -1
- package/dist/integrations/intercom/client.js.map +1 -1
- package/dist/integrations/intercom/index.d.ts +2 -2
- package/dist/integrations/intercom/index.js +1 -1
- package/dist/integrations/intercom/types.d.ts +4 -3
- package/dist/integrations/intercom/types.d.ts.map +1 -1
- package/dist/integrations/jira/client.d.ts +2 -2
- package/dist/integrations/jira/client.d.ts.map +1 -1
- package/dist/integrations/jira/client.js +1 -1
- package/dist/integrations/jira/client.js.map +1 -1
- package/dist/integrations/jira/index.d.ts +2 -2
- package/dist/integrations/jira/index.js +1 -1
- package/dist/integrations/jira/types.d.ts +4 -3
- package/dist/integrations/jira/types.d.ts.map +1 -1
- package/dist/integrations/kafka/client.d.ts +4 -4
- package/dist/integrations/kafka/client.d.ts.map +1 -1
- package/dist/integrations/kafka/client.js +19 -17
- package/dist/integrations/kafka/client.js.map +1 -1
- package/dist/integrations/kafka/index.d.ts +2 -2
- package/dist/integrations/kafka/index.js +1 -1
- package/dist/integrations/kafka/types.d.ts +8 -7
- package/dist/integrations/kafka/types.d.ts.map +1 -1
- package/dist/integrations/kinesis/client.d.ts +3 -3
- package/dist/integrations/kinesis/client.d.ts.map +1 -1
- package/dist/integrations/kinesis/client.js +5 -5
- package/dist/integrations/kinesis/client.js.map +1 -1
- package/dist/integrations/kinesis/index.d.ts +2 -2
- package/dist/integrations/kinesis/index.js +1 -1
- package/dist/integrations/kinesis/types.d.ts +5 -4
- package/dist/integrations/kinesis/types.d.ts.map +1 -1
- package/dist/integrations/lakebase/client.d.ts +4 -4
- package/dist/integrations/lakebase/client.d.ts.map +1 -1
- package/dist/integrations/lakebase/client.js +8 -8
- package/dist/integrations/lakebase/client.js.map +1 -1
- package/dist/integrations/lakebase/index.d.ts +2 -2
- package/dist/integrations/lakebase/index.js +1 -1
- package/dist/integrations/lakebase/types.d.ts +2 -2
- package/dist/integrations/lakebase/types.d.ts.map +1 -1
- package/dist/integrations/launchdarkly/client.d.ts +2 -2
- package/dist/integrations/launchdarkly/client.d.ts.map +1 -1
- package/dist/integrations/launchdarkly/client.js +1 -1
- package/dist/integrations/launchdarkly/client.js.map +1 -1
- package/dist/integrations/launchdarkly/index.d.ts +2 -2
- package/dist/integrations/launchdarkly/index.js +1 -1
- package/dist/integrations/launchdarkly/types.d.ts +4 -3
- package/dist/integrations/launchdarkly/types.d.ts.map +1 -1
- package/dist/integrations/mariadb/client.d.ts +4 -4
- package/dist/integrations/mariadb/client.d.ts.map +1 -1
- package/dist/integrations/mariadb/client.js +8 -8
- package/dist/integrations/mariadb/client.js.map +1 -1
- package/dist/integrations/mariadb/index.d.ts +2 -2
- package/dist/integrations/mariadb/index.js +1 -1
- package/dist/integrations/mariadb/types.d.ts +4 -3
- package/dist/integrations/mariadb/types.d.ts.map +1 -1
- package/dist/integrations/mistral/client.d.ts +2 -2
- package/dist/integrations/mistral/client.d.ts.map +1 -1
- package/dist/integrations/mistral/client.js +1 -1
- package/dist/integrations/mistral/client.js.map +1 -1
- package/dist/integrations/mistral/index.d.ts +2 -2
- package/dist/integrations/mistral/index.js +1 -1
- package/dist/integrations/mistral/types.d.ts +4 -3
- package/dist/integrations/mistral/types.d.ts.map +1 -1
- package/dist/integrations/mongodb/client.d.ts +4 -4
- package/dist/integrations/mongodb/client.d.ts.map +1 -1
- package/dist/integrations/mongodb/client.js +3 -3
- package/dist/integrations/mongodb/client.js.map +1 -1
- package/dist/integrations/mongodb/index.d.ts +2 -2
- package/dist/integrations/mongodb/index.js +1 -1
- package/dist/integrations/mongodb/types.d.ts +5 -4
- package/dist/integrations/mongodb/types.d.ts.map +1 -1
- package/dist/integrations/mssql/client.d.ts +4 -4
- package/dist/integrations/mssql/client.d.ts.map +1 -1
- package/dist/integrations/mssql/client.js +8 -8
- package/dist/integrations/mssql/client.js.map +1 -1
- package/dist/integrations/mssql/index.d.ts +2 -2
- package/dist/integrations/mssql/index.js +1 -1
- package/dist/integrations/mssql/types.d.ts +4 -3
- package/dist/integrations/mssql/types.d.ts.map +1 -1
- package/dist/integrations/mysql/client.d.ts +4 -4
- package/dist/integrations/mysql/client.d.ts.map +1 -1
- package/dist/integrations/mysql/client.js +8 -8
- package/dist/integrations/mysql/client.js.map +1 -1
- package/dist/integrations/mysql/index.d.ts +2 -2
- package/dist/integrations/mysql/index.js +1 -1
- package/dist/integrations/mysql/types.d.ts +4 -3
- package/dist/integrations/mysql/types.d.ts.map +1 -1
- package/dist/integrations/notion/client.d.ts +2 -2
- package/dist/integrations/notion/client.d.ts.map +1 -1
- package/dist/integrations/notion/client.js +1 -1
- package/dist/integrations/notion/client.js.map +1 -1
- package/dist/integrations/notion/index.d.ts +2 -2
- package/dist/integrations/notion/index.js +1 -1
- package/dist/integrations/notion/types.d.ts +6 -5
- package/dist/integrations/notion/types.d.ts.map +1 -1
- package/dist/integrations/openai_v2/client.d.ts +2 -2
- package/dist/integrations/openai_v2/client.d.ts.map +1 -1
- package/dist/integrations/openai_v2/client.js +1 -1
- package/dist/integrations/openai_v2/client.js.map +1 -1
- package/dist/integrations/openai_v2/index.d.ts +2 -2
- package/dist/integrations/openai_v2/index.js +1 -1
- package/dist/integrations/openai_v2/types.d.ts +5 -4
- package/dist/integrations/openai_v2/types.d.ts.map +1 -1
- package/dist/integrations/oracledb/client.d.ts +4 -4
- package/dist/integrations/oracledb/client.d.ts.map +1 -1
- package/dist/integrations/oracledb/client.js +8 -8
- package/dist/integrations/oracledb/client.js.map +1 -1
- package/dist/integrations/oracledb/index.d.ts +2 -2
- package/dist/integrations/oracledb/index.js +1 -1
- package/dist/integrations/oracledb/types.d.ts +4 -3
- package/dist/integrations/oracledb/types.d.ts.map +1 -1
- package/dist/integrations/pagerduty/client.d.ts +2 -2
- package/dist/integrations/pagerduty/client.d.ts.map +1 -1
- package/dist/integrations/pagerduty/client.js +1 -1
- package/dist/integrations/pagerduty/client.js.map +1 -1
- package/dist/integrations/pagerduty/index.d.ts +2 -2
- package/dist/integrations/pagerduty/index.js +1 -1
- package/dist/integrations/pagerduty/types.d.ts +4 -3
- package/dist/integrations/pagerduty/types.d.ts.map +1 -1
- package/dist/integrations/perplexity/client.d.ts +2 -2
- package/dist/integrations/perplexity/client.d.ts.map +1 -1
- package/dist/integrations/perplexity/client.js +1 -1
- package/dist/integrations/perplexity/client.js.map +1 -1
- package/dist/integrations/perplexity/index.d.ts +2 -2
- package/dist/integrations/perplexity/index.js +1 -1
- package/dist/integrations/perplexity/types.d.ts +4 -3
- package/dist/integrations/perplexity/types.d.ts.map +1 -1
- package/dist/integrations/postgres/client.d.ts +6 -6
- package/dist/integrations/postgres/client.d.ts.map +1 -1
- package/dist/integrations/postgres/client.js +8 -8
- package/dist/integrations/postgres/client.js.map +1 -1
- package/dist/integrations/postgres/index.d.ts +2 -2
- package/dist/integrations/postgres/index.js +1 -1
- package/dist/integrations/postgres/types.d.ts +8 -7
- package/dist/integrations/postgres/types.d.ts.map +1 -1
- package/dist/integrations/python/client.d.ts +6 -6
- package/dist/integrations/python/client.d.ts.map +1 -1
- package/dist/integrations/python/client.js +5 -5
- package/dist/integrations/python/client.js.map +1 -1
- package/dist/integrations/python/client.test.js +82 -63
- package/dist/integrations/python/client.test.js.map +1 -1
- package/dist/integrations/python/index.d.ts +2 -2
- package/dist/integrations/python/index.js +1 -1
- package/dist/integrations/python/types.d.ts +5 -5
- package/dist/integrations/redis/client.d.ts +4 -4
- package/dist/integrations/redis/client.d.ts.map +1 -1
- package/dist/integrations/redis/client.js +23 -23
- package/dist/integrations/redis/client.js.map +1 -1
- package/dist/integrations/redis/index.d.ts +2 -2
- package/dist/integrations/redis/index.js +1 -1
- package/dist/integrations/redis/types.d.ts +4 -3
- package/dist/integrations/redis/types.d.ts.map +1 -1
- package/dist/integrations/redshift/client.d.ts +4 -4
- package/dist/integrations/redshift/client.d.ts.map +1 -1
- package/dist/integrations/redshift/client.js +8 -8
- package/dist/integrations/redshift/client.js.map +1 -1
- package/dist/integrations/redshift/index.d.ts +2 -2
- package/dist/integrations/redshift/index.js +1 -1
- package/dist/integrations/redshift/types.d.ts +4 -3
- package/dist/integrations/redshift/types.d.ts.map +1 -1
- package/dist/integrations/registry.d.ts +2 -2
- package/dist/integrations/registry.d.ts.map +1 -1
- package/dist/integrations/registry.js +132 -132
- package/dist/integrations/registry.js.map +1 -1
- package/dist/integrations/registry.test.js +10 -10
- package/dist/integrations/registry.test.js.map +1 -1
- package/dist/integrations/s3/client.d.ts +4 -4
- package/dist/integrations/s3/client.d.ts.map +1 -1
- package/dist/integrations/s3/client.js +20 -20
- package/dist/integrations/s3/client.js.map +1 -1
- package/dist/integrations/s3/index.d.ts +2 -2
- package/dist/integrations/s3/index.js +1 -1
- package/dist/integrations/s3/types.d.ts +3 -3
- package/dist/integrations/s3/types.d.ts.map +1 -1
- package/dist/integrations/salesforce/client.d.ts +4 -4
- package/dist/integrations/salesforce/client.d.ts.map +1 -1
- package/dist/integrations/salesforce/client.js +22 -22
- package/dist/integrations/salesforce/client.js.map +1 -1
- package/dist/integrations/salesforce/index.d.ts +2 -2
- package/dist/integrations/salesforce/index.d.ts.map +1 -1
- package/dist/integrations/salesforce/index.js +1 -1
- package/dist/integrations/salesforce/index.js.map +1 -1
- package/dist/integrations/salesforce/types.d.ts +12 -11
- package/dist/integrations/salesforce/types.d.ts.map +1 -1
- package/dist/integrations/segment/client.d.ts +2 -2
- package/dist/integrations/segment/client.d.ts.map +1 -1
- package/dist/integrations/segment/client.js +1 -1
- package/dist/integrations/segment/client.js.map +1 -1
- package/dist/integrations/segment/index.d.ts +2 -2
- package/dist/integrations/segment/index.js +1 -1
- package/dist/integrations/segment/types.d.ts +4 -3
- package/dist/integrations/segment/types.d.ts.map +1 -1
- package/dist/integrations/sendgrid/client.d.ts +2 -2
- package/dist/integrations/sendgrid/client.d.ts.map +1 -1
- package/dist/integrations/sendgrid/client.js +1 -1
- package/dist/integrations/sendgrid/client.js.map +1 -1
- package/dist/integrations/sendgrid/index.d.ts +2 -2
- package/dist/integrations/sendgrid/index.js +1 -1
- package/dist/integrations/sendgrid/types.d.ts +4 -3
- package/dist/integrations/sendgrid/types.d.ts.map +1 -1
- package/dist/integrations/slack/client.d.ts.map +1 -1
- package/dist/integrations/slack/client.js.map +1 -1
- package/dist/integrations/slack/index.d.ts +2 -2
- package/dist/integrations/slack/index.js +1 -1
- package/dist/integrations/slack/types.d.ts +6 -12
- package/dist/integrations/slack/types.d.ts.map +1 -1
- package/dist/integrations/smtp/client.d.ts +3 -3
- package/dist/integrations/smtp/client.js +6 -6
- package/dist/integrations/smtp/index.d.ts +2 -2
- package/dist/integrations/smtp/index.js +1 -1
- package/dist/integrations/smtp/types.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/index.d.ts +2 -2
- package/dist/integrations/snowflake/index.js +1 -1
- package/dist/integrations/snowflake/types.d.ts +4 -3
- package/dist/integrations/snowflake/types.d.ts.map +1 -1
- package/dist/integrations/snowflakecortex/client.d.ts +2 -2
- package/dist/integrations/snowflakecortex/client.d.ts.map +1 -1
- package/dist/integrations/snowflakecortex/client.js +1 -1
- package/dist/integrations/snowflakecortex/client.js.map +1 -1
- package/dist/integrations/snowflakecortex/index.d.ts +2 -2
- package/dist/integrations/snowflakecortex/index.js +1 -1
- package/dist/integrations/snowflakecortex/types.d.ts +2 -2
- package/dist/integrations/snowflakecortex/types.d.ts.map +1 -1
- package/dist/integrations/snowflakepostgres/client.d.ts +2 -2
- package/dist/integrations/snowflakepostgres/client.js +1 -1
- package/dist/integrations/snowflakepostgres/index.d.ts +2 -2
- package/dist/integrations/snowflakepostgres/index.js +1 -1
- package/dist/integrations/snowflakepostgres/types.d.ts +2 -2
- package/dist/integrations/snowflakepostgres/types.d.ts.map +1 -1
- package/dist/integrations/stabilityai/client.d.ts +2 -2
- package/dist/integrations/stabilityai/client.d.ts.map +1 -1
- package/dist/integrations/stabilityai/client.js +1 -1
- package/dist/integrations/stabilityai/client.js.map +1 -1
- package/dist/integrations/stabilityai/index.d.ts +2 -2
- package/dist/integrations/stabilityai/index.js +1 -1
- package/dist/integrations/stabilityai/types.d.ts +4 -3
- package/dist/integrations/stabilityai/types.d.ts.map +1 -1
- package/dist/integrations/stripe/client.d.ts +2 -2
- package/dist/integrations/stripe/client.d.ts.map +1 -1
- package/dist/integrations/stripe/client.js +1 -1
- package/dist/integrations/stripe/client.js.map +1 -1
- package/dist/integrations/stripe/index.d.ts +2 -2
- package/dist/integrations/stripe/index.js +1 -1
- package/dist/integrations/stripe/types.d.ts +6 -5
- package/dist/integrations/stripe/types.d.ts.map +1 -1
- package/dist/integrations/superblocks-ocr/client.d.ts +2 -2
- package/dist/integrations/superblocks-ocr/client.d.ts.map +1 -1
- package/dist/integrations/superblocks-ocr/client.js +1 -1
- package/dist/integrations/superblocks-ocr/client.js.map +1 -1
- package/dist/integrations/superblocks-ocr/index.d.ts +2 -2
- package/dist/integrations/superblocks-ocr/index.js +1 -1
- package/dist/integrations/superblocks-ocr/types.d.ts +4 -3
- package/dist/integrations/superblocks-ocr/types.d.ts.map +1 -1
- package/dist/integrations/twilio/client.d.ts +2 -2
- package/dist/integrations/twilio/client.d.ts.map +1 -1
- package/dist/integrations/twilio/client.js +1 -1
- package/dist/integrations/twilio/client.js.map +1 -1
- package/dist/integrations/twilio/index.d.ts +2 -2
- package/dist/integrations/twilio/index.js +1 -1
- package/dist/integrations/twilio/types.d.ts +4 -3
- package/dist/integrations/twilio/types.d.ts.map +1 -1
- package/dist/integrations/types.d.ts +1 -1
- package/dist/integrations/utils.js +5 -5
- package/dist/integrations/zendesk/client.d.ts +2 -2
- package/dist/integrations/zendesk/client.d.ts.map +1 -1
- package/dist/integrations/zendesk/client.js +1 -1
- package/dist/integrations/zendesk/client.js.map +1 -1
- package/dist/integrations/zendesk/index.d.ts +2 -2
- package/dist/integrations/zendesk/index.js +1 -1
- package/dist/integrations/zendesk/types.d.ts +4 -3
- package/dist/integrations/zendesk/types.d.ts.map +1 -1
- package/dist/integrations/zoom/client.d.ts +2 -2
- package/dist/integrations/zoom/client.d.ts.map +1 -1
- package/dist/integrations/zoom/client.js +1 -1
- package/dist/integrations/zoom/client.js.map +1 -1
- package/dist/integrations/zoom/index.d.ts +2 -2
- package/dist/integrations/zoom/index.js +1 -1
- package/dist/integrations/zoom/types.d.ts +5 -4
- package/dist/integrations/zoom/types.d.ts.map +1 -1
- package/dist/runtime/context.d.ts +3 -3
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/context.js +3 -3
- package/dist/runtime/context.js.map +1 -1
- package/dist/runtime/errors.d.ts.map +1 -1
- package/dist/runtime/errors.js +17 -13
- package/dist/runtime/errors.js.map +1 -1
- package/dist/runtime/execute.d.ts +5 -5
- package/dist/runtime/execute.d.ts.map +1 -1
- package/dist/runtime/execute.js +3 -3
- package/dist/runtime/execute.js.map +1 -1
- package/dist/runtime/executor.d.ts +4 -4
- package/dist/runtime/executor.js +5 -5
- package/dist/runtime/index.d.ts +6 -6
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +6 -6
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/logger.d.ts +1 -1
- package/dist/runtime/logger.d.ts.map +1 -1
- package/dist/runtime/logger.js +5 -5
- package/dist/runtime/logger.js.map +1 -1
- package/dist/runtime/streaming-context.d.ts +3 -3
- package/dist/runtime/streaming-context.d.ts.map +1 -1
- package/dist/runtime/streaming-context.js +2 -2
- package/dist/runtime/streaming-context.js.map +1 -1
- package/dist/runtime/streaming-executor.d.ts +4 -4
- package/dist/runtime/streaming-executor.d.ts.map +1 -1
- package/dist/runtime/streaming-executor.js +5 -5
- package/dist/runtime/streaming-executor.js.map +1 -1
- package/dist/types.d.ts +10 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/api/definition.test.ts +65 -2
- package/src/api/definition.ts +33 -1
- package/src/api/index.ts +4 -4
- package/src/api/streaming.test.ts +166 -88
- package/src/api/streaming.ts +41 -13
- package/src/errors.ts +6 -6
- package/src/index.ts +14 -3
- package/src/integrations/airtable/README.md +46 -39
- package/src/integrations/airtable/client.ts +5 -3
- package/src/integrations/airtable/index.ts +2 -2
- package/src/integrations/airtable/types.ts +7 -11
- package/src/integrations/anthropic/README.md +57 -47
- package/src/integrations/anthropic/client.ts +5 -3
- package/src/integrations/anthropic/index.ts +2 -2
- package/src/integrations/anthropic/types.ts +12 -5
- package/src/integrations/asana/README.md +39 -37
- package/src/integrations/asana/client.ts +5 -3
- package/src/integrations/asana/index.ts +2 -2
- package/src/integrations/asana/types.ts +4 -3
- package/src/integrations/athena/README.md +23 -16
- package/src/integrations/athena/client.ts +18 -15
- package/src/integrations/athena/index.ts +2 -2
- package/src/integrations/athena/types.ts +9 -4
- package/src/integrations/base/graphql-integration-client.ts +9 -9
- package/src/integrations/base/index.ts +4 -4
- package/src/integrations/base/rest-api-integration-client.ts +15 -4
- package/src/integrations/base/types.ts +8 -11
- package/src/integrations/bigquery/README.md +24 -19
- package/src/integrations/bigquery/client.ts +21 -16
- package/src/integrations/bigquery/index.ts +2 -2
- package/src/integrations/bigquery/types.ts +9 -4
- package/src/integrations/bitbucket/README.md +56 -40
- package/src/integrations/bitbucket/client.ts +5 -3
- package/src/integrations/bitbucket/index.ts +2 -2
- package/src/integrations/bitbucket/types.ts +6 -4
- package/src/integrations/box/README.md +60 -53
- package/src/integrations/box/client.ts +5 -3
- package/src/integrations/box/index.ts +2 -2
- package/src/integrations/box/types.ts +4 -3
- package/src/integrations/circleci/README.md +70 -43
- package/src/integrations/circleci/client.ts +5 -3
- package/src/integrations/circleci/index.ts +2 -2
- package/src/integrations/circleci/types.ts +6 -4
- package/src/integrations/cockroachdb/README.md +26 -21
- package/src/integrations/cockroachdb/client.ts +18 -15
- package/src/integrations/cockroachdb/index.ts +2 -2
- package/src/integrations/cockroachdb/types.ts +9 -4
- package/src/integrations/cohere/README.md +30 -29
- package/src/integrations/cohere/client.ts +5 -3
- package/src/integrations/cohere/index.ts +2 -2
- package/src/integrations/cohere/types.ts +7 -11
- package/src/integrations/confluence/README.md +50 -46
- package/src/integrations/confluence/client.ts +5 -3
- package/src/integrations/confluence/index.ts +2 -2
- package/src/integrations/confluence/types.ts +6 -4
- package/src/integrations/cosmosdb/README.md +26 -23
- package/src/integrations/cosmosdb/client.ts +32 -30
- package/src/integrations/cosmosdb/index.ts +2 -2
- package/src/integrations/cosmosdb/types.ts +4 -3
- package/src/integrations/couchbase/README.md +37 -23
- package/src/integrations/couchbase/client.ts +28 -22
- package/src/integrations/couchbase/index.ts +2 -2
- package/src/integrations/couchbase/types.ts +14 -8
- package/src/integrations/databricks/README.md +25 -20
- package/src/integrations/databricks/client.ts +18 -15
- package/src/integrations/databricks/index.ts +2 -2
- package/src/integrations/databricks/types.ts +9 -4
- package/src/integrations/datadog/README.md +51 -38
- package/src/integrations/datadog/client.ts +5 -3
- package/src/integrations/datadog/index.ts +2 -2
- package/src/integrations/datadog/types.ts +6 -4
- package/src/integrations/declarations.ts +237 -199
- package/src/integrations/dropbox/README.md +42 -39
- package/src/integrations/dropbox/client.ts +5 -3
- package/src/integrations/dropbox/index.ts +2 -2
- package/src/integrations/dropbox/types.ts +6 -4
- package/src/integrations/dynamodb/README.md +92 -60
- package/src/integrations/dynamodb/client.ts +45 -36
- package/src/integrations/dynamodb/index.ts +2 -2
- package/src/integrations/dynamodb/types.ts +10 -9
- package/src/integrations/elasticsearch/README.md +72 -70
- package/src/integrations/elasticsearch/client.ts +5 -3
- package/src/integrations/elasticsearch/index.ts +2 -2
- package/src/integrations/elasticsearch/types.ts +6 -4
- package/src/integrations/fireworks/README.md +35 -38
- package/src/integrations/fireworks/client.ts +5 -3
- package/src/integrations/fireworks/index.ts +2 -2
- package/src/integrations/fireworks/types.ts +6 -4
- package/src/integrations/front/README.md +29 -28
- package/src/integrations/front/client.ts +5 -3
- package/src/integrations/front/index.ts +2 -2
- package/src/integrations/front/types.ts +4 -3
- package/src/integrations/gcs/README.md +24 -19
- package/src/integrations/gcs/client.ts +26 -26
- package/src/integrations/gcs/index.ts +2 -2
- package/src/integrations/gcs/types.ts +11 -14
- package/src/integrations/gemini/README.md +31 -28
- package/src/integrations/gemini/client.ts +5 -3
- package/src/integrations/gemini/index.ts +2 -2
- package/src/integrations/gemini/types.ts +6 -4
- package/src/integrations/github/README.md +41 -35
- package/src/integrations/github/client.ts +5 -3
- package/src/integrations/github/index.ts +2 -2
- package/src/integrations/github/types.ts +8 -6
- package/src/integrations/googleanalytics/README.md +51 -40
- package/src/integrations/googleanalytics/client.ts +5 -3
- package/src/integrations/googleanalytics/index.ts +2 -2
- package/src/integrations/googleanalytics/types.ts +6 -4
- package/src/integrations/googledrive/README.md +57 -50
- package/src/integrations/googledrive/client.ts +5 -3
- package/src/integrations/googledrive/index.ts +2 -2
- package/src/integrations/googledrive/types.ts +6 -4
- package/src/integrations/graphql/README.md +62 -41
- package/src/integrations/graphql/client.ts +5 -3
- package/src/integrations/graphql/index.ts +2 -2
- package/src/integrations/graphql/types.ts +6 -5
- package/src/integrations/groq/README.md +34 -35
- package/src/integrations/groq/client.ts +5 -3
- package/src/integrations/groq/index.ts +2 -2
- package/src/integrations/groq/types.ts +4 -3
- package/src/integrations/gsheets/README.md +61 -47
- package/src/integrations/gsheets/client.ts +19 -11
- package/src/integrations/gsheets/index.ts +2 -2
- package/src/integrations/gsheets/types.ts +12 -11
- package/src/integrations/hubspot/README.md +80 -67
- package/src/integrations/hubspot/client.ts +5 -3
- package/src/integrations/hubspot/index.ts +2 -2
- package/src/integrations/hubspot/types.ts +6 -4
- package/src/integrations/index.ts +169 -131
- package/src/integrations/intercom/README.md +25 -24
- package/src/integrations/intercom/client.ts +5 -3
- package/src/integrations/intercom/index.ts +2 -2
- package/src/integrations/intercom/types.ts +6 -4
- package/src/integrations/jira/README.md +46 -43
- package/src/integrations/jira/client.ts +5 -3
- package/src/integrations/jira/index.ts +2 -2
- package/src/integrations/jira/types.ts +4 -3
- package/src/integrations/kafka/README.md +39 -33
- package/src/integrations/kafka/client.ts +34 -30
- package/src/integrations/kafka/index.ts +2 -2
- package/src/integrations/kafka/types.ts +8 -7
- package/src/integrations/kinesis/README.md +34 -32
- package/src/integrations/kinesis/client.ts +12 -8
- package/src/integrations/kinesis/index.ts +2 -2
- package/src/integrations/kinesis/types.ts +9 -10
- package/src/integrations/lakebase/client.ts +33 -20
- package/src/integrations/lakebase/index.ts +2 -2
- package/src/integrations/lakebase/types.ts +7 -3
- package/src/integrations/launchdarkly/README.md +38 -37
- package/src/integrations/launchdarkly/client.ts +5 -3
- package/src/integrations/launchdarkly/index.ts +2 -2
- package/src/integrations/launchdarkly/types.ts +6 -4
- package/src/integrations/mariadb/README.md +24 -19
- package/src/integrations/mariadb/client.ts +18 -15
- package/src/integrations/mariadb/index.ts +2 -2
- package/src/integrations/mariadb/types.ts +9 -4
- package/src/integrations/mistral/README.md +33 -34
- package/src/integrations/mistral/client.ts +5 -3
- package/src/integrations/mistral/index.ts +2 -2
- package/src/integrations/mistral/types.ts +6 -4
- package/src/integrations/mongodb/README.md +131 -86
- package/src/integrations/mongodb/client.ts +12 -10
- package/src/integrations/mongodb/index.ts +2 -2
- package/src/integrations/mongodb/types.ts +17 -16
- package/src/integrations/mssql/README.md +26 -21
- package/src/integrations/mssql/client.ts +18 -15
- package/src/integrations/mssql/index.ts +2 -2
- package/src/integrations/mssql/types.ts +9 -4
- package/src/integrations/mysql/README.md +27 -22
- package/src/integrations/mysql/client.ts +18 -15
- package/src/integrations/mysql/index.ts +2 -2
- package/src/integrations/mysql/types.ts +9 -4
- package/src/integrations/notion/README.md +31 -28
- package/src/integrations/notion/client.ts +5 -3
- package/src/integrations/notion/index.ts +2 -2
- package/src/integrations/notion/types.ts +8 -6
- package/src/integrations/openai_v2/README.md +40 -39
- package/src/integrations/openai_v2/client.ts +5 -3
- package/src/integrations/openai_v2/index.ts +2 -2
- package/src/integrations/openai_v2/types.ts +12 -5
- package/src/integrations/oracledb/README.md +26 -21
- package/src/integrations/oracledb/client.ts +21 -16
- package/src/integrations/oracledb/index.ts +2 -2
- package/src/integrations/oracledb/types.ts +9 -4
- package/src/integrations/pagerduty/README.md +48 -41
- package/src/integrations/pagerduty/client.ts +5 -3
- package/src/integrations/pagerduty/index.ts +2 -2
- package/src/integrations/pagerduty/types.ts +6 -4
- package/src/integrations/perplexity/README.md +31 -32
- package/src/integrations/perplexity/client.ts +5 -3
- package/src/integrations/perplexity/index.ts +2 -2
- package/src/integrations/perplexity/types.ts +6 -4
- package/src/integrations/postgres/README.md +30 -27
- package/src/integrations/postgres/client.ts +27 -18
- package/src/integrations/postgres/index.ts +2 -2
- package/src/integrations/postgres/types.ts +13 -8
- package/src/integrations/python/README.md +86 -67
- package/src/integrations/python/client.test.ts +104 -86
- package/src/integrations/python/client.ts +27 -23
- package/src/integrations/python/index.ts +2 -2
- package/src/integrations/python/types.ts +6 -6
- package/src/integrations/redis/README.md +48 -35
- package/src/integrations/redis/client.ts +32 -28
- package/src/integrations/redis/index.ts +2 -2
- package/src/integrations/redis/types.ts +4 -3
- package/src/integrations/redshift/README.md +26 -21
- package/src/integrations/redshift/client.ts +21 -16
- package/src/integrations/redshift/index.ts +2 -2
- package/src/integrations/redshift/types.ts +9 -4
- package/src/integrations/registry.test.ts +14 -10
- package/src/integrations/registry.ts +225 -154
- package/src/integrations/s3/README.md +23 -18
- package/src/integrations/s3/client.ts +26 -27
- package/src/integrations/s3/index.ts +2 -2
- package/src/integrations/s3/types.ts +11 -15
- package/src/integrations/salesforce/README.md +35 -30
- package/src/integrations/salesforce/client.ts +27 -30
- package/src/integrations/salesforce/index.ts +6 -2
- package/src/integrations/salesforce/types.ts +23 -18
- package/src/integrations/segment/README.md +23 -22
- package/src/integrations/segment/client.ts +5 -3
- package/src/integrations/segment/index.ts +2 -2
- package/src/integrations/segment/types.ts +6 -4
- package/src/integrations/sendgrid/README.md +27 -24
- package/src/integrations/sendgrid/client.ts +5 -3
- package/src/integrations/sendgrid/index.ts +2 -2
- package/src/integrations/sendgrid/types.ts +6 -4
- package/src/integrations/slack/README.md +29 -28
- package/src/integrations/slack/client.ts +3 -1
- package/src/integrations/slack/index.ts +2 -2
- package/src/integrations/slack/types.ts +6 -12
- package/src/integrations/smtp/client.ts +11 -11
- package/src/integrations/smtp/index.ts +2 -2
- package/src/integrations/smtp/types.ts +1 -1
- package/src/integrations/snowflake/README.md +35 -37
- package/src/integrations/snowflake/client.ts +2 -1
- package/src/integrations/snowflake/index.ts +2 -2
- package/src/integrations/snowflake/types.ts +9 -4
- package/src/integrations/snowflakecortex/client.ts +5 -3
- package/src/integrations/snowflakecortex/index.ts +2 -2
- package/src/integrations/snowflakecortex/types.ts +9 -3
- package/src/integrations/snowflakepostgres/client.ts +2 -2
- package/src/integrations/snowflakepostgres/index.ts +2 -2
- package/src/integrations/snowflakepostgres/types.ts +7 -3
- package/src/integrations/stabilityai/README.md +34 -39
- package/src/integrations/stabilityai/client.ts +5 -3
- package/src/integrations/stabilityai/index.ts +2 -2
- package/src/integrations/stabilityai/types.ts +6 -4
- package/src/integrations/stripe/README.md +34 -33
- package/src/integrations/stripe/client.ts +5 -3
- package/src/integrations/stripe/index.ts +2 -2
- package/src/integrations/stripe/types.ts +8 -6
- package/src/integrations/superblocks-ocr/README.md +35 -30
- package/src/integrations/superblocks-ocr/client.ts +3 -4
- package/src/integrations/superblocks-ocr/index.ts +2 -2
- package/src/integrations/superblocks-ocr/types.ts +6 -4
- package/src/integrations/twilio/README.md +26 -32
- package/src/integrations/twilio/client.ts +5 -3
- package/src/integrations/twilio/index.ts +2 -2
- package/src/integrations/twilio/types.ts +6 -4
- package/src/integrations/types.ts +1 -1
- package/src/integrations/utils.ts +5 -5
- package/src/integrations/zendesk/README.md +29 -28
- package/src/integrations/zendesk/client.ts +5 -3
- package/src/integrations/zendesk/index.ts +2 -2
- package/src/integrations/zendesk/types.ts +6 -4
- package/src/integrations/zoom/README.md +40 -41
- package/src/integrations/zoom/client.ts +5 -3
- package/src/integrations/zoom/index.ts +2 -2
- package/src/integrations/zoom/types.ts +5 -4
- package/src/runtime/context.ts +25 -10
- package/src/runtime/errors.ts +17 -13
- package/src/runtime/execute.ts +10 -11
- package/src/runtime/executor.ts +9 -9
- package/src/runtime/index.ts +9 -6
- package/src/runtime/logger.ts +11 -7
- package/src/runtime/streaming-context.ts +23 -9
- package/src/runtime/streaming-executor.ts +15 -9
- package/src/types.ts +23 -6
|
@@ -4,8 +4,8 @@ Send messages, manage channels, and interact with Slack workspaces.
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| ----------------------------- | ------------------------------------------------- |
|
|
9
9
|
| `apiRequest(options, schema)` | Make any Slack API request with schema validation |
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,7 +13,7 @@ Send messages, manage channels, and interact with Slack workspaces.
|
|
|
13
13
|
### Post a Message
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
16
|
+
import { api, z, slack } from "@superblocksteam/sdk-api";
|
|
17
17
|
|
|
18
18
|
const PostMessageResponseSchema = z.object({
|
|
19
19
|
ok: z.boolean(),
|
|
@@ -32,6 +32,9 @@ const OPS_SLACK = "a1b2c3d4-5678-90ab-cdef-222222222222";
|
|
|
32
32
|
|
|
33
33
|
export default api({
|
|
34
34
|
name: "SlackExample",
|
|
35
|
+
integrations: {
|
|
36
|
+
slack: slack(OPS_SLACK),
|
|
37
|
+
},
|
|
35
38
|
input: z.object({
|
|
36
39
|
channel: z.string(),
|
|
37
40
|
message: z.string(),
|
|
@@ -40,9 +43,7 @@ export default api({
|
|
|
40
43
|
messageId: z.string(),
|
|
41
44
|
}),
|
|
42
45
|
async run(ctx, { channel, message }) {
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
const result = await slack.apiRequest(
|
|
46
|
+
const result = await ctx.integrations.slack.apiRequest(
|
|
46
47
|
{
|
|
47
48
|
method: "POST",
|
|
48
49
|
path: "/chat.postMessage",
|
|
@@ -51,7 +52,7 @@ export default api({
|
|
|
51
52
|
text: message,
|
|
52
53
|
},
|
|
53
54
|
},
|
|
54
|
-
{ response: PostMessageResponseSchema }
|
|
55
|
+
{ response: PostMessageResponseSchema },
|
|
55
56
|
);
|
|
56
57
|
|
|
57
58
|
return { messageId: result.ts };
|
|
@@ -62,7 +63,7 @@ export default api({
|
|
|
62
63
|
### Post with Block Kit
|
|
63
64
|
|
|
64
65
|
```typescript
|
|
65
|
-
const result = await slack.apiRequest(
|
|
66
|
+
const result = await ctx.integrations.slack.apiRequest(
|
|
66
67
|
{
|
|
67
68
|
method: "POST",
|
|
68
69
|
path: "/chat.postMessage",
|
|
@@ -97,7 +98,7 @@ const result = await slack.apiRequest(
|
|
|
97
98
|
],
|
|
98
99
|
},
|
|
99
100
|
},
|
|
100
|
-
{ response: PostMessageResponseSchema }
|
|
101
|
+
{ response: PostMessageResponseSchema },
|
|
101
102
|
);
|
|
102
103
|
```
|
|
103
104
|
|
|
@@ -113,7 +114,7 @@ const ListChannelsResponseSchema = z.object({
|
|
|
113
114
|
is_private: z.boolean(),
|
|
114
115
|
is_archived: z.boolean(),
|
|
115
116
|
num_members: z.number().optional(),
|
|
116
|
-
})
|
|
117
|
+
}),
|
|
117
118
|
),
|
|
118
119
|
response_metadata: z
|
|
119
120
|
.object({
|
|
@@ -122,7 +123,7 @@ const ListChannelsResponseSchema = z.object({
|
|
|
122
123
|
.optional(),
|
|
123
124
|
});
|
|
124
125
|
|
|
125
|
-
const result = await slack.apiRequest(
|
|
126
|
+
const result = await ctx.integrations.slack.apiRequest(
|
|
126
127
|
{
|
|
127
128
|
method: "GET",
|
|
128
129
|
path: "/conversations.list",
|
|
@@ -131,7 +132,7 @@ const result = await slack.apiRequest(
|
|
|
131
132
|
limit: 100,
|
|
132
133
|
},
|
|
133
134
|
},
|
|
134
|
-
{ response: ListChannelsResponseSchema }
|
|
135
|
+
{ response: ListChannelsResponseSchema },
|
|
135
136
|
);
|
|
136
137
|
|
|
137
138
|
result.channels.forEach((channel) => {
|
|
@@ -157,13 +158,13 @@ const UserInfoResponseSchema = z.object({
|
|
|
157
158
|
}),
|
|
158
159
|
});
|
|
159
160
|
|
|
160
|
-
const result = await slack.apiRequest(
|
|
161
|
+
const result = await ctx.integrations.slack.apiRequest(
|
|
161
162
|
{
|
|
162
163
|
method: "GET",
|
|
163
164
|
path: "/users.info",
|
|
164
165
|
params: { user: "U123456789" },
|
|
165
166
|
},
|
|
166
|
-
{ response: UserInfoResponseSchema }
|
|
167
|
+
{ response: UserInfoResponseSchema },
|
|
167
168
|
);
|
|
168
169
|
|
|
169
170
|
console.log(`User: ${result.user.real_name} (${result.user.profile.email})`);
|
|
@@ -182,7 +183,7 @@ const FileUploadResponseSchema = z.object({
|
|
|
182
183
|
}),
|
|
183
184
|
});
|
|
184
185
|
|
|
185
|
-
const result = await slack.apiRequest(
|
|
186
|
+
const result = await ctx.integrations.slack.apiRequest(
|
|
186
187
|
{
|
|
187
188
|
method: "POST",
|
|
188
189
|
path: "/files.upload",
|
|
@@ -193,7 +194,7 @@ const result = await slack.apiRequest(
|
|
|
193
194
|
title: "Daily Report",
|
|
194
195
|
},
|
|
195
196
|
},
|
|
196
|
-
{ response: FileUploadResponseSchema }
|
|
197
|
+
{ response: FileUploadResponseSchema },
|
|
197
198
|
);
|
|
198
199
|
|
|
199
200
|
console.log(`File uploaded: ${result.file.permalink}`);
|
|
@@ -202,7 +203,7 @@ console.log(`File uploaded: ${result.file.permalink}`);
|
|
|
202
203
|
### Reply to a Thread
|
|
203
204
|
|
|
204
205
|
```typescript
|
|
205
|
-
const result = await slack.apiRequest(
|
|
206
|
+
const result = await ctx.integrations.slack.apiRequest(
|
|
206
207
|
{
|
|
207
208
|
method: "POST",
|
|
208
209
|
path: "/chat.postMessage",
|
|
@@ -212,7 +213,7 @@ const result = await slack.apiRequest(
|
|
|
212
213
|
thread_ts: "1234567890.123456", // Parent message timestamp
|
|
213
214
|
},
|
|
214
215
|
},
|
|
215
|
-
{ response: PostMessageResponseSchema }
|
|
216
|
+
{ response: PostMessageResponseSchema },
|
|
216
217
|
);
|
|
217
218
|
```
|
|
218
219
|
|
|
@@ -226,7 +227,7 @@ const UpdateMessageResponseSchema = z.object({
|
|
|
226
227
|
text: z.string(),
|
|
227
228
|
});
|
|
228
229
|
|
|
229
|
-
const result = await slack.apiRequest(
|
|
230
|
+
const result = await ctx.integrations.slack.apiRequest(
|
|
230
231
|
{
|
|
231
232
|
method: "POST",
|
|
232
233
|
path: "/chat.update",
|
|
@@ -236,7 +237,7 @@ const result = await slack.apiRequest(
|
|
|
236
237
|
text: "Updated message text",
|
|
237
238
|
},
|
|
238
239
|
},
|
|
239
|
-
{ response: UpdateMessageResponseSchema }
|
|
240
|
+
{ response: UpdateMessageResponseSchema },
|
|
240
241
|
);
|
|
241
242
|
```
|
|
242
243
|
|
|
@@ -250,7 +251,7 @@ await slack.postMessage({ ... });
|
|
|
250
251
|
await slack.listChannels();
|
|
251
252
|
|
|
252
253
|
// CORRECT - Use apiRequest
|
|
253
|
-
await slack.apiRequest(
|
|
254
|
+
await ctx.integrations.slack.apiRequest(
|
|
254
255
|
{ method: "POST", path: "/chat.postMessage", body: { ... } },
|
|
255
256
|
{ response: PostMessageResponseSchema }
|
|
256
257
|
);
|
|
@@ -280,7 +281,7 @@ Most API methods require channel ID, not name:
|
|
|
280
281
|
|
|
281
282
|
```typescript
|
|
282
283
|
// WRONG - Using channel name
|
|
283
|
-
await slack.apiRequest(
|
|
284
|
+
await ctx.integrations.slack.apiRequest(
|
|
284
285
|
{
|
|
285
286
|
method: "POST",
|
|
286
287
|
path: "/chat.postMessage",
|
|
@@ -289,11 +290,11 @@ await slack.apiRequest(
|
|
|
289
290
|
text: "Hello",
|
|
290
291
|
},
|
|
291
292
|
},
|
|
292
|
-
{ response: schema }
|
|
293
|
+
{ response: schema },
|
|
293
294
|
);
|
|
294
295
|
|
|
295
296
|
// CORRECT - Using channel ID
|
|
296
|
-
await slack.apiRequest(
|
|
297
|
+
await ctx.integrations.slack.apiRequest(
|
|
297
298
|
{
|
|
298
299
|
method: "POST",
|
|
299
300
|
path: "/chat.postMessage",
|
|
@@ -302,7 +303,7 @@ await slack.apiRequest(
|
|
|
302
303
|
text: "Hello",
|
|
303
304
|
},
|
|
304
305
|
},
|
|
305
|
-
{ response: schema }
|
|
306
|
+
{ response: schema },
|
|
306
307
|
);
|
|
307
308
|
```
|
|
308
309
|
|
|
@@ -316,7 +317,7 @@ async function getAllChannels(slack: SlackClient) {
|
|
|
316
317
|
let cursor: string | undefined;
|
|
317
318
|
|
|
318
319
|
do {
|
|
319
|
-
const result = await slack.apiRequest(
|
|
320
|
+
const result = await ctx.integrations.slack.apiRequest(
|
|
320
321
|
{
|
|
321
322
|
method: "GET",
|
|
322
323
|
path: "/conversations.list",
|
|
@@ -325,7 +326,7 @@ async function getAllChannels(slack: SlackClient) {
|
|
|
325
326
|
...(cursor && { cursor }),
|
|
326
327
|
},
|
|
327
328
|
},
|
|
328
|
-
{ response: ListChannelsResponseSchema }
|
|
329
|
+
{ response: ListChannelsResponseSchema },
|
|
329
330
|
);
|
|
330
331
|
|
|
331
332
|
allChannels.push(...result.channels);
|
|
@@ -370,7 +371,7 @@ Code block
|
|
|
370
371
|
import { RestApiValidationError } from "@superblocksteam/sdk-api";
|
|
371
372
|
|
|
372
373
|
try {
|
|
373
|
-
const result = await slack.apiRequest(
|
|
374
|
+
const result = await ctx.integrations.slack.apiRequest(
|
|
374
375
|
{ method: "POST", path: "/chat.postMessage", body: { ... } },
|
|
375
376
|
{ response: PostMessageResponseSchema }
|
|
376
377
|
);
|
|
@@ -16,6 +16,8 @@ import type { SlackClient } from "./types.js";
|
|
|
16
16
|
* Slack API calls. At runtime, the orchestrator handles OAuth authentication
|
|
17
17
|
* and API request execution.
|
|
18
18
|
*/
|
|
19
|
-
export class SlackClientImpl
|
|
19
|
+
export class SlackClientImpl
|
|
20
|
+
extends RestApiIntegrationClient
|
|
21
|
+
implements SlackClient {
|
|
20
22
|
// Inherits: name, pluginId, config, executeQuery, apiRequest()
|
|
21
23
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Slack client types.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import type { BaseIntegrationClient } from
|
|
6
|
-
import type { SupportsApiRequest } from
|
|
5
|
+
import type { BaseIntegrationClient } from "../../types.js";
|
|
6
|
+
import type { SupportsApiRequest } from "../base/index.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Slack client for API interactions.
|
|
@@ -13,15 +13,9 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```typescript
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* const PostMessageResponseSchema = z.object({
|
|
20
|
-
* ts: z.string(),
|
|
21
|
-
* channel: z.string(),
|
|
22
|
-
* });
|
|
23
|
-
*
|
|
24
|
-
* await slack.apiRequest(
|
|
16
|
+
* // Declare in api(): integrations: { slack: slack(INTEGRATION_ID) }
|
|
17
|
+
* // In run(), access via: ctx.integrations.slack
|
|
18
|
+
* await ctx.integrations.slack.apiRequest(
|
|
25
19
|
* {
|
|
26
20
|
* method: 'POST',
|
|
27
21
|
* path: '/chat.postMessage',
|
|
@@ -41,7 +35,7 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
41
35
|
* })),
|
|
42
36
|
* });
|
|
43
37
|
*
|
|
44
|
-
* const result = await slack.apiRequest(
|
|
38
|
+
* const result = await ctx.integrations.slack.apiRequest(
|
|
45
39
|
* {
|
|
46
40
|
* method: 'GET',
|
|
47
41
|
* path: '/conversations.list',
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* Sends emails with support for CC, BCC, reply-to, and attachments.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { PartialMessage } from
|
|
9
|
-
import type { Plugin as SmtpPlugin } from
|
|
10
|
-
import type { IntegrationConfig, IntegrationClientImpl } from
|
|
11
|
-
import type { QueryExecutor } from
|
|
12
|
-
import { IntegrationError } from
|
|
13
|
-
import type { SmtpClient, SmtpSendOptions } from
|
|
8
|
+
import type { PartialMessage } from "@bufbuild/protobuf";
|
|
9
|
+
import type { Plugin as SmtpPlugin } from "@superblocksteam/types/dist/src/plugins/smtp/v1/plugin_pb";
|
|
10
|
+
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
11
|
+
import type { QueryExecutor } from "../registry.js";
|
|
12
|
+
import { IntegrationError } from "../../runtime/errors.js";
|
|
13
|
+
import type { SmtpClient, SmtpSendOptions } from "./types.js";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* SMTP request type derived from proto definition.
|
|
@@ -46,10 +46,10 @@ export class SmtpClientImpl implements SmtpClient, IntegrationClientImpl {
|
|
|
46
46
|
to: options.to,
|
|
47
47
|
subject: options.subject,
|
|
48
48
|
body: options.body,
|
|
49
|
-
cc: options.cc ??
|
|
50
|
-
bcc: options.bcc ??
|
|
51
|
-
replyTo: options.replyTo ??
|
|
52
|
-
attachments: options.attachments ??
|
|
49
|
+
cc: options.cc ?? "",
|
|
50
|
+
bcc: options.bcc ?? "",
|
|
51
|
+
replyTo: options.replyTo ?? "",
|
|
52
|
+
attachments: options.attachments ?? "",
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
try {
|
|
@@ -59,7 +59,7 @@ export class SmtpClientImpl implements SmtpClient, IntegrationClientImpl {
|
|
|
59
59
|
throw error;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
throw new IntegrationError(this.config.name,
|
|
62
|
+
throw new IntegrationError(this.config.name, "send", error);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -4,17 +4,17 @@ Execute SQL queries and statements against Snowflake data warehouses with full t
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
9
|
-
| `query<T>(sql, schema, params?)` | Execute a SELECT query and return validated, typed results
|
|
10
|
-
| `execute(sql, params?)`
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| -------------------------------- | -------------------------------------------------------------------------- |
|
|
9
|
+
| `query<T>(sql, schema, params?)` | Execute a SELECT query and return validated, typed results |
|
|
10
|
+
| `execute(sql, params?)` | Execute a statement (INSERT, UPDATE, DELETE) and return affected row count |
|
|
11
11
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
14
|
### Basic Query with Schema Validation
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
17
|
+
import { api, z, snowflake } from "@superblocksteam/sdk-api";
|
|
18
18
|
|
|
19
19
|
// Integration ID from the integrations panel
|
|
20
20
|
const PROD_SNOWFLAKE = "a1b2c3d4-5678-90ab-cdef-snowflak0001";
|
|
@@ -28,6 +28,9 @@ const UserSchema = z.object({
|
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
export default api({
|
|
31
|
+
integrations: {
|
|
32
|
+
snowflake: snowflake(PROD_SNOWFLAKE),
|
|
33
|
+
},
|
|
31
34
|
name: "SnowflakeExample",
|
|
32
35
|
input: z.object({
|
|
33
36
|
status: z.string(),
|
|
@@ -36,12 +39,10 @@ export default api({
|
|
|
36
39
|
users: z.array(UserSchema),
|
|
37
40
|
}),
|
|
38
41
|
async run(ctx, { status }) {
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const users = await snowflake.query(
|
|
42
|
+
const users = await ctx.integrations.snowflake.query(
|
|
42
43
|
"SELECT ID, NAME, EMAIL, CREATED_AT FROM USERS WHERE STATUS = $1",
|
|
43
44
|
UserSchema,
|
|
44
|
-
[status]
|
|
45
|
+
[status],
|
|
45
46
|
);
|
|
46
47
|
|
|
47
48
|
return { users };
|
|
@@ -59,7 +60,7 @@ const UserSchema = z.object({
|
|
|
59
60
|
email: z.string().email(),
|
|
60
61
|
});
|
|
61
62
|
|
|
62
|
-
const users = await snowflake.query(
|
|
63
|
+
const users = await ctx.integrations.snowflake.query(
|
|
63
64
|
`SELECT
|
|
64
65
|
ID as "id",
|
|
65
66
|
NAME as "name",
|
|
@@ -67,31 +68,29 @@ const users = await snowflake.query(
|
|
|
67
68
|
FROM USERS
|
|
68
69
|
WHERE STATUS = $1`,
|
|
69
70
|
UserSchema,
|
|
70
|
-
["active"]
|
|
71
|
+
["active"],
|
|
71
72
|
);
|
|
72
73
|
```
|
|
73
74
|
|
|
74
75
|
### Executing INSERT, UPDATE, DELETE Statements
|
|
75
76
|
|
|
76
77
|
```typescript
|
|
77
|
-
const snowflake = ctx.snowflake(PROD_SNOWFLAKE);
|
|
78
|
-
|
|
79
78
|
// INSERT
|
|
80
|
-
await snowflake.execute(
|
|
79
|
+
await ctx.integrations.snowflake.execute(
|
|
81
80
|
"INSERT INTO USERS (NAME, EMAIL) VALUES ($1, $2)",
|
|
82
|
-
["John Doe", "john@example.com"]
|
|
81
|
+
["John Doe", "john@example.com"],
|
|
83
82
|
);
|
|
84
83
|
|
|
85
84
|
// UPDATE
|
|
86
|
-
const updateResult = await snowflake.execute(
|
|
85
|
+
const updateResult = await ctx.integrations.snowflake.execute(
|
|
87
86
|
"UPDATE USERS SET LAST_LOGIN = CURRENT_TIMESTAMP() WHERE ID = $1",
|
|
88
|
-
[userId]
|
|
87
|
+
[userId],
|
|
89
88
|
);
|
|
90
89
|
console.log(`Updated ${updateResult.rowCount} rows`);
|
|
91
90
|
|
|
92
91
|
// DELETE
|
|
93
|
-
const deleteResult = await snowflake.execute(
|
|
94
|
-
"DELETE FROM SESSIONS WHERE EXPIRES_AT < CURRENT_TIMESTAMP()"
|
|
92
|
+
const deleteResult = await ctx.integrations.snowflake.execute(
|
|
93
|
+
"DELETE FROM SESSIONS WHERE EXPIRES_AT < CURRENT_TIMESTAMP()",
|
|
95
94
|
);
|
|
96
95
|
console.log(`Deleted ${deleteResult.rowCount} expired sessions`);
|
|
97
96
|
```
|
|
@@ -105,7 +104,7 @@ const AnalyticsSchema = z.object({
|
|
|
105
104
|
AVG_ORDER_VALUE: z.string(),
|
|
106
105
|
});
|
|
107
106
|
|
|
108
|
-
const analytics = await snowflake.query(
|
|
107
|
+
const analytics = await ctx.integrations.snowflake.query(
|
|
109
108
|
`SELECT
|
|
110
109
|
DATE_TRUNC('day', ORDER_DATE) as DATE,
|
|
111
110
|
SUM(TOTAL) as TOTAL_SALES,
|
|
@@ -114,7 +113,7 @@ const analytics = await snowflake.query(
|
|
|
114
113
|
WHERE ORDER_DATE >= DATEADD('day', -30, CURRENT_DATE())
|
|
115
114
|
GROUP BY DATE_TRUNC('day', ORDER_DATE)
|
|
116
115
|
ORDER BY DATE DESC`,
|
|
117
|
-
AnalyticsSchema
|
|
116
|
+
AnalyticsSchema,
|
|
118
117
|
);
|
|
119
118
|
```
|
|
120
119
|
|
|
@@ -132,7 +131,7 @@ const EventSchema = z.object({
|
|
|
132
131
|
}),
|
|
133
132
|
});
|
|
134
133
|
|
|
135
|
-
const events = await snowflake.query(
|
|
134
|
+
const events = await ctx.integrations.snowflake.query(
|
|
136
135
|
`SELECT
|
|
137
136
|
EVENT_ID,
|
|
138
137
|
EVENT_TYPE,
|
|
@@ -140,7 +139,7 @@ const events = await snowflake.query(
|
|
|
140
139
|
FROM EVENTS
|
|
141
140
|
WHERE EVENT_TYPE = $1`,
|
|
142
141
|
EventSchema,
|
|
143
|
-
["user_action"]
|
|
142
|
+
["user_action"],
|
|
144
143
|
);
|
|
145
144
|
```
|
|
146
145
|
|
|
@@ -182,7 +181,7 @@ Aggregate functions like `COUNT(*)` return columns with uppercase names. The col
|
|
|
182
181
|
|
|
183
182
|
// WRONG - Snowflake returns 'COUNT' (uppercase), not 'count'
|
|
184
183
|
const schema = z.object({
|
|
185
|
-
count: z.coerce.number(),
|
|
184
|
+
count: z.coerce.number(), // Fails validation - column doesn't exist
|
|
186
185
|
});
|
|
187
186
|
|
|
188
187
|
// CORRECT - Use uppercase column name
|
|
@@ -203,7 +202,7 @@ const StatsSchema = z.object({
|
|
|
203
202
|
AVG_ORDER_VALUE: z.coerce.number(),
|
|
204
203
|
});
|
|
205
204
|
|
|
206
|
-
const stats = await snowflake.query(
|
|
205
|
+
const stats = await ctx.integrations.snowflake.query(
|
|
207
206
|
`SELECT
|
|
208
207
|
COUNT(*) as TOTAL_ORDERS,
|
|
209
208
|
SUM(AMOUNT) as TOTAL_REVENUE,
|
|
@@ -211,7 +210,7 @@ const stats = await snowflake.query(
|
|
|
211
210
|
FROM ORDERS
|
|
212
211
|
WHERE CREATED_AT > $1`,
|
|
213
212
|
StatsSchema,
|
|
214
|
-
[startDate]
|
|
213
|
+
[startDate],
|
|
215
214
|
);
|
|
216
215
|
```
|
|
217
216
|
|
|
@@ -240,16 +239,15 @@ Like PostgreSQL, the `query()` method requires a Zod schema:
|
|
|
240
239
|
|
|
241
240
|
```typescript
|
|
242
241
|
// WRONG - Missing schema
|
|
243
|
-
const users = await snowflake.query(
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
);
|
|
242
|
+
const users = await ctx.integrations.snowflake.query("SELECT * FROM USERS", [
|
|
243
|
+
/* params */
|
|
244
|
+
]);
|
|
247
245
|
|
|
248
246
|
// CORRECT - Schema is required as second parameter
|
|
249
|
-
const users = await snowflake.query(
|
|
247
|
+
const users = await ctx.integrations.snowflake.query(
|
|
250
248
|
"SELECT * FROM USERS WHERE ID = $1",
|
|
251
249
|
UserSchema,
|
|
252
|
-
[userId]
|
|
250
|
+
[userId],
|
|
253
251
|
);
|
|
254
252
|
```
|
|
255
253
|
|
|
@@ -308,7 +306,7 @@ When querying VARIANT, ARRAY, or OBJECT columns:
|
|
|
308
306
|
```typescript
|
|
309
307
|
// For VARIANT column containing JSON
|
|
310
308
|
const schema = z.object({
|
|
311
|
-
DATA: z.unknown(),
|
|
309
|
+
DATA: z.unknown(), // Accept any JSON structure
|
|
312
310
|
});
|
|
313
311
|
|
|
314
312
|
// Or with specific structure
|
|
@@ -320,12 +318,12 @@ const schema = z.object({
|
|
|
320
318
|
});
|
|
321
319
|
|
|
322
320
|
// Use Snowflake's JSON functions in query
|
|
323
|
-
const result = await snowflake.query(
|
|
321
|
+
const result = await ctx.integrations.snowflake.query(
|
|
324
322
|
`SELECT
|
|
325
323
|
DATA:key::STRING as KEY,
|
|
326
324
|
DATA:value::NUMBER as VALUE
|
|
327
325
|
FROM MY_TABLE`,
|
|
328
|
-
z.object({ KEY: z.string(), VALUE: z.string() })
|
|
326
|
+
z.object({ KEY: z.string(), VALUE: z.string() }),
|
|
329
327
|
);
|
|
330
328
|
```
|
|
331
329
|
|
|
@@ -339,9 +337,9 @@ Thrown when query results fail schema validation:
|
|
|
339
337
|
import { QueryValidationError } from "@superblocksteam/sdk-api";
|
|
340
338
|
|
|
341
339
|
try {
|
|
342
|
-
const users = await snowflake.query(
|
|
340
|
+
const users = await ctx.integrations.snowflake.query(
|
|
343
341
|
"SELECT * FROM USERS",
|
|
344
|
-
UserSchema
|
|
342
|
+
UserSchema,
|
|
345
343
|
);
|
|
346
344
|
} catch (error) {
|
|
347
345
|
if (error instanceof QueryValidationError) {
|
|
@@ -19,7 +19,8 @@ import type { SnowflakeClient } from "./types.js";
|
|
|
19
19
|
* Internal implementation of the Snowflake client.
|
|
20
20
|
*/
|
|
21
21
|
export class SnowflakeClientImpl
|
|
22
|
-
implements SnowflakeClient, IntegrationClientImpl
|
|
22
|
+
implements SnowflakeClient, IntegrationClientImpl
|
|
23
|
+
{
|
|
23
24
|
readonly config: IntegrationConfig;
|
|
24
25
|
private readonly executeQuery: QueryExecutor;
|
|
25
26
|
|
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
* Provides typed methods for executing Snowflake queries with runtime validation.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import type { z } from
|
|
8
|
-
import type { BaseIntegrationClient } from
|
|
7
|
+
import type { z } from "zod";
|
|
8
|
+
import type { BaseIntegrationClient } from "../../types";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Client for executing Snowflake queries with type-safe validation.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```typescript
|
|
15
|
-
*
|
|
15
|
+
* // Declare in api(): integrations: { snowflake: snowflake(INTEGRATION_ID) }
|
|
16
|
+
* // In run(), access via ctx.integrations.snowflake
|
|
16
17
|
*
|
|
17
18
|
* // Query with validation
|
|
18
19
|
* const UserSchema = z.object({
|
|
@@ -55,7 +56,11 @@ export interface SnowflakeClient extends BaseIntegrationClient {
|
|
|
55
56
|
* );
|
|
56
57
|
* ```
|
|
57
58
|
*/
|
|
58
|
-
query<T>(
|
|
59
|
+
query<T>(
|
|
60
|
+
sql: string,
|
|
61
|
+
schema: z.ZodSchema<T>,
|
|
62
|
+
params?: unknown[],
|
|
63
|
+
): Promise<T[]>;
|
|
59
64
|
|
|
60
65
|
/**
|
|
61
66
|
* Execute a SQL statement (INSERT, UPDATE, DELETE) without output validation.
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Snowflake Cortex integrations use the REST API Integration plugin under the hood.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { RestApiIntegrationClient } from
|
|
9
|
-
import type { SnowflakeCortexClient } from
|
|
8
|
+
import { RestApiIntegrationClient } from "../base/index.js";
|
|
9
|
+
import type { SnowflakeCortexClient } from "./types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Internal implementation of SnowflakeCortexClient.
|
|
@@ -14,7 +14,9 @@ import type { SnowflakeCortexClient } from './types.js';
|
|
|
14
14
|
* Extends RestApiIntegrationClient to inherit generic apiRequest() and
|
|
15
15
|
* streamApiRequest() methods.
|
|
16
16
|
*/
|
|
17
|
-
export class SnowflakeCortexClientImpl
|
|
17
|
+
export class SnowflakeCortexClientImpl
|
|
18
|
+
extends RestApiIntegrationClient
|
|
19
|
+
implements SnowflakeCortexClient {
|
|
18
20
|
// Inherits: name, pluginId, config, executeQuery, createParam(), apiRequest(), streamApiRequest()
|
|
19
21
|
// Can add Snowflake Cortex-specific methods here in the future if needed
|
|
20
22
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SnowflakeCortexClientImpl } from
|
|
2
|
-
export type { SnowflakeCortexClient } from
|
|
1
|
+
export { SnowflakeCortexClientImpl } from "./client.js";
|
|
2
|
+
export type { SnowflakeCortexClient } from "./types.js";
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* Snowflake Cortex client types.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import type { BaseIntegrationClient } from
|
|
6
|
-
import type {
|
|
5
|
+
import type { BaseIntegrationClient } from "../../types.js";
|
|
6
|
+
import type {
|
|
7
|
+
SupportsApiRequest,
|
|
8
|
+
SupportsStreamingApiRequest,
|
|
9
|
+
} from "../base/index.js";
|
|
7
10
|
|
|
8
11
|
/**
|
|
9
12
|
* Snowflake Cortex client for inference interactions.
|
|
@@ -12,7 +15,10 @@ import type { SupportsApiRequest, SupportsStreamingApiRequest } from '../base/in
|
|
|
12
15
|
* and streamApiRequest() for streaming responses.
|
|
13
16
|
*/
|
|
14
17
|
export interface SnowflakeCortexClient
|
|
15
|
-
extends
|
|
18
|
+
extends
|
|
19
|
+
BaseIntegrationClient,
|
|
20
|
+
SupportsApiRequest,
|
|
21
|
+
SupportsStreamingApiRequest {
|
|
16
22
|
// apiRequest() method inherited from SupportsApiRequest
|
|
17
23
|
// streamApiRequest() method inherited from SupportsStreamingApiRequest
|
|
18
24
|
}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* implementation.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { SnowflakePostgresClient } from
|
|
10
|
-
import { PostgresClientImpl } from
|
|
9
|
+
import type { SnowflakePostgresClient } from "./types.js";
|
|
10
|
+
import { PostgresClientImpl } from "../postgres/client.js";
|
|
11
11
|
|
|
12
12
|
export class SnowflakePostgresClientImpl
|
|
13
13
|
extends PostgresClientImpl
|