@superblocksteam/sdk-api 2.0.93 → 2.0.94-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* GraphQL client types.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import type { BaseIntegrationClient } from
|
|
6
|
-
import type { z } from
|
|
5
|
+
import type { BaseIntegrationClient } from "../../types.js";
|
|
6
|
+
import type { z } from "zod";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* GraphQL client for executing queries and mutations.
|
|
@@ -13,7 +13,8 @@ import type { z } from 'zod';
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```typescript
|
|
16
|
-
*
|
|
16
|
+
* // Declare in api(): integrations: { graphql: graphql(INTEGRATION_ID) }
|
|
17
|
+
* // In run(), access via ctx.integrations.graphql
|
|
17
18
|
*
|
|
18
19
|
* // Execute a query
|
|
19
20
|
* // Schema validates the full GraphQL response (including data wrapper)
|
|
@@ -87,7 +88,7 @@ export interface GraphQLClient extends BaseIntegrationClient {
|
|
|
87
88
|
query<TResponse>(
|
|
88
89
|
query: string,
|
|
89
90
|
schema: { response: z.ZodSchema<TResponse> },
|
|
90
|
-
variables?: Record<string, unknown
|
|
91
|
+
variables?: Record<string, unknown>,
|
|
91
92
|
): Promise<TResponse>;
|
|
92
93
|
|
|
93
94
|
/**
|
|
@@ -116,6 +117,6 @@ export interface GraphQLClient extends BaseIntegrationClient {
|
|
|
116
117
|
mutation<TResponse>(
|
|
117
118
|
mutation: string,
|
|
118
119
|
schema: { response: z.ZodSchema<TResponse> },
|
|
119
|
-
variables?: Record<string, unknown
|
|
120
|
+
variables?: Record<string, unknown>,
|
|
120
121
|
): Promise<TResponse>;
|
|
121
122
|
}
|
|
@@ -4,8 +4,8 @@ Interact with Groq's ultra-fast inference API for LLM chat completions with low
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| ----------------------------- | ------------------------------------------------ |
|
|
9
9
|
| `apiRequest(options, schema)` | Make any Groq API request with schema validation |
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,7 +13,7 @@ Interact with Groq's ultra-fast inference API for LLM chat completions with low
|
|
|
13
13
|
### Chat Completion
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
16
|
+
import { api, z, groq } from "@superblocksteam/sdk-api";
|
|
17
17
|
|
|
18
18
|
// Integration ID from the integrations panel
|
|
19
19
|
const PROD_GROQ = "a1b2c3d4-5678-90ab-cdef-groq00000001";
|
|
@@ -31,7 +31,7 @@ const ChatCompletionResponseSchema = z.object({
|
|
|
31
31
|
content: z.string(),
|
|
32
32
|
}),
|
|
33
33
|
finish_reason: z.string(),
|
|
34
|
-
})
|
|
34
|
+
}),
|
|
35
35
|
),
|
|
36
36
|
usage: z.object({
|
|
37
37
|
prompt_tokens: z.number(),
|
|
@@ -45,6 +45,9 @@ const ChatCompletionResponseSchema = z.object({
|
|
|
45
45
|
});
|
|
46
46
|
|
|
47
47
|
export default api({
|
|
48
|
+
integrations: {
|
|
49
|
+
groq: groq(PROD_GROQ),
|
|
50
|
+
},
|
|
48
51
|
name: "GroqExample",
|
|
49
52
|
input: z.object({
|
|
50
53
|
prompt: z.string(),
|
|
@@ -53,9 +56,7 @@ export default api({
|
|
|
53
56
|
response: z.string(),
|
|
54
57
|
}),
|
|
55
58
|
async run(ctx, { prompt }) {
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
const result = await groq.apiRequest(
|
|
59
|
+
const result = await ctx.integrations.groq.apiRequest(
|
|
59
60
|
{
|
|
60
61
|
method: "POST",
|
|
61
62
|
path: "/openai/v1/chat/completions",
|
|
@@ -67,7 +68,7 @@ export default api({
|
|
|
67
68
|
],
|
|
68
69
|
},
|
|
69
70
|
},
|
|
70
|
-
{ response: ChatCompletionResponseSchema }
|
|
71
|
+
{ response: ChatCompletionResponseSchema },
|
|
71
72
|
);
|
|
72
73
|
|
|
73
74
|
return { response: result.choices[0]?.message.content ?? "" };
|
|
@@ -79,7 +80,7 @@ export default api({
|
|
|
79
80
|
|
|
80
81
|
```typescript
|
|
81
82
|
// Llama 3.1 70B - Best balance of speed and quality
|
|
82
|
-
const llama70b = await groq.apiRequest(
|
|
83
|
+
const llama70b = await ctx.integrations.groq.apiRequest(
|
|
83
84
|
{
|
|
84
85
|
method: "POST",
|
|
85
86
|
path: "/openai/v1/chat/completions",
|
|
@@ -88,11 +89,11 @@ const llama70b = await groq.apiRequest(
|
|
|
88
89
|
messages: [{ role: "user", content: "Hello" }],
|
|
89
90
|
},
|
|
90
91
|
},
|
|
91
|
-
{ response: ChatCompletionResponseSchema }
|
|
92
|
+
{ response: ChatCompletionResponseSchema },
|
|
92
93
|
);
|
|
93
94
|
|
|
94
95
|
// Llama 3.1 8B - Fastest, good for simple tasks
|
|
95
|
-
const llama8b = await groq.apiRequest(
|
|
96
|
+
const llama8b = await ctx.integrations.groq.apiRequest(
|
|
96
97
|
{
|
|
97
98
|
method: "POST",
|
|
98
99
|
path: "/openai/v1/chat/completions",
|
|
@@ -101,11 +102,11 @@ const llama8b = await groq.apiRequest(
|
|
|
101
102
|
messages: [{ role: "user", content: "Hello" }],
|
|
102
103
|
},
|
|
103
104
|
},
|
|
104
|
-
{ response: ChatCompletionResponseSchema }
|
|
105
|
+
{ response: ChatCompletionResponseSchema },
|
|
105
106
|
);
|
|
106
107
|
|
|
107
108
|
// Mixtral 8x7B - Good for code and reasoning
|
|
108
|
-
const mixtral = await groq.apiRequest(
|
|
109
|
+
const mixtral = await ctx.integrations.groq.apiRequest(
|
|
109
110
|
{
|
|
110
111
|
method: "POST",
|
|
111
112
|
path: "/openai/v1/chat/completions",
|
|
@@ -114,7 +115,7 @@ const mixtral = await groq.apiRequest(
|
|
|
114
115
|
messages: [{ role: "user", content: "Hello" }],
|
|
115
116
|
},
|
|
116
117
|
},
|
|
117
|
-
{ response: ChatCompletionResponseSchema }
|
|
118
|
+
{ response: ChatCompletionResponseSchema },
|
|
118
119
|
);
|
|
119
120
|
```
|
|
120
121
|
|
|
@@ -137,24 +138,22 @@ const ToolCallResponseSchema = z.object({
|
|
|
137
138
|
name: z.string(),
|
|
138
139
|
arguments: z.string(),
|
|
139
140
|
}),
|
|
140
|
-
})
|
|
141
|
+
}),
|
|
141
142
|
)
|
|
142
143
|
.optional(),
|
|
143
144
|
}),
|
|
144
145
|
finish_reason: z.string(),
|
|
145
|
-
})
|
|
146
|
+
}),
|
|
146
147
|
),
|
|
147
148
|
});
|
|
148
149
|
|
|
149
|
-
const result = await groq.apiRequest(
|
|
150
|
+
const result = await ctx.integrations.groq.apiRequest(
|
|
150
151
|
{
|
|
151
152
|
method: "POST",
|
|
152
153
|
path: "/openai/v1/chat/completions",
|
|
153
154
|
body: {
|
|
154
155
|
model: "llama-3.1-70b-versatile",
|
|
155
|
-
messages: [
|
|
156
|
-
{ role: "user", content: "What's the weather in Tokyo?" },
|
|
157
|
-
],
|
|
156
|
+
messages: [{ role: "user", content: "What's the weather in Tokyo?" }],
|
|
158
157
|
tools: [
|
|
159
158
|
{
|
|
160
159
|
type: "function",
|
|
@@ -174,7 +173,7 @@ const result = await groq.apiRequest(
|
|
|
174
173
|
tool_choice: "auto",
|
|
175
174
|
},
|
|
176
175
|
},
|
|
177
|
-
{ response: ToolCallResponseSchema }
|
|
176
|
+
{ response: ToolCallResponseSchema },
|
|
178
177
|
);
|
|
179
178
|
|
|
180
179
|
const toolCall = result.choices[0]?.message.tool_calls?.[0];
|
|
@@ -194,11 +193,11 @@ const JSONResponseSchema = z.object({
|
|
|
194
193
|
message: z.object({
|
|
195
194
|
content: z.string(), // Will be valid JSON
|
|
196
195
|
}),
|
|
197
|
-
})
|
|
196
|
+
}),
|
|
198
197
|
),
|
|
199
198
|
});
|
|
200
199
|
|
|
201
|
-
const result = await groq.apiRequest(
|
|
200
|
+
const result = await ctx.integrations.groq.apiRequest(
|
|
202
201
|
{
|
|
203
202
|
method: "POST",
|
|
204
203
|
path: "/openai/v1/chat/completions",
|
|
@@ -214,7 +213,7 @@ const result = await groq.apiRequest(
|
|
|
214
213
|
response_format: { type: "json_object" },
|
|
215
214
|
},
|
|
216
215
|
},
|
|
217
|
-
{ response: JSONResponseSchema }
|
|
216
|
+
{ response: JSONResponseSchema },
|
|
218
217
|
);
|
|
219
218
|
|
|
220
219
|
const data = JSON.parse(result.choices[0]?.message.content ?? "{}");
|
|
@@ -230,7 +229,7 @@ await groq.chat({ ... });
|
|
|
230
229
|
await groq.createChatCompletion({ ... });
|
|
231
230
|
|
|
232
231
|
// CORRECT - Use apiRequest
|
|
233
|
-
await groq.apiRequest(
|
|
232
|
+
await ctx.integrations.groq.apiRequest(
|
|
234
233
|
{ method: "POST", path: "/openai/v1/chat/completions", body: { ... } },
|
|
235
234
|
{ response: ChatCompletionResponseSchema }
|
|
236
235
|
);
|
|
@@ -242,13 +241,13 @@ Groq uses OpenAI-compatible endpoints with `/openai/v1/` prefix:
|
|
|
242
241
|
|
|
243
242
|
```typescript
|
|
244
243
|
// WRONG - Missing /openai prefix
|
|
245
|
-
await groq.apiRequest(
|
|
244
|
+
await ctx.integrations.groq.apiRequest(
|
|
246
245
|
{ method: "POST", path: "/v1/chat/completions", body: { ... } },
|
|
247
246
|
{ response: schema }
|
|
248
247
|
);
|
|
249
248
|
|
|
250
249
|
// CORRECT - Include /openai prefix
|
|
251
|
-
await groq.apiRequest(
|
|
250
|
+
await ctx.integrations.groq.apiRequest(
|
|
252
251
|
{ method: "POST", path: "/openai/v1/chat/completions", body: { ... } },
|
|
253
252
|
{ response: schema }
|
|
254
253
|
);
|
|
@@ -258,12 +257,12 @@ await groq.apiRequest(
|
|
|
258
257
|
|
|
259
258
|
Groq has specific models available. Check current availability:
|
|
260
259
|
|
|
261
|
-
| Model
|
|
262
|
-
|
|
263
|
-
| llama-3.1-70b-versatile | 128K
|
|
264
|
-
| llama-3.1-8b-instant
|
|
265
|
-
| mixtral-8x7b-32768
|
|
266
|
-
| gemma2-9b-it
|
|
260
|
+
| Model | Context Window | Best For |
|
|
261
|
+
| ----------------------- | -------------- | ------------------ |
|
|
262
|
+
| llama-3.1-70b-versatile | 128K | General use |
|
|
263
|
+
| llama-3.1-8b-instant | 128K | Fast, simple tasks |
|
|
264
|
+
| mixtral-8x7b-32768 | 32K | Code, reasoning |
|
|
265
|
+
| gemma2-9b-it | 8K | Lightweight tasks |
|
|
267
266
|
|
|
268
267
|
```typescript
|
|
269
268
|
// Ensure model is available
|
|
@@ -278,7 +277,7 @@ const body = {
|
|
|
278
277
|
Groq has rate limits based on tokens per minute. Monitor usage:
|
|
279
278
|
|
|
280
279
|
```typescript
|
|
281
|
-
const result = await groq.apiRequest(
|
|
280
|
+
const result = await ctx.integrations.groq.apiRequest(
|
|
282
281
|
{ method: "POST", path: "/openai/v1/chat/completions", body: { ... } },
|
|
283
282
|
{ response: ChatCompletionResponseSchema }
|
|
284
283
|
);
|
|
@@ -293,7 +292,7 @@ console.log("Completion time:", result.usage.completion_time, "seconds");
|
|
|
293
292
|
import { RestApiValidationError } from "@superblocksteam/sdk-api";
|
|
294
293
|
|
|
295
294
|
try {
|
|
296
|
-
const result = await groq.apiRequest(
|
|
295
|
+
const result = await ctx.integrations.groq.apiRequest(
|
|
297
296
|
{ method: "POST", path: "/openai/v1/chat/completions", body: { ... } },
|
|
298
297
|
{ response: ChatCompletionResponseSchema }
|
|
299
298
|
);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Groq integrations use the REST API Integration plugin under the hood.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { RestApiIntegrationClient } from
|
|
9
|
-
import type { GroqClient } from
|
|
8
|
+
import { RestApiIntegrationClient } from "../base/index.js";
|
|
9
|
+
import type { GroqClient } from "./types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Internal implementation of GroqClient.
|
|
@@ -16,6 +16,8 @@ import type { GroqClient } from './types.js';
|
|
|
16
16
|
* Groq API calls. At runtime, the orchestrator handles authentication
|
|
17
17
|
* and API request execution.
|
|
18
18
|
*/
|
|
19
|
-
export class GroqClientImpl
|
|
19
|
+
export class GroqClientImpl
|
|
20
|
+
extends RestApiIntegrationClient
|
|
21
|
+
implements GroqClient {
|
|
20
22
|
// Inherits: name, pluginId, config, executeQuery, apiRequest()
|
|
21
23
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { GroqClientImpl } from
|
|
2
|
-
export type { GroqClient } from
|
|
1
|
+
export { GroqClientImpl } from "./client.js";
|
|
2
|
+
export type { GroqClient } from "./types.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Groq 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
|
* Groq client for API interactions.
|
|
@@ -13,7 +13,8 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```typescript
|
|
16
|
-
*
|
|
16
|
+
* // Declare in api(): integrations: { groq: groq(INTEGRATION_ID) }
|
|
17
|
+
* // In run(), access via ctx.integrations.groq
|
|
17
18
|
*
|
|
18
19
|
* // Make API requests
|
|
19
20
|
* const ResponseSchema = z.object({
|
|
@@ -4,38 +4,43 @@ Interact with Google Sheets with full type safety and runtime validation.
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| ----------------------------- | --------------------------------- |
|
|
9
9
|
| `run(action, schema, params)` | Execute a Google Sheets operation |
|
|
10
10
|
|
|
11
11
|
## Actions
|
|
12
12
|
|
|
13
|
-
| Action
|
|
14
|
-
|
|
|
15
|
-
| `READ_SPREADSHEET`
|
|
16
|
-
| `READ_SPREADSHEET_RANGE`
|
|
17
|
-
| `APPEND_SPREADSHEET`
|
|
13
|
+
| Action | Description |
|
|
14
|
+
| ------------------------- | ---------------------------------- |
|
|
15
|
+
| `READ_SPREADSHEET` | Read all data from a sheet |
|
|
16
|
+
| `READ_SPREADSHEET_RANGE` | Read data from a range |
|
|
17
|
+
| `APPEND_SPREADSHEET` | Append rows to a sheet |
|
|
18
18
|
| `CREATE_SPREADSHEET_ROWS` | Create rows at a specific position |
|
|
19
|
-
| `CLEAR_SPREADSHEET`
|
|
20
|
-
| `CREATE_WORKSHEET`
|
|
19
|
+
| `CLEAR_SPREADSHEET` | Clear all data from a sheet |
|
|
20
|
+
| `CREATE_WORKSHEET` | Add a new sheet to a spreadsheet |
|
|
21
21
|
|
|
22
22
|
## Usage
|
|
23
23
|
|
|
24
24
|
### Read Spreadsheet Data
|
|
25
25
|
|
|
26
26
|
```typescript
|
|
27
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
27
|
+
import { api, z, gsheets } from "@superblocksteam/sdk-api";
|
|
28
28
|
|
|
29
29
|
// Integration ID from the integrations panel
|
|
30
30
|
const PROD_GSHEETS = "a1b2c3d4-5678-90ab-cdef-gsheets00001";
|
|
31
31
|
|
|
32
|
-
const RowSchema = z.array(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
const RowSchema = z.array(
|
|
33
|
+
z.object({
|
|
34
|
+
name: z.string(),
|
|
35
|
+
email: z.string(),
|
|
36
|
+
status: z.string(),
|
|
37
|
+
}),
|
|
38
|
+
);
|
|
37
39
|
|
|
38
40
|
export default api({
|
|
41
|
+
integrations: {
|
|
42
|
+
sheets: gsheets(PROD_GSHEETS),
|
|
43
|
+
},
|
|
39
44
|
name: "GoogleSheetsExample",
|
|
40
45
|
input: z.object({
|
|
41
46
|
spreadsheetId: z.string(),
|
|
@@ -44,14 +49,16 @@ export default api({
|
|
|
44
49
|
rows: RowSchema,
|
|
45
50
|
}),
|
|
46
51
|
async run(ctx, { spreadsheetId }) {
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
const rows = await ctx.integrations.sheets.run(
|
|
53
|
+
"READ_SPREADSHEET_RANGE",
|
|
54
|
+
RowSchema,
|
|
55
|
+
{
|
|
56
|
+
spreadsheetId: spreadsheetId,
|
|
57
|
+
sheetTitle: "Sheet1",
|
|
58
|
+
range: "A1:C100",
|
|
59
|
+
extractFirstRowHeader: true,
|
|
60
|
+
},
|
|
61
|
+
);
|
|
55
62
|
|
|
56
63
|
return { rows };
|
|
57
64
|
},
|
|
@@ -61,7 +68,7 @@ export default api({
|
|
|
61
68
|
### Append Rows
|
|
62
69
|
|
|
63
70
|
```typescript
|
|
64
|
-
await sheets.run("APPEND_SPREADSHEET", z.any(), {
|
|
71
|
+
await ctx.integrations.sheets.run("APPEND_SPREADSHEET", z.any(), {
|
|
65
72
|
spreadsheetId: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
|
|
66
73
|
sheetTitle: "Sheet1",
|
|
67
74
|
data: JSON.stringify([
|
|
@@ -74,7 +81,7 @@ await sheets.run("APPEND_SPREADSHEET", z.any(), {
|
|
|
74
81
|
### Create Rows at Position
|
|
75
82
|
|
|
76
83
|
```typescript
|
|
77
|
-
await sheets.run("CREATE_SPREADSHEET_ROWS", z.any(), {
|
|
84
|
+
await ctx.integrations.sheets.run("CREATE_SPREADSHEET_ROWS", z.any(), {
|
|
78
85
|
spreadsheetId: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
|
|
79
86
|
sheetTitle: "Sheet1",
|
|
80
87
|
rowNumber: "5",
|
|
@@ -87,7 +94,7 @@ await sheets.run("CREATE_SPREADSHEET_ROWS", z.any(), {
|
|
|
87
94
|
### Clear Sheet
|
|
88
95
|
|
|
89
96
|
```typescript
|
|
90
|
-
await sheets.run("CLEAR_SPREADSHEET", z.any(), {
|
|
97
|
+
await ctx.integrations.sheets.run("CLEAR_SPREADSHEET", z.any(), {
|
|
91
98
|
spreadsheetId: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
|
|
92
99
|
sheetTitle: "Sheet1",
|
|
93
100
|
preserveHeaderRow: true,
|
|
@@ -97,7 +104,7 @@ await sheets.run("CLEAR_SPREADSHEET", z.any(), {
|
|
|
97
104
|
### Create New Worksheet
|
|
98
105
|
|
|
99
106
|
```typescript
|
|
100
|
-
await sheets.run("CREATE_WORKSHEET", z.any(), {
|
|
107
|
+
await ctx.integrations.sheets.run("CREATE_WORKSHEET", z.any(), {
|
|
101
108
|
spreadsheetId: "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
|
|
102
109
|
addSheet: {
|
|
103
110
|
sheetTitle: "New Sheet",
|
|
@@ -109,18 +116,18 @@ await sheets.run("CREATE_WORKSHEET", z.any(), {
|
|
|
109
116
|
|
|
110
117
|
## Parameters
|
|
111
118
|
|
|
112
|
-
| Parameter
|
|
113
|
-
|
|
|
114
|
-
| `spreadsheetId`
|
|
115
|
-
| `sheetTitle`
|
|
116
|
-
| `range`
|
|
117
|
-
| `data`
|
|
118
|
-
| `extractFirstRowHeader` | `boolean` | Treat first row as headers
|
|
119
|
-
| `headerRowNumber`
|
|
120
|
-
| `preserveHeaderRow`
|
|
121
|
-
| `includeHeaderRow`
|
|
122
|
-
| `rowNumber`
|
|
123
|
-
| `addSheet`
|
|
119
|
+
| Parameter | Type | Description |
|
|
120
|
+
| ----------------------- | --------- | ------------------------------------- |
|
|
121
|
+
| `spreadsheetId` | `string` | The spreadsheet ID (required) |
|
|
122
|
+
| `sheetTitle` | `string` | Sheet name/title |
|
|
123
|
+
| `range` | `string` | Range in A1 notation (e.g., "A1:D10") |
|
|
124
|
+
| `data` | `string` | JSON string of data to write |
|
|
125
|
+
| `extractFirstRowHeader` | `boolean` | Treat first row as headers |
|
|
126
|
+
| `headerRowNumber` | `string` | Header row number |
|
|
127
|
+
| `preserveHeaderRow` | `boolean` | Preserve headers when clearing |
|
|
128
|
+
| `includeHeaderRow` | `boolean` | Include headers in output |
|
|
129
|
+
| `rowNumber` | `string` | Row number for single row operations |
|
|
130
|
+
| `addSheet` | `object` | Config for CREATE_WORKSHEET action |
|
|
124
131
|
|
|
125
132
|
## Common Pitfalls
|
|
126
133
|
|
|
@@ -142,23 +149,30 @@ The `data` parameter expects a JSON string:
|
|
|
142
149
|
|
|
143
150
|
```typescript
|
|
144
151
|
// CORRECT
|
|
145
|
-
data: JSON.stringify([{ name: "John", email: "john@example.com" }])
|
|
152
|
+
data: JSON.stringify([{ name: "John", email: "john@example.com" }]);
|
|
146
153
|
|
|
147
154
|
// WRONG
|
|
148
|
-
data: [{ name: "John", email: "john@example.com" }]
|
|
155
|
+
data: [{ name: "John", email: "john@example.com" }];
|
|
149
156
|
```
|
|
150
157
|
|
|
151
158
|
## Error Handling
|
|
152
159
|
|
|
153
160
|
```typescript
|
|
154
|
-
import {
|
|
161
|
+
import {
|
|
162
|
+
RestApiValidationError,
|
|
163
|
+
IntegrationError,
|
|
164
|
+
} from "@superblocksteam/sdk-api";
|
|
155
165
|
|
|
156
166
|
try {
|
|
157
|
-
const rows = await sheets.run(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
167
|
+
const rows = await ctx.integrations.sheets.run(
|
|
168
|
+
"READ_SPREADSHEET_RANGE",
|
|
169
|
+
RowSchema,
|
|
170
|
+
{
|
|
171
|
+
spreadsheetId: "...",
|
|
172
|
+
sheetTitle: "Sheet1",
|
|
173
|
+
range: "A1:C100",
|
|
174
|
+
},
|
|
175
|
+
);
|
|
162
176
|
} catch (error) {
|
|
163
177
|
if (error instanceof RestApiValidationError) {
|
|
164
178
|
console.error("Validation failed:", error.details.zodError);
|
|
@@ -4,19 +4,25 @@
|
|
|
4
4
|
* Uses the native Google Sheets plugin type from @superblocksteam/types.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import type { z } from
|
|
8
|
-
import type { PartialMessage } from
|
|
9
|
-
import type { Plugin as GSheetsPlugin } from
|
|
10
|
-
import type { IntegrationConfig, IntegrationClientImpl } from
|
|
11
|
-
import type { QueryExecutor } from
|
|
12
|
-
import { RestApiValidationError } from
|
|
13
|
-
import { IntegrationError } from
|
|
14
|
-
import type {
|
|
7
|
+
import type { z } from "zod";
|
|
8
|
+
import type { PartialMessage } from "@bufbuild/protobuf";
|
|
9
|
+
import type { Plugin as GSheetsPlugin } from "@superblocksteam/types/dist/src/plugins/gsheets/v1/plugin_pb";
|
|
10
|
+
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
11
|
+
import type { QueryExecutor } from "../registry.js";
|
|
12
|
+
import { RestApiValidationError } from "../../errors.js";
|
|
13
|
+
import { IntegrationError } from "../../runtime/errors.js";
|
|
14
|
+
import type {
|
|
15
|
+
GoogleSheetsClient,
|
|
16
|
+
GoogleSheetsAction,
|
|
17
|
+
GoogleSheetsParams,
|
|
18
|
+
} from "./types.js";
|
|
15
19
|
|
|
16
20
|
/**
|
|
17
21
|
* Internal implementation of GoogleSheetsClient.
|
|
18
22
|
*/
|
|
19
|
-
export class GoogleSheetsClientImpl
|
|
23
|
+
export class GoogleSheetsClientImpl
|
|
24
|
+
implements GoogleSheetsClient, IntegrationClientImpl
|
|
25
|
+
{
|
|
20
26
|
readonly config: IntegrationConfig;
|
|
21
27
|
private readonly executeQuery: QueryExecutor;
|
|
22
28
|
|
|
@@ -94,7 +100,9 @@ export class GoogleSheetsClientImpl implements GoogleSheetsClient, IntegrationCl
|
|
|
94
100
|
const request = this.buildRequest(action, params);
|
|
95
101
|
|
|
96
102
|
try {
|
|
97
|
-
const result = await this.executeQuery(
|
|
103
|
+
const result = await this.executeQuery(
|
|
104
|
+
request as Record<string, unknown>,
|
|
105
|
+
);
|
|
98
106
|
|
|
99
107
|
// Validate result against schema
|
|
100
108
|
const parseResult = schema.safeParse(result);
|
|
@@ -118,7 +126,7 @@ export class GoogleSheetsClientImpl implements GoogleSheetsClient, IntegrationCl
|
|
|
118
126
|
throw error;
|
|
119
127
|
}
|
|
120
128
|
|
|
121
|
-
throw new IntegrationError(this.config.name,
|
|
129
|
+
throw new IntegrationError(this.config.name, "run", error);
|
|
122
130
|
}
|
|
123
131
|
}
|
|
124
132
|
}
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
* Google Sheets client types.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import type { z } from
|
|
6
|
-
import type { BaseIntegrationClient } from
|
|
5
|
+
import type { z } from "zod";
|
|
6
|
+
import type { BaseIntegrationClient } from "../../types.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Google Sheets action types.
|
|
10
10
|
*/
|
|
11
11
|
export type GoogleSheetsAction =
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
12
|
+
| "READ_SPREADSHEET"
|
|
13
|
+
| "READ_SPREADSHEET_RANGE"
|
|
14
|
+
| "APPEND_SPREADSHEET"
|
|
15
|
+
| "CREATE_SPREADSHEET_ROWS"
|
|
16
|
+
| "CLEAR_SPREADSHEET"
|
|
17
|
+
| "CREATE_WORKSHEET";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Parameters for Google Sheets operations.
|
|
@@ -59,7 +59,8 @@ export interface GoogleSheetsParams {
|
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* ```typescript
|
|
62
|
-
*
|
|
62
|
+
* // Declare in api(): integrations: { sheets: gsheets(INTEGRATION_ID) }
|
|
63
|
+
* // In run(), access via ctx.integrations.sheets
|
|
63
64
|
*
|
|
64
65
|
* // Read a range
|
|
65
66
|
* const RowSchema = z.array(z.object({
|
|
@@ -67,7 +68,7 @@ export interface GoogleSheetsParams {
|
|
|
67
68
|
* email: z.string(),
|
|
68
69
|
* }));
|
|
69
70
|
*
|
|
70
|
-
* const data = await sheets.run('READ_SPREADSHEET_RANGE', RowSchema, {
|
|
71
|
+
* const data = await ctx.integrations.sheets.run('READ_SPREADSHEET_RANGE', RowSchema, {
|
|
71
72
|
* spreadsheetId: '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms',
|
|
72
73
|
* sheetTitle: 'Sheet1',
|
|
73
74
|
* range: 'A1:B10',
|
|
@@ -75,7 +76,7 @@ export interface GoogleSheetsParams {
|
|
|
75
76
|
* });
|
|
76
77
|
*
|
|
77
78
|
* // Append rows
|
|
78
|
-
* await sheets.run('APPEND_SPREADSHEET', z.any(), {
|
|
79
|
+
* await ctx.integrations.sheets.run('APPEND_SPREADSHEET', z.any(), {
|
|
79
80
|
* spreadsheetId: '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms',
|
|
80
81
|
* sheetTitle: 'Sheet1',
|
|
81
82
|
* data: JSON.stringify([{ name: 'John', email: 'john@example.com' }]),
|