@superblocksteam/sdk-api 2.0.93 → 2.0.94-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +137 -98
- package/dist/api/definition.d.ts +10 -0
- package/dist/api/definition.d.ts.map +1 -1
- package/dist/api/definition.js +17 -0
- package/dist/api/definition.js.map +1 -1
- package/dist/api/definition.test.d.ts +1 -1
- package/dist/api/definition.test.js +56 -3
- package/dist/api/definition.test.js.map +1 -1
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/streaming.d.ts +17 -3
- package/dist/api/streaming.d.ts.map +1 -1
- package/dist/api/streaming.js +10 -7
- package/dist/api/streaming.js.map +1 -1
- package/dist/api/streaming.test.js +147 -80
- package/dist/api/streaming.test.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +5 -5
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/airtable/client.d.ts +2 -2
- package/dist/integrations/airtable/client.d.ts.map +1 -1
- package/dist/integrations/airtable/client.js +1 -1
- package/dist/integrations/airtable/client.js.map +1 -1
- package/dist/integrations/airtable/index.d.ts +2 -2
- package/dist/integrations/airtable/index.js +1 -1
- package/dist/integrations/airtable/types.d.ts +5 -10
- package/dist/integrations/airtable/types.d.ts.map +1 -1
- package/dist/integrations/anthropic/client.d.ts +2 -2
- package/dist/integrations/anthropic/client.d.ts.map +1 -1
- package/dist/integrations/anthropic/client.js +1 -1
- package/dist/integrations/anthropic/client.js.map +1 -1
- package/dist/integrations/anthropic/index.d.ts +2 -2
- package/dist/integrations/anthropic/index.js +1 -1
- package/dist/integrations/anthropic/types.d.ts +5 -4
- package/dist/integrations/anthropic/types.d.ts.map +1 -1
- package/dist/integrations/asana/client.d.ts +2 -2
- package/dist/integrations/asana/client.d.ts.map +1 -1
- package/dist/integrations/asana/client.js +1 -1
- package/dist/integrations/asana/client.js.map +1 -1
- package/dist/integrations/asana/index.d.ts +2 -2
- package/dist/integrations/asana/index.js +1 -1
- package/dist/integrations/asana/types.d.ts +4 -3
- package/dist/integrations/asana/types.d.ts.map +1 -1
- package/dist/integrations/athena/client.d.ts +4 -4
- package/dist/integrations/athena/client.d.ts.map +1 -1
- package/dist/integrations/athena/client.js +8 -8
- package/dist/integrations/athena/client.js.map +1 -1
- package/dist/integrations/athena/index.d.ts +2 -2
- package/dist/integrations/athena/index.js +1 -1
- package/dist/integrations/athena/types.d.ts +4 -3
- package/dist/integrations/athena/types.d.ts.map +1 -1
- package/dist/integrations/base/graphql-integration-client.d.ts +3 -3
- package/dist/integrations/base/graphql-integration-client.js +3 -3
- package/dist/integrations/base/index.d.ts +4 -4
- package/dist/integrations/base/index.js +2 -2
- package/dist/integrations/base/rest-api-integration-client.d.ts.map +1 -1
- package/dist/integrations/base/rest-api-integration-client.js +1 -1
- package/dist/integrations/base/rest-api-integration-client.js.map +1 -1
- package/dist/integrations/base/types.d.ts +5 -10
- package/dist/integrations/base/types.d.ts.map +1 -1
- package/dist/integrations/bigquery/client.d.ts +4 -4
- package/dist/integrations/bigquery/client.d.ts.map +1 -1
- package/dist/integrations/bigquery/client.js +8 -8
- package/dist/integrations/bigquery/client.js.map +1 -1
- package/dist/integrations/bigquery/index.d.ts +2 -2
- package/dist/integrations/bigquery/index.js +1 -1
- package/dist/integrations/bigquery/types.d.ts +4 -3
- package/dist/integrations/bigquery/types.d.ts.map +1 -1
- package/dist/integrations/bitbucket/client.d.ts +2 -2
- package/dist/integrations/bitbucket/client.d.ts.map +1 -1
- package/dist/integrations/bitbucket/client.js +1 -1
- package/dist/integrations/bitbucket/client.js.map +1 -1
- package/dist/integrations/bitbucket/index.d.ts +2 -2
- package/dist/integrations/bitbucket/index.js +1 -1
- package/dist/integrations/bitbucket/types.d.ts +4 -3
- package/dist/integrations/bitbucket/types.d.ts.map +1 -1
- package/dist/integrations/box/client.d.ts +2 -2
- package/dist/integrations/box/client.d.ts.map +1 -1
- package/dist/integrations/box/client.js +1 -1
- package/dist/integrations/box/client.js.map +1 -1
- package/dist/integrations/box/index.d.ts +2 -2
- package/dist/integrations/box/index.js +1 -1
- package/dist/integrations/box/types.d.ts +4 -3
- package/dist/integrations/box/types.d.ts.map +1 -1
- package/dist/integrations/circleci/client.d.ts +2 -2
- package/dist/integrations/circleci/client.d.ts.map +1 -1
- package/dist/integrations/circleci/client.js +1 -1
- package/dist/integrations/circleci/client.js.map +1 -1
- package/dist/integrations/circleci/index.d.ts +2 -2
- package/dist/integrations/circleci/index.js +1 -1
- package/dist/integrations/circleci/types.d.ts +4 -3
- package/dist/integrations/circleci/types.d.ts.map +1 -1
- package/dist/integrations/cockroachdb/client.d.ts +4 -4
- package/dist/integrations/cockroachdb/client.d.ts.map +1 -1
- package/dist/integrations/cockroachdb/client.js +8 -8
- package/dist/integrations/cockroachdb/client.js.map +1 -1
- package/dist/integrations/cockroachdb/index.d.ts +2 -2
- package/dist/integrations/cockroachdb/index.js +1 -1
- package/dist/integrations/cockroachdb/types.d.ts +4 -3
- package/dist/integrations/cockroachdb/types.d.ts.map +1 -1
- package/dist/integrations/cohere/client.d.ts +2 -2
- package/dist/integrations/cohere/client.d.ts.map +1 -1
- package/dist/integrations/cohere/client.js +1 -1
- package/dist/integrations/cohere/client.js.map +1 -1
- package/dist/integrations/cohere/index.d.ts +2 -2
- package/dist/integrations/cohere/index.js +1 -1
- package/dist/integrations/cohere/types.d.ts +5 -10
- package/dist/integrations/cohere/types.d.ts.map +1 -1
- package/dist/integrations/confluence/client.d.ts +2 -2
- package/dist/integrations/confluence/client.d.ts.map +1 -1
- package/dist/integrations/confluence/client.js +1 -1
- package/dist/integrations/confluence/client.js.map +1 -1
- package/dist/integrations/confluence/index.d.ts +2 -2
- package/dist/integrations/confluence/index.js +1 -1
- package/dist/integrations/confluence/types.d.ts +4 -3
- package/dist/integrations/confluence/types.d.ts.map +1 -1
- package/dist/integrations/cosmosdb/client.d.ts +4 -4
- package/dist/integrations/cosmosdb/client.d.ts.map +1 -1
- package/dist/integrations/cosmosdb/client.js +23 -23
- package/dist/integrations/cosmosdb/client.js.map +1 -1
- package/dist/integrations/cosmosdb/index.d.ts +2 -2
- package/dist/integrations/cosmosdb/index.js +1 -1
- package/dist/integrations/cosmosdb/types.d.ts +4 -3
- package/dist/integrations/cosmosdb/types.d.ts.map +1 -1
- package/dist/integrations/couchbase/client.d.ts +4 -4
- package/dist/integrations/couchbase/client.d.ts.map +1 -1
- package/dist/integrations/couchbase/client.js +13 -13
- package/dist/integrations/couchbase/client.js.map +1 -1
- package/dist/integrations/couchbase/index.d.ts +2 -2
- package/dist/integrations/couchbase/index.js +1 -1
- package/dist/integrations/couchbase/types.d.ts +8 -7
- package/dist/integrations/couchbase/types.d.ts.map +1 -1
- package/dist/integrations/databricks/client.d.ts +4 -4
- package/dist/integrations/databricks/client.d.ts.map +1 -1
- package/dist/integrations/databricks/client.js +8 -8
- package/dist/integrations/databricks/client.js.map +1 -1
- package/dist/integrations/databricks/index.d.ts +2 -2
- package/dist/integrations/databricks/index.js +1 -1
- package/dist/integrations/databricks/types.d.ts +4 -3
- package/dist/integrations/databricks/types.d.ts.map +1 -1
- package/dist/integrations/datadog/client.d.ts +2 -2
- package/dist/integrations/datadog/client.d.ts.map +1 -1
- package/dist/integrations/datadog/client.js +1 -1
- package/dist/integrations/datadog/client.js.map +1 -1
- package/dist/integrations/datadog/index.d.ts +2 -2
- package/dist/integrations/datadog/index.js +1 -1
- package/dist/integrations/datadog/types.d.ts +4 -3
- package/dist/integrations/datadog/types.d.ts.map +1 -1
- package/dist/integrations/declarations.d.ts +130 -130
- package/dist/integrations/declarations.d.ts.map +1 -1
- package/dist/integrations/declarations.js +66 -66
- package/dist/integrations/declarations.js.map +1 -1
- package/dist/integrations/dropbox/client.d.ts +2 -2
- package/dist/integrations/dropbox/client.d.ts.map +1 -1
- package/dist/integrations/dropbox/client.js +1 -1
- package/dist/integrations/dropbox/client.js.map +1 -1
- package/dist/integrations/dropbox/index.d.ts +2 -2
- package/dist/integrations/dropbox/index.js +1 -1
- package/dist/integrations/dropbox/types.d.ts +4 -3
- package/dist/integrations/dropbox/types.d.ts.map +1 -1
- package/dist/integrations/dynamodb/client.d.ts +4 -4
- package/dist/integrations/dynamodb/client.d.ts.map +1 -1
- package/dist/integrations/dynamodb/client.js +30 -30
- package/dist/integrations/dynamodb/client.js.map +1 -1
- package/dist/integrations/dynamodb/index.d.ts +2 -2
- package/dist/integrations/dynamodb/index.js +1 -1
- package/dist/integrations/dynamodb/types.d.ts +10 -9
- package/dist/integrations/dynamodb/types.d.ts.map +1 -1
- package/dist/integrations/elasticsearch/client.d.ts +2 -2
- package/dist/integrations/elasticsearch/client.d.ts.map +1 -1
- package/dist/integrations/elasticsearch/client.js +1 -1
- package/dist/integrations/elasticsearch/client.js.map +1 -1
- package/dist/integrations/elasticsearch/index.d.ts +2 -2
- package/dist/integrations/elasticsearch/index.js +1 -1
- package/dist/integrations/elasticsearch/types.d.ts +4 -3
- package/dist/integrations/elasticsearch/types.d.ts.map +1 -1
- package/dist/integrations/fireworks/client.d.ts +2 -2
- package/dist/integrations/fireworks/client.d.ts.map +1 -1
- package/dist/integrations/fireworks/client.js +1 -1
- package/dist/integrations/fireworks/client.js.map +1 -1
- package/dist/integrations/fireworks/index.d.ts +2 -2
- package/dist/integrations/fireworks/index.js +1 -1
- package/dist/integrations/fireworks/types.d.ts +4 -3
- package/dist/integrations/fireworks/types.d.ts.map +1 -1
- package/dist/integrations/front/client.d.ts +2 -2
- package/dist/integrations/front/client.d.ts.map +1 -1
- package/dist/integrations/front/client.js +1 -1
- package/dist/integrations/front/client.js.map +1 -1
- package/dist/integrations/front/index.d.ts +2 -2
- package/dist/integrations/front/index.js +1 -1
- package/dist/integrations/front/types.d.ts +4 -3
- package/dist/integrations/front/types.d.ts.map +1 -1
- package/dist/integrations/gcs/client.d.ts +4 -4
- package/dist/integrations/gcs/client.js +20 -20
- package/dist/integrations/gcs/index.d.ts +2 -2
- package/dist/integrations/gcs/index.js +1 -1
- package/dist/integrations/gcs/types.d.ts +3 -3
- package/dist/integrations/gcs/types.d.ts.map +1 -1
- package/dist/integrations/gemini/client.d.ts +2 -2
- package/dist/integrations/gemini/client.d.ts.map +1 -1
- package/dist/integrations/gemini/client.js +1 -1
- package/dist/integrations/gemini/client.js.map +1 -1
- package/dist/integrations/gemini/index.d.ts +2 -2
- package/dist/integrations/gemini/index.js +1 -1
- package/dist/integrations/gemini/types.d.ts +4 -3
- package/dist/integrations/gemini/types.d.ts.map +1 -1
- package/dist/integrations/github/client.d.ts +2 -2
- package/dist/integrations/github/client.d.ts.map +1 -1
- package/dist/integrations/github/client.js +1 -1
- package/dist/integrations/github/client.js.map +1 -1
- package/dist/integrations/github/index.d.ts +2 -2
- package/dist/integrations/github/index.js +1 -1
- package/dist/integrations/github/types.d.ts +6 -5
- package/dist/integrations/github/types.d.ts.map +1 -1
- package/dist/integrations/googleanalytics/client.d.ts +2 -2
- package/dist/integrations/googleanalytics/client.d.ts.map +1 -1
- package/dist/integrations/googleanalytics/client.js +1 -1
- package/dist/integrations/googleanalytics/client.js.map +1 -1
- package/dist/integrations/googleanalytics/index.d.ts +2 -2
- package/dist/integrations/googleanalytics/index.js +1 -1
- package/dist/integrations/googleanalytics/types.d.ts +4 -3
- package/dist/integrations/googleanalytics/types.d.ts.map +1 -1
- package/dist/integrations/googledrive/client.d.ts +2 -2
- package/dist/integrations/googledrive/client.d.ts.map +1 -1
- package/dist/integrations/googledrive/client.js +1 -1
- package/dist/integrations/googledrive/client.js.map +1 -1
- package/dist/integrations/googledrive/index.d.ts +2 -2
- package/dist/integrations/googledrive/index.js +1 -1
- package/dist/integrations/googledrive/types.d.ts +4 -3
- package/dist/integrations/googledrive/types.d.ts.map +1 -1
- package/dist/integrations/graphql/client.d.ts +2 -2
- package/dist/integrations/graphql/client.d.ts.map +1 -1
- package/dist/integrations/graphql/client.js +1 -1
- package/dist/integrations/graphql/client.js.map +1 -1
- package/dist/integrations/graphql/index.d.ts +2 -2
- package/dist/integrations/graphql/index.js +1 -1
- package/dist/integrations/graphql/types.d.ts +4 -3
- package/dist/integrations/graphql/types.d.ts.map +1 -1
- package/dist/integrations/groq/client.d.ts +2 -2
- package/dist/integrations/groq/client.d.ts.map +1 -1
- package/dist/integrations/groq/client.js +1 -1
- package/dist/integrations/groq/client.js.map +1 -1
- package/dist/integrations/groq/index.d.ts +2 -2
- package/dist/integrations/groq/index.js +1 -1
- package/dist/integrations/groq/types.d.ts +4 -3
- package/dist/integrations/groq/types.d.ts.map +1 -1
- package/dist/integrations/gsheets/client.d.ts +4 -4
- package/dist/integrations/gsheets/client.d.ts.map +1 -1
- package/dist/integrations/gsheets/client.js +3 -3
- package/dist/integrations/gsheets/client.js.map +1 -1
- package/dist/integrations/gsheets/index.d.ts +2 -2
- package/dist/integrations/gsheets/index.js +1 -1
- package/dist/integrations/gsheets/types.d.ts +7 -6
- package/dist/integrations/gsheets/types.d.ts.map +1 -1
- package/dist/integrations/hubspot/client.d.ts +2 -2
- package/dist/integrations/hubspot/client.d.ts.map +1 -1
- package/dist/integrations/hubspot/client.js +1 -1
- package/dist/integrations/hubspot/client.js.map +1 -1
- package/dist/integrations/hubspot/index.d.ts +2 -2
- package/dist/integrations/hubspot/index.js +1 -1
- package/dist/integrations/hubspot/types.d.ts +4 -3
- package/dist/integrations/hubspot/types.d.ts.map +1 -1
- package/dist/integrations/index.d.ts +131 -131
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +66 -66
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/intercom/client.d.ts +2 -2
- package/dist/integrations/intercom/client.d.ts.map +1 -1
- package/dist/integrations/intercom/client.js +1 -1
- package/dist/integrations/intercom/client.js.map +1 -1
- package/dist/integrations/intercom/index.d.ts +2 -2
- package/dist/integrations/intercom/index.js +1 -1
- package/dist/integrations/intercom/types.d.ts +4 -3
- package/dist/integrations/intercom/types.d.ts.map +1 -1
- package/dist/integrations/jira/client.d.ts +2 -2
- package/dist/integrations/jira/client.d.ts.map +1 -1
- package/dist/integrations/jira/client.js +1 -1
- package/dist/integrations/jira/client.js.map +1 -1
- package/dist/integrations/jira/index.d.ts +2 -2
- package/dist/integrations/jira/index.js +1 -1
- package/dist/integrations/jira/types.d.ts +4 -3
- package/dist/integrations/jira/types.d.ts.map +1 -1
- package/dist/integrations/kafka/client.d.ts +4 -4
- package/dist/integrations/kafka/client.d.ts.map +1 -1
- package/dist/integrations/kafka/client.js +19 -17
- package/dist/integrations/kafka/client.js.map +1 -1
- package/dist/integrations/kafka/index.d.ts +2 -2
- package/dist/integrations/kafka/index.js +1 -1
- package/dist/integrations/kafka/types.d.ts +8 -7
- package/dist/integrations/kafka/types.d.ts.map +1 -1
- package/dist/integrations/kinesis/client.d.ts +3 -3
- package/dist/integrations/kinesis/client.d.ts.map +1 -1
- package/dist/integrations/kinesis/client.js +5 -5
- package/dist/integrations/kinesis/client.js.map +1 -1
- package/dist/integrations/kinesis/index.d.ts +2 -2
- package/dist/integrations/kinesis/index.js +1 -1
- package/dist/integrations/kinesis/types.d.ts +5 -4
- package/dist/integrations/kinesis/types.d.ts.map +1 -1
- package/dist/integrations/lakebase/client.d.ts +4 -4
- package/dist/integrations/lakebase/client.d.ts.map +1 -1
- package/dist/integrations/lakebase/client.js +8 -8
- package/dist/integrations/lakebase/client.js.map +1 -1
- package/dist/integrations/lakebase/index.d.ts +2 -2
- package/dist/integrations/lakebase/index.js +1 -1
- package/dist/integrations/lakebase/types.d.ts +2 -2
- package/dist/integrations/lakebase/types.d.ts.map +1 -1
- package/dist/integrations/launchdarkly/client.d.ts +2 -2
- package/dist/integrations/launchdarkly/client.d.ts.map +1 -1
- package/dist/integrations/launchdarkly/client.js +1 -1
- package/dist/integrations/launchdarkly/client.js.map +1 -1
- package/dist/integrations/launchdarkly/index.d.ts +2 -2
- package/dist/integrations/launchdarkly/index.js +1 -1
- package/dist/integrations/launchdarkly/types.d.ts +4 -3
- package/dist/integrations/launchdarkly/types.d.ts.map +1 -1
- package/dist/integrations/mariadb/client.d.ts +4 -4
- package/dist/integrations/mariadb/client.d.ts.map +1 -1
- package/dist/integrations/mariadb/client.js +8 -8
- package/dist/integrations/mariadb/client.js.map +1 -1
- package/dist/integrations/mariadb/index.d.ts +2 -2
- package/dist/integrations/mariadb/index.js +1 -1
- package/dist/integrations/mariadb/types.d.ts +4 -3
- package/dist/integrations/mariadb/types.d.ts.map +1 -1
- package/dist/integrations/mistral/client.d.ts +2 -2
- package/dist/integrations/mistral/client.d.ts.map +1 -1
- package/dist/integrations/mistral/client.js +1 -1
- package/dist/integrations/mistral/client.js.map +1 -1
- package/dist/integrations/mistral/index.d.ts +2 -2
- package/dist/integrations/mistral/index.js +1 -1
- package/dist/integrations/mistral/types.d.ts +4 -3
- package/dist/integrations/mistral/types.d.ts.map +1 -1
- package/dist/integrations/mongodb/client.d.ts +4 -4
- package/dist/integrations/mongodb/client.d.ts.map +1 -1
- package/dist/integrations/mongodb/client.js +3 -3
- package/dist/integrations/mongodb/client.js.map +1 -1
- package/dist/integrations/mongodb/index.d.ts +2 -2
- package/dist/integrations/mongodb/index.js +1 -1
- package/dist/integrations/mongodb/types.d.ts +5 -4
- package/dist/integrations/mongodb/types.d.ts.map +1 -1
- package/dist/integrations/mssql/client.d.ts +4 -4
- package/dist/integrations/mssql/client.d.ts.map +1 -1
- package/dist/integrations/mssql/client.js +8 -8
- package/dist/integrations/mssql/client.js.map +1 -1
- package/dist/integrations/mssql/index.d.ts +2 -2
- package/dist/integrations/mssql/index.js +1 -1
- package/dist/integrations/mssql/types.d.ts +4 -3
- package/dist/integrations/mssql/types.d.ts.map +1 -1
- package/dist/integrations/mysql/client.d.ts +4 -4
- package/dist/integrations/mysql/client.d.ts.map +1 -1
- package/dist/integrations/mysql/client.js +8 -8
- package/dist/integrations/mysql/client.js.map +1 -1
- package/dist/integrations/mysql/index.d.ts +2 -2
- package/dist/integrations/mysql/index.js +1 -1
- package/dist/integrations/mysql/types.d.ts +4 -3
- package/dist/integrations/mysql/types.d.ts.map +1 -1
- package/dist/integrations/notion/client.d.ts +2 -2
- package/dist/integrations/notion/client.d.ts.map +1 -1
- package/dist/integrations/notion/client.js +1 -1
- package/dist/integrations/notion/client.js.map +1 -1
- package/dist/integrations/notion/index.d.ts +2 -2
- package/dist/integrations/notion/index.js +1 -1
- package/dist/integrations/notion/types.d.ts +6 -5
- package/dist/integrations/notion/types.d.ts.map +1 -1
- package/dist/integrations/openai_v2/client.d.ts +2 -2
- package/dist/integrations/openai_v2/client.d.ts.map +1 -1
- package/dist/integrations/openai_v2/client.js +1 -1
- package/dist/integrations/openai_v2/client.js.map +1 -1
- package/dist/integrations/openai_v2/index.d.ts +2 -2
- package/dist/integrations/openai_v2/index.js +1 -1
- package/dist/integrations/openai_v2/types.d.ts +5 -4
- package/dist/integrations/openai_v2/types.d.ts.map +1 -1
- package/dist/integrations/oracledb/client.d.ts +4 -4
- package/dist/integrations/oracledb/client.d.ts.map +1 -1
- package/dist/integrations/oracledb/client.js +8 -8
- package/dist/integrations/oracledb/client.js.map +1 -1
- package/dist/integrations/oracledb/index.d.ts +2 -2
- package/dist/integrations/oracledb/index.js +1 -1
- package/dist/integrations/oracledb/types.d.ts +4 -3
- package/dist/integrations/oracledb/types.d.ts.map +1 -1
- package/dist/integrations/pagerduty/client.d.ts +2 -2
- package/dist/integrations/pagerduty/client.d.ts.map +1 -1
- package/dist/integrations/pagerduty/client.js +1 -1
- package/dist/integrations/pagerduty/client.js.map +1 -1
- package/dist/integrations/pagerduty/index.d.ts +2 -2
- package/dist/integrations/pagerduty/index.js +1 -1
- package/dist/integrations/pagerduty/types.d.ts +4 -3
- package/dist/integrations/pagerduty/types.d.ts.map +1 -1
- package/dist/integrations/perplexity/client.d.ts +2 -2
- package/dist/integrations/perplexity/client.d.ts.map +1 -1
- package/dist/integrations/perplexity/client.js +1 -1
- package/dist/integrations/perplexity/client.js.map +1 -1
- package/dist/integrations/perplexity/index.d.ts +2 -2
- package/dist/integrations/perplexity/index.js +1 -1
- package/dist/integrations/perplexity/types.d.ts +4 -3
- package/dist/integrations/perplexity/types.d.ts.map +1 -1
- package/dist/integrations/postgres/client.d.ts +6 -6
- package/dist/integrations/postgres/client.d.ts.map +1 -1
- package/dist/integrations/postgres/client.js +8 -8
- package/dist/integrations/postgres/client.js.map +1 -1
- package/dist/integrations/postgres/index.d.ts +2 -2
- package/dist/integrations/postgres/index.js +1 -1
- package/dist/integrations/postgres/types.d.ts +8 -7
- package/dist/integrations/postgres/types.d.ts.map +1 -1
- package/dist/integrations/python/client.d.ts +6 -6
- package/dist/integrations/python/client.d.ts.map +1 -1
- package/dist/integrations/python/client.js +5 -5
- package/dist/integrations/python/client.js.map +1 -1
- package/dist/integrations/python/client.test.js +82 -63
- package/dist/integrations/python/client.test.js.map +1 -1
- package/dist/integrations/python/index.d.ts +2 -2
- package/dist/integrations/python/index.js +1 -1
- package/dist/integrations/python/types.d.ts +5 -5
- package/dist/integrations/redis/client.d.ts +4 -4
- package/dist/integrations/redis/client.d.ts.map +1 -1
- package/dist/integrations/redis/client.js +23 -23
- package/dist/integrations/redis/client.js.map +1 -1
- package/dist/integrations/redis/index.d.ts +2 -2
- package/dist/integrations/redis/index.js +1 -1
- package/dist/integrations/redis/types.d.ts +4 -3
- package/dist/integrations/redis/types.d.ts.map +1 -1
- package/dist/integrations/redshift/client.d.ts +4 -4
- package/dist/integrations/redshift/client.d.ts.map +1 -1
- package/dist/integrations/redshift/client.js +8 -8
- package/dist/integrations/redshift/client.js.map +1 -1
- package/dist/integrations/redshift/index.d.ts +2 -2
- package/dist/integrations/redshift/index.js +1 -1
- package/dist/integrations/redshift/types.d.ts +4 -3
- package/dist/integrations/redshift/types.d.ts.map +1 -1
- package/dist/integrations/registry.d.ts +2 -2
- package/dist/integrations/registry.d.ts.map +1 -1
- package/dist/integrations/registry.js +132 -132
- package/dist/integrations/registry.js.map +1 -1
- package/dist/integrations/registry.test.js +10 -10
- package/dist/integrations/registry.test.js.map +1 -1
- package/dist/integrations/s3/client.d.ts +4 -4
- package/dist/integrations/s3/client.d.ts.map +1 -1
- package/dist/integrations/s3/client.js +20 -20
- package/dist/integrations/s3/client.js.map +1 -1
- package/dist/integrations/s3/index.d.ts +2 -2
- package/dist/integrations/s3/index.js +1 -1
- package/dist/integrations/s3/types.d.ts +3 -3
- package/dist/integrations/s3/types.d.ts.map +1 -1
- package/dist/integrations/salesforce/client.d.ts +4 -4
- package/dist/integrations/salesforce/client.d.ts.map +1 -1
- package/dist/integrations/salesforce/client.js +22 -22
- package/dist/integrations/salesforce/client.js.map +1 -1
- package/dist/integrations/salesforce/index.d.ts +2 -2
- package/dist/integrations/salesforce/index.d.ts.map +1 -1
- package/dist/integrations/salesforce/index.js +1 -1
- package/dist/integrations/salesforce/index.js.map +1 -1
- package/dist/integrations/salesforce/types.d.ts +12 -11
- package/dist/integrations/salesforce/types.d.ts.map +1 -1
- package/dist/integrations/segment/client.d.ts +2 -2
- package/dist/integrations/segment/client.d.ts.map +1 -1
- package/dist/integrations/segment/client.js +1 -1
- package/dist/integrations/segment/client.js.map +1 -1
- package/dist/integrations/segment/index.d.ts +2 -2
- package/dist/integrations/segment/index.js +1 -1
- package/dist/integrations/segment/types.d.ts +4 -3
- package/dist/integrations/segment/types.d.ts.map +1 -1
- package/dist/integrations/sendgrid/client.d.ts +2 -2
- package/dist/integrations/sendgrid/client.d.ts.map +1 -1
- package/dist/integrations/sendgrid/client.js +1 -1
- package/dist/integrations/sendgrid/client.js.map +1 -1
- package/dist/integrations/sendgrid/index.d.ts +2 -2
- package/dist/integrations/sendgrid/index.js +1 -1
- package/dist/integrations/sendgrid/types.d.ts +4 -3
- package/dist/integrations/sendgrid/types.d.ts.map +1 -1
- package/dist/integrations/slack/client.d.ts.map +1 -1
- package/dist/integrations/slack/client.js.map +1 -1
- package/dist/integrations/slack/index.d.ts +2 -2
- package/dist/integrations/slack/index.js +1 -1
- package/dist/integrations/slack/types.d.ts +6 -12
- package/dist/integrations/slack/types.d.ts.map +1 -1
- package/dist/integrations/smtp/client.d.ts +3 -3
- package/dist/integrations/smtp/client.js +6 -6
- package/dist/integrations/smtp/index.d.ts +2 -2
- package/dist/integrations/smtp/index.js +1 -1
- package/dist/integrations/smtp/types.d.ts +1 -1
- package/dist/integrations/snowflake/client.d.ts.map +1 -1
- package/dist/integrations/snowflake/client.js.map +1 -1
- package/dist/integrations/snowflake/index.d.ts +2 -2
- package/dist/integrations/snowflake/index.js +1 -1
- package/dist/integrations/snowflake/types.d.ts +4 -3
- package/dist/integrations/snowflake/types.d.ts.map +1 -1
- package/dist/integrations/snowflakecortex/client.d.ts +2 -2
- package/dist/integrations/snowflakecortex/client.d.ts.map +1 -1
- package/dist/integrations/snowflakecortex/client.js +1 -1
- package/dist/integrations/snowflakecortex/client.js.map +1 -1
- package/dist/integrations/snowflakecortex/index.d.ts +2 -2
- package/dist/integrations/snowflakecortex/index.js +1 -1
- package/dist/integrations/snowflakecortex/types.d.ts +2 -2
- package/dist/integrations/snowflakecortex/types.d.ts.map +1 -1
- package/dist/integrations/snowflakepostgres/client.d.ts +2 -2
- package/dist/integrations/snowflakepostgres/client.js +1 -1
- package/dist/integrations/snowflakepostgres/index.d.ts +2 -2
- package/dist/integrations/snowflakepostgres/index.js +1 -1
- package/dist/integrations/snowflakepostgres/types.d.ts +2 -2
- package/dist/integrations/snowflakepostgres/types.d.ts.map +1 -1
- package/dist/integrations/stabilityai/client.d.ts +2 -2
- package/dist/integrations/stabilityai/client.d.ts.map +1 -1
- package/dist/integrations/stabilityai/client.js +1 -1
- package/dist/integrations/stabilityai/client.js.map +1 -1
- package/dist/integrations/stabilityai/index.d.ts +2 -2
- package/dist/integrations/stabilityai/index.js +1 -1
- package/dist/integrations/stabilityai/types.d.ts +4 -3
- package/dist/integrations/stabilityai/types.d.ts.map +1 -1
- package/dist/integrations/stripe/client.d.ts +2 -2
- package/dist/integrations/stripe/client.d.ts.map +1 -1
- package/dist/integrations/stripe/client.js +1 -1
- package/dist/integrations/stripe/client.js.map +1 -1
- package/dist/integrations/stripe/index.d.ts +2 -2
- package/dist/integrations/stripe/index.js +1 -1
- package/dist/integrations/stripe/types.d.ts +6 -5
- package/dist/integrations/stripe/types.d.ts.map +1 -1
- package/dist/integrations/superblocks-ocr/client.d.ts +2 -2
- package/dist/integrations/superblocks-ocr/client.d.ts.map +1 -1
- package/dist/integrations/superblocks-ocr/client.js +1 -1
- package/dist/integrations/superblocks-ocr/client.js.map +1 -1
- package/dist/integrations/superblocks-ocr/index.d.ts +2 -2
- package/dist/integrations/superblocks-ocr/index.js +1 -1
- package/dist/integrations/superblocks-ocr/types.d.ts +4 -3
- package/dist/integrations/superblocks-ocr/types.d.ts.map +1 -1
- package/dist/integrations/twilio/client.d.ts +2 -2
- package/dist/integrations/twilio/client.d.ts.map +1 -1
- package/dist/integrations/twilio/client.js +1 -1
- package/dist/integrations/twilio/client.js.map +1 -1
- package/dist/integrations/twilio/index.d.ts +2 -2
- package/dist/integrations/twilio/index.js +1 -1
- package/dist/integrations/twilio/types.d.ts +4 -3
- package/dist/integrations/twilio/types.d.ts.map +1 -1
- package/dist/integrations/types.d.ts +1 -1
- package/dist/integrations/utils.js +5 -5
- package/dist/integrations/zendesk/client.d.ts +2 -2
- package/dist/integrations/zendesk/client.d.ts.map +1 -1
- package/dist/integrations/zendesk/client.js +1 -1
- package/dist/integrations/zendesk/client.js.map +1 -1
- package/dist/integrations/zendesk/index.d.ts +2 -2
- package/dist/integrations/zendesk/index.js +1 -1
- package/dist/integrations/zendesk/types.d.ts +4 -3
- package/dist/integrations/zendesk/types.d.ts.map +1 -1
- package/dist/integrations/zoom/client.d.ts +2 -2
- package/dist/integrations/zoom/client.d.ts.map +1 -1
- package/dist/integrations/zoom/client.js +1 -1
- package/dist/integrations/zoom/client.js.map +1 -1
- package/dist/integrations/zoom/index.d.ts +2 -2
- package/dist/integrations/zoom/index.js +1 -1
- package/dist/integrations/zoom/types.d.ts +5 -4
- package/dist/integrations/zoom/types.d.ts.map +1 -1
- package/dist/runtime/context.d.ts +3 -3
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/context.js +3 -3
- package/dist/runtime/context.js.map +1 -1
- package/dist/runtime/errors.d.ts.map +1 -1
- package/dist/runtime/errors.js +17 -13
- package/dist/runtime/errors.js.map +1 -1
- package/dist/runtime/execute.d.ts +5 -5
- package/dist/runtime/execute.d.ts.map +1 -1
- package/dist/runtime/execute.js +3 -3
- package/dist/runtime/execute.js.map +1 -1
- package/dist/runtime/executor.d.ts +4 -4
- package/dist/runtime/executor.js +5 -5
- package/dist/runtime/index.d.ts +6 -6
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +6 -6
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/logger.d.ts +1 -1
- package/dist/runtime/logger.d.ts.map +1 -1
- package/dist/runtime/logger.js +5 -5
- package/dist/runtime/logger.js.map +1 -1
- package/dist/runtime/streaming-context.d.ts +3 -3
- package/dist/runtime/streaming-context.d.ts.map +1 -1
- package/dist/runtime/streaming-context.js +2 -2
- package/dist/runtime/streaming-context.js.map +1 -1
- package/dist/runtime/streaming-executor.d.ts +4 -4
- package/dist/runtime/streaming-executor.d.ts.map +1 -1
- package/dist/runtime/streaming-executor.js +5 -5
- package/dist/runtime/streaming-executor.js.map +1 -1
- package/dist/types.d.ts +10 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/api/definition.test.ts +65 -2
- package/src/api/definition.ts +33 -1
- package/src/api/index.ts +4 -4
- package/src/api/streaming.test.ts +166 -88
- package/src/api/streaming.ts +41 -13
- package/src/errors.ts +6 -6
- package/src/index.ts +14 -3
- package/src/integrations/airtable/README.md +46 -39
- package/src/integrations/airtable/client.ts +5 -3
- package/src/integrations/airtable/index.ts +2 -2
- package/src/integrations/airtable/types.ts +7 -11
- package/src/integrations/anthropic/README.md +57 -47
- package/src/integrations/anthropic/client.ts +5 -3
- package/src/integrations/anthropic/index.ts +2 -2
- package/src/integrations/anthropic/types.ts +12 -5
- package/src/integrations/asana/README.md +39 -37
- package/src/integrations/asana/client.ts +5 -3
- package/src/integrations/asana/index.ts +2 -2
- package/src/integrations/asana/types.ts +4 -3
- package/src/integrations/athena/README.md +23 -16
- package/src/integrations/athena/client.ts +18 -15
- package/src/integrations/athena/index.ts +2 -2
- package/src/integrations/athena/types.ts +9 -4
- package/src/integrations/base/graphql-integration-client.ts +9 -9
- package/src/integrations/base/index.ts +4 -4
- package/src/integrations/base/rest-api-integration-client.ts +15 -4
- package/src/integrations/base/types.ts +8 -11
- package/src/integrations/bigquery/README.md +24 -19
- package/src/integrations/bigquery/client.ts +21 -16
- package/src/integrations/bigquery/index.ts +2 -2
- package/src/integrations/bigquery/types.ts +9 -4
- package/src/integrations/bitbucket/README.md +56 -40
- package/src/integrations/bitbucket/client.ts +5 -3
- package/src/integrations/bitbucket/index.ts +2 -2
- package/src/integrations/bitbucket/types.ts +6 -4
- package/src/integrations/box/README.md +60 -53
- package/src/integrations/box/client.ts +5 -3
- package/src/integrations/box/index.ts +2 -2
- package/src/integrations/box/types.ts +4 -3
- package/src/integrations/circleci/README.md +70 -43
- package/src/integrations/circleci/client.ts +5 -3
- package/src/integrations/circleci/index.ts +2 -2
- package/src/integrations/circleci/types.ts +6 -4
- package/src/integrations/cockroachdb/README.md +26 -21
- package/src/integrations/cockroachdb/client.ts +18 -15
- package/src/integrations/cockroachdb/index.ts +2 -2
- package/src/integrations/cockroachdb/types.ts +9 -4
- package/src/integrations/cohere/README.md +30 -29
- package/src/integrations/cohere/client.ts +5 -3
- package/src/integrations/cohere/index.ts +2 -2
- package/src/integrations/cohere/types.ts +7 -11
- package/src/integrations/confluence/README.md +50 -46
- package/src/integrations/confluence/client.ts +5 -3
- package/src/integrations/confluence/index.ts +2 -2
- package/src/integrations/confluence/types.ts +6 -4
- package/src/integrations/cosmosdb/README.md +26 -23
- package/src/integrations/cosmosdb/client.ts +32 -30
- package/src/integrations/cosmosdb/index.ts +2 -2
- package/src/integrations/cosmosdb/types.ts +4 -3
- package/src/integrations/couchbase/README.md +37 -23
- package/src/integrations/couchbase/client.ts +28 -22
- package/src/integrations/couchbase/index.ts +2 -2
- package/src/integrations/couchbase/types.ts +14 -8
- package/src/integrations/databricks/README.md +25 -20
- package/src/integrations/databricks/client.ts +18 -15
- package/src/integrations/databricks/index.ts +2 -2
- package/src/integrations/databricks/types.ts +9 -4
- package/src/integrations/datadog/README.md +51 -38
- package/src/integrations/datadog/client.ts +5 -3
- package/src/integrations/datadog/index.ts +2 -2
- package/src/integrations/datadog/types.ts +6 -4
- package/src/integrations/declarations.ts +237 -199
- package/src/integrations/dropbox/README.md +42 -39
- package/src/integrations/dropbox/client.ts +5 -3
- package/src/integrations/dropbox/index.ts +2 -2
- package/src/integrations/dropbox/types.ts +6 -4
- package/src/integrations/dynamodb/README.md +92 -60
- package/src/integrations/dynamodb/client.ts +45 -36
- package/src/integrations/dynamodb/index.ts +2 -2
- package/src/integrations/dynamodb/types.ts +10 -9
- package/src/integrations/elasticsearch/README.md +72 -70
- package/src/integrations/elasticsearch/client.ts +5 -3
- package/src/integrations/elasticsearch/index.ts +2 -2
- package/src/integrations/elasticsearch/types.ts +6 -4
- package/src/integrations/fireworks/README.md +35 -38
- package/src/integrations/fireworks/client.ts +5 -3
- package/src/integrations/fireworks/index.ts +2 -2
- package/src/integrations/fireworks/types.ts +6 -4
- package/src/integrations/front/README.md +29 -28
- package/src/integrations/front/client.ts +5 -3
- package/src/integrations/front/index.ts +2 -2
- package/src/integrations/front/types.ts +4 -3
- package/src/integrations/gcs/README.md +24 -19
- package/src/integrations/gcs/client.ts +26 -26
- package/src/integrations/gcs/index.ts +2 -2
- package/src/integrations/gcs/types.ts +11 -14
- package/src/integrations/gemini/README.md +31 -28
- package/src/integrations/gemini/client.ts +5 -3
- package/src/integrations/gemini/index.ts +2 -2
- package/src/integrations/gemini/types.ts +6 -4
- package/src/integrations/github/README.md +41 -35
- package/src/integrations/github/client.ts +5 -3
- package/src/integrations/github/index.ts +2 -2
- package/src/integrations/github/types.ts +8 -6
- package/src/integrations/googleanalytics/README.md +51 -40
- package/src/integrations/googleanalytics/client.ts +5 -3
- package/src/integrations/googleanalytics/index.ts +2 -2
- package/src/integrations/googleanalytics/types.ts +6 -4
- package/src/integrations/googledrive/README.md +57 -50
- package/src/integrations/googledrive/client.ts +5 -3
- package/src/integrations/googledrive/index.ts +2 -2
- package/src/integrations/googledrive/types.ts +6 -4
- package/src/integrations/graphql/README.md +62 -41
- package/src/integrations/graphql/client.ts +5 -3
- package/src/integrations/graphql/index.ts +2 -2
- package/src/integrations/graphql/types.ts +6 -5
- package/src/integrations/groq/README.md +34 -35
- package/src/integrations/groq/client.ts +5 -3
- package/src/integrations/groq/index.ts +2 -2
- package/src/integrations/groq/types.ts +4 -3
- package/src/integrations/gsheets/README.md +61 -47
- package/src/integrations/gsheets/client.ts +19 -11
- package/src/integrations/gsheets/index.ts +2 -2
- package/src/integrations/gsheets/types.ts +12 -11
- package/src/integrations/hubspot/README.md +80 -67
- package/src/integrations/hubspot/client.ts +5 -3
- package/src/integrations/hubspot/index.ts +2 -2
- package/src/integrations/hubspot/types.ts +6 -4
- package/src/integrations/index.ts +169 -131
- package/src/integrations/intercom/README.md +25 -24
- package/src/integrations/intercom/client.ts +5 -3
- package/src/integrations/intercom/index.ts +2 -2
- package/src/integrations/intercom/types.ts +6 -4
- package/src/integrations/jira/README.md +46 -43
- package/src/integrations/jira/client.ts +5 -3
- package/src/integrations/jira/index.ts +2 -2
- package/src/integrations/jira/types.ts +4 -3
- package/src/integrations/kafka/README.md +39 -33
- package/src/integrations/kafka/client.ts +34 -30
- package/src/integrations/kafka/index.ts +2 -2
- package/src/integrations/kafka/types.ts +8 -7
- package/src/integrations/kinesis/README.md +34 -32
- package/src/integrations/kinesis/client.ts +12 -8
- package/src/integrations/kinesis/index.ts +2 -2
- package/src/integrations/kinesis/types.ts +9 -10
- package/src/integrations/lakebase/client.ts +33 -20
- package/src/integrations/lakebase/index.ts +2 -2
- package/src/integrations/lakebase/types.ts +7 -3
- package/src/integrations/launchdarkly/README.md +38 -37
- package/src/integrations/launchdarkly/client.ts +5 -3
- package/src/integrations/launchdarkly/index.ts +2 -2
- package/src/integrations/launchdarkly/types.ts +6 -4
- package/src/integrations/mariadb/README.md +24 -19
- package/src/integrations/mariadb/client.ts +18 -15
- package/src/integrations/mariadb/index.ts +2 -2
- package/src/integrations/mariadb/types.ts +9 -4
- package/src/integrations/mistral/README.md +33 -34
- package/src/integrations/mistral/client.ts +5 -3
- package/src/integrations/mistral/index.ts +2 -2
- package/src/integrations/mistral/types.ts +6 -4
- package/src/integrations/mongodb/README.md +131 -86
- package/src/integrations/mongodb/client.ts +12 -10
- package/src/integrations/mongodb/index.ts +2 -2
- package/src/integrations/mongodb/types.ts +17 -16
- package/src/integrations/mssql/README.md +26 -21
- package/src/integrations/mssql/client.ts +18 -15
- package/src/integrations/mssql/index.ts +2 -2
- package/src/integrations/mssql/types.ts +9 -4
- package/src/integrations/mysql/README.md +27 -22
- package/src/integrations/mysql/client.ts +18 -15
- package/src/integrations/mysql/index.ts +2 -2
- package/src/integrations/mysql/types.ts +9 -4
- package/src/integrations/notion/README.md +31 -28
- package/src/integrations/notion/client.ts +5 -3
- package/src/integrations/notion/index.ts +2 -2
- package/src/integrations/notion/types.ts +8 -6
- package/src/integrations/openai_v2/README.md +40 -39
- package/src/integrations/openai_v2/client.ts +5 -3
- package/src/integrations/openai_v2/index.ts +2 -2
- package/src/integrations/openai_v2/types.ts +12 -5
- package/src/integrations/oracledb/README.md +26 -21
- package/src/integrations/oracledb/client.ts +21 -16
- package/src/integrations/oracledb/index.ts +2 -2
- package/src/integrations/oracledb/types.ts +9 -4
- package/src/integrations/pagerduty/README.md +48 -41
- package/src/integrations/pagerduty/client.ts +5 -3
- package/src/integrations/pagerduty/index.ts +2 -2
- package/src/integrations/pagerduty/types.ts +6 -4
- package/src/integrations/perplexity/README.md +31 -32
- package/src/integrations/perplexity/client.ts +5 -3
- package/src/integrations/perplexity/index.ts +2 -2
- package/src/integrations/perplexity/types.ts +6 -4
- package/src/integrations/postgres/README.md +30 -27
- package/src/integrations/postgres/client.ts +27 -18
- package/src/integrations/postgres/index.ts +2 -2
- package/src/integrations/postgres/types.ts +13 -8
- package/src/integrations/python/README.md +86 -67
- package/src/integrations/python/client.test.ts +104 -86
- package/src/integrations/python/client.ts +27 -23
- package/src/integrations/python/index.ts +2 -2
- package/src/integrations/python/types.ts +6 -6
- package/src/integrations/redis/README.md +48 -35
- package/src/integrations/redis/client.ts +32 -28
- package/src/integrations/redis/index.ts +2 -2
- package/src/integrations/redis/types.ts +4 -3
- package/src/integrations/redshift/README.md +26 -21
- package/src/integrations/redshift/client.ts +21 -16
- package/src/integrations/redshift/index.ts +2 -2
- package/src/integrations/redshift/types.ts +9 -4
- package/src/integrations/registry.test.ts +14 -10
- package/src/integrations/registry.ts +225 -154
- package/src/integrations/s3/README.md +23 -18
- package/src/integrations/s3/client.ts +26 -27
- package/src/integrations/s3/index.ts +2 -2
- package/src/integrations/s3/types.ts +11 -15
- package/src/integrations/salesforce/README.md +35 -30
- package/src/integrations/salesforce/client.ts +27 -30
- package/src/integrations/salesforce/index.ts +6 -2
- package/src/integrations/salesforce/types.ts +23 -18
- package/src/integrations/segment/README.md +23 -22
- package/src/integrations/segment/client.ts +5 -3
- package/src/integrations/segment/index.ts +2 -2
- package/src/integrations/segment/types.ts +6 -4
- package/src/integrations/sendgrid/README.md +27 -24
- package/src/integrations/sendgrid/client.ts +5 -3
- package/src/integrations/sendgrid/index.ts +2 -2
- package/src/integrations/sendgrid/types.ts +6 -4
- package/src/integrations/slack/README.md +29 -28
- package/src/integrations/slack/client.ts +3 -1
- package/src/integrations/slack/index.ts +2 -2
- package/src/integrations/slack/types.ts +6 -12
- package/src/integrations/smtp/client.ts +11 -11
- package/src/integrations/smtp/index.ts +2 -2
- package/src/integrations/smtp/types.ts +1 -1
- package/src/integrations/snowflake/README.md +35 -37
- package/src/integrations/snowflake/client.ts +2 -1
- package/src/integrations/snowflake/index.ts +2 -2
- package/src/integrations/snowflake/types.ts +9 -4
- package/src/integrations/snowflakecortex/client.ts +5 -3
- package/src/integrations/snowflakecortex/index.ts +2 -2
- package/src/integrations/snowflakecortex/types.ts +9 -3
- package/src/integrations/snowflakepostgres/client.ts +2 -2
- package/src/integrations/snowflakepostgres/index.ts +2 -2
- package/src/integrations/snowflakepostgres/types.ts +7 -3
- package/src/integrations/stabilityai/README.md +34 -39
- package/src/integrations/stabilityai/client.ts +5 -3
- package/src/integrations/stabilityai/index.ts +2 -2
- package/src/integrations/stabilityai/types.ts +6 -4
- package/src/integrations/stripe/README.md +34 -33
- package/src/integrations/stripe/client.ts +5 -3
- package/src/integrations/stripe/index.ts +2 -2
- package/src/integrations/stripe/types.ts +8 -6
- package/src/integrations/superblocks-ocr/README.md +35 -30
- package/src/integrations/superblocks-ocr/client.ts +3 -4
- package/src/integrations/superblocks-ocr/index.ts +2 -2
- package/src/integrations/superblocks-ocr/types.ts +6 -4
- package/src/integrations/twilio/README.md +26 -32
- package/src/integrations/twilio/client.ts +5 -3
- package/src/integrations/twilio/index.ts +2 -2
- package/src/integrations/twilio/types.ts +6 -4
- package/src/integrations/types.ts +1 -1
- package/src/integrations/utils.ts +5 -5
- package/src/integrations/zendesk/README.md +29 -28
- package/src/integrations/zendesk/client.ts +5 -3
- package/src/integrations/zendesk/index.ts +2 -2
- package/src/integrations/zendesk/types.ts +6 -4
- package/src/integrations/zoom/README.md +40 -41
- package/src/integrations/zoom/client.ts +5 -3
- package/src/integrations/zoom/index.ts +2 -2
- package/src/integrations/zoom/types.ts +5 -4
- package/src/runtime/context.ts +25 -10
- package/src/runtime/errors.ts +17 -13
- package/src/runtime/execute.ts +10 -11
- package/src/runtime/executor.ts +9 -9
- package/src/runtime/index.ts +9 -6
- package/src/runtime/logger.ts +11 -7
- package/src/runtime/streaming-context.ts +23 -9
- package/src/runtime/streaming-executor.ts +15 -9
- package/src/types.ts +23 -6
|
@@ -4,8 +4,8 @@ Create tickets, manage users, and interact with Zendesk's customer support platf
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| ----------------------------- | --------------------------------------------------- |
|
|
9
9
|
| `apiRequest(options, schema)` | Make any Zendesk API request with schema validation |
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,7 +13,7 @@ Create tickets, manage users, and interact with Zendesk's customer support platf
|
|
|
13
13
|
### Create a Ticket
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
16
|
+
import { api, z, zendesk } from "@superblocksteam/sdk-api";
|
|
17
17
|
|
|
18
18
|
// Integration ID from the integrations panel
|
|
19
19
|
const PROD_ZENDESK = "a1b2c3d4-5678-90ab-cdef-zendesk00001";
|
|
@@ -37,6 +37,9 @@ const CreateTicketResponseSchema = z.object({
|
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
export default api({
|
|
40
|
+
integrations: {
|
|
41
|
+
zendesk: zendesk(PROD_ZENDESK),
|
|
42
|
+
},
|
|
40
43
|
name: "ZendeskExample",
|
|
41
44
|
input: z.object({
|
|
42
45
|
subject: z.string(),
|
|
@@ -47,9 +50,7 @@ export default api({
|
|
|
47
50
|
ticketId: z.number(),
|
|
48
51
|
}),
|
|
49
52
|
async run(ctx, { subject, description, requesterEmail }) {
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
const result = await zendesk.apiRequest(
|
|
53
|
+
const result = await ctx.integrations.zendesk.apiRequest(
|
|
53
54
|
{
|
|
54
55
|
method: "POST",
|
|
55
56
|
path: "/api/v2/tickets.json",
|
|
@@ -63,7 +64,7 @@ export default api({
|
|
|
63
64
|
},
|
|
64
65
|
},
|
|
65
66
|
},
|
|
66
|
-
{ response: CreateTicketResponseSchema }
|
|
67
|
+
{ response: CreateTicketResponseSchema },
|
|
67
68
|
);
|
|
68
69
|
|
|
69
70
|
return { ticketId: result.ticket.id };
|
|
@@ -78,12 +79,12 @@ const GetTicketResponseSchema = z.object({
|
|
|
78
79
|
ticket: TicketSchema,
|
|
79
80
|
});
|
|
80
81
|
|
|
81
|
-
const result = await zendesk.apiRequest(
|
|
82
|
+
const result = await ctx.integrations.zendesk.apiRequest(
|
|
82
83
|
{
|
|
83
84
|
method: "GET",
|
|
84
85
|
path: `/api/v2/tickets/${ticketId}.json`,
|
|
85
86
|
},
|
|
86
|
-
{ response: GetTicketResponseSchema }
|
|
87
|
+
{ response: GetTicketResponseSchema },
|
|
87
88
|
);
|
|
88
89
|
|
|
89
90
|
console.log(`Ticket #${result.ticket.id}: ${result.ticket.subject}`);
|
|
@@ -99,17 +100,17 @@ const SearchResponseSchema = z.object({
|
|
|
99
100
|
previous_page: z.string().nullable(),
|
|
100
101
|
});
|
|
101
102
|
|
|
102
|
-
const result = await zendesk.apiRequest(
|
|
103
|
+
const result = await ctx.integrations.zendesk.apiRequest(
|
|
103
104
|
{
|
|
104
105
|
method: "GET",
|
|
105
106
|
path: "/api/v2/search.json",
|
|
106
107
|
params: {
|
|
107
|
-
query:
|
|
108
|
+
query: "type:ticket status:open priority:high",
|
|
108
109
|
sort_by: "created_at",
|
|
109
110
|
sort_order: "desc",
|
|
110
111
|
},
|
|
111
112
|
},
|
|
112
|
-
{ response: SearchResponseSchema }
|
|
113
|
+
{ response: SearchResponseSchema },
|
|
113
114
|
);
|
|
114
115
|
|
|
115
116
|
result.results.forEach((ticket) => {
|
|
@@ -120,7 +121,7 @@ result.results.forEach((ticket) => {
|
|
|
120
121
|
### Update a Ticket
|
|
121
122
|
|
|
122
123
|
```typescript
|
|
123
|
-
await zendesk.apiRequest(
|
|
124
|
+
await ctx.integrations.zendesk.apiRequest(
|
|
124
125
|
{
|
|
125
126
|
method: "PUT",
|
|
126
127
|
path: `/api/v2/tickets/${ticketId}.json`,
|
|
@@ -136,14 +137,14 @@ await zendesk.apiRequest(
|
|
|
136
137
|
},
|
|
137
138
|
},
|
|
138
139
|
},
|
|
139
|
-
{ response: GetTicketResponseSchema }
|
|
140
|
+
{ response: GetTicketResponseSchema },
|
|
140
141
|
);
|
|
141
142
|
```
|
|
142
143
|
|
|
143
144
|
### Add a Comment
|
|
144
145
|
|
|
145
146
|
```typescript
|
|
146
|
-
await zendesk.apiRequest(
|
|
147
|
+
await ctx.integrations.zendesk.apiRequest(
|
|
147
148
|
{
|
|
148
149
|
method: "PUT",
|
|
149
150
|
path: `/api/v2/tickets/${ticketId}.json`,
|
|
@@ -156,7 +157,7 @@ await zendesk.apiRequest(
|
|
|
156
157
|
},
|
|
157
158
|
},
|
|
158
159
|
},
|
|
159
|
-
{ response: GetTicketResponseSchema }
|
|
160
|
+
{ response: GetTicketResponseSchema },
|
|
160
161
|
);
|
|
161
162
|
```
|
|
162
163
|
|
|
@@ -177,7 +178,7 @@ const CreateUserResponseSchema = z.object({
|
|
|
177
178
|
user: UserSchema,
|
|
178
179
|
});
|
|
179
180
|
|
|
180
|
-
const result = await zendesk.apiRequest(
|
|
181
|
+
const result = await ctx.integrations.zendesk.apiRequest(
|
|
181
182
|
{
|
|
182
183
|
method: "POST",
|
|
183
184
|
path: "/api/v2/users.json",
|
|
@@ -190,7 +191,7 @@ const result = await zendesk.apiRequest(
|
|
|
190
191
|
},
|
|
191
192
|
},
|
|
192
193
|
},
|
|
193
|
-
{ response: CreateUserResponseSchema }
|
|
194
|
+
{ response: CreateUserResponseSchema },
|
|
194
195
|
);
|
|
195
196
|
```
|
|
196
197
|
|
|
@@ -203,7 +204,7 @@ const ListTicketsResponseSchema = z.object({
|
|
|
203
204
|
count: z.number(),
|
|
204
205
|
});
|
|
205
206
|
|
|
206
|
-
const result = await zendesk.apiRequest(
|
|
207
|
+
const result = await ctx.integrations.zendesk.apiRequest(
|
|
207
208
|
{
|
|
208
209
|
method: "GET",
|
|
209
210
|
path: `/api/v2/users/${userId}/tickets/requested.json`,
|
|
@@ -212,7 +213,7 @@ const result = await zendesk.apiRequest(
|
|
|
212
213
|
sort_order: "desc",
|
|
213
214
|
},
|
|
214
215
|
},
|
|
215
|
-
{ response: ListTicketsResponseSchema }
|
|
216
|
+
{ response: ListTicketsResponseSchema },
|
|
216
217
|
);
|
|
217
218
|
```
|
|
218
219
|
|
|
@@ -232,12 +233,12 @@ const ListCommentsResponseSchema = z.object({
|
|
|
232
233
|
next_page: z.string().nullable(),
|
|
233
234
|
});
|
|
234
235
|
|
|
235
|
-
const result = await zendesk.apiRequest(
|
|
236
|
+
const result = await ctx.integrations.zendesk.apiRequest(
|
|
236
237
|
{
|
|
237
238
|
method: "GET",
|
|
238
239
|
path: `/api/v2/tickets/${ticketId}/comments.json`,
|
|
239
240
|
},
|
|
240
|
-
{ response: ListCommentsResponseSchema }
|
|
241
|
+
{ response: ListCommentsResponseSchema },
|
|
241
242
|
);
|
|
242
243
|
|
|
243
244
|
result.comments.forEach((comment) => {
|
|
@@ -256,7 +257,7 @@ const BulkUpdateResponseSchema = z.object({
|
|
|
256
257
|
}),
|
|
257
258
|
});
|
|
258
259
|
|
|
259
|
-
const result = await zendesk.apiRequest(
|
|
260
|
+
const result = await ctx.integrations.zendesk.apiRequest(
|
|
260
261
|
{
|
|
261
262
|
method: "PUT",
|
|
262
263
|
path: "/api/v2/tickets/update_many.json",
|
|
@@ -270,7 +271,7 @@ const result = await zendesk.apiRequest(
|
|
|
270
271
|
},
|
|
271
272
|
},
|
|
272
273
|
},
|
|
273
|
-
{ response: BulkUpdateResponseSchema }
|
|
274
|
+
{ response: BulkUpdateResponseSchema },
|
|
274
275
|
);
|
|
275
276
|
```
|
|
276
277
|
|
|
@@ -284,7 +285,7 @@ await zendesk.createTicket({ ... });
|
|
|
284
285
|
await zendesk.searchTickets({ ... });
|
|
285
286
|
|
|
286
287
|
// CORRECT - Use apiRequest
|
|
287
|
-
await zendesk.apiRequest(
|
|
288
|
+
await ctx.integrations.zendesk.apiRequest(
|
|
288
289
|
{ method: "POST", path: "/api/v2/tickets.json", body: { ticket: { ... } } },
|
|
289
290
|
{ response: CreateTicketResponseSchema }
|
|
290
291
|
);
|
|
@@ -389,13 +390,13 @@ async function getAllTickets(zendesk: ZendeskClient) {
|
|
|
389
390
|
let page = 1;
|
|
390
391
|
|
|
391
392
|
while (true) {
|
|
392
|
-
const result = await zendesk.apiRequest(
|
|
393
|
+
const result = await ctx.integrations.zendesk.apiRequest(
|
|
393
394
|
{
|
|
394
395
|
method: "GET",
|
|
395
396
|
path: "/api/v2/tickets.json",
|
|
396
397
|
params: { page, per_page: 100 },
|
|
397
398
|
},
|
|
398
|
-
{ response: ListTicketsResponseSchema }
|
|
399
|
+
{ response: ListTicketsResponseSchema },
|
|
399
400
|
);
|
|
400
401
|
|
|
401
402
|
allTickets.push(...result.tickets);
|
|
@@ -422,7 +423,7 @@ Zendesk has rate limits (varies by plan):
|
|
|
422
423
|
import { RestApiValidationError } from "@superblocksteam/sdk-api";
|
|
423
424
|
|
|
424
425
|
try {
|
|
425
|
-
const result = await zendesk.apiRequest(
|
|
426
|
+
const result = await ctx.integrations.zendesk.apiRequest(
|
|
426
427
|
{ method: "POST", path: "/api/v2/tickets.json", body: { ... } },
|
|
427
428
|
{ response: CreateTicketResponseSchema }
|
|
428
429
|
);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Zendesk integrations use the REST API Integration plugin under the hood.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { RestApiIntegrationClient } from
|
|
9
|
-
import type { ZendeskClient } from
|
|
8
|
+
import { RestApiIntegrationClient } from "../base/index.js";
|
|
9
|
+
import type { ZendeskClient } from "./types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Internal implementation of ZendeskClient.
|
|
@@ -16,6 +16,8 @@ import type { ZendeskClient } from './types.js';
|
|
|
16
16
|
* Zendesk API calls. At runtime, the orchestrator handles authentication
|
|
17
17
|
* and API request execution.
|
|
18
18
|
*/
|
|
19
|
-
export class ZendeskClientImpl
|
|
19
|
+
export class ZendeskClientImpl
|
|
20
|
+
extends RestApiIntegrationClient
|
|
21
|
+
implements ZendeskClient {
|
|
20
22
|
// Inherits: name, pluginId, config, executeQuery, apiRequest()
|
|
21
23
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ZendeskClientImpl } from
|
|
2
|
-
export type { ZendeskClient } from
|
|
1
|
+
export { ZendeskClientImpl } from "./client.js";
|
|
2
|
+
export type { ZendeskClient } from "./types.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Zendesk 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
|
* Zendesk 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: { zendesk: zendesk(INTEGRATION_ID) }
|
|
17
|
+
* // In run(), access via ctx.integrations.zendesk
|
|
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 ZendeskClient
|
|
33
|
+
export interface ZendeskClient
|
|
34
|
+
extends BaseIntegrationClient, SupportsApiRequest {
|
|
33
35
|
// apiRequest() method inherited from SupportsApiRequest
|
|
34
36
|
}
|
|
@@ -4,8 +4,8 @@ Create meetings, manage users, and interact with Zoom's video conferencing platf
|
|
|
4
4
|
|
|
5
5
|
## Methods
|
|
6
6
|
|
|
7
|
-
| Method
|
|
8
|
-
|
|
|
7
|
+
| Method | Description |
|
|
8
|
+
| ----------------------------- | ------------------------------------------------ |
|
|
9
9
|
| `apiRequest(options, schema)` | Make any Zoom API request with schema validation |
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,7 +13,7 @@ Create meetings, manage users, and interact with Zoom's video conferencing platf
|
|
|
13
13
|
### Create a Meeting
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { api, z } from "@superblocksteam/sdk-api";
|
|
16
|
+
import { api, z, zoom } from "@superblocksteam/sdk-api";
|
|
17
17
|
|
|
18
18
|
// Integration ID from the integrations panel
|
|
19
19
|
const PROD_ZOOM = "a1b2c3d4-5678-90ab-cdef-zoom00000001";
|
|
@@ -34,6 +34,9 @@ const MeetingSchema = z.object({
|
|
|
34
34
|
|
|
35
35
|
export default api({
|
|
36
36
|
name: "ZoomExample",
|
|
37
|
+
integrations: {
|
|
38
|
+
zoom: zoom(PROD_ZOOM),
|
|
39
|
+
},
|
|
37
40
|
input: z.object({
|
|
38
41
|
topic: z.string(),
|
|
39
42
|
startTime: z.string(),
|
|
@@ -44,9 +47,7 @@ export default api({
|
|
|
44
47
|
joinUrl: z.string(),
|
|
45
48
|
}),
|
|
46
49
|
async run(ctx, { topic, startTime, duration }) {
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
const result = await zoom.apiRequest(
|
|
50
|
+
const result = await ctx.integrations.zoom.apiRequest(
|
|
50
51
|
{
|
|
51
52
|
method: "POST",
|
|
52
53
|
path: "/v2/users/me/meetings",
|
|
@@ -65,7 +66,7 @@ export default api({
|
|
|
65
66
|
},
|
|
66
67
|
},
|
|
67
68
|
},
|
|
68
|
-
{ response: MeetingSchema }
|
|
69
|
+
{ response: MeetingSchema },
|
|
69
70
|
);
|
|
70
71
|
|
|
71
72
|
return { meetingId: result.id, joinUrl: result.join_url };
|
|
@@ -91,11 +92,11 @@ const ListMeetingsResponseSchema = z.object({
|
|
|
91
92
|
duration: z.number(),
|
|
92
93
|
timezone: z.string(),
|
|
93
94
|
join_url: z.string(),
|
|
94
|
-
})
|
|
95
|
+
}),
|
|
95
96
|
),
|
|
96
97
|
});
|
|
97
98
|
|
|
98
|
-
const result = await zoom.apiRequest(
|
|
99
|
+
const result = await ctx.integrations.zoom.apiRequest(
|
|
99
100
|
{
|
|
100
101
|
method: "GET",
|
|
101
102
|
path: "/v2/users/me/meetings",
|
|
@@ -104,7 +105,7 @@ const result = await zoom.apiRequest(
|
|
|
104
105
|
page_size: 30,
|
|
105
106
|
},
|
|
106
107
|
},
|
|
107
|
-
{ response: ListMeetingsResponseSchema }
|
|
108
|
+
{ response: ListMeetingsResponseSchema },
|
|
108
109
|
);
|
|
109
110
|
|
|
110
111
|
result.meetings.forEach((meeting) => {
|
|
@@ -133,19 +134,19 @@ const MeetingDetailSchema = z.object({
|
|
|
133
134
|
}),
|
|
134
135
|
});
|
|
135
136
|
|
|
136
|
-
const result = await zoom.apiRequest(
|
|
137
|
+
const result = await ctx.integrations.zoom.apiRequest(
|
|
137
138
|
{
|
|
138
139
|
method: "GET",
|
|
139
140
|
path: `/v2/meetings/${meetingId}`,
|
|
140
141
|
},
|
|
141
|
-
{ response: MeetingDetailSchema }
|
|
142
|
+
{ response: MeetingDetailSchema },
|
|
142
143
|
);
|
|
143
144
|
```
|
|
144
145
|
|
|
145
146
|
### Update a Meeting
|
|
146
147
|
|
|
147
148
|
```typescript
|
|
148
|
-
await zoom.apiRequest(
|
|
149
|
+
await ctx.integrations.zoom.apiRequest(
|
|
149
150
|
{
|
|
150
151
|
method: "PATCH",
|
|
151
152
|
path: `/v2/meetings/${meetingId}`,
|
|
@@ -157,14 +158,14 @@ await zoom.apiRequest(
|
|
|
157
158
|
},
|
|
158
159
|
},
|
|
159
160
|
},
|
|
160
|
-
{ response: z.object({}).optional() } // Returns 204 No Content
|
|
161
|
+
{ response: z.object({}).optional() }, // Returns 204 No Content
|
|
161
162
|
);
|
|
162
163
|
```
|
|
163
164
|
|
|
164
165
|
### Delete a Meeting
|
|
165
166
|
|
|
166
167
|
```typescript
|
|
167
|
-
await zoom.apiRequest(
|
|
168
|
+
await ctx.integrations.zoom.apiRequest(
|
|
168
169
|
{
|
|
169
170
|
method: "DELETE",
|
|
170
171
|
path: `/v2/meetings/${meetingId}`,
|
|
@@ -172,7 +173,7 @@ await zoom.apiRequest(
|
|
|
172
173
|
schedule_for_reminder: true,
|
|
173
174
|
},
|
|
174
175
|
},
|
|
175
|
-
{ response: z.object({}).optional() }
|
|
176
|
+
{ response: z.object({}).optional() },
|
|
176
177
|
);
|
|
177
178
|
```
|
|
178
179
|
|
|
@@ -192,7 +193,7 @@ const WebinarSchema = z.object({
|
|
|
192
193
|
registration_url: z.string().optional(),
|
|
193
194
|
});
|
|
194
195
|
|
|
195
|
-
const result = await zoom.apiRequest(
|
|
196
|
+
const result = await ctx.integrations.zoom.apiRequest(
|
|
196
197
|
{
|
|
197
198
|
method: "POST",
|
|
198
199
|
path: "/v2/users/me/webinars",
|
|
@@ -211,7 +212,7 @@ const result = await zoom.apiRequest(
|
|
|
211
212
|
},
|
|
212
213
|
},
|
|
213
214
|
},
|
|
214
|
-
{ response: WebinarSchema }
|
|
215
|
+
{ response: WebinarSchema },
|
|
215
216
|
);
|
|
216
217
|
```
|
|
217
218
|
|
|
@@ -230,12 +231,12 @@ const UserSchema = z.object({
|
|
|
230
231
|
dept: z.string().optional(),
|
|
231
232
|
});
|
|
232
233
|
|
|
233
|
-
const result = await zoom.apiRequest(
|
|
234
|
+
const result = await ctx.integrations.zoom.apiRequest(
|
|
234
235
|
{
|
|
235
236
|
method: "GET",
|
|
236
237
|
path: "/v2/users/me",
|
|
237
238
|
},
|
|
238
|
-
{ response: UserSchema }
|
|
239
|
+
{ response: UserSchema },
|
|
239
240
|
);
|
|
240
241
|
|
|
241
242
|
console.log(`User: ${result.first_name} ${result.last_name}`);
|
|
@@ -257,11 +258,11 @@ const ListUsersResponseSchema = z.object({
|
|
|
257
258
|
email: z.string(),
|
|
258
259
|
type: z.number(),
|
|
259
260
|
status: z.string(),
|
|
260
|
-
})
|
|
261
|
+
}),
|
|
261
262
|
),
|
|
262
263
|
});
|
|
263
264
|
|
|
264
|
-
const result = await zoom.apiRequest(
|
|
265
|
+
const result = await ctx.integrations.zoom.apiRequest(
|
|
265
266
|
{
|
|
266
267
|
method: "GET",
|
|
267
268
|
path: "/v2/users",
|
|
@@ -270,7 +271,7 @@ const result = await zoom.apiRequest(
|
|
|
270
271
|
page_size: 30,
|
|
271
272
|
},
|
|
272
273
|
},
|
|
273
|
-
{ response: ListUsersResponseSchema }
|
|
274
|
+
{ response: ListUsersResponseSchema },
|
|
274
275
|
);
|
|
275
276
|
```
|
|
276
277
|
|
|
@@ -285,7 +286,7 @@ const RegistrantSchema = z.object({
|
|
|
285
286
|
start_time: z.string(),
|
|
286
287
|
});
|
|
287
288
|
|
|
288
|
-
const result = await zoom.apiRequest(
|
|
289
|
+
const result = await ctx.integrations.zoom.apiRequest(
|
|
289
290
|
{
|
|
290
291
|
method: "POST",
|
|
291
292
|
path: `/v2/meetings/${meetingId}/registrants`,
|
|
@@ -293,12 +294,10 @@ const result = await zoom.apiRequest(
|
|
|
293
294
|
email: "attendee@example.com",
|
|
294
295
|
first_name: "John",
|
|
295
296
|
last_name: "Doe",
|
|
296
|
-
custom_questions: [
|
|
297
|
-
{ title: "Company", value: "Acme Corp" },
|
|
298
|
-
],
|
|
297
|
+
custom_questions: [{ title: "Company", value: "Acme Corp" }],
|
|
299
298
|
},
|
|
300
299
|
},
|
|
301
|
-
{ response: RegistrantSchema }
|
|
300
|
+
{ response: RegistrantSchema },
|
|
302
301
|
);
|
|
303
302
|
```
|
|
304
303
|
|
|
@@ -312,7 +311,7 @@ await zoom.createMeeting({ ... });
|
|
|
312
311
|
await zoom.listMeetings();
|
|
313
312
|
|
|
314
313
|
// CORRECT - Use apiRequest
|
|
315
|
-
await zoom.apiRequest(
|
|
314
|
+
await ctx.integrations.zoom.apiRequest(
|
|
316
315
|
{ method: "POST", path: "/v2/users/me/meetings", body: { ... } },
|
|
317
316
|
{ response: MeetingSchema }
|
|
318
317
|
);
|
|
@@ -323,17 +322,17 @@ await zoom.apiRequest(
|
|
|
323
322
|
```typescript
|
|
324
323
|
// Meeting types
|
|
325
324
|
const MEETING_TYPES = {
|
|
326
|
-
INSTANT: 1,
|
|
327
|
-
SCHEDULED: 2,
|
|
328
|
-
RECURRING_NO_TIME: 3,
|
|
329
|
-
RECURRING_FIXED: 8,
|
|
325
|
+
INSTANT: 1, // Instant meeting
|
|
326
|
+
SCHEDULED: 2, // Scheduled meeting
|
|
327
|
+
RECURRING_NO_TIME: 3, // Recurring with no fixed time
|
|
328
|
+
RECURRING_FIXED: 8, // Recurring with fixed time
|
|
330
329
|
};
|
|
331
330
|
|
|
332
331
|
// Webinar types
|
|
333
332
|
const WEBINAR_TYPES = {
|
|
334
|
-
WEBINAR: 5,
|
|
335
|
-
RECURRING_NO_TIME: 6,
|
|
336
|
-
RECURRING_FIXED: 9,
|
|
333
|
+
WEBINAR: 5, // Scheduled webinar
|
|
334
|
+
RECURRING_NO_TIME: 6, // Recurring webinar no fixed time
|
|
335
|
+
RECURRING_FIXED: 9, // Recurring webinar fixed time
|
|
337
336
|
};
|
|
338
337
|
```
|
|
339
338
|
|
|
@@ -355,7 +354,7 @@ Zoom uses ISO 8601 format:
|
|
|
355
354
|
|
|
356
355
|
```typescript
|
|
357
356
|
const body = {
|
|
358
|
-
start_time: "2024-12-15T14:00:00Z",
|
|
357
|
+
start_time: "2024-12-15T14:00:00Z", // UTC
|
|
359
358
|
// Or with timezone
|
|
360
359
|
start_time: "2024-12-15T14:00:00",
|
|
361
360
|
timezone: "America/New_York",
|
|
@@ -368,7 +367,7 @@ Many operations return empty responses:
|
|
|
368
367
|
|
|
369
368
|
```typescript
|
|
370
369
|
// PATCH and DELETE often return 204 No Content
|
|
371
|
-
await zoom.apiRequest(
|
|
370
|
+
await ctx.integrations.zoom.apiRequest(
|
|
372
371
|
{ method: "PATCH", path: `/v2/meetings/${id}`, body: { ... } },
|
|
373
372
|
{ response: z.object({}).optional() } // Handle empty response
|
|
374
373
|
);
|
|
@@ -409,7 +408,7 @@ async function getAllMeetings(zoom: ZoomClient) {
|
|
|
409
408
|
let pageNumber = 1;
|
|
410
409
|
|
|
411
410
|
while (true) {
|
|
412
|
-
const result = await zoom.apiRequest(
|
|
411
|
+
const result = await ctx.integrations.zoom.apiRequest(
|
|
413
412
|
{
|
|
414
413
|
method: "GET",
|
|
415
414
|
path: "/v2/users/me/meetings",
|
|
@@ -418,7 +417,7 @@ async function getAllMeetings(zoom: ZoomClient) {
|
|
|
418
417
|
page_number: pageNumber,
|
|
419
418
|
},
|
|
420
419
|
},
|
|
421
|
-
{ response: ListMeetingsResponseSchema }
|
|
420
|
+
{ response: ListMeetingsResponseSchema },
|
|
422
421
|
);
|
|
423
422
|
|
|
424
423
|
allMeetings.push(...result.meetings);
|
|
@@ -437,7 +436,7 @@ async function getAllMeetings(zoom: ZoomClient) {
|
|
|
437
436
|
import { RestApiValidationError } from "@superblocksteam/sdk-api";
|
|
438
437
|
|
|
439
438
|
try {
|
|
440
|
-
const result = await zoom.apiRequest(
|
|
439
|
+
const result = await ctx.integrations.zoom.apiRequest(
|
|
441
440
|
{ method: "POST", path: "/v2/users/me/meetings", body: { ... } },
|
|
442
441
|
{ response: MeetingSchema }
|
|
443
442
|
);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Zoom integrations use the REST API Integration plugin under the hood.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { RestApiIntegrationClient } from
|
|
9
|
-
import type { ZoomClient } from
|
|
8
|
+
import { RestApiIntegrationClient } from "../base/index.js";
|
|
9
|
+
import type { ZoomClient } from "./types.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Internal implementation of ZoomClient.
|
|
@@ -16,6 +16,8 @@ import type { ZoomClient } from './types.js';
|
|
|
16
16
|
* Zoom API calls. At runtime, the orchestrator handles authentication
|
|
17
17
|
* and API request execution.
|
|
18
18
|
*/
|
|
19
|
-
export class ZoomClientImpl
|
|
19
|
+
export class ZoomClientImpl
|
|
20
|
+
extends RestApiIntegrationClient
|
|
21
|
+
implements ZoomClient {
|
|
20
22
|
// Inherits: name, pluginId, config, executeQuery, apiRequest()
|
|
21
23
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ZoomClientImpl } from
|
|
2
|
-
export type { ZoomClient } from
|
|
1
|
+
export { ZoomClientImpl } from "./client.js";
|
|
2
|
+
export type { ZoomClient } from "./types.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Zoom 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
|
* Zoom client for API interactions.
|
|
@@ -13,14 +13,15 @@ import type { SupportsApiRequest } from '../base/index.js';
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```typescript
|
|
16
|
-
*
|
|
16
|
+
* // Declare in api(): integrations: { zoom: zoom(INTEGRATION_ID) }
|
|
17
|
+
* // In run(), access via ctx.integrations.zoom
|
|
17
18
|
*
|
|
18
19
|
* // Make API requests
|
|
19
20
|
* const ResponseSchema = z.object({
|
|
20
21
|
* // Define your response schema
|
|
21
22
|
* });
|
|
22
23
|
*
|
|
23
|
-
* const result = await zoom.apiRequest(
|
|
24
|
+
* const result = await ctx.integrations.zoom.apiRequest(
|
|
24
25
|
* {
|
|
25
26
|
* method: 'GET',
|
|
26
27
|
* path: '/users',
|
package/src/runtime/context.ts
CHANGED
|
@@ -5,11 +5,19 @@
|
|
|
5
5
|
* providing access to integrations, logging, and environment.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
import type {
|
|
9
|
+
ApiContext,
|
|
10
|
+
ApiUser,
|
|
11
|
+
Logger,
|
|
12
|
+
AnyIntegrationRef,
|
|
13
|
+
} from "../types.js";
|
|
14
|
+
import type {
|
|
15
|
+
IntegrationConfig,
|
|
16
|
+
IntegrationClientImpl,
|
|
17
|
+
} from "../integrations/types.js";
|
|
18
|
+
import type { IntegrationDeclaration } from "../integrations/declarations.js";
|
|
19
|
+
import { createClient, type QueryExecutor } from "../integrations/registry.js";
|
|
20
|
+
import { createDefaultLogger } from "./logger.js";
|
|
13
21
|
|
|
14
22
|
/**
|
|
15
23
|
* Options for creating an API execution context.
|
|
@@ -35,7 +43,7 @@ export interface CreateContextOptions {
|
|
|
35
43
|
executeQuery: (
|
|
36
44
|
integrationId: string,
|
|
37
45
|
request: Record<string, unknown>,
|
|
38
|
-
bindings?: Record<string, unknown
|
|
46
|
+
bindings?: Record<string, unknown>,
|
|
39
47
|
) => Promise<unknown>;
|
|
40
48
|
|
|
41
49
|
/** Execution ID for logging correlation */
|
|
@@ -82,8 +90,15 @@ export interface CreateContextOptions {
|
|
|
82
90
|
export function createApiContext(
|
|
83
91
|
options: CreateContextOptions,
|
|
84
92
|
): ApiContext<Record<string, AnyIntegrationRef>> {
|
|
85
|
-
const {
|
|
86
|
-
|
|
93
|
+
const {
|
|
94
|
+
integrations,
|
|
95
|
+
integrationDeclarations,
|
|
96
|
+
executeQuery,
|
|
97
|
+
executionId,
|
|
98
|
+
env,
|
|
99
|
+
user,
|
|
100
|
+
logger,
|
|
101
|
+
} = options;
|
|
87
102
|
|
|
88
103
|
// Cache for created integration clients
|
|
89
104
|
const clientCache = new Map<string, IntegrationClientImpl>();
|
|
@@ -111,7 +126,7 @@ export function createApiContext(
|
|
|
111
126
|
// Create executor bound to this integration
|
|
112
127
|
const boundExecutor: QueryExecutor = (
|
|
113
128
|
request: Record<string, unknown>,
|
|
114
|
-
bindings?: Record<string, unknown
|
|
129
|
+
bindings?: Record<string, unknown>,
|
|
115
130
|
) => executeQuery(id, request, bindings);
|
|
116
131
|
|
|
117
132
|
// Create config for client - use pre-loaded config or create synthetic one
|
|
@@ -148,7 +163,7 @@ export function createApiContext(
|
|
|
148
163
|
return {
|
|
149
164
|
integrations: integrationsObject as ApiContext<
|
|
150
165
|
Record<string, AnyIntegrationRef>
|
|
151
|
-
>[
|
|
166
|
+
>["integrations"],
|
|
152
167
|
log,
|
|
153
168
|
env: Object.freeze({ ...env }),
|
|
154
169
|
user,
|