@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 @@ Create, read, update, and delete records in Airtable bases and tables.
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| ----------------------------- | ---------------------------------------------------- |
|
|
9
9
|
| `apiRequest(options, schema)` | Make any Airtable API request with schema validation |
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,7 +13,7 @@ Create, read, update, and delete records in Airtable bases and tables.
|
|
|
13
13
|
### List Records
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
16
|
+
import { api, z, airtable } from "@superblocksteam/sdk-api";
|
|
17
17
|
|
|
18
18
|
// Integration ID from the integrations panel
|
|
19
19
|
const PROD_AIRTABLE = "a1b2c3d4-5678-90ab-cdef-airtable0001";
|
|
@@ -31,17 +31,20 @@ const ListRecordsResponseSchema = z.object({
|
|
|
31
31
|
|
|
32
32
|
export default api({
|
|
33
33
|
name: "AirtableExample",
|
|
34
|
+
integrations: {
|
|
35
|
+
airtable: airtable(PROD_AIRTABLE),
|
|
36
|
+
},
|
|
34
37
|
input: z.object({
|
|
35
38
|
baseId: z.string(),
|
|
36
39
|
tableId: z.string(),
|
|
37
40
|
}),
|
|
38
41
|
output: z.object({
|
|
39
|
-
records: z.array(
|
|
42
|
+
records: z.array(
|
|
43
|
+
z.object({ id: z.string(), fields: z.record(z.unknown()) }),
|
|
44
|
+
),
|
|
40
45
|
}),
|
|
41
46
|
async run(ctx, { baseId, tableId }) {
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
const result = await airtable.apiRequest(
|
|
47
|
+
const result = await ctx.integrations.airtable.apiRequest(
|
|
45
48
|
{
|
|
46
49
|
method: "GET",
|
|
47
50
|
path: `/v0/${baseId}/${tableId}`,
|
|
@@ -49,7 +52,7 @@ export default api({
|
|
|
49
52
|
maxRecords: 100,
|
|
50
53
|
},
|
|
51
54
|
},
|
|
52
|
-
{ response: ListRecordsResponseSchema }
|
|
55
|
+
{ response: ListRecordsResponseSchema },
|
|
53
56
|
);
|
|
54
57
|
|
|
55
58
|
return {
|
|
@@ -68,7 +71,7 @@ const CreateRecordResponseSchema = z.object({
|
|
|
68
71
|
fields: z.record(z.unknown()),
|
|
69
72
|
});
|
|
70
73
|
|
|
71
|
-
const result = await airtable.apiRequest(
|
|
74
|
+
const result = await ctx.integrations.airtable.apiRequest(
|
|
72
75
|
{
|
|
73
76
|
method: "POST",
|
|
74
77
|
path: `/v0/${baseId}/${tableId}`,
|
|
@@ -82,7 +85,7 @@ const result = await airtable.apiRequest(
|
|
|
82
85
|
},
|
|
83
86
|
},
|
|
84
87
|
},
|
|
85
|
-
{ response: CreateRecordResponseSchema }
|
|
88
|
+
{ response: CreateRecordResponseSchema },
|
|
86
89
|
);
|
|
87
90
|
|
|
88
91
|
console.log(`Created record: ${result.id}`);
|
|
@@ -95,7 +98,7 @@ const CreateMultipleResponseSchema = z.object({
|
|
|
95
98
|
records: z.array(RecordSchema),
|
|
96
99
|
});
|
|
97
100
|
|
|
98
|
-
const result = await airtable.apiRequest(
|
|
101
|
+
const result = await ctx.integrations.airtable.apiRequest(
|
|
99
102
|
{
|
|
100
103
|
method: "POST",
|
|
101
104
|
path: `/v0/${baseId}/${tableId}`,
|
|
@@ -107,7 +110,7 @@ const result = await airtable.apiRequest(
|
|
|
107
110
|
],
|
|
108
111
|
},
|
|
109
112
|
},
|
|
110
|
-
{ response: CreateMultipleResponseSchema }
|
|
113
|
+
{ response: CreateMultipleResponseSchema },
|
|
111
114
|
);
|
|
112
115
|
|
|
113
116
|
console.log(`Created ${result.records.length} records`);
|
|
@@ -116,12 +119,12 @@ console.log(`Created ${result.records.length} records`);
|
|
|
116
119
|
### Get a Single Record
|
|
117
120
|
|
|
118
121
|
```typescript
|
|
119
|
-
const result = await airtable.apiRequest(
|
|
122
|
+
const result = await ctx.integrations.airtable.apiRequest(
|
|
120
123
|
{
|
|
121
124
|
method: "GET",
|
|
122
125
|
path: `/v0/${baseId}/${tableId}/${recordId}`,
|
|
123
126
|
},
|
|
124
|
-
{ response: RecordSchema }
|
|
127
|
+
{ response: RecordSchema },
|
|
125
128
|
);
|
|
126
129
|
|
|
127
130
|
console.log(`Record: ${result.fields.Name}`);
|
|
@@ -130,7 +133,7 @@ console.log(`Record: ${result.fields.Name}`);
|
|
|
130
133
|
### Update a Record
|
|
131
134
|
|
|
132
135
|
```typescript
|
|
133
|
-
const result = await airtable.apiRequest(
|
|
136
|
+
const result = await ctx.integrations.airtable.apiRequest(
|
|
134
137
|
{
|
|
135
138
|
method: "PATCH",
|
|
136
139
|
path: `/v0/${baseId}/${tableId}/${recordId}`,
|
|
@@ -141,14 +144,14 @@ const result = await airtable.apiRequest(
|
|
|
141
144
|
},
|
|
142
145
|
},
|
|
143
146
|
},
|
|
144
|
-
{ response: RecordSchema }
|
|
147
|
+
{ response: RecordSchema },
|
|
145
148
|
);
|
|
146
149
|
```
|
|
147
150
|
|
|
148
151
|
### Update Multiple Records
|
|
149
152
|
|
|
150
153
|
```typescript
|
|
151
|
-
const result = await airtable.apiRequest(
|
|
154
|
+
const result = await ctx.integrations.airtable.apiRequest(
|
|
152
155
|
{
|
|
153
156
|
method: "PATCH",
|
|
154
157
|
path: `/v0/${baseId}/${tableId}`,
|
|
@@ -159,7 +162,7 @@ const result = await airtable.apiRequest(
|
|
|
159
162
|
],
|
|
160
163
|
},
|
|
161
164
|
},
|
|
162
|
-
{ response: z.object({ records: z.array(RecordSchema) }) }
|
|
165
|
+
{ response: z.object({ records: z.array(RecordSchema) }) },
|
|
163
166
|
);
|
|
164
167
|
```
|
|
165
168
|
|
|
@@ -171,11 +174,11 @@ const DeleteResponseSchema = z.object({
|
|
|
171
174
|
z.object({
|
|
172
175
|
id: z.string(),
|
|
173
176
|
deleted: z.boolean(),
|
|
174
|
-
})
|
|
177
|
+
}),
|
|
175
178
|
),
|
|
176
179
|
});
|
|
177
180
|
|
|
178
|
-
const result = await airtable.apiRequest(
|
|
181
|
+
const result = await ctx.integrations.airtable.apiRequest(
|
|
179
182
|
{
|
|
180
183
|
method: "DELETE",
|
|
181
184
|
path: `/v0/${baseId}/${tableId}`,
|
|
@@ -183,14 +186,14 @@ const result = await airtable.apiRequest(
|
|
|
183
186
|
"records[]": ["rec1", "rec2", "rec3"],
|
|
184
187
|
},
|
|
185
188
|
},
|
|
186
|
-
{ response: DeleteResponseSchema }
|
|
189
|
+
{ response: DeleteResponseSchema },
|
|
187
190
|
);
|
|
188
191
|
```
|
|
189
192
|
|
|
190
193
|
### Filter and Sort Records
|
|
191
194
|
|
|
192
195
|
```typescript
|
|
193
|
-
const result = await airtable.apiRequest(
|
|
196
|
+
const result = await ctx.integrations.airtable.apiRequest(
|
|
194
197
|
{
|
|
195
198
|
method: "GET",
|
|
196
199
|
path: `/v0/${baseId}/${tableId}`,
|
|
@@ -204,7 +207,7 @@ const result = await airtable.apiRequest(
|
|
|
204
207
|
maxRecords: 50,
|
|
205
208
|
},
|
|
206
209
|
},
|
|
207
|
-
{ response: ListRecordsResponseSchema }
|
|
210
|
+
{ response: ListRecordsResponseSchema },
|
|
208
211
|
);
|
|
209
212
|
```
|
|
210
213
|
|
|
@@ -223,18 +226,18 @@ const TableSchemaResponseSchema = z.object({
|
|
|
223
226
|
name: z.string(),
|
|
224
227
|
type: z.string(),
|
|
225
228
|
options: z.unknown().optional(),
|
|
226
|
-
})
|
|
229
|
+
}),
|
|
227
230
|
),
|
|
228
|
-
})
|
|
231
|
+
}),
|
|
229
232
|
),
|
|
230
233
|
});
|
|
231
234
|
|
|
232
|
-
const result = await airtable.apiRequest(
|
|
235
|
+
const result = await ctx.integrations.airtable.apiRequest(
|
|
233
236
|
{
|
|
234
237
|
method: "GET",
|
|
235
238
|
path: `/v0/meta/bases/${baseId}/tables`,
|
|
236
239
|
},
|
|
237
|
-
{ response: TableSchemaResponseSchema }
|
|
240
|
+
{ response: TableSchemaResponseSchema },
|
|
238
241
|
);
|
|
239
242
|
|
|
240
243
|
result.tables.forEach((table) => {
|
|
@@ -251,11 +254,11 @@ result.tables.forEach((table) => {
|
|
|
251
254
|
|
|
252
255
|
```typescript
|
|
253
256
|
// WRONG - These methods do not exist
|
|
254
|
-
await airtable.listRecords({ ... });
|
|
255
|
-
await airtable.createRecord({ ... });
|
|
257
|
+
await ctx.integrations.airtable.listRecords({ ... });
|
|
258
|
+
await ctx.integrations.airtable.createRecord({ ... });
|
|
256
259
|
|
|
257
260
|
// CORRECT - Use apiRequest
|
|
258
|
-
await airtable.apiRequest(
|
|
261
|
+
await ctx.integrations.airtable.apiRequest(
|
|
259
262
|
{ method: "GET", path: `/v0/${baseId}/${tableId}` },
|
|
260
263
|
{ response: ListRecordsResponseSchema }
|
|
261
264
|
);
|
|
@@ -279,8 +282,8 @@ const path = `/v0/${baseId}/tbl123abc`;
|
|
|
279
282
|
```typescript
|
|
280
283
|
// WRONG - Wrong case
|
|
281
284
|
const fields = {
|
|
282
|
-
name: "Task",
|
|
283
|
-
STATUS: "To Do",
|
|
285
|
+
name: "Task", // Should be "Name"
|
|
286
|
+
STATUS: "To Do", // Should be "Status"
|
|
284
287
|
};
|
|
285
288
|
|
|
286
289
|
// CORRECT - Match exact field names from Airtable
|
|
@@ -296,8 +299,8 @@ const fields = {
|
|
|
296
299
|
// For linked record fields, use an array of record IDs
|
|
297
300
|
const fields = {
|
|
298
301
|
Name: "New Task",
|
|
299
|
-
Project: ["recABC123"],
|
|
300
|
-
Assignees: ["recDEF456", "recGHI789"],
|
|
302
|
+
Project: ["recABC123"], // Single link
|
|
303
|
+
Assignees: ["recDEF456", "recGHI789"], // Multiple links
|
|
301
304
|
};
|
|
302
305
|
```
|
|
303
306
|
|
|
@@ -332,7 +335,11 @@ const filter8 = "NOT({Assignee} = BLANK())";
|
|
|
332
335
|
Airtable returns max 100 records per request:
|
|
333
336
|
|
|
334
337
|
```typescript
|
|
335
|
-
async function getAllRecords(
|
|
338
|
+
async function getAllRecords(
|
|
339
|
+
airtable: AirtableClient,
|
|
340
|
+
baseId: string,
|
|
341
|
+
tableId: string,
|
|
342
|
+
) {
|
|
336
343
|
const allRecords: Record[] = [];
|
|
337
344
|
let offset: string | undefined;
|
|
338
345
|
|
|
@@ -346,7 +353,7 @@ async function getAllRecords(airtable: AirtableClient, baseId: string, tableId:
|
|
|
346
353
|
...(offset && { offset }),
|
|
347
354
|
},
|
|
348
355
|
},
|
|
349
|
-
{ response: ListRecordsResponseSchema }
|
|
356
|
+
{ response: ListRecordsResponseSchema },
|
|
350
357
|
);
|
|
351
358
|
|
|
352
359
|
allRecords.push(...result.records);
|
|
@@ -364,7 +371,7 @@ Airtable has a rate limit of 5 requests per second per base:
|
|
|
364
371
|
```typescript
|
|
365
372
|
// Add delays for bulk operations
|
|
366
373
|
for (const batch of batches) {
|
|
367
|
-
await airtable.apiRequest(...);
|
|
374
|
+
await ctx.integrations.airtable.apiRequest(...);
|
|
368
375
|
await new Promise((r) => setTimeout(r, 200)); // 5 req/sec = 200ms delay
|
|
369
376
|
}
|
|
370
377
|
```
|
|
@@ -391,9 +398,9 @@ for (let i = 0; i < records.length; i += 10) {
|
|
|
391
398
|
import { RestApiValidationError } from "@superblocksteam/sdk-api";
|
|
392
399
|
|
|
393
400
|
try {
|
|
394
|
-
const result = await airtable.apiRequest(
|
|
401
|
+
const result = await ctx.integrations.airtable.apiRequest(
|
|
395
402
|
{ method: "GET", path: `/v0/${baseId}/${tableId}` },
|
|
396
|
-
{ response: ListRecordsResponseSchema }
|
|
403
|
+
{ response: ListRecordsResponseSchema },
|
|
397
404
|
);
|
|
398
405
|
} catch (error) {
|
|
399
406
|
if (error instanceof RestApiValidationError) {
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Airtable integrations use the REST API Integration plugin under the hood.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { RestApiIntegrationClient } from
|
|
9
|
-
import type { AirtableClient } from
|
|
8
|
+
import { RestApiIntegrationClient } from "../base/index.js";
|
|
9
|
+
import type { AirtableClient } from "./types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Internal implementation of AirtableClient.
|
|
@@ -16,6 +16,8 @@ import type { AirtableClient } from './types.js';
|
|
|
16
16
|
* Airtable API calls. At runtime, the orchestrator handles authentication
|
|
17
17
|
* and API request execution.
|
|
18
18
|
*/
|
|
19
|
-
export class AirtableClientImpl
|
|
19
|
+
export class AirtableClientImpl
|
|
20
|
+
extends RestApiIntegrationClient
|
|
21
|
+
implements AirtableClient {
|
|
20
22
|
// Inherits: name, pluginId, config, executeQuery, apiRequest()
|
|
21
23
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AirtableClientImpl } from
|
|
2
|
-
export type { AirtableClient } from
|
|
1
|
+
export { AirtableClientImpl } from "./client.js";
|
|
2
|
+
export type { AirtableClient } from "./types.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Airtable 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
|
* Airtable client for API interactions.
|
|
@@ -13,14 +13,9 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```typescript
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* const ResponseSchema = z.object({
|
|
20
|
-
* // Define your response schema
|
|
21
|
-
* });
|
|
22
|
-
*
|
|
23
|
-
* const result = await airtable.apiRequest(
|
|
16
|
+
* // Declare in api(): integrations: { airtable: airtable(INTEGRATION_ID) }
|
|
17
|
+
* // In run(), access via: ctx.integrations.airtable
|
|
18
|
+
* const result = await ctx.integrations.airtable.apiRequest(
|
|
24
19
|
* {
|
|
25
20
|
* method: 'GET',
|
|
26
21
|
* path: '/v0/{baseId}/{tableName}',
|
|
@@ -29,6 +24,7 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
29
24
|
* );
|
|
30
25
|
* ```
|
|
31
26
|
*/
|
|
32
|
-
export interface AirtableClient
|
|
27
|
+
export interface AirtableClient
|
|
28
|
+
extends BaseIntegrationClient, SupportsApiRequest {
|
|
33
29
|
// apiRequest() method inherited from SupportsApiRequest
|
|
34
30
|
}
|
|
@@ -4,17 +4,17 @@ Interact with Anthropic's Claude API for powerful AI conversations and text gene
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
9
|
-
| `apiRequest(options, schema)`
|
|
10
|
-
| `streamApiRequest(options, schema)` | Stream responses with real-time chunk validation
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| ----------------------------------- | ----------------------------------------------------- |
|
|
9
|
+
| `apiRequest(options, schema)` | Make any Anthropic API request with schema validation |
|
|
10
|
+
| `streamApiRequest(options, schema)` | Stream responses with real-time chunk validation |
|
|
11
11
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
14
|
### Create a Message
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
17
|
+
import { api, z, anthropic } from "@superblocksteam/sdk-api";
|
|
18
18
|
|
|
19
19
|
// Integration ID from the integrations panel
|
|
20
20
|
const PROD_ANTHROPIC = "a1b2c3d4-5678-90ab-cdef-444444444444";
|
|
@@ -27,7 +27,7 @@ const MessageResponseSchema = z.object({
|
|
|
27
27
|
z.object({
|
|
28
28
|
type: z.literal("text"),
|
|
29
29
|
text: z.string(),
|
|
30
|
-
})
|
|
30
|
+
}),
|
|
31
31
|
),
|
|
32
32
|
model: z.string(),
|
|
33
33
|
stop_reason: z.string().nullable(),
|
|
@@ -40,6 +40,9 @@ const MessageResponseSchema = z.object({
|
|
|
40
40
|
|
|
41
41
|
export default api({
|
|
42
42
|
name: "AnthropicExample",
|
|
43
|
+
integrations: {
|
|
44
|
+
ai: anthropic(PROD_ANTHROPIC),
|
|
45
|
+
},
|
|
43
46
|
input: z.object({
|
|
44
47
|
prompt: z.string(),
|
|
45
48
|
}),
|
|
@@ -47,9 +50,7 @@ export default api({
|
|
|
47
50
|
response: z.string(),
|
|
48
51
|
}),
|
|
49
52
|
async run(ctx, { prompt }) {
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
const result = await anthropic.apiRequest(
|
|
53
|
+
const result = await ctx.integrations.ai.apiRequest(
|
|
53
54
|
{
|
|
54
55
|
method: "POST",
|
|
55
56
|
path: "/v1/messages",
|
|
@@ -59,7 +60,7 @@ export default api({
|
|
|
59
60
|
messages: [{ role: "user", content: prompt }],
|
|
60
61
|
},
|
|
61
62
|
},
|
|
62
|
-
{ response: MessageResponseSchema }
|
|
63
|
+
{ response: MessageResponseSchema },
|
|
63
64
|
);
|
|
64
65
|
|
|
65
66
|
const textContent = result.content.find((c) => c.type === "text");
|
|
@@ -71,14 +72,15 @@ export default api({
|
|
|
71
72
|
### Conversation with System Prompt
|
|
72
73
|
|
|
73
74
|
```typescript
|
|
74
|
-
const result = await
|
|
75
|
+
const result = await ctx.integrations.ai.apiRequest(
|
|
75
76
|
{
|
|
76
77
|
method: "POST",
|
|
77
78
|
path: "/v1/messages",
|
|
78
79
|
body: {
|
|
79
80
|
model: "claude-3-5-sonnet-20241022",
|
|
80
81
|
max_tokens: 2048,
|
|
81
|
-
system:
|
|
82
|
+
system:
|
|
83
|
+
"You are a helpful coding assistant. Always provide code examples.",
|
|
82
84
|
messages: [
|
|
83
85
|
{ role: "user", content: "How do I read a file in Python?" },
|
|
84
86
|
{
|
|
@@ -89,7 +91,7 @@ const result = await anthropic.apiRequest(
|
|
|
89
91
|
],
|
|
90
92
|
},
|
|
91
93
|
},
|
|
92
|
-
{ response: MessageResponseSchema }
|
|
94
|
+
{ response: MessageResponseSchema },
|
|
93
95
|
);
|
|
94
96
|
```
|
|
95
97
|
|
|
@@ -111,7 +113,7 @@ const ToolUseResponseSchema = z.object({
|
|
|
111
113
|
name: z.string(),
|
|
112
114
|
input: z.record(z.unknown()),
|
|
113
115
|
}),
|
|
114
|
-
])
|
|
116
|
+
]),
|
|
115
117
|
),
|
|
116
118
|
stop_reason: z.string().nullable(),
|
|
117
119
|
usage: z.object({
|
|
@@ -120,7 +122,7 @@ const ToolUseResponseSchema = z.object({
|
|
|
120
122
|
}),
|
|
121
123
|
});
|
|
122
124
|
|
|
123
|
-
const result = await
|
|
125
|
+
const result = await ctx.integrations.ai.apiRequest(
|
|
124
126
|
{
|
|
125
127
|
method: "POST",
|
|
126
128
|
path: "/v1/messages",
|
|
@@ -148,7 +150,7 @@ const result = await anthropic.apiRequest(
|
|
|
148
150
|
],
|
|
149
151
|
},
|
|
150
152
|
},
|
|
151
|
-
{ response: ToolUseResponseSchema }
|
|
153
|
+
{ response: ToolUseResponseSchema },
|
|
152
154
|
);
|
|
153
155
|
|
|
154
156
|
// Check if Claude wants to use a tool
|
|
@@ -161,7 +163,7 @@ if (toolUse && toolUse.type === "tool_use") {
|
|
|
161
163
|
### Vision (Image Analysis)
|
|
162
164
|
|
|
163
165
|
```typescript
|
|
164
|
-
const result = await
|
|
166
|
+
const result = await ctx.integrations.ai.apiRequest(
|
|
165
167
|
{
|
|
166
168
|
method: "POST",
|
|
167
169
|
path: "/v1/messages",
|
|
@@ -189,7 +191,7 @@ const result = await anthropic.apiRequest(
|
|
|
189
191
|
],
|
|
190
192
|
},
|
|
191
193
|
},
|
|
192
|
-
{ response: MessageResponseSchema }
|
|
194
|
+
{ response: MessageResponseSchema },
|
|
193
195
|
);
|
|
194
196
|
```
|
|
195
197
|
|
|
@@ -209,7 +211,7 @@ const ExtendedThinkingResponseSchema = z.object({
|
|
|
209
211
|
type: z.literal("text"),
|
|
210
212
|
text: z.string(),
|
|
211
213
|
}),
|
|
212
|
-
])
|
|
214
|
+
]),
|
|
213
215
|
),
|
|
214
216
|
usage: z.object({
|
|
215
217
|
input_tokens: z.number(),
|
|
@@ -217,7 +219,7 @@ const ExtendedThinkingResponseSchema = z.object({
|
|
|
217
219
|
}),
|
|
218
220
|
});
|
|
219
221
|
|
|
220
|
-
const result = await
|
|
222
|
+
const result = await ctx.integrations.ai.apiRequest(
|
|
221
223
|
{
|
|
222
224
|
method: "POST",
|
|
223
225
|
path: "/v1/messages",
|
|
@@ -236,7 +238,7 @@ const result = await anthropic.apiRequest(
|
|
|
236
238
|
],
|
|
237
239
|
},
|
|
238
240
|
},
|
|
239
|
-
{ response: ExtendedThinkingResponseSchema }
|
|
241
|
+
{ response: ExtendedThinkingResponseSchema },
|
|
240
242
|
);
|
|
241
243
|
```
|
|
242
244
|
|
|
@@ -261,9 +263,17 @@ const AnthropicStreamEventSchema = z.discriminatedUnion("type", [
|
|
|
261
263
|
}),
|
|
262
264
|
}),
|
|
263
265
|
z.object({ type: z.literal("message_start"), message: z.any() }),
|
|
264
|
-
z.object({
|
|
266
|
+
z.object({
|
|
267
|
+
type: z.literal("content_block_start"),
|
|
268
|
+
index: z.number(),
|
|
269
|
+
content_block: z.any(),
|
|
270
|
+
}),
|
|
265
271
|
z.object({ type: z.literal("content_block_stop"), index: z.number() }),
|
|
266
|
-
z.object({
|
|
272
|
+
z.object({
|
|
273
|
+
type: z.literal("message_delta"),
|
|
274
|
+
delta: z.any(),
|
|
275
|
+
usage: z.any(),
|
|
276
|
+
}),
|
|
267
277
|
z.object({ type: z.literal("message_stop") }),
|
|
268
278
|
z.object({ type: z.literal("ping") }),
|
|
269
279
|
]);
|
|
@@ -288,7 +298,7 @@ export default streamingApi({
|
|
|
288
298
|
messages: [{ role: "user", content: prompt }],
|
|
289
299
|
},
|
|
290
300
|
},
|
|
291
|
-
{ chunk: AnthropicStreamEventSchema }
|
|
301
|
+
{ chunk: AnthropicStreamEventSchema },
|
|
292
302
|
);
|
|
293
303
|
|
|
294
304
|
// Yield text chunks as they arrive
|
|
@@ -305,15 +315,15 @@ export default streamingApi({
|
|
|
305
315
|
|
|
306
316
|
Claude's streaming API sends these event types:
|
|
307
317
|
|
|
308
|
-
| Event Type
|
|
309
|
-
|
|
|
310
|
-
| `message_start`
|
|
311
|
-
| `content_block_start` | Start of a content block (text, tool_use)
|
|
312
|
-
| `content_block_delta` | Incremental text or tool input
|
|
313
|
-
| `content_block_stop`
|
|
314
|
-
| `message_delta`
|
|
315
|
-
| `message_stop`
|
|
316
|
-
| `ping`
|
|
318
|
+
| Event Type | Description |
|
|
319
|
+
| --------------------- | ------------------------------------------- |
|
|
320
|
+
| `message_start` | Initial message metadata (model, id, usage) |
|
|
321
|
+
| `content_block_start` | Start of a content block (text, tool_use) |
|
|
322
|
+
| `content_block_delta` | Incremental text or tool input |
|
|
323
|
+
| `content_block_stop` | End of a content block |
|
|
324
|
+
| `message_delta` | Final message metadata (stop_reason, usage) |
|
|
325
|
+
| `message_stop` | Stream complete |
|
|
326
|
+
| `ping` | Keep-alive ping |
|
|
317
327
|
|
|
318
328
|
## Common Pitfalls
|
|
319
329
|
|
|
@@ -327,7 +337,7 @@ await anthropic.createMessage({ ... });
|
|
|
327
337
|
await anthropic.complete({ ... });
|
|
328
338
|
|
|
329
339
|
// CORRECT - Use apiRequest for all operations
|
|
330
|
-
await
|
|
340
|
+
await ctx.integrations.ai.apiRequest(
|
|
331
341
|
{ method: "POST", path: "/v1/messages", body: { ... } },
|
|
332
342
|
{ response: MessageResponseSchema }
|
|
333
343
|
);
|
|
@@ -339,7 +349,7 @@ Unlike some other APIs, `max_tokens` is a required parameter:
|
|
|
339
349
|
|
|
340
350
|
```typescript
|
|
341
351
|
// WRONG - Missing max_tokens
|
|
342
|
-
const result = await
|
|
352
|
+
const result = await ctx.integrations.ai.apiRequest(
|
|
343
353
|
{
|
|
344
354
|
method: "POST",
|
|
345
355
|
path: "/v1/messages",
|
|
@@ -349,11 +359,11 @@ const result = await anthropic.apiRequest(
|
|
|
349
359
|
// max_tokens is missing!
|
|
350
360
|
},
|
|
351
361
|
},
|
|
352
|
-
{ response: MessageResponseSchema }
|
|
362
|
+
{ response: MessageResponseSchema },
|
|
353
363
|
);
|
|
354
364
|
|
|
355
365
|
// CORRECT - Include max_tokens
|
|
356
|
-
const result = await
|
|
366
|
+
const result = await ctx.integrations.ai.apiRequest(
|
|
357
367
|
{
|
|
358
368
|
method: "POST",
|
|
359
369
|
path: "/v1/messages",
|
|
@@ -363,7 +373,7 @@ const result = await anthropic.apiRequest(
|
|
|
363
373
|
messages: [{ role: "user", content: "Hello" }],
|
|
364
374
|
},
|
|
365
375
|
},
|
|
366
|
-
{ response: MessageResponseSchema }
|
|
376
|
+
{ response: MessageResponseSchema },
|
|
367
377
|
);
|
|
368
378
|
```
|
|
369
379
|
|
|
@@ -383,7 +393,7 @@ const schema = z.object({
|
|
|
383
393
|
z.object({
|
|
384
394
|
type: z.literal("text"),
|
|
385
395
|
text: z.string(),
|
|
386
|
-
})
|
|
396
|
+
}),
|
|
387
397
|
),
|
|
388
398
|
});
|
|
389
399
|
|
|
@@ -419,7 +429,7 @@ const body = {
|
|
|
419
429
|
For specific API versions or beta features:
|
|
420
430
|
|
|
421
431
|
```typescript
|
|
422
|
-
const result = await
|
|
432
|
+
const result = await ctx.integrations.ai.apiRequest(
|
|
423
433
|
{
|
|
424
434
|
method: "POST",
|
|
425
435
|
path: "/v1/messages",
|
|
@@ -435,15 +445,15 @@ const result = await anthropic.apiRequest(
|
|
|
435
445
|
|
|
436
446
|
### Model Token Limits
|
|
437
447
|
|
|
438
|
-
| Model
|
|
439
|
-
|
|
440
|
-
| claude-3-5-sonnet | 8,192
|
|
441
|
-
| claude-3-opus
|
|
442
|
-
| claude-3-haiku
|
|
448
|
+
| Model | Max Output Tokens |
|
|
449
|
+
| ----------------- | ----------------- |
|
|
450
|
+
| claude-3-5-sonnet | 8,192 |
|
|
451
|
+
| claude-3-opus | 4,096 |
|
|
452
|
+
| claude-3-haiku | 4,096 |
|
|
443
453
|
|
|
444
454
|
```typescript
|
|
445
455
|
// Be mindful of token limits
|
|
446
|
-
const result = await
|
|
456
|
+
const result = await ctx.integrations.ai.apiRequest(
|
|
447
457
|
{
|
|
448
458
|
method: "POST",
|
|
449
459
|
path: "/v1/messages",
|
|
@@ -463,7 +473,7 @@ const result = await anthropic.apiRequest(
|
|
|
463
473
|
import { RestApiValidationError, StreamChunkValidationError } from "@superblocksteam/sdk-api";
|
|
464
474
|
|
|
465
475
|
try {
|
|
466
|
-
const result = await
|
|
476
|
+
const result = await ctx.integrations.ai.apiRequest(
|
|
467
477
|
{ method: "POST", path: "/v1/messages", body: { ... } },
|
|
468
478
|
{ response: MessageResponseSchema }
|
|
469
479
|
);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Anthropic integrations use the REST API Integration plugin under the hood.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { RestApiIntegrationClient } from
|
|
9
|
-
import type { AnthropicClient } from
|
|
8
|
+
import { RestApiIntegrationClient } from "../base/index.js";
|
|
9
|
+
import type { AnthropicClient } from "./types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Internal implementation of AnthropicClient.
|
|
@@ -16,7 +16,9 @@ import type { AnthropicClient } from './types.js';
|
|
|
16
16
|
* Anthropic API calls. At runtime, the orchestrator handles authentication
|
|
17
17
|
* and API request execution.
|
|
18
18
|
*/
|
|
19
|
-
export class AnthropicClientImpl
|
|
19
|
+
export class AnthropicClientImpl
|
|
20
|
+
extends RestApiIntegrationClient
|
|
21
|
+
implements AnthropicClient {
|
|
20
22
|
// Inherits: name, pluginId, config, executeQuery, createParam(), apiRequest()
|
|
21
23
|
// Can add Anthropic-specific methods here in the future if needed
|
|
22
24
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AnthropicClientImpl } from
|
|
2
|
-
export type { AnthropicClient } from
|
|
1
|
+
export { AnthropicClientImpl } from "./client.js";
|
|
2
|
+
export type { AnthropicClient } from "./types.js";
|