@superblocksteam/sdk-api 2.0.93-next.7 → 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
|
@@ -4,8 +4,8 @@ Manage repositories, issues, pull requests, and interact with GitHub's APIs.
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| ----------------------------- | -------------------------------------------------- |
|
|
9
9
|
| `apiRequest(options, schema)` | Make any GitHub API request with schema validation |
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,7 +13,7 @@ Manage repositories, issues, pull requests, and interact with GitHub's APIs.
|
|
|
13
13
|
### Create an Issue
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
16
|
+
import { api, z, github } from "@superblocksteam/sdk-api";
|
|
17
17
|
|
|
18
18
|
// Integration ID from the integrations panel
|
|
19
19
|
const PROD_GITHUB = "a1b2c3d4-5678-90ab-cdef-github000001";
|
|
@@ -34,6 +34,9 @@ const IssueSchema = z.object({
|
|
|
34
34
|
|
|
35
35
|
export default api({
|
|
36
36
|
name: "GitHubExample",
|
|
37
|
+
integrations: {
|
|
38
|
+
repo: github(PROD_GITHUB),
|
|
39
|
+
},
|
|
37
40
|
input: z.object({
|
|
38
41
|
owner: z.string(),
|
|
39
42
|
repo: z.string(),
|
|
@@ -45,9 +48,7 @@ export default api({
|
|
|
45
48
|
url: z.string(),
|
|
46
49
|
}),
|
|
47
50
|
async run(ctx, { owner, repo, title, body }) {
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
const result = await github.apiRequest(
|
|
51
|
+
const result = await ctx.integrations.repo.apiRequest(
|
|
51
52
|
{
|
|
52
53
|
method: "POST",
|
|
53
54
|
path: `/repos/${owner}/${repo}/issues`,
|
|
@@ -57,7 +58,7 @@ export default api({
|
|
|
57
58
|
labels: ["bug"],
|
|
58
59
|
},
|
|
59
60
|
},
|
|
60
|
-
{ response: IssueSchema }
|
|
61
|
+
{ response: IssueSchema },
|
|
61
62
|
);
|
|
62
63
|
|
|
63
64
|
return { issueNumber: result.number, url: result.html_url };
|
|
@@ -70,7 +71,7 @@ export default api({
|
|
|
70
71
|
```typescript
|
|
71
72
|
const ListIssuesSchema = z.array(IssueSchema);
|
|
72
73
|
|
|
73
|
-
const issues = await
|
|
74
|
+
const issues = await ctx.integrations.repo.apiRequest(
|
|
74
75
|
{
|
|
75
76
|
method: "GET",
|
|
76
77
|
path: `/repos/${owner}/${repo}/issues`,
|
|
@@ -82,7 +83,7 @@ const issues = await github.apiRequest(
|
|
|
82
83
|
per_page: 30,
|
|
83
84
|
},
|
|
84
85
|
},
|
|
85
|
-
{ response: ListIssuesSchema }
|
|
86
|
+
{ response: ListIssuesSchema },
|
|
86
87
|
);
|
|
87
88
|
|
|
88
89
|
issues.forEach((issue) => {
|
|
@@ -107,12 +108,12 @@ const RepositorySchema = z.object({
|
|
|
107
108
|
}),
|
|
108
109
|
});
|
|
109
110
|
|
|
110
|
-
const repo = await
|
|
111
|
+
const repo = await ctx.integrations.repo.apiRequest(
|
|
111
112
|
{
|
|
112
113
|
method: "GET",
|
|
113
114
|
path: `/repos/${owner}/${repo}`,
|
|
114
115
|
},
|
|
115
|
-
{ response: RepositorySchema }
|
|
116
|
+
{ response: RepositorySchema },
|
|
116
117
|
);
|
|
117
118
|
|
|
118
119
|
console.log(`${repo.full_name}: ${repo.stargazers_count} stars`);
|
|
@@ -132,7 +133,7 @@ const PullRequestSchema = z.object({
|
|
|
132
133
|
mergeable: z.boolean().nullable(),
|
|
133
134
|
});
|
|
134
135
|
|
|
135
|
-
const pr = await
|
|
136
|
+
const pr = await ctx.integrations.repo.apiRequest(
|
|
136
137
|
{
|
|
137
138
|
method: "POST",
|
|
138
139
|
path: `/repos/${owner}/${repo}/pulls`,
|
|
@@ -143,7 +144,7 @@ const pr = await github.apiRequest(
|
|
|
143
144
|
base: "main",
|
|
144
145
|
},
|
|
145
146
|
},
|
|
146
|
-
{ response: PullRequestSchema }
|
|
147
|
+
{ response: PullRequestSchema },
|
|
147
148
|
);
|
|
148
149
|
|
|
149
150
|
console.log(`Created PR #${pr.number}: ${pr.html_url}`);
|
|
@@ -158,7 +159,7 @@ const MergeResponseSchema = z.object({
|
|
|
158
159
|
message: z.string(),
|
|
159
160
|
});
|
|
160
161
|
|
|
161
|
-
const result = await
|
|
162
|
+
const result = await ctx.integrations.repo.apiRequest(
|
|
162
163
|
{
|
|
163
164
|
method: "PUT",
|
|
164
165
|
path: `/repos/${owner}/${repo}/pulls/${prNumber}/merge`,
|
|
@@ -167,7 +168,7 @@ const result = await github.apiRequest(
|
|
|
167
168
|
merge_method: "squash", // merge, squash, or rebase
|
|
168
169
|
},
|
|
169
170
|
},
|
|
170
|
-
{ response: MergeResponseSchema }
|
|
171
|
+
{ response: MergeResponseSchema },
|
|
171
172
|
);
|
|
172
173
|
|
|
173
174
|
if (result.merged) {
|
|
@@ -190,7 +191,7 @@ const CommitSchema = z.object({
|
|
|
190
191
|
html_url: z.string(),
|
|
191
192
|
});
|
|
192
193
|
|
|
193
|
-
const commits = await
|
|
194
|
+
const commits = await ctx.integrations.repo.apiRequest(
|
|
194
195
|
{
|
|
195
196
|
method: "GET",
|
|
196
197
|
path: `/repos/${owner}/${repo}/commits`,
|
|
@@ -199,11 +200,13 @@ const commits = await github.apiRequest(
|
|
|
199
200
|
per_page: 10,
|
|
200
201
|
},
|
|
201
202
|
},
|
|
202
|
-
{ response: z.array(CommitSchema) }
|
|
203
|
+
{ response: z.array(CommitSchema) },
|
|
203
204
|
);
|
|
204
205
|
|
|
205
206
|
commits.forEach((commit) => {
|
|
206
|
-
console.log(
|
|
207
|
+
console.log(
|
|
208
|
+
`${commit.sha.slice(0, 7)}: ${commit.commit.message.split("\n")[0]}`,
|
|
209
|
+
);
|
|
207
210
|
});
|
|
208
211
|
```
|
|
209
212
|
|
|
@@ -218,7 +221,7 @@ const FileContentSchema = z.object({
|
|
|
218
221
|
encoding: z.string(),
|
|
219
222
|
});
|
|
220
223
|
|
|
221
|
-
const file = await
|
|
224
|
+
const file = await ctx.integrations.repo.apiRequest(
|
|
222
225
|
{
|
|
223
226
|
method: "GET",
|
|
224
227
|
path: `/repos/${owner}/${repo}/contents/README.md`,
|
|
@@ -226,7 +229,7 @@ const file = await github.apiRequest(
|
|
|
226
229
|
ref: "main",
|
|
227
230
|
},
|
|
228
231
|
},
|
|
229
|
-
{ response: FileContentSchema }
|
|
232
|
+
{ response: FileContentSchema },
|
|
230
233
|
);
|
|
231
234
|
|
|
232
235
|
const content = Buffer.from(file.content, "base64").toString("utf-8");
|
|
@@ -245,7 +248,7 @@ const CreateFileSchema = z.object({
|
|
|
245
248
|
}),
|
|
246
249
|
});
|
|
247
250
|
|
|
248
|
-
const result = await
|
|
251
|
+
const result = await ctx.integrations.repo.apiRequest(
|
|
249
252
|
{
|
|
250
253
|
method: "PUT",
|
|
251
254
|
path: `/repos/${owner}/${repo}/contents/docs/new-file.md`,
|
|
@@ -257,14 +260,14 @@ const result = await github.apiRequest(
|
|
|
257
260
|
// sha: existingFileSha,
|
|
258
261
|
},
|
|
259
262
|
},
|
|
260
|
-
{ response: CreateFileSchema }
|
|
263
|
+
{ response: CreateFileSchema },
|
|
261
264
|
);
|
|
262
265
|
```
|
|
263
266
|
|
|
264
267
|
### Trigger a Workflow
|
|
265
268
|
|
|
266
269
|
```typescript
|
|
267
|
-
await
|
|
270
|
+
await ctx.integrations.repo.apiRequest(
|
|
268
271
|
{
|
|
269
272
|
method: "POST",
|
|
270
273
|
path: `/repos/${owner}/${repo}/actions/workflows/${workflowId}/dispatches`,
|
|
@@ -276,7 +279,7 @@ await github.apiRequest(
|
|
|
276
279
|
},
|
|
277
280
|
},
|
|
278
281
|
},
|
|
279
|
-
{ response: z.object({}).optional() } // Returns 204 No Content
|
|
282
|
+
{ response: z.object({}).optional() }, // Returns 204 No Content
|
|
280
283
|
);
|
|
281
284
|
```
|
|
282
285
|
|
|
@@ -290,7 +293,7 @@ await github.createIssue({ ... });
|
|
|
290
293
|
await github.getPullRequest({ ... });
|
|
291
294
|
|
|
292
295
|
// CORRECT - Use apiRequest
|
|
293
|
-
await
|
|
296
|
+
await ctx.integrations.repo.apiRequest(
|
|
294
297
|
{ method: "POST", path: `/repos/${owner}/${repo}/issues`, body: { ... } },
|
|
295
298
|
{ response: IssueSchema }
|
|
296
299
|
);
|
|
@@ -310,9 +313,9 @@ const RateLimitSchema = z.object({
|
|
|
310
313
|
}),
|
|
311
314
|
});
|
|
312
315
|
|
|
313
|
-
const limits = await
|
|
316
|
+
const limits = await ctx.integrations.repo.apiRequest(
|
|
314
317
|
{ method: "GET", path: "/rate_limit" },
|
|
315
|
-
{ response: RateLimitSchema }
|
|
318
|
+
{ response: RateLimitSchema },
|
|
316
319
|
);
|
|
317
320
|
|
|
318
321
|
console.log(`${limits.rate.remaining}/${limits.rate.limit} requests remaining`);
|
|
@@ -335,13 +338,13 @@ async function getAllIssues(github: GitHubClient, owner: string, repo: string) {
|
|
|
335
338
|
let page = 1;
|
|
336
339
|
|
|
337
340
|
while (true) {
|
|
338
|
-
const issues = await
|
|
341
|
+
const issues = await ctx.integrations.repo.apiRequest(
|
|
339
342
|
{
|
|
340
343
|
method: "GET",
|
|
341
344
|
path: `/repos/${owner}/${repo}/issues`,
|
|
342
345
|
params: { per_page: 100, page },
|
|
343
346
|
},
|
|
344
|
-
{ response: z.array(IssueSchema) }
|
|
347
|
+
{ response: z.array(IssueSchema) },
|
|
345
348
|
);
|
|
346
349
|
|
|
347
350
|
allIssues.push(...issues);
|
|
@@ -359,7 +362,7 @@ Some features require special Accept headers:
|
|
|
359
362
|
|
|
360
363
|
```typescript
|
|
361
364
|
// For draft PRs
|
|
362
|
-
const result = await
|
|
365
|
+
const result = await ctx.integrations.repo.apiRequest(
|
|
363
366
|
{
|
|
364
367
|
method: "POST",
|
|
365
368
|
path: `/repos/${owner}/${repo}/pulls`,
|
|
@@ -373,7 +376,7 @@ const result = await github.apiRequest(
|
|
|
373
376
|
Accept: "application/vnd.github.v3+json",
|
|
374
377
|
},
|
|
375
378
|
},
|
|
376
|
-
{ response: PullRequestSchema }
|
|
379
|
+
{ response: PullRequestSchema },
|
|
377
380
|
);
|
|
378
381
|
```
|
|
379
382
|
|
|
@@ -383,9 +386,12 @@ Some endpoints return 204 No Content:
|
|
|
383
386
|
|
|
384
387
|
```typescript
|
|
385
388
|
// DELETE requests typically return empty
|
|
386
|
-
await
|
|
387
|
-
{
|
|
388
|
-
|
|
389
|
+
await ctx.integrations.repo.apiRequest(
|
|
390
|
+
{
|
|
391
|
+
method: "DELETE",
|
|
392
|
+
path: `/repos/${owner}/${repo}/issues/${number}/labels/${label}`,
|
|
393
|
+
},
|
|
394
|
+
{ response: z.object({}).optional() },
|
|
389
395
|
);
|
|
390
396
|
```
|
|
391
397
|
|
|
@@ -417,7 +423,7 @@ const encoded = Buffer.from("file content").toString("base64");
|
|
|
417
423
|
import { RestApiValidationError } from "@superblocksteam/sdk-api";
|
|
418
424
|
|
|
419
425
|
try {
|
|
420
|
-
const result = await
|
|
426
|
+
const result = await ctx.integrations.repo.apiRequest(
|
|
421
427
|
{ method: "POST", path: `/repos/${owner}/${repo}/issues`, body: { ... } },
|
|
422
428
|
{ response: IssueSchema }
|
|
423
429
|
);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* GitHub integrations use the REST API Integration plugin under the hood.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { RestApiIntegrationClient } from
|
|
9
|
-
import type { GitHubClient } from
|
|
8
|
+
import { RestApiIntegrationClient } from "../base/index.js";
|
|
9
|
+
import type { GitHubClient } from "./types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Internal implementation of GitHubClient.
|
|
@@ -16,7 +16,9 @@ import type { GitHubClient } from './types.js';
|
|
|
16
16
|
* GitHub API calls. At runtime, the orchestrator handles authentication
|
|
17
17
|
* and API request execution.
|
|
18
18
|
*/
|
|
19
|
-
export class GitHubClientImpl
|
|
19
|
+
export class GitHubClientImpl
|
|
20
|
+
extends RestApiIntegrationClient
|
|
21
|
+
implements GitHubClient {
|
|
20
22
|
// Inherits: name, pluginId, config, executeQuery, createParam(), apiRequest()
|
|
21
23
|
// Can add GitHub-specific methods here in the future if needed
|
|
22
24
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { GitHubClientImpl } from
|
|
2
|
-
export type { GitHubClient } from
|
|
1
|
+
export { GitHubClientImpl } from "./client.js";
|
|
2
|
+
export type { GitHubClient } from "./types.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* GitHub 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
|
* GitHub client for repository and project management.
|
|
@@ -15,7 +15,8 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
15
15
|
* ```typescript
|
|
16
16
|
* import { z } from 'zod';
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* // Declare in api(): integrations: { repo: github(INTEGRATION_ID) }
|
|
19
|
+
* // In run(), access via ctx.integrations.repo
|
|
19
20
|
*
|
|
20
21
|
* // Define schemas
|
|
21
22
|
* const RepositorySchema = z.object({
|
|
@@ -28,7 +29,7 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
28
29
|
* });
|
|
29
30
|
*
|
|
30
31
|
* // Get a repository
|
|
31
|
-
* const repo = await
|
|
32
|
+
* const repo = await ctx.integrations.repo.apiRequest(
|
|
32
33
|
* {
|
|
33
34
|
* method: 'GET',
|
|
34
35
|
* path: '/repos/owner/repo',
|
|
@@ -48,7 +49,7 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
48
49
|
* title: z.string(),
|
|
49
50
|
* });
|
|
50
51
|
*
|
|
51
|
-
* const issue = await
|
|
52
|
+
* const issue = await ctx.integrations.repo.apiRequest(
|
|
52
53
|
* {
|
|
53
54
|
* method: 'POST',
|
|
54
55
|
* path: '/repos/owner/repo/issues',
|
|
@@ -64,6 +65,7 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
64
65
|
* );
|
|
65
66
|
* ```
|
|
66
67
|
*/
|
|
67
|
-
export interface GitHubClient
|
|
68
|
+
export interface GitHubClient
|
|
69
|
+
extends BaseIntegrationClient, SupportsApiRequest {
|
|
68
70
|
// apiRequest() method inherited from SupportsApiRequest
|
|
69
71
|
}
|
|
@@ -4,8 +4,8 @@ Run reports, get real-time data, and interact with Google Analytics 4 properties
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| ----------------------------- | ------------------------------------------------------------ |
|
|
9
9
|
| `apiRequest(options, schema)` | Make any Google Analytics API request with schema validation |
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,7 +13,7 @@ Run reports, get real-time data, and interact with Google Analytics 4 properties
|
|
|
13
13
|
### Run a Report
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
16
|
+
import { api, z, googleanalytics } from "@superblocksteam/sdk-api";
|
|
17
17
|
|
|
18
18
|
// Integration ID from the integrations panel
|
|
19
19
|
const PROD_GA4 = "a1b2c3d4-5678-90ab-cdef-ga4000000001";
|
|
@@ -22,12 +22,12 @@ const ReportRowSchema = z.object({
|
|
|
22
22
|
dimensionValues: z.array(
|
|
23
23
|
z.object({
|
|
24
24
|
value: z.string(),
|
|
25
|
-
})
|
|
25
|
+
}),
|
|
26
26
|
),
|
|
27
27
|
metricValues: z.array(
|
|
28
28
|
z.object({
|
|
29
29
|
value: z.string(),
|
|
30
|
-
})
|
|
30
|
+
}),
|
|
31
31
|
),
|
|
32
32
|
});
|
|
33
33
|
|
|
@@ -36,13 +36,18 @@ const ReportResponseSchema = z.object({
|
|
|
36
36
|
metricHeaders: z.array(z.object({ name: z.string(), type: z.string() })),
|
|
37
37
|
rows: z.array(ReportRowSchema).optional(),
|
|
38
38
|
rowCount: z.number().optional(),
|
|
39
|
-
metadata: z
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
metadata: z
|
|
40
|
+
.object({
|
|
41
|
+
currencyCode: z.string().optional(),
|
|
42
|
+
timeZone: z.string().optional(),
|
|
43
|
+
})
|
|
44
|
+
.optional(),
|
|
43
45
|
});
|
|
44
46
|
|
|
45
47
|
export default api({
|
|
48
|
+
integrations: {
|
|
49
|
+
ga: googleanalytics(PROD_GA4),
|
|
50
|
+
},
|
|
46
51
|
name: "GoogleAnalyticsExample",
|
|
47
52
|
input: z.object({
|
|
48
53
|
propertyId: z.string(),
|
|
@@ -54,13 +59,11 @@ export default api({
|
|
|
54
59
|
z.object({
|
|
55
60
|
pagePath: z.string(),
|
|
56
61
|
views: z.number(),
|
|
57
|
-
})
|
|
62
|
+
}),
|
|
58
63
|
),
|
|
59
64
|
}),
|
|
60
65
|
async run(ctx, { propertyId, startDate, endDate }) {
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
const result = await ga.apiRequest(
|
|
66
|
+
const result = await ctx.integrations.ga.apiRequest(
|
|
64
67
|
{
|
|
65
68
|
method: "POST",
|
|
66
69
|
path: `/v1beta/properties/${propertyId}:runReport`,
|
|
@@ -82,7 +85,7 @@ export default api({
|
|
|
82
85
|
],
|
|
83
86
|
},
|
|
84
87
|
},
|
|
85
|
-
{ response: ReportResponseSchema }
|
|
88
|
+
{ response: ReportResponseSchema },
|
|
86
89
|
);
|
|
87
90
|
|
|
88
91
|
return {
|
|
@@ -105,7 +108,7 @@ const RealTimeResponseSchema = z.object({
|
|
|
105
108
|
rowCount: z.number().optional(),
|
|
106
109
|
});
|
|
107
110
|
|
|
108
|
-
const result = await ga.apiRequest(
|
|
111
|
+
const result = await ctx.integrations.ga.apiRequest(
|
|
109
112
|
{
|
|
110
113
|
method: "POST",
|
|
111
114
|
path: `/v1beta/properties/${propertyId}:runRealtimeReport`,
|
|
@@ -115,11 +118,13 @@ const result = await ga.apiRequest(
|
|
|
115
118
|
limit: 10,
|
|
116
119
|
},
|
|
117
120
|
},
|
|
118
|
-
{ response: RealTimeResponseSchema }
|
|
121
|
+
{ response: RealTimeResponseSchema },
|
|
119
122
|
);
|
|
120
123
|
|
|
121
124
|
result.rows?.forEach((row) => {
|
|
122
|
-
console.log(
|
|
125
|
+
console.log(
|
|
126
|
+
`${row.dimensionValues[0].value}: ${row.metricValues[0].value} active users`,
|
|
127
|
+
);
|
|
123
128
|
});
|
|
124
129
|
```
|
|
125
130
|
|
|
@@ -130,7 +135,7 @@ const BatchReportResponseSchema = z.object({
|
|
|
130
135
|
reports: z.array(ReportResponseSchema),
|
|
131
136
|
});
|
|
132
137
|
|
|
133
|
-
const result = await ga.apiRequest(
|
|
138
|
+
const result = await ctx.integrations.ga.apiRequest(
|
|
134
139
|
{
|
|
135
140
|
method: "POST",
|
|
136
141
|
path: `/v1beta/properties/${propertyId}:batchRunReports`,
|
|
@@ -149,7 +154,7 @@ const result = await ga.apiRequest(
|
|
|
149
154
|
],
|
|
150
155
|
},
|
|
151
156
|
},
|
|
152
|
-
{ response: BatchReportResponseSchema }
|
|
157
|
+
{ response: BatchReportResponseSchema },
|
|
153
158
|
);
|
|
154
159
|
|
|
155
160
|
// Access individual reports
|
|
@@ -160,7 +165,7 @@ const browserReport = result.reports[1];
|
|
|
160
165
|
### Get User Metrics with Segments
|
|
161
166
|
|
|
162
167
|
```typescript
|
|
163
|
-
const result = await ga.apiRequest(
|
|
168
|
+
const result = await ctx.integrations.ga.apiRequest(
|
|
164
169
|
{
|
|
165
170
|
method: "POST",
|
|
166
171
|
path: `/v1beta/properties/${propertyId}:runReport`,
|
|
@@ -187,7 +192,7 @@ const result = await ga.apiRequest(
|
|
|
187
192
|
orderBys: [{ dimension: { dimensionName: "date" } }],
|
|
188
193
|
},
|
|
189
194
|
},
|
|
190
|
-
{ response: ReportResponseSchema }
|
|
195
|
+
{ response: ReportResponseSchema },
|
|
191
196
|
);
|
|
192
197
|
```
|
|
193
198
|
|
|
@@ -198,13 +203,15 @@ const AccountSummarySchema = z.object({
|
|
|
198
203
|
name: z.string(),
|
|
199
204
|
account: z.string(),
|
|
200
205
|
displayName: z.string(),
|
|
201
|
-
propertySummaries: z
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
propertySummaries: z
|
|
207
|
+
.array(
|
|
208
|
+
z.object({
|
|
209
|
+
property: z.string(),
|
|
210
|
+
displayName: z.string(),
|
|
211
|
+
propertyType: z.string(),
|
|
212
|
+
}),
|
|
213
|
+
)
|
|
214
|
+
.optional(),
|
|
208
215
|
});
|
|
209
216
|
|
|
210
217
|
const ListAccountSummariesSchema = z.object({
|
|
@@ -212,7 +219,7 @@ const ListAccountSummariesSchema = z.object({
|
|
|
212
219
|
nextPageToken: z.string().optional(),
|
|
213
220
|
});
|
|
214
221
|
|
|
215
|
-
const result = await ga.apiRequest(
|
|
222
|
+
const result = await ctx.integrations.ga.apiRequest(
|
|
216
223
|
{
|
|
217
224
|
method: "GET",
|
|
218
225
|
path: "/v1beta/accountSummaries",
|
|
@@ -220,7 +227,7 @@ const result = await ga.apiRequest(
|
|
|
220
227
|
pageSize: 50,
|
|
221
228
|
},
|
|
222
229
|
},
|
|
223
|
-
{ response: ListAccountSummariesSchema }
|
|
230
|
+
{ response: ListAccountSummariesSchema },
|
|
224
231
|
);
|
|
225
232
|
|
|
226
233
|
result.accountSummaries?.forEach((account) => {
|
|
@@ -241,7 +248,7 @@ await ga.runReport({ ... });
|
|
|
241
248
|
await ga.getRealtimeData();
|
|
242
249
|
|
|
243
250
|
// CORRECT - Use apiRequest
|
|
244
|
-
await ga.apiRequest(
|
|
251
|
+
await ctx.integrations.ga.apiRequest(
|
|
245
252
|
{ method: "POST", path: `/v1beta/properties/${propertyId}:runReport`, body: { ... } },
|
|
246
253
|
{ response: ReportResponseSchema }
|
|
247
254
|
);
|
|
@@ -358,14 +365,18 @@ Large reports may be sampled:
|
|
|
358
365
|
```typescript
|
|
359
366
|
const ReportResponseSchema = z.object({
|
|
360
367
|
rows: z.array(ReportRowSchema).optional(),
|
|
361
|
-
metadata: z
|
|
362
|
-
|
|
363
|
-
z
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
368
|
+
metadata: z
|
|
369
|
+
.object({
|
|
370
|
+
samplingMetadatas: z
|
|
371
|
+
.array(
|
|
372
|
+
z.object({
|
|
373
|
+
samplesReadCount: z.string(),
|
|
374
|
+
samplingSpaceSize: z.string(),
|
|
375
|
+
}),
|
|
376
|
+
)
|
|
377
|
+
.optional(),
|
|
378
|
+
})
|
|
379
|
+
.optional(),
|
|
369
380
|
});
|
|
370
381
|
|
|
371
382
|
// Check if data was sampled
|
|
@@ -380,7 +391,7 @@ if (result.metadata?.samplingMetadatas) {
|
|
|
380
391
|
import { RestApiValidationError } from "@superblocksteam/sdk-api";
|
|
381
392
|
|
|
382
393
|
try {
|
|
383
|
-
const result = await ga.apiRequest(
|
|
394
|
+
const result = await ctx.integrations.ga.apiRequest(
|
|
384
395
|
{ method: "POST", path: `/v1beta/properties/${propertyId}:runReport`, body: { ... } },
|
|
385
396
|
{ response: ReportResponseSchema }
|
|
386
397
|
);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Google Analytics integrations use the REST API Integration plugin under the hood.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { RestApiIntegrationClient } from
|
|
9
|
-
import type { GoogleAnalyticsClient } from
|
|
8
|
+
import { RestApiIntegrationClient } from "../base/index.js";
|
|
9
|
+
import type { GoogleAnalyticsClient } from "./types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Internal implementation of GoogleAnalyticsClient.
|
|
@@ -16,6 +16,8 @@ import type { GoogleAnalyticsClient } from './types.js';
|
|
|
16
16
|
* Google Analytics API calls. At runtime, the orchestrator handles authentication
|
|
17
17
|
* and API request execution.
|
|
18
18
|
*/
|
|
19
|
-
export class GoogleAnalyticsClientImpl
|
|
19
|
+
export class GoogleAnalyticsClientImpl
|
|
20
|
+
extends RestApiIntegrationClient
|
|
21
|
+
implements GoogleAnalyticsClient {
|
|
20
22
|
// Inherits: name, pluginId, config, executeQuery, apiRequest()
|
|
21
23
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { GoogleAnalyticsClientImpl } from
|
|
2
|
-
export type { GoogleAnalyticsClient } from
|
|
1
|
+
export { GoogleAnalyticsClientImpl } from "./client.js";
|
|
2
|
+
export type { GoogleAnalyticsClient } from "./types.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Google Analytics 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
|
* Google Analytics 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: { googleAnalytics: googleanalytics(INTEGRATION_ID) }
|
|
17
|
+
* // In run(), access via ctx.integrations.googleAnalytics
|
|
17
18
|
*
|
|
18
19
|
* // Make API requests
|
|
19
20
|
* const ResponseSchema = z.object({
|
|
@@ -29,6 +30,7 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
29
30
|
* );
|
|
30
31
|
* ```
|
|
31
32
|
*/
|
|
32
|
-
export interface GoogleAnalyticsClient
|
|
33
|
+
export interface GoogleAnalyticsClient
|
|
34
|
+
extends BaseIntegrationClient, SupportsApiRequest {
|
|
33
35
|
// apiRequest() method inherited from SupportsApiRequest
|
|
34
36
|
}
|