@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 @@ Interact with Cohere's APIs for text generation, embeddings, classification, and
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| ----------------------------- | -------------------------------------------------- |
|
|
9
9
|
| `apiRequest(options, schema)` | Make any Cohere API request with schema validation |
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,7 +13,7 @@ Interact with Cohere's APIs for text generation, embeddings, classification, and
|
|
|
13
13
|
### Chat Completion
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
16
|
+
import { api, z, cohere } from "@superblocksteam/sdk-api";
|
|
17
17
|
|
|
18
18
|
// Integration ID from the integrations panel
|
|
19
19
|
const PROD_COHERE = "a1b2c3d4-5678-90ab-cdef-cohere000001";
|
|
@@ -25,7 +25,7 @@ const ChatResponseSchema = z.object({
|
|
|
25
25
|
z.object({
|
|
26
26
|
role: z.enum(["USER", "CHATBOT", "SYSTEM"]),
|
|
27
27
|
message: z.string(),
|
|
28
|
-
})
|
|
28
|
+
}),
|
|
29
29
|
),
|
|
30
30
|
finish_reason: z.string(),
|
|
31
31
|
meta: z.object({
|
|
@@ -39,6 +39,9 @@ const ChatResponseSchema = z.object({
|
|
|
39
39
|
|
|
40
40
|
export default api({
|
|
41
41
|
name: "CohereExample",
|
|
42
|
+
integrations: {
|
|
43
|
+
cohere: cohere(PROD_COHERE),
|
|
44
|
+
},
|
|
42
45
|
input: z.object({
|
|
43
46
|
message: z.string(),
|
|
44
47
|
}),
|
|
@@ -46,9 +49,7 @@ export default api({
|
|
|
46
49
|
response: z.string(),
|
|
47
50
|
}),
|
|
48
51
|
async run(ctx, { message }) {
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
const result = await cohere.apiRequest(
|
|
52
|
+
const result = await ctx.integrations.cohere.apiRequest(
|
|
52
53
|
{
|
|
53
54
|
method: "POST",
|
|
54
55
|
path: "/v1/chat",
|
|
@@ -57,7 +58,7 @@ export default api({
|
|
|
57
58
|
message: message,
|
|
58
59
|
},
|
|
59
60
|
},
|
|
60
|
-
{ response: ChatResponseSchema }
|
|
61
|
+
{ response: ChatResponseSchema },
|
|
61
62
|
);
|
|
62
63
|
|
|
63
64
|
return { response: result.text };
|
|
@@ -77,7 +78,7 @@ const EmbedResponseSchema = z.object({
|
|
|
77
78
|
}),
|
|
78
79
|
});
|
|
79
80
|
|
|
80
|
-
const result = await cohere.apiRequest(
|
|
81
|
+
const result = await ctx.integrations.cohere.apiRequest(
|
|
81
82
|
{
|
|
82
83
|
method: "POST",
|
|
83
84
|
path: "/v1/embed",
|
|
@@ -87,7 +88,7 @@ const result = await cohere.apiRequest(
|
|
|
87
88
|
input_type: "search_document",
|
|
88
89
|
},
|
|
89
90
|
},
|
|
90
|
-
{ response: EmbedResponseSchema }
|
|
91
|
+
{ response: EmbedResponseSchema },
|
|
91
92
|
);
|
|
92
93
|
|
|
93
94
|
result.embeddings.forEach((embedding, i) => {
|
|
@@ -107,11 +108,11 @@ const ClassifyResponseSchema = z.object({
|
|
|
107
108
|
prediction: z.string(),
|
|
108
109
|
confidence: z.number(),
|
|
109
110
|
labels: z.record(z.object({ confidence: z.number() })),
|
|
110
|
-
})
|
|
111
|
+
}),
|
|
111
112
|
),
|
|
112
113
|
});
|
|
113
114
|
|
|
114
|
-
const result = await cohere.apiRequest(
|
|
115
|
+
const result = await ctx.integrations.cohere.apiRequest(
|
|
115
116
|
{
|
|
116
117
|
method: "POST",
|
|
117
118
|
path: "/v1/classify",
|
|
@@ -126,7 +127,7 @@ const result = await cohere.apiRequest(
|
|
|
126
127
|
],
|
|
127
128
|
},
|
|
128
129
|
},
|
|
129
|
-
{ response: ClassifyResponseSchema }
|
|
130
|
+
{ response: ClassifyResponseSchema },
|
|
130
131
|
);
|
|
131
132
|
|
|
132
133
|
result.classifications.forEach((c) => {
|
|
@@ -144,7 +145,7 @@ const RerankResponseSchema = z.object({
|
|
|
144
145
|
index: z.number(),
|
|
145
146
|
relevance_score: z.number(),
|
|
146
147
|
document: z.object({ text: z.string() }).optional(),
|
|
147
|
-
})
|
|
148
|
+
}),
|
|
148
149
|
),
|
|
149
150
|
});
|
|
150
151
|
|
|
@@ -155,7 +156,7 @@ const documents = [
|
|
|
155
156
|
"Capital punishment has existed since ancient times.",
|
|
156
157
|
];
|
|
157
158
|
|
|
158
|
-
const result = await cohere.apiRequest(
|
|
159
|
+
const result = await ctx.integrations.cohere.apiRequest(
|
|
159
160
|
{
|
|
160
161
|
method: "POST",
|
|
161
162
|
path: "/v1/rerank",
|
|
@@ -167,7 +168,7 @@ const result = await cohere.apiRequest(
|
|
|
167
168
|
return_documents: true,
|
|
168
169
|
},
|
|
169
170
|
},
|
|
170
|
-
{ response: RerankResponseSchema }
|
|
171
|
+
{ response: RerankResponseSchema },
|
|
171
172
|
);
|
|
172
173
|
|
|
173
174
|
result.results.forEach((r) => {
|
|
@@ -185,11 +186,11 @@ const GenerateResponseSchema = z.object({
|
|
|
185
186
|
id: z.string(),
|
|
186
187
|
text: z.string(),
|
|
187
188
|
finish_reason: z.string(),
|
|
188
|
-
})
|
|
189
|
+
}),
|
|
189
190
|
),
|
|
190
191
|
});
|
|
191
192
|
|
|
192
|
-
const result = await cohere.apiRequest(
|
|
193
|
+
const result = await ctx.integrations.cohere.apiRequest(
|
|
193
194
|
{
|
|
194
195
|
method: "POST",
|
|
195
196
|
path: "/v1/generate",
|
|
@@ -200,7 +201,7 @@ const result = await cohere.apiRequest(
|
|
|
200
201
|
temperature: 0.7,
|
|
201
202
|
},
|
|
202
203
|
},
|
|
203
|
-
{ response: GenerateResponseSchema }
|
|
204
|
+
{ response: GenerateResponseSchema },
|
|
204
205
|
);
|
|
205
206
|
```
|
|
206
207
|
|
|
@@ -214,7 +215,7 @@ await cohere.chat({ ... });
|
|
|
214
215
|
await cohere.embed({ ... });
|
|
215
216
|
|
|
216
217
|
// CORRECT - Use apiRequest
|
|
217
|
-
await cohere.apiRequest(
|
|
218
|
+
await ctx.integrations.cohere.apiRequest(
|
|
218
219
|
{ method: "POST", path: "/v1/chat", body: { ... } },
|
|
219
220
|
{ response: ChatResponseSchema }
|
|
220
221
|
);
|
|
@@ -226,7 +227,7 @@ When creating embeddings, specify the correct `input_type`:
|
|
|
226
227
|
|
|
227
228
|
```typescript
|
|
228
229
|
// For documents to be searched
|
|
229
|
-
const docEmbeddings = await cohere.apiRequest(
|
|
230
|
+
const docEmbeddings = await ctx.integrations.cohere.apiRequest(
|
|
230
231
|
{
|
|
231
232
|
method: "POST",
|
|
232
233
|
path: "/v1/embed",
|
|
@@ -235,11 +236,11 @@ const docEmbeddings = await cohere.apiRequest(
|
|
|
235
236
|
input_type: "search_document", // For documents
|
|
236
237
|
},
|
|
237
238
|
},
|
|
238
|
-
{ response: EmbedResponseSchema }
|
|
239
|
+
{ response: EmbedResponseSchema },
|
|
239
240
|
);
|
|
240
241
|
|
|
241
242
|
// For search queries
|
|
242
|
-
const queryEmbedding = await cohere.apiRequest(
|
|
243
|
+
const queryEmbedding = await ctx.integrations.cohere.apiRequest(
|
|
243
244
|
{
|
|
244
245
|
method: "POST",
|
|
245
246
|
path: "/v1/embed",
|
|
@@ -248,7 +249,7 @@ const queryEmbedding = await cohere.apiRequest(
|
|
|
248
249
|
input_type: "search_query", // For queries
|
|
249
250
|
},
|
|
250
251
|
},
|
|
251
|
-
{ response: EmbedResponseSchema }
|
|
252
|
+
{ response: EmbedResponseSchema },
|
|
252
253
|
);
|
|
253
254
|
```
|
|
254
255
|
|
|
@@ -258,7 +259,7 @@ The classify endpoint requires labeled examples:
|
|
|
258
259
|
|
|
259
260
|
```typescript
|
|
260
261
|
// WRONG - No examples
|
|
261
|
-
const result = await cohere.apiRequest(
|
|
262
|
+
const result = await ctx.integrations.cohere.apiRequest(
|
|
262
263
|
{
|
|
263
264
|
method: "POST",
|
|
264
265
|
path: "/v1/classify",
|
|
@@ -267,11 +268,11 @@ const result = await cohere.apiRequest(
|
|
|
267
268
|
// Missing examples!
|
|
268
269
|
},
|
|
269
270
|
},
|
|
270
|
-
{ response: ClassifyResponseSchema }
|
|
271
|
+
{ response: ClassifyResponseSchema },
|
|
271
272
|
);
|
|
272
273
|
|
|
273
274
|
// CORRECT - Include examples
|
|
274
|
-
const result = await cohere.apiRequest(
|
|
275
|
+
const result = await ctx.integrations.cohere.apiRequest(
|
|
275
276
|
{
|
|
276
277
|
method: "POST",
|
|
277
278
|
path: "/v1/classify",
|
|
@@ -283,7 +284,7 @@ const result = await cohere.apiRequest(
|
|
|
283
284
|
],
|
|
284
285
|
},
|
|
285
286
|
},
|
|
286
|
-
{ response: ClassifyResponseSchema }
|
|
287
|
+
{ response: ClassifyResponseSchema },
|
|
287
288
|
);
|
|
288
289
|
```
|
|
289
290
|
|
|
@@ -293,7 +294,7 @@ const result = await cohere.apiRequest(
|
|
|
293
294
|
import { RestApiValidationError } from "@superblocksteam/sdk-api";
|
|
294
295
|
|
|
295
296
|
try {
|
|
296
|
-
const result = await cohere.apiRequest(
|
|
297
|
+
const result = await ctx.integrations.cohere.apiRequest(
|
|
297
298
|
{ method: "POST", path: "/v1/chat", body: { ... } },
|
|
298
299
|
{ response: ChatResponseSchema }
|
|
299
300
|
);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Cohere integrations use the REST API Integration plugin under the hood.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { RestApiIntegrationClient } from
|
|
9
|
-
import type { CohereClient } from
|
|
8
|
+
import { RestApiIntegrationClient } from "../base/index.js";
|
|
9
|
+
import type { CohereClient } from "./types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Internal implementation of CohereClient.
|
|
@@ -16,6 +16,8 @@ import type { CohereClient } from './types.js';
|
|
|
16
16
|
* Cohere API calls. At runtime, the orchestrator handles authentication
|
|
17
17
|
* and API request execution.
|
|
18
18
|
*/
|
|
19
|
-
export class CohereClientImpl
|
|
19
|
+
export class CohereClientImpl
|
|
20
|
+
extends RestApiIntegrationClient
|
|
21
|
+
implements CohereClient {
|
|
20
22
|
// Inherits: name, pluginId, config, executeQuery, apiRequest()
|
|
21
23
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CohereClientImpl } from
|
|
2
|
-
export type { CohereClient } from
|
|
1
|
+
export { CohereClientImpl } from "./client.js";
|
|
2
|
+
export type { CohereClient } from "./types.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Cohere 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
|
* Cohere 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 cohere.apiRequest(
|
|
16
|
+
* // Declare in api(): integrations: { cohere: cohere(INTEGRATION_ID) }
|
|
17
|
+
* // In run(), access via ctx.integrations.cohere
|
|
18
|
+
* const result = await ctx.integrations.cohere.apiRequest(
|
|
24
19
|
* {
|
|
25
20
|
* method: 'POST',
|
|
26
21
|
* path: '/generate',
|
|
@@ -29,6 +24,7 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
29
24
|
* );
|
|
30
25
|
* ```
|
|
31
26
|
*/
|
|
32
|
-
export interface CohereClient
|
|
27
|
+
export interface CohereClient
|
|
28
|
+
extends BaseIntegrationClient, SupportsApiRequest {
|
|
33
29
|
// apiRequest() method inherited from SupportsApiRequest
|
|
34
30
|
}
|
|
@@ -4,8 +4,8 @@ Create pages, manage content, and search in Confluence spaces.
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| ----------------------------- | ------------------------------------------------------ |
|
|
9
9
|
| `apiRequest(options, schema)` | Make any Confluence API request with schema validation |
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,7 +13,7 @@ Create pages, manage content, and search in Confluence spaces.
|
|
|
13
13
|
### Create a Page
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
16
|
+
import { api, z, confluence } from "@superblocksteam/sdk-api";
|
|
17
17
|
|
|
18
18
|
// Integration ID from the integrations panel
|
|
19
19
|
const PROD_CONFLUENCE = "a1b2c3d4-5678-90ab-cdef-confluen0001";
|
|
@@ -31,6 +31,9 @@ const PageSchema = z.object({
|
|
|
31
31
|
|
|
32
32
|
export default api({
|
|
33
33
|
name: "ConfluenceExample",
|
|
34
|
+
integrations: {
|
|
35
|
+
confluence: confluence(PROD_CONFLUENCE),
|
|
36
|
+
},
|
|
34
37
|
input: z.object({
|
|
35
38
|
spaceKey: z.string(),
|
|
36
39
|
title: z.string(),
|
|
@@ -41,9 +44,7 @@ export default api({
|
|
|
41
44
|
url: z.string(),
|
|
42
45
|
}),
|
|
43
46
|
async run(ctx, { spaceKey, title, content }) {
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
const result = await confluence.apiRequest(
|
|
47
|
+
const result = await ctx.integrations.confluence.apiRequest(
|
|
47
48
|
{
|
|
48
49
|
method: "POST",
|
|
49
50
|
path: "/wiki/api/v2/pages",
|
|
@@ -57,7 +58,7 @@ export default api({
|
|
|
57
58
|
},
|
|
58
59
|
},
|
|
59
60
|
},
|
|
60
|
-
{ response: PageSchema }
|
|
61
|
+
{ response: PageSchema },
|
|
61
62
|
);
|
|
62
63
|
|
|
63
64
|
return { pageId: result.id, url: result._links.webui };
|
|
@@ -72,19 +73,23 @@ const PageDetailSchema = z.object({
|
|
|
72
73
|
id: z.string(),
|
|
73
74
|
title: z.string(),
|
|
74
75
|
status: z.string(),
|
|
75
|
-
body: z
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
body: z
|
|
77
|
+
.object({
|
|
78
|
+
storage: z
|
|
79
|
+
.object({
|
|
80
|
+
value: z.string(),
|
|
81
|
+
representation: z.string(),
|
|
82
|
+
})
|
|
83
|
+
.optional(),
|
|
84
|
+
})
|
|
85
|
+
.optional(),
|
|
81
86
|
version: z.object({
|
|
82
87
|
number: z.number(),
|
|
83
88
|
createdAt: z.string(),
|
|
84
89
|
}),
|
|
85
90
|
});
|
|
86
91
|
|
|
87
|
-
const result = await confluence.apiRequest(
|
|
92
|
+
const result = await ctx.integrations.confluence.apiRequest(
|
|
88
93
|
{
|
|
89
94
|
method: "GET",
|
|
90
95
|
path: `/wiki/api/v2/pages/${pageId}`,
|
|
@@ -92,7 +97,7 @@ const result = await confluence.apiRequest(
|
|
|
92
97
|
"body-format": "storage",
|
|
93
98
|
},
|
|
94
99
|
},
|
|
95
|
-
{ response: PageDetailSchema }
|
|
100
|
+
{ response: PageDetailSchema },
|
|
96
101
|
);
|
|
97
102
|
|
|
98
103
|
console.log(`Page: ${result.title} (v${result.version.number})`);
|
|
@@ -102,13 +107,13 @@ console.log(`Page: ${result.title} (v${result.version.number})`);
|
|
|
102
107
|
|
|
103
108
|
```typescript
|
|
104
109
|
// First, get current version
|
|
105
|
-
const page = await confluence.apiRequest(
|
|
110
|
+
const page = await ctx.integrations.confluence.apiRequest(
|
|
106
111
|
{ method: "GET", path: `/wiki/api/v2/pages/${pageId}` },
|
|
107
|
-
{ response: PageDetailSchema }
|
|
112
|
+
{ response: PageDetailSchema },
|
|
108
113
|
);
|
|
109
114
|
|
|
110
115
|
// Then update with incremented version
|
|
111
|
-
await confluence.apiRequest(
|
|
116
|
+
await ctx.integrations.confluence.apiRequest(
|
|
112
117
|
{
|
|
113
118
|
method: "PUT",
|
|
114
119
|
path: `/wiki/api/v2/pages/${pageId}`,
|
|
@@ -126,7 +131,7 @@ await confluence.apiRequest(
|
|
|
126
131
|
},
|
|
127
132
|
},
|
|
128
133
|
},
|
|
129
|
-
{ response: PageSchema }
|
|
134
|
+
{ response: PageSchema },
|
|
130
135
|
);
|
|
131
136
|
```
|
|
132
137
|
|
|
@@ -142,7 +147,7 @@ const SearchResponseSchema = z.object({
|
|
|
142
147
|
title: z.string(),
|
|
143
148
|
}),
|
|
144
149
|
excerpt: z.string().optional(),
|
|
145
|
-
})
|
|
150
|
+
}),
|
|
146
151
|
),
|
|
147
152
|
totalSize: z.number(),
|
|
148
153
|
_links: z.object({
|
|
@@ -150,7 +155,7 @@ const SearchResponseSchema = z.object({
|
|
|
150
155
|
}),
|
|
151
156
|
});
|
|
152
157
|
|
|
153
|
-
const result = await confluence.apiRequest(
|
|
158
|
+
const result = await ctx.integrations.confluence.apiRequest(
|
|
154
159
|
{
|
|
155
160
|
method: "GET",
|
|
156
161
|
path: "/wiki/rest/api/search",
|
|
@@ -159,7 +164,7 @@ const result = await confluence.apiRequest(
|
|
|
159
164
|
limit: 25,
|
|
160
165
|
},
|
|
161
166
|
},
|
|
162
|
-
{ response: SearchResponseSchema }
|
|
167
|
+
{ response: SearchResponseSchema },
|
|
163
168
|
);
|
|
164
169
|
|
|
165
170
|
result.results.forEach((r) => {
|
|
@@ -176,14 +181,14 @@ const ListPagesResponseSchema = z.object({
|
|
|
176
181
|
id: z.string(),
|
|
177
182
|
title: z.string(),
|
|
178
183
|
status: z.string(),
|
|
179
|
-
})
|
|
184
|
+
}),
|
|
180
185
|
),
|
|
181
186
|
_links: z.object({
|
|
182
187
|
next: z.string().optional(),
|
|
183
188
|
}),
|
|
184
189
|
});
|
|
185
190
|
|
|
186
|
-
const result = await confluence.apiRequest(
|
|
191
|
+
const result = await ctx.integrations.confluence.apiRequest(
|
|
187
192
|
{
|
|
188
193
|
method: "GET",
|
|
189
194
|
path: `/wiki/api/v2/spaces/${spaceId}/pages`,
|
|
@@ -192,14 +197,14 @@ const result = await confluence.apiRequest(
|
|
|
192
197
|
status: "current",
|
|
193
198
|
},
|
|
194
199
|
},
|
|
195
|
-
{ response: ListPagesResponseSchema }
|
|
200
|
+
{ response: ListPagesResponseSchema },
|
|
196
201
|
);
|
|
197
202
|
```
|
|
198
203
|
|
|
199
204
|
### Create a Child Page
|
|
200
205
|
|
|
201
206
|
```typescript
|
|
202
|
-
const result = await confluence.apiRequest(
|
|
207
|
+
const result = await ctx.integrations.confluence.apiRequest(
|
|
203
208
|
{
|
|
204
209
|
method: "POST",
|
|
205
210
|
path: "/wiki/api/v2/pages",
|
|
@@ -214,7 +219,7 @@ const result = await confluence.apiRequest(
|
|
|
214
219
|
},
|
|
215
220
|
},
|
|
216
221
|
},
|
|
217
|
-
{ response: PageSchema }
|
|
222
|
+
{ response: PageSchema },
|
|
218
223
|
);
|
|
219
224
|
```
|
|
220
225
|
|
|
@@ -230,7 +235,7 @@ const CommentSchema = z.object({
|
|
|
230
235
|
}),
|
|
231
236
|
});
|
|
232
237
|
|
|
233
|
-
const result = await confluence.apiRequest(
|
|
238
|
+
const result = await ctx.integrations.confluence.apiRequest(
|
|
234
239
|
{
|
|
235
240
|
method: "POST",
|
|
236
241
|
path: `/wiki/api/v2/pages/${pageId}/footer-comments`,
|
|
@@ -241,7 +246,7 @@ const result = await confluence.apiRequest(
|
|
|
241
246
|
},
|
|
242
247
|
},
|
|
243
248
|
},
|
|
244
|
-
{ response: CommentSchema }
|
|
249
|
+
{ response: CommentSchema },
|
|
245
250
|
);
|
|
246
251
|
```
|
|
247
252
|
|
|
@@ -256,12 +261,12 @@ const SpaceSchema = z.object({
|
|
|
256
261
|
status: z.string(),
|
|
257
262
|
});
|
|
258
263
|
|
|
259
|
-
const result = await confluence.apiRequest(
|
|
264
|
+
const result = await ctx.integrations.confluence.apiRequest(
|
|
260
265
|
{
|
|
261
266
|
method: "GET",
|
|
262
267
|
path: `/wiki/api/v2/spaces/${spaceId}`,
|
|
263
268
|
},
|
|
264
|
-
{ response: SpaceSchema }
|
|
269
|
+
{ response: SpaceSchema },
|
|
265
270
|
);
|
|
266
271
|
```
|
|
267
272
|
|
|
@@ -273,20 +278,17 @@ const LabelSchema = z.object({
|
|
|
273
278
|
z.object({
|
|
274
279
|
id: z.string(),
|
|
275
280
|
name: z.string(),
|
|
276
|
-
})
|
|
281
|
+
}),
|
|
277
282
|
),
|
|
278
283
|
});
|
|
279
284
|
|
|
280
|
-
const result = await confluence.apiRequest(
|
|
285
|
+
const result = await ctx.integrations.confluence.apiRequest(
|
|
281
286
|
{
|
|
282
287
|
method: "POST",
|
|
283
288
|
path: `/wiki/rest/api/content/${pageId}/label`,
|
|
284
|
-
body: [
|
|
285
|
-
{ name: "documentation" },
|
|
286
|
-
{ name: "api" },
|
|
287
|
-
],
|
|
289
|
+
body: [{ name: "documentation" }, { name: "api" }],
|
|
288
290
|
},
|
|
289
|
-
{ response: LabelSchema }
|
|
291
|
+
{ response: LabelSchema },
|
|
290
292
|
);
|
|
291
293
|
```
|
|
292
294
|
|
|
@@ -300,7 +302,7 @@ await confluence.createPage({ ... });
|
|
|
300
302
|
await confluence.search({ ... });
|
|
301
303
|
|
|
302
304
|
// CORRECT - Use apiRequest
|
|
303
|
-
await confluence.apiRequest(
|
|
305
|
+
await ctx.integrations.confluence.apiRequest(
|
|
304
306
|
{ method: "POST", path: "/wiki/api/v2/pages", body: { ... } },
|
|
305
307
|
{ response: PageSchema }
|
|
306
308
|
);
|
|
@@ -398,13 +400,14 @@ const cql = 'lastModified >= "2024-01-01"';
|
|
|
398
400
|
const cql = 'label = "documentation"';
|
|
399
401
|
|
|
400
402
|
// Creator filter
|
|
401
|
-
const cql =
|
|
403
|
+
const cql = "creator = currentUser()";
|
|
402
404
|
|
|
403
405
|
// Ancestor (pages under a specific parent)
|
|
404
|
-
const cql =
|
|
406
|
+
const cql = "ancestor = 123456";
|
|
405
407
|
|
|
406
408
|
// Combine conditions
|
|
407
|
-
const cql =
|
|
409
|
+
const cql =
|
|
410
|
+
'type=page AND space="PROJ" AND label="api" ORDER BY lastModified DESC';
|
|
408
411
|
```
|
|
409
412
|
|
|
410
413
|
### Pagination
|
|
@@ -417,7 +420,7 @@ async function getAllPages(confluence: ConfluenceClient, spaceId: string) {
|
|
|
417
420
|
let cursor: string | undefined;
|
|
418
421
|
|
|
419
422
|
while (true) {
|
|
420
|
-
const result = await confluence.apiRequest(
|
|
423
|
+
const result = await ctx.integrations.confluence.apiRequest(
|
|
421
424
|
{
|
|
422
425
|
method: "GET",
|
|
423
426
|
path: `/wiki/api/v2/spaces/${spaceId}/pages`,
|
|
@@ -426,14 +429,15 @@ async function getAllPages(confluence: ConfluenceClient, spaceId: string) {
|
|
|
426
429
|
...(cursor && { cursor }),
|
|
427
430
|
},
|
|
428
431
|
},
|
|
429
|
-
{ response: ListPagesResponseSchema }
|
|
432
|
+
{ response: ListPagesResponseSchema },
|
|
430
433
|
);
|
|
431
434
|
|
|
432
435
|
allPages.push(...result.results);
|
|
433
436
|
|
|
434
437
|
if (!result._links.next) break;
|
|
435
438
|
// Extract cursor from next link
|
|
436
|
-
cursor =
|
|
439
|
+
cursor =
|
|
440
|
+
new URL(result._links.next).searchParams.get("cursor") ?? undefined;
|
|
437
441
|
}
|
|
438
442
|
|
|
439
443
|
return allPages;
|
|
@@ -446,7 +450,7 @@ async function getAllPages(confluence: ConfluenceClient, spaceId: string) {
|
|
|
446
450
|
import { RestApiValidationError } from "@superblocksteam/sdk-api";
|
|
447
451
|
|
|
448
452
|
try {
|
|
449
|
-
const result = await confluence.apiRequest(
|
|
453
|
+
const result = await ctx.integrations.confluence.apiRequest(
|
|
450
454
|
{ method: "POST", path: "/wiki/api/v2/pages", body: { ... } },
|
|
451
455
|
{ response: PageSchema }
|
|
452
456
|
);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Confluence integrations use the REST API Integration plugin under the hood.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { RestApiIntegrationClient } from
|
|
9
|
-
import type { ConfluenceClient } from
|
|
8
|
+
import { RestApiIntegrationClient } from "../base/index.js";
|
|
9
|
+
import type { ConfluenceClient } from "./types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Internal implementation of ConfluenceClient.
|
|
@@ -16,6 +16,8 @@ import type { ConfluenceClient } from './types.js';
|
|
|
16
16
|
* Confluence API calls. At runtime, the orchestrator handles authentication
|
|
17
17
|
* and API request execution.
|
|
18
18
|
*/
|
|
19
|
-
export class ConfluenceClientImpl
|
|
19
|
+
export class ConfluenceClientImpl
|
|
20
|
+
extends RestApiIntegrationClient
|
|
21
|
+
implements ConfluenceClient {
|
|
20
22
|
// Inherits: name, pluginId, config, executeQuery, apiRequest()
|
|
21
23
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ConfluenceClientImpl } from
|
|
2
|
-
export type { ConfluenceClient } from
|
|
1
|
+
export { ConfluenceClientImpl } from "./client.js";
|
|
2
|
+
export type { ConfluenceClient } from "./types.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Confluence 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
|
* Confluence 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: { confluence: confluence(INTEGRATION_ID) }
|
|
17
|
+
* // In run(), access via ctx.integrations.confluence
|
|
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 ConfluenceClient
|
|
33
|
+
export interface ConfluenceClient
|
|
34
|
+
extends BaseIntegrationClient, SupportsApiRequest {
|
|
33
35
|
// apiRequest() method inherited from SupportsApiRequest
|
|
34
36
|
}
|