@superblocksteam/sdk-api 0.0.6 → 0.0.7
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 +351 -427
- package/dist/api/definition.d.ts +12 -7
- package/dist/api/definition.d.ts.map +1 -1
- package/dist/api/definition.js +19 -12
- package/dist/api/definition.js.map +1 -1
- package/dist/api/definition.test.js +39 -15
- package/dist/api/definition.test.js.map +1 -1
- package/dist/api/index.d.ts +0 -2
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +0 -2
- package/dist/api/index.js.map +1 -1
- package/dist/errors.d.ts +1 -45
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +1 -33
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +16 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -15
- package/dist/index.js.map +1 -1
- package/dist/integrations/anthropic/types.d.ts +3 -22
- package/dist/integrations/anthropic/types.d.ts.map +1 -1
- package/dist/integrations/athena/client.d.ts +1 -1
- package/dist/integrations/athena/client.d.ts.map +1 -1
- package/dist/integrations/athena/client.js.map +1 -1
- package/dist/integrations/athena/types.d.ts +2 -2
- package/dist/integrations/athena/types.d.ts.map +1 -1
- package/dist/integrations/base/graphql-integration-client.d.ts +8 -4
- package/dist/integrations/base/graphql-integration-client.d.ts.map +1 -1
- package/dist/integrations/base/graphql-integration-client.js +18 -5
- package/dist/integrations/base/graphql-integration-client.js.map +1 -1
- package/dist/integrations/base/index.d.ts +3 -2
- package/dist/integrations/base/index.d.ts.map +1 -1
- package/dist/integrations/base/index.js +1 -0
- package/dist/integrations/base/index.js.map +1 -1
- package/dist/integrations/base/rest-api-client-base.d.ts +48 -0
- package/dist/integrations/base/rest-api-client-base.d.ts.map +1 -0
- package/dist/integrations/base/rest-api-client-base.js +98 -0
- package/dist/integrations/base/rest-api-client-base.js.map +1 -0
- package/dist/integrations/base/rest-api-integration-client.d.ts +11 -65
- package/dist/integrations/base/rest-api-integration-client.d.ts.map +1 -1
- package/dist/integrations/base/rest-api-integration-client.js +11 -174
- package/dist/integrations/base/rest-api-integration-client.js.map +1 -1
- package/dist/integrations/base/types.d.ts +1 -67
- package/dist/integrations/base/types.d.ts.map +1 -1
- package/dist/integrations/bigquery/client.d.ts +1 -1
- package/dist/integrations/bigquery/client.d.ts.map +1 -1
- package/dist/integrations/bigquery/client.js.map +1 -1
- package/dist/integrations/bigquery/types.d.ts +3 -3
- package/dist/integrations/bigquery/types.d.ts.map +1 -1
- package/dist/integrations/box/types.d.ts +1 -1
- package/dist/integrations/cockroachdb/client.d.ts +1 -1
- package/dist/integrations/cockroachdb/client.d.ts.map +1 -1
- package/dist/integrations/cockroachdb/client.js.map +1 -1
- package/dist/integrations/cockroachdb/types.d.ts.map +1 -1
- package/dist/integrations/cosmosdb/client.d.ts +1 -1
- package/dist/integrations/cosmosdb/client.d.ts.map +1 -1
- package/dist/integrations/cosmosdb/client.js.map +1 -1
- package/dist/integrations/cosmosdb/client.test.js.map +1 -1
- package/dist/integrations/cosmosdb/types.d.ts.map +1 -1
- package/dist/integrations/databricks/client.d.ts +1 -1
- package/dist/integrations/databricks/client.d.ts.map +1 -1
- package/dist/integrations/databricks/client.js.map +1 -1
- package/dist/integrations/databricks/types.d.ts +3 -3
- package/dist/integrations/databricks/types.d.ts.map +1 -1
- package/dist/integrations/declarations.d.ts +36 -104
- package/dist/integrations/declarations.d.ts.map +1 -1
- package/dist/integrations/declarations.js +5 -68
- package/dist/integrations/declarations.js.map +1 -1
- package/dist/integrations/declarations.test.js.map +1 -1
- package/dist/integrations/documentation-resolver.test.d.ts +2 -0
- package/dist/integrations/documentation-resolver.test.d.ts.map +1 -0
- package/dist/integrations/documentation-resolver.test.js +608 -0
- package/dist/integrations/documentation-resolver.test.js.map +1 -0
- package/dist/integrations/documentation.d.ts +8 -0
- package/dist/integrations/documentation.d.ts.map +1 -0
- package/dist/integrations/documentation.js +277 -0
- package/dist/integrations/documentation.js.map +1 -0
- package/dist/integrations/documentation.test.d.ts +2 -0
- package/dist/integrations/documentation.test.d.ts.map +1 -0
- package/dist/integrations/documentation.test.js +81 -0
- package/dist/integrations/documentation.test.js.map +1 -0
- package/dist/integrations/dynamodb/client.d.ts +1 -1
- package/dist/integrations/dynamodb/client.d.ts.map +1 -1
- package/dist/integrations/dynamodb/client.js.map +1 -1
- package/dist/integrations/dynamodb/types.d.ts.map +1 -1
- package/dist/integrations/gcs/client.d.ts +1 -1
- package/dist/integrations/gcs/client.d.ts.map +1 -1
- package/dist/integrations/gcs/client.js.map +1 -1
- package/dist/integrations/gcs/types.d.ts.map +1 -1
- package/dist/integrations/googledrive/types.d.ts +1 -1
- package/dist/integrations/graphql/client.test.d.ts +15 -0
- package/dist/integrations/graphql/client.test.d.ts.map +1 -0
- package/dist/integrations/graphql/client.test.js +148 -0
- package/dist/integrations/graphql/client.test.js.map +1 -0
- package/dist/integrations/graphql/types.d.ts +22 -3
- package/dist/integrations/graphql/types.d.ts.map +1 -1
- package/dist/integrations/gsheets/client.d.ts +1 -1
- package/dist/integrations/gsheets/client.d.ts.map +1 -1
- package/dist/integrations/gsheets/client.js.map +1 -1
- package/dist/integrations/gsheets/types.d.ts.map +1 -1
- package/dist/integrations/index.d.ts +2 -12
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +2 -8
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/lakebase/client.d.ts +1 -1
- package/dist/integrations/lakebase/client.d.ts.map +1 -1
- package/dist/integrations/lakebase/client.js.map +1 -1
- package/dist/integrations/lakebase/types.d.ts +4 -4
- package/dist/integrations/lakebase/types.d.ts.map +1 -1
- package/dist/integrations/mariadb/client.d.ts +1 -1
- package/dist/integrations/mariadb/client.d.ts.map +1 -1
- package/dist/integrations/mariadb/client.js.map +1 -1
- package/dist/integrations/mariadb/types.d.ts +2 -2
- package/dist/integrations/mariadb/types.d.ts.map +1 -1
- package/dist/integrations/mongodb/client.d.ts +1 -1
- package/dist/integrations/mongodb/client.d.ts.map +1 -1
- package/dist/integrations/mongodb/client.js.map +1 -1
- package/dist/integrations/mongodb/types.d.ts.map +1 -1
- package/dist/integrations/mssql/client.d.ts +1 -1
- package/dist/integrations/mssql/client.d.ts.map +1 -1
- package/dist/integrations/mssql/client.js.map +1 -1
- package/dist/integrations/mssql/types.d.ts +2 -2
- package/dist/integrations/mssql/types.d.ts.map +1 -1
- package/dist/integrations/mysql/client.d.ts +1 -1
- package/dist/integrations/mysql/client.d.ts.map +1 -1
- package/dist/integrations/mysql/client.js.map +1 -1
- package/dist/integrations/mysql/types.d.ts +4 -4
- package/dist/integrations/mysql/types.d.ts.map +1 -1
- package/dist/integrations/openai_v2/types.d.ts +4 -22
- package/dist/integrations/openai_v2/types.d.ts.map +1 -1
- package/dist/integrations/oracledb/client.d.ts +1 -1
- package/dist/integrations/oracledb/client.d.ts.map +1 -1
- package/dist/integrations/oracledb/client.js.map +1 -1
- package/dist/integrations/oracledb/types.d.ts +2 -2
- package/dist/integrations/oracledb/types.d.ts.map +1 -1
- package/dist/integrations/postgres/client.d.ts +2 -2
- package/dist/integrations/postgres/client.d.ts.map +1 -1
- package/dist/integrations/postgres/client.js.map +1 -1
- package/dist/integrations/postgres/types.d.ts.map +1 -1
- package/dist/integrations/redshift/client.d.ts +1 -1
- package/dist/integrations/redshift/client.d.ts.map +1 -1
- package/dist/integrations/redshift/client.js.map +1 -1
- package/dist/integrations/redshift/types.d.ts.map +1 -1
- package/dist/integrations/registry.d.ts +6 -27
- package/dist/integrations/registry.d.ts.map +1 -1
- package/dist/integrations/registry.js +64 -88
- package/dist/integrations/registry.js.map +1 -1
- package/dist/integrations/registry.test.js +1 -3
- package/dist/integrations/registry.test.js.map +1 -1
- package/dist/integrations/restapiintegration/types.d.ts +2 -2
- package/dist/integrations/restapiintegration/types.d.ts.map +1 -1
- package/dist/integrations/s3/client.d.ts +1 -1
- package/dist/integrations/s3/client.d.ts.map +1 -1
- package/dist/integrations/s3/client.js.map +1 -1
- package/dist/integrations/s3/types.d.ts +3 -1
- package/dist/integrations/s3/types.d.ts.map +1 -1
- package/dist/integrations/salesforce/client.d.ts +1 -1
- package/dist/integrations/salesforce/client.d.ts.map +1 -1
- package/dist/integrations/salesforce/client.js.map +1 -1
- package/dist/integrations/salesforce/types.d.ts.map +1 -1
- package/dist/integrations/slack/client.d.ts +13 -9
- package/dist/integrations/slack/client.d.ts.map +1 -1
- package/dist/integrations/slack/client.js +60 -8
- package/dist/integrations/slack/client.js.map +1 -1
- package/dist/integrations/slack/client.test.d.ts +11 -0
- package/dist/integrations/slack/client.test.d.ts.map +1 -0
- package/dist/integrations/slack/client.test.js +368 -0
- package/dist/integrations/slack/client.test.js.map +1 -0
- package/dist/integrations/slack/index.d.ts +2 -1
- package/dist/integrations/slack/index.d.ts.map +1 -1
- package/dist/integrations/slack/index.js +1 -0
- package/dist/integrations/slack/index.js.map +1 -1
- package/dist/integrations/slack/types.d.ts +127 -28
- package/dist/integrations/slack/types.d.ts.map +1 -1
- package/dist/integrations/slack/types.js +27 -1
- package/dist/integrations/slack/types.js.map +1 -1
- package/dist/integrations/smtp/client.d.ts +1 -1
- package/dist/integrations/smtp/client.d.ts.map +1 -1
- package/dist/integrations/smtp/client.js.map +1 -1
- package/dist/integrations/snowflake/client.d.ts +3 -3
- package/dist/integrations/snowflake/client.d.ts.map +1 -1
- package/dist/integrations/snowflake/client.js +2 -2
- package/dist/integrations/snowflake/client.js.map +1 -1
- package/dist/integrations/snowflake/types.d.ts.map +1 -1
- package/dist/integrations/snowflakecortex/client.d.ts +1 -2
- package/dist/integrations/snowflakecortex/client.d.ts.map +1 -1
- package/dist/integrations/snowflakecortex/client.js +1 -2
- package/dist/integrations/snowflakecortex/client.js.map +1 -1
- package/dist/integrations/snowflakecortex/types.d.ts +3 -4
- package/dist/integrations/snowflakecortex/types.d.ts.map +1 -1
- package/dist/integrations/snowflakepostgres/client.d.ts +1 -1
- package/dist/integrations/snowflakepostgres/client.d.ts.map +1 -1
- package/dist/integrations/snowflakepostgres/client.js.map +1 -1
- package/dist/integrations/snowflakepostgres/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.map +1 -1
- package/dist/runtime/executor.d.ts +2 -2
- package/dist/runtime/index.d.ts +0 -3
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -6
- package/dist/runtime/index.js.map +1 -1
- package/dist/types.d.ts +15 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/api/definition.test.ts +41 -15
- package/src/api/definition.ts +20 -13
- package/src/api/index.ts +0 -4
- package/src/errors.ts +1 -49
- package/src/index.ts +20 -61
- package/src/integrations/airtable/docs.manifest.json +5 -0
- package/src/integrations/anthropic/README.md +5 -101
- package/src/integrations/anthropic/docs.manifest.json +5 -0
- package/src/integrations/anthropic/types.ts +3 -29
- package/src/integrations/asana/README.md +12 -12
- package/src/integrations/asana/docs.manifest.json +5 -0
- package/src/integrations/athena/README.md +4 -4
- package/src/integrations/athena/client.ts +5 -3
- package/src/integrations/athena/docs.manifest.json +5 -0
- package/src/integrations/athena/types.ts +3 -2
- package/src/integrations/base/graphql-integration-client.ts +27 -5
- package/src/integrations/base/index.ts +2 -3
- package/src/integrations/base/rest-api-client-base.ts +134 -0
- package/src/integrations/base/rest-api-integration-client.ts +15 -239
- package/src/integrations/base/types.ts +4 -74
- package/src/integrations/bigquery/README.md +28 -3
- package/src/integrations/bigquery/client.ts +5 -3
- package/src/integrations/bigquery/docs.manifest.json +5 -0
- package/src/integrations/bigquery/types.ts +4 -3
- package/src/integrations/bitbucket/README.md +19 -19
- package/src/integrations/bitbucket/docs.manifest.json +5 -0
- package/src/integrations/box/README.md +24 -24
- package/src/integrations/box/docs.manifest.json +5 -0
- package/src/integrations/box/types.ts +1 -1
- package/src/integrations/circleci/README.md +18 -18
- package/src/integrations/circleci/docs.manifest.json +5 -0
- package/src/integrations/cockroachdb/client.ts +5 -3
- package/src/integrations/cockroachdb/docs.manifest.json +5 -0
- package/src/integrations/cockroachdb/types.ts +1 -0
- package/src/integrations/cohere/README.md +11 -11
- package/src/integrations/cohere/docs.manifest.json +5 -0
- package/src/integrations/confluence/docs.manifest.json +5 -0
- package/src/integrations/cosmosdb/client.test.ts +2 -1
- package/src/integrations/cosmosdb/client.ts +5 -3
- package/src/integrations/cosmosdb/docs.manifest.json +5 -0
- package/src/integrations/cosmosdb/types.ts +1 -0
- package/src/integrations/databricks/README.md +29 -4
- package/src/integrations/databricks/client.ts +5 -3
- package/src/integrations/databricks/docs.manifest.json +5 -0
- package/src/integrations/databricks/types.ts +4 -3
- package/src/integrations/datadog/docs.manifest.json +5 -0
- package/src/integrations/declarations.test.ts +1 -0
- package/src/integrations/declarations.ts +36 -136
- package/src/integrations/documentation-resolver.test.ts +704 -0
- package/src/integrations/documentation.test.ts +120 -0
- package/src/integrations/documentation.ts +421 -0
- package/src/integrations/dropbox/docs.manifest.json +5 -0
- package/src/integrations/dynamodb/client.ts +3 -2
- package/src/integrations/dynamodb/docs.manifest.json +5 -0
- package/src/integrations/dynamodb/types.ts +1 -0
- package/src/integrations/elasticsearch/docs.manifest.json +5 -0
- package/src/integrations/fireworks/README.md +43 -17
- package/src/integrations/fireworks/docs.manifest.json +5 -0
- package/src/integrations/front/docs.manifest.json +5 -0
- package/src/integrations/gcs/client.ts +5 -3
- package/src/integrations/gcs/docs.manifest.json +5 -0
- package/src/integrations/gcs/types.ts +1 -0
- package/src/integrations/gemini/docs.manifest.json +5 -0
- package/src/integrations/github/docs.manifest.json +5 -0
- package/src/integrations/googleanalytics/README.md +2 -2
- package/src/integrations/googleanalytics/docs.manifest.json +5 -0
- package/src/integrations/googledrive/README.md +27 -24
- package/src/integrations/googledrive/docs.manifest.json +5 -0
- package/src/integrations/googledrive/types.ts +1 -1
- package/src/integrations/graphql/README.md +2 -2
- package/src/integrations/graphql/client.test.ts +220 -0
- package/src/integrations/graphql/docs.manifest.json +5 -0
- package/src/integrations/graphql/types.ts +23 -1
- package/src/integrations/groq/README.md +49 -42
- package/src/integrations/groq/docs.manifest.json +5 -0
- package/src/integrations/gsheets/README.md +2 -2
- package/src/integrations/gsheets/client.ts +5 -3
- package/src/integrations/gsheets/docs.manifest.json +5 -0
- package/src/integrations/gsheets/types.ts +1 -0
- package/src/integrations/hubspot/docs.manifest.json +5 -0
- package/src/integrations/index.ts +1 -52
- package/src/integrations/intercom/docs.manifest.json +5 -0
- package/src/integrations/jira/docs.manifest.json +5 -0
- package/src/integrations/lakebase/README.md +242 -0
- package/src/integrations/lakebase/client.ts +6 -4
- package/src/integrations/lakebase/docs.manifest.json +5 -0
- package/src/integrations/lakebase/types.ts +5 -4
- package/src/integrations/launchdarkly/README.md +2 -2
- package/src/integrations/launchdarkly/docs.manifest.json +5 -0
- package/src/integrations/mariadb/README.md +3 -3
- package/src/integrations/mariadb/client.ts +5 -3
- package/src/integrations/mariadb/docs.manifest.json +5 -0
- package/src/integrations/mariadb/types.ts +3 -2
- package/src/integrations/mistral/README.md +39 -13
- package/src/integrations/mistral/docs.manifest.json +5 -0
- package/src/integrations/mongodb/README.md +65 -12
- package/src/integrations/mongodb/client.ts +5 -3
- package/src/integrations/mongodb/docs.manifest.json +5 -0
- package/src/integrations/mongodb/types.ts +1 -0
- package/src/integrations/mssql/README.md +3 -3
- package/src/integrations/mssql/client.ts +5 -3
- package/src/integrations/mssql/docs.manifest.json +5 -0
- package/src/integrations/mssql/types.ts +3 -2
- package/src/integrations/mysql/README.md +4 -4
- package/src/integrations/mysql/client.ts +5 -3
- package/src/integrations/mysql/docs.manifest.json +5 -0
- package/src/integrations/mysql/types.ts +5 -4
- package/src/integrations/notion/docs.manifest.json +5 -0
- package/src/integrations/openai_v2/README.md +44 -116
- package/src/integrations/openai_v2/docs.manifest.json +5 -0
- package/src/integrations/openai_v2/types.ts +4 -29
- package/src/integrations/oracledb/README.md +3 -3
- package/src/integrations/oracledb/client.ts +5 -3
- package/src/integrations/oracledb/docs.manifest.json +5 -0
- package/src/integrations/oracledb/types.ts +3 -2
- package/src/integrations/pagerduty/README.md +2 -2
- package/src/integrations/pagerduty/docs.manifest.json +5 -0
- package/src/integrations/perplexity/README.md +39 -47
- package/src/integrations/perplexity/docs.manifest.json +5 -0
- package/src/integrations/postgres/client.ts +6 -4
- package/src/integrations/postgres/docs.manifest.json +5 -0
- package/src/integrations/postgres/types.ts +1 -0
- package/src/integrations/redshift/client.ts +5 -3
- package/src/integrations/redshift/docs.manifest.json +5 -0
- package/src/integrations/redshift/types.ts +1 -0
- package/src/integrations/registry.test.ts +2 -3
- package/src/integrations/registry.ts +69 -188
- package/src/integrations/restapiintegration/README.md +320 -0
- package/src/integrations/restapiintegration/docs.manifest.json +5 -0
- package/src/integrations/restapiintegration/types.ts +2 -8
- package/src/integrations/s3/client.ts +5 -3
- package/src/integrations/s3/docs.manifest.json +5 -0
- package/src/integrations/s3/types.ts +4 -1
- package/src/integrations/salesforce/README.md +11 -9
- package/src/integrations/salesforce/client.ts +3 -2
- package/src/integrations/salesforce/docs.manifest.json +5 -0
- package/src/integrations/salesforce/types.ts +1 -0
- package/src/integrations/segment/docs.manifest.json +5 -0
- package/src/integrations/sendgrid/README.md +2 -2
- package/src/integrations/sendgrid/docs.manifest.json +5 -0
- package/src/integrations/slack/README.md +62 -19
- package/src/integrations/slack/client.test.ts +553 -0
- package/src/integrations/slack/client.ts +92 -12
- package/src/integrations/slack/docs.manifest.json +5 -0
- package/src/integrations/slack/index.ts +6 -1
- package/src/integrations/slack/types.ts +142 -29
- package/src/integrations/smtp/README.md +220 -0
- package/src/integrations/smtp/client.ts +4 -2
- package/src/integrations/smtp/docs.manifest.json +5 -0
- package/src/integrations/snowflake/client.ts +7 -5
- package/src/integrations/snowflake/docs.manifest.json +5 -0
- package/src/integrations/snowflake/types.ts +1 -0
- package/src/integrations/snowflakecortex/README.md +167 -0
- package/src/integrations/snowflakecortex/client.ts +2 -3
- package/src/integrations/snowflakecortex/docs.manifest.json +5 -0
- package/src/integrations/snowflakecortex/types.ts +3 -11
- package/src/integrations/snowflakepostgres/README.md +233 -0
- package/src/integrations/snowflakepostgres/client.ts +1 -1
- package/src/integrations/snowflakepostgres/docs.manifest.json +5 -0
- package/src/integrations/snowflakepostgres/types.ts +1 -0
- package/src/integrations/stabilityai/README.md +2 -2
- package/src/integrations/stabilityai/docs.manifest.json +5 -0
- package/src/integrations/stripe/docs.manifest.json +5 -0
- package/src/integrations/superblocks-ocr/docs.manifest.json +5 -0
- package/src/integrations/twilio/docs.manifest.json +5 -0
- package/src/integrations/zendesk/docs.manifest.json +5 -0
- package/src/integrations/zoom/README.md +15 -15
- package/src/integrations/zoom/docs.manifest.json +5 -0
- package/src/runtime/context.ts +11 -11
- package/src/runtime/executor.ts +2 -2
- package/src/runtime/index.ts +1 -23
- package/src/types.ts +16 -6
- package/dist/api/streaming.d.ts +0 -229
- package/dist/api/streaming.d.ts.map +0 -1
- package/dist/api/streaming.js +0 -107
- package/dist/api/streaming.js.map +0 -1
- package/dist/api/streaming.test.d.ts +0 -5
- package/dist/api/streaming.test.d.ts.map +0 -1
- package/dist/api/streaming.test.js +0 -364
- package/dist/api/streaming.test.js.map +0 -1
- package/dist/integrations/couchbase/client.d.ts +0 -36
- package/dist/integrations/couchbase/client.d.ts.map +0 -1
- package/dist/integrations/couchbase/client.js +0 -148
- package/dist/integrations/couchbase/client.js.map +0 -1
- package/dist/integrations/couchbase/index.d.ts +0 -8
- package/dist/integrations/couchbase/index.d.ts.map +0 -1
- package/dist/integrations/couchbase/index.js +0 -7
- package/dist/integrations/couchbase/index.js.map +0 -1
- package/dist/integrations/couchbase/types.d.ts +0 -100
- package/dist/integrations/couchbase/types.d.ts.map +0 -1
- package/dist/integrations/couchbase/types.js +0 -5
- package/dist/integrations/couchbase/types.js.map +0 -1
- package/dist/integrations/kafka/client.d.ts +0 -25
- package/dist/integrations/kafka/client.d.ts.map +0 -1
- package/dist/integrations/kafka/client.js +0 -124
- package/dist/integrations/kafka/client.js.map +0 -1
- package/dist/integrations/kafka/index.d.ts +0 -8
- package/dist/integrations/kafka/index.d.ts.map +0 -1
- package/dist/integrations/kafka/index.js +0 -7
- package/dist/integrations/kafka/index.js.map +0 -1
- package/dist/integrations/kafka/types.d.ts +0 -113
- package/dist/integrations/kafka/types.d.ts.map +0 -1
- package/dist/integrations/kafka/types.js +0 -5
- package/dist/integrations/kafka/types.js.map +0 -1
- package/dist/integrations/kinesis/client.d.ts +0 -31
- package/dist/integrations/kinesis/client.d.ts.map +0 -1
- package/dist/integrations/kinesis/client.js +0 -101
- package/dist/integrations/kinesis/client.js.map +0 -1
- package/dist/integrations/kinesis/index.d.ts +0 -8
- package/dist/integrations/kinesis/index.d.ts.map +0 -1
- package/dist/integrations/kinesis/index.js +0 -7
- package/dist/integrations/kinesis/index.js.map +0 -1
- package/dist/integrations/kinesis/types.d.ts +0 -97
- package/dist/integrations/kinesis/types.d.ts.map +0 -1
- package/dist/integrations/kinesis/types.js +0 -7
- package/dist/integrations/kinesis/types.js.map +0 -1
- package/dist/integrations/python/client.d.ts +0 -42
- package/dist/integrations/python/client.d.ts.map +0 -1
- package/dist/integrations/python/client.js +0 -89
- package/dist/integrations/python/client.js.map +0 -1
- package/dist/integrations/python/client.test.d.ts +0 -5
- package/dist/integrations/python/client.test.d.ts.map +0 -1
- package/dist/integrations/python/client.test.js +0 -214
- package/dist/integrations/python/client.test.js.map +0 -1
- package/dist/integrations/python/index.d.ts +0 -6
- package/dist/integrations/python/index.d.ts.map +0 -1
- package/dist/integrations/python/index.js +0 -5
- package/dist/integrations/python/index.js.map +0 -1
- package/dist/integrations/python/types.d.ts +0 -85
- package/dist/integrations/python/types.d.ts.map +0 -1
- package/dist/integrations/python/types.js +0 -5
- package/dist/integrations/python/types.js.map +0 -1
- package/dist/integrations/redis/client.d.ts +0 -43
- package/dist/integrations/redis/client.d.ts.map +0 -1
- package/dist/integrations/redis/client.js +0 -142
- package/dist/integrations/redis/client.js.map +0 -1
- package/dist/integrations/redis/index.d.ts +0 -8
- package/dist/integrations/redis/index.d.ts.map +0 -1
- package/dist/integrations/redis/index.js +0 -7
- package/dist/integrations/redis/index.js.map +0 -1
- package/dist/integrations/redis/types.d.ts +0 -137
- package/dist/integrations/redis/types.d.ts.map +0 -1
- package/dist/integrations/redis/types.js +0 -5
- package/dist/integrations/redis/types.js.map +0 -1
- package/dist/runtime/execute.d.ts +0 -128
- package/dist/runtime/execute.d.ts.map +0 -1
- package/dist/runtime/execute.js +0 -84
- package/dist/runtime/execute.js.map +0 -1
- package/dist/runtime/streaming-context.d.ts +0 -49
- package/dist/runtime/streaming-context.d.ts.map +0 -1
- package/dist/runtime/streaming-context.js +0 -71
- package/dist/runtime/streaming-context.js.map +0 -1
- package/dist/runtime/streaming-executor.d.ts +0 -159
- package/dist/runtime/streaming-executor.d.ts.map +0 -1
- package/dist/runtime/streaming-executor.js +0 -229
- package/dist/runtime/streaming-executor.js.map +0 -1
- package/src/api/streaming.test.ts +0 -432
- package/src/api/streaming.ts +0 -302
- package/src/integrations/couchbase/README.md +0 -138
- package/src/integrations/couchbase/client.ts +0 -224
- package/src/integrations/couchbase/index.ts +0 -8
- package/src/integrations/couchbase/types.ts +0 -125
- package/src/integrations/kafka/README.md +0 -144
- package/src/integrations/kafka/client.ts +0 -215
- package/src/integrations/kafka/index.ts +0 -14
- package/src/integrations/kafka/types.ts +0 -127
- package/src/integrations/kinesis/README.md +0 -153
- package/src/integrations/kinesis/client.ts +0 -146
- package/src/integrations/kinesis/index.ts +0 -14
- package/src/integrations/kinesis/types.ts +0 -114
- package/src/integrations/python/README.md +0 -566
- package/src/integrations/python/client.test.ts +0 -340
- package/src/integrations/python/client.ts +0 -134
- package/src/integrations/python/index.ts +0 -6
- package/src/integrations/python/types.ts +0 -91
- package/src/integrations/redis/README.md +0 -200
- package/src/integrations/redis/client.ts +0 -207
- package/src/integrations/redis/index.ts +0 -8
- package/src/integrations/redis/types.ts +0 -166
- package/src/runtime/execute.ts +0 -221
- package/src/runtime/streaming-context.ts +0 -164
- package/src/runtime/streaming-executor.ts +0 -367
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Couchbase client types.
|
|
3
|
-
*/
|
|
4
|
-
import type { z } from "zod";
|
|
5
|
-
import type { BaseIntegrationClient } from "../../types.js";
|
|
6
|
-
import type { TraceMetadata } from "../registry.js";
|
|
7
|
-
/**
|
|
8
|
-
* Parameters for identifying a Couchbase document location.
|
|
9
|
-
*
|
|
10
|
-
* All Couchbase operations require a bucket name. Key-value operations
|
|
11
|
-
* (insert, get, remove) additionally require a scope and collection.
|
|
12
|
-
*/
|
|
13
|
-
export interface CouchbaseIdentifier {
|
|
14
|
-
/** The bucket name (required for all operations) */
|
|
15
|
-
bucket: string;
|
|
16
|
-
/** The scope name */
|
|
17
|
-
scope: string;
|
|
18
|
-
/** The collection name */
|
|
19
|
-
collection: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Couchbase client for document and query operations.
|
|
23
|
-
*
|
|
24
|
-
* Provides methods for SQL++ queries, document insertion, retrieval,
|
|
25
|
-
* and removal in Couchbase buckets.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```typescript
|
|
29
|
-
* // Declare in api(): integrations: { cb: couchbase(INTEGRATION_ID) }
|
|
30
|
-
* // In run(), access via ctx.integrations.cb
|
|
31
|
-
*
|
|
32
|
-
* // Run a SQL++ query
|
|
33
|
-
* const users = await ctx.integrations.cb.query(
|
|
34
|
-
* 'my-bucket',
|
|
35
|
-
* 'SELECT * FROM bucket WHERE status = "active"',
|
|
36
|
-
* UserSchema,
|
|
37
|
-
* );
|
|
38
|
-
*
|
|
39
|
-
* // Insert a document
|
|
40
|
-
* await ctx.integrations.cb.insert('user::123', { name: 'Alice' }, {
|
|
41
|
-
* bucket: 'my-bucket',
|
|
42
|
-
* scope: '_default',
|
|
43
|
-
* collection: '_default',
|
|
44
|
-
* });
|
|
45
|
-
*
|
|
46
|
-
* // Get a document
|
|
47
|
-
* const doc = await ctx.integrations.cb.get('user::123', DocSchema, {
|
|
48
|
-
* bucket: 'my-bucket',
|
|
49
|
-
* scope: '_default',
|
|
50
|
-
* collection: '_default',
|
|
51
|
-
* });
|
|
52
|
-
*
|
|
53
|
-
* // Remove a document
|
|
54
|
-
* await ctx.integrations.cb.remove('user::123', {
|
|
55
|
-
* bucket: 'my-bucket',
|
|
56
|
-
* scope: '_default',
|
|
57
|
-
* collection: '_default',
|
|
58
|
-
* });
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
export interface CouchbaseClient extends BaseIntegrationClient {
|
|
62
|
-
/**
|
|
63
|
-
* Execute a SQL++ query against Couchbase.
|
|
64
|
-
*
|
|
65
|
-
* @param bucket - The bucket name to query against
|
|
66
|
-
* @param sql - The SQL++ query string (with optional $1, $2 placeholders when parameterized)
|
|
67
|
-
* @param schema - Zod schema for validating result rows
|
|
68
|
-
* @param params - Optional array of parameter values for server-side binding
|
|
69
|
-
* @returns Array of validated result rows
|
|
70
|
-
*/
|
|
71
|
-
query<T>(bucket: string, sql: string, schema: z.ZodSchema<T>, params?: unknown[], metadata?: TraceMetadata): Promise<T[]>;
|
|
72
|
-
/**
|
|
73
|
-
* Insert a document into a collection.
|
|
74
|
-
*
|
|
75
|
-
* @param key - The document key
|
|
76
|
-
* @param value - The document value (will be JSON-serialized)
|
|
77
|
-
* @param identifier - The bucket, scope, and collection to insert into
|
|
78
|
-
* @param metadata - Optional trace metadata for diagnostics
|
|
79
|
-
*/
|
|
80
|
-
insert(key: string, value: unknown, identifier: CouchbaseIdentifier, metadata?: TraceMetadata): Promise<void>;
|
|
81
|
-
/**
|
|
82
|
-
* Get a document by key from a collection.
|
|
83
|
-
*
|
|
84
|
-
* @param key - The document key
|
|
85
|
-
* @param schema - Zod schema for validating the result
|
|
86
|
-
* @param identifier - The bucket, scope, and collection to get from
|
|
87
|
-
* @param metadata - Optional trace metadata for diagnostics
|
|
88
|
-
* @returns The validated document
|
|
89
|
-
*/
|
|
90
|
-
get<T>(key: string, schema: z.ZodSchema<T>, identifier: CouchbaseIdentifier, metadata?: TraceMetadata): Promise<T>;
|
|
91
|
-
/**
|
|
92
|
-
* Remove a document by key from a collection.
|
|
93
|
-
*
|
|
94
|
-
* @param key - The document key
|
|
95
|
-
* @param identifier - The bucket, scope, and collection to remove from
|
|
96
|
-
* @param metadata - Optional trace metadata for diagnostics
|
|
97
|
-
*/
|
|
98
|
-
remove(key: string, identifier: CouchbaseIdentifier, metadata?: TraceMetadata): Promise<void>;
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/integrations/couchbase/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D;;;;;;;;OAQG;IACH,KAAK,CAAC,CAAC,EACL,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,MAAM,CAAC,EAAE,OAAO,EAAE,EAClB,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAEhB;;;;;;;OAOG;IACH,MAAM,CACJ,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,mBAAmB,EAC/B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;OAQG;IACH,GAAG,CAAC,CAAC,EACH,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,UAAU,EAAE,mBAAmB,EAC/B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,CAAC,CAAC,CAAC;IAEd;;;;;;OAMG;IACH,MAAM,CACJ,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,mBAAmB,EAC/B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/integrations/couchbase/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kafka client implementation.
|
|
3
|
-
*
|
|
4
|
-
* Constructs request objects matching the expected backend format.
|
|
5
|
-
*/
|
|
6
|
-
import type { z } from "zod";
|
|
7
|
-
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
8
|
-
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
9
|
-
import type { KafkaClient, KafkaConsumeParams, KafkaProduceParams } from "./types.js";
|
|
10
|
-
/**
|
|
11
|
-
* Internal implementation of KafkaClient.
|
|
12
|
-
*/
|
|
13
|
-
export declare class KafkaClientImpl implements KafkaClient, IntegrationClientImpl {
|
|
14
|
-
readonly config: IntegrationConfig;
|
|
15
|
-
private readonly executeQuery;
|
|
16
|
-
constructor(config: IntegrationConfig, executeQuery: QueryExecutor);
|
|
17
|
-
get name(): string;
|
|
18
|
-
get pluginId(): string;
|
|
19
|
-
private buildConsumeRequest;
|
|
20
|
-
private buildProduceRequest;
|
|
21
|
-
private executeAndValidate;
|
|
22
|
-
consume<T>(schema: z.ZodSchema<T>, params: KafkaConsumeParams, metadata?: TraceMetadata): Promise<T>;
|
|
23
|
-
produce<T>(schema: z.ZodSchema<T>, params: KafkaProduceParams, metadata?: TraceMetadata): Promise<T>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/integrations/kafka/client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGnE,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAgFpB;;GAEG;AACH,qBAAa,eAAgB,YAAW,WAAW,EAAE,qBAAqB;IACxE,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgB;gBAEjC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa;IAKlE,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,OAAO,CAAC,mBAAmB;IAuB3B,OAAO,CAAC,mBAAmB;YAqBb,kBAAkB;IAsC1B,OAAO,CAAC,CAAC,EACb,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,CAAC,CAAC;IAKP,OAAO,CAAC,CAAC,EACb,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,CAAC,CAAC;CAId"}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kafka client implementation.
|
|
3
|
-
*
|
|
4
|
-
* Constructs request objects matching the expected backend format.
|
|
5
|
-
*/
|
|
6
|
-
import { RestApiValidationError } from "../../errors.js";
|
|
7
|
-
import { IntegrationError } from "../../runtime/errors.js";
|
|
8
|
-
/**
|
|
9
|
-
* Operation string values expected by the Kafka plugin.
|
|
10
|
-
*/
|
|
11
|
-
const OPERATION = {
|
|
12
|
-
CONSUME: "OPERATION_CONSUME",
|
|
13
|
-
PRODUCE: "OPERATION_PRODUCE",
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Consume from string values.
|
|
17
|
-
*/
|
|
18
|
-
const CONSUME_FROM = {
|
|
19
|
-
BEGINNING: "FROM_BEGINNING",
|
|
20
|
-
LATEST: "FROM_LATEST",
|
|
21
|
-
SEEK: "FROM_SEEK",
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Acks string values.
|
|
25
|
-
*/
|
|
26
|
-
const ACKS = {
|
|
27
|
-
NONE: "ACKS_NONE",
|
|
28
|
-
LEADER: "ACKS_LEADER",
|
|
29
|
-
ALL: "ACKS_ALL",
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Compression string values.
|
|
33
|
-
*/
|
|
34
|
-
const COMPRESSION = {
|
|
35
|
-
GZIP: "COMPRESSION_GZIP",
|
|
36
|
-
SNAPPY: "COMPRESSION_SNAPPY",
|
|
37
|
-
LZ4: "COMPRESSION_LZ4",
|
|
38
|
-
ZSTD: "COMPRESSION_ZSTD",
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Internal implementation of KafkaClient.
|
|
42
|
-
*/
|
|
43
|
-
export class KafkaClientImpl {
|
|
44
|
-
config;
|
|
45
|
-
executeQuery;
|
|
46
|
-
constructor(config, executeQuery) {
|
|
47
|
-
this.config = config;
|
|
48
|
-
this.executeQuery = executeQuery;
|
|
49
|
-
}
|
|
50
|
-
get name() {
|
|
51
|
-
return this.config.name;
|
|
52
|
-
}
|
|
53
|
-
get pluginId() {
|
|
54
|
-
return this.config.pluginId;
|
|
55
|
-
}
|
|
56
|
-
buildConsumeRequest(params) {
|
|
57
|
-
const request = {
|
|
58
|
-
operation: OPERATION.CONSUME,
|
|
59
|
-
consume: {
|
|
60
|
-
topic: params.topic,
|
|
61
|
-
from: params.from ? CONSUME_FROM[params.from] : CONSUME_FROM.LATEST,
|
|
62
|
-
groupId: params.groupId,
|
|
63
|
-
clientId: params.clientId,
|
|
64
|
-
readUncommitted: params.readUncommitted ?? false,
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
if (params.seek && request.consume) {
|
|
68
|
-
request.consume.seek = {
|
|
69
|
-
topic: params.seek.topic,
|
|
70
|
-
offset: String(params.seek.offset),
|
|
71
|
-
partition: params.seek.partition,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
return request;
|
|
75
|
-
}
|
|
76
|
-
buildProduceRequest(params) {
|
|
77
|
-
const request = {
|
|
78
|
-
operation: OPERATION.PRODUCE,
|
|
79
|
-
produce: {
|
|
80
|
-
messages: params.messages,
|
|
81
|
-
acks: params.acks ? ACKS[params.acks] : ACKS.ALL,
|
|
82
|
-
clientId: params.clientId,
|
|
83
|
-
timeout: params.timeout,
|
|
84
|
-
compression: params.compression
|
|
85
|
-
? COMPRESSION[params.compression]
|
|
86
|
-
: undefined,
|
|
87
|
-
transactionId: params.transactionId,
|
|
88
|
-
autoCreateTopic: params.autoCreateTopic ?? false,
|
|
89
|
-
idempotent: params.idempotent ?? false,
|
|
90
|
-
transaction: params.transaction ?? false,
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
return request;
|
|
94
|
-
}
|
|
95
|
-
async executeAndValidate(request, schema, operation, metadata) {
|
|
96
|
-
try {
|
|
97
|
-
const result = await this.executeQuery(request, undefined, metadata);
|
|
98
|
-
const parseResult = schema.safeParse(result);
|
|
99
|
-
if (!parseResult.success) {
|
|
100
|
-
throw new RestApiValidationError(`Result validation failed: ${parseResult.error.message}`, {
|
|
101
|
-
zodError: parseResult.error,
|
|
102
|
-
data: result,
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
return parseResult.data;
|
|
106
|
-
}
|
|
107
|
-
catch (error) {
|
|
108
|
-
if (error instanceof RestApiValidationError ||
|
|
109
|
-
error instanceof IntegrationError) {
|
|
110
|
-
throw error;
|
|
111
|
-
}
|
|
112
|
-
throw new IntegrationError(this.config.name, operation, error);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
async consume(schema, params, metadata) {
|
|
116
|
-
const request = this.buildConsumeRequest(params);
|
|
117
|
-
return this.executeAndValidate(request, schema, "consume", metadata);
|
|
118
|
-
}
|
|
119
|
-
async produce(schema, params, metadata) {
|
|
120
|
-
const request = this.buildProduceRequest(params);
|
|
121
|
-
return this.executeAndValidate(request, schema, "produce", metadata);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
//# sourceMappingURL=client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/integrations/kafka/client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAiD3D;;GAEG;AACH,MAAM,SAAS,GAAG;IAChB,OAAO,EAAE,mBAAmB;IAC5B,OAAO,EAAE,mBAAmB;CACpB,CAAC;AAEX;;GAEG;AACH,MAAM,YAAY,GAAG;IACnB,SAAS,EAAE,gBAAgB;IAC3B,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,WAAW;CACT,CAAC;AAEX;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AO,EAAE,EACxD;oBACE,QAAQ,EAAE,WAAW,CAAC,KAAK;oBAC3B,IAAI,EAAE,MAAM;iBACb,CACF,CAAC;YACJ,CAAC;YAED,OAAO,WAAW,CAAC,IAAI,CAAC;QAC1B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IACE,KAAK,YAAY,sBAAsB;gBACvC,KAAK,YAAY,gBAAgB,EACjC,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;YAED,MAAM,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED,KAAK,CAAC,OAAO,CACX,MAAsB,EACtB,MAA0B,EAC1B,QAAwB;QAExB,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,OAAO,CACX,MAAsB,EACtB,MAA0B,EAC1B,QAAwB;QAExB,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/kafka/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EACV,WAAW,EACX,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/kafka/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kafka client types.
|
|
3
|
-
*/
|
|
4
|
-
import type { z } from "zod";
|
|
5
|
-
import type { BaseIntegrationClient } from "../../types.js";
|
|
6
|
-
import type { TraceMetadata } from "../registry.js";
|
|
7
|
-
/**
|
|
8
|
-
* Kafka operation types.
|
|
9
|
-
*/
|
|
10
|
-
export type KafkaOperation = "CONSUME" | "PRODUCE";
|
|
11
|
-
/**
|
|
12
|
-
* Seek position for consuming from a specific offset.
|
|
13
|
-
*/
|
|
14
|
-
export interface KafkaSeek {
|
|
15
|
-
/** Topic name */
|
|
16
|
-
topic: string;
|
|
17
|
-
/** Offset to start from */
|
|
18
|
-
offset: number;
|
|
19
|
-
/** Partition to consume from */
|
|
20
|
-
partition: number;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Parameters for Kafka consume operation.
|
|
24
|
-
*/
|
|
25
|
-
export interface KafkaConsumeParams {
|
|
26
|
-
/** Topic to consume from */
|
|
27
|
-
topic: string;
|
|
28
|
-
/** Where to start consuming from */
|
|
29
|
-
from?: "BEGINNING" | "LATEST" | "SEEK";
|
|
30
|
-
/** Consumer group ID */
|
|
31
|
-
groupId?: string;
|
|
32
|
-
/** Client ID */
|
|
33
|
-
clientId?: string;
|
|
34
|
-
/** Seek position for SEEK mode */
|
|
35
|
-
seek?: KafkaSeek;
|
|
36
|
-
/** Whether to read uncommitted messages */
|
|
37
|
-
readUncommitted?: boolean;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Parameters for Kafka produce operation.
|
|
41
|
-
*/
|
|
42
|
-
export interface KafkaProduceParams {
|
|
43
|
-
/** Messages to produce (JSON string) */
|
|
44
|
-
messages: string;
|
|
45
|
-
/** Acknowledgment level */
|
|
46
|
-
acks?: "NONE" | "LEADER" | "ALL";
|
|
47
|
-
/** Client ID */
|
|
48
|
-
clientId?: string;
|
|
49
|
-
/** Timeout in milliseconds */
|
|
50
|
-
timeout?: number;
|
|
51
|
-
/** Compression type */
|
|
52
|
-
compression?: "GZIP" | "SNAPPY" | "LZ4" | "ZSTD";
|
|
53
|
-
/** Transaction ID for transactional produce */
|
|
54
|
-
transactionId?: string;
|
|
55
|
-
/** Whether to auto-create topic */
|
|
56
|
-
autoCreateTopic?: boolean;
|
|
57
|
-
/** Whether to enable idempotent delivery */
|
|
58
|
-
idempotent?: boolean;
|
|
59
|
-
/** Whether to use transactions */
|
|
60
|
-
transaction?: boolean;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Kafka client for message streaming operations.
|
|
64
|
-
*
|
|
65
|
-
* Provides consume() and produce() methods for Kafka operations.
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```typescript
|
|
69
|
-
* // Declare in api(): integrations: { kafka: kafka(INTEGRATION_ID) }
|
|
70
|
-
* // In run(), access via ctx.integrations.kafka
|
|
71
|
-
*
|
|
72
|
-
* // Consume messages
|
|
73
|
-
* const MessageSchema = z.array(z.object({
|
|
74
|
-
* topic: z.string(),
|
|
75
|
-
* partition: z.number(),
|
|
76
|
-
* offset: z.number(),
|
|
77
|
-
* value: z.unknown(),
|
|
78
|
-
* }));
|
|
79
|
-
*
|
|
80
|
-
* const messages = await kafka.consume(MessageSchema, {
|
|
81
|
-
* topic: 'my-topic',
|
|
82
|
-
* from: 'LATEST',
|
|
83
|
-
* groupId: 'my-consumer-group',
|
|
84
|
-
* });
|
|
85
|
-
*
|
|
86
|
-
* // Produce messages
|
|
87
|
-
* const result = await kafka.produce(z.any(), {
|
|
88
|
-
* messages: JSON.stringify([
|
|
89
|
-
* { topic: 'my-topic', value: { key: 'value' } }
|
|
90
|
-
* ]),
|
|
91
|
-
* });
|
|
92
|
-
* ```
|
|
93
|
-
*/
|
|
94
|
-
export interface KafkaClient extends BaseIntegrationClient {
|
|
95
|
-
/**
|
|
96
|
-
* Consume messages from Kafka.
|
|
97
|
-
*
|
|
98
|
-
* @param schema - Zod schema for validating the result
|
|
99
|
-
* @param params - Consume parameters
|
|
100
|
-
* @returns The validated result
|
|
101
|
-
*/
|
|
102
|
-
consume<T>(schema: z.ZodSchema<T>, params: KafkaConsumeParams, metadata?: TraceMetadata): Promise<T>;
|
|
103
|
-
/**
|
|
104
|
-
* Produce messages to Kafka.
|
|
105
|
-
*
|
|
106
|
-
* @param schema - Zod schema for validating the result
|
|
107
|
-
* @param params - Produce parameters
|
|
108
|
-
* @param metadata - Optional trace metadata for diagnostics
|
|
109
|
-
* @returns The validated result
|
|
110
|
-
*/
|
|
111
|
-
produce<T>(schema: z.ZodSchema<T>, params: KafkaProduceParams, metadata?: TraceMetadata): Promise<T>;
|
|
112
|
-
}
|
|
113
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/integrations/kafka/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,4BAA4B;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,IAAI,CAAC,EAAE,WAAW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AAa,GACvB,OAAO,CAAC,CAAC,CAAC,CAAC;CACf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/integrations/kafka/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kinesis client implementation.
|
|
3
|
-
*
|
|
4
|
-
* Uses the native Kinesis plugin type from @superblocksteam/types.
|
|
5
|
-
* Supports PUT (write records) and GET (read records) operations.
|
|
6
|
-
*/
|
|
7
|
-
import type { IntegrationConfig, IntegrationClientImpl } from "../types.js";
|
|
8
|
-
import type { QueryExecutor, TraceMetadata } from "../registry.js";
|
|
9
|
-
import type { KinesisClient, KinesisPutParams, KinesisGetParams } from "./types.js";
|
|
10
|
-
/**
|
|
11
|
-
* Internal implementation of KinesisClient.
|
|
12
|
-
*
|
|
13
|
-
* Sends requests matching the Kinesis plugin proto structure:
|
|
14
|
-
* - `operationType`: PUT or GET
|
|
15
|
-
* - `put`: PUT operation parameters
|
|
16
|
-
* - `get`: GET operation parameters
|
|
17
|
-
*/
|
|
18
|
-
export declare class KinesisClientImpl implements KinesisClient, IntegrationClientImpl {
|
|
19
|
-
readonly config: IntegrationConfig;
|
|
20
|
-
private readonly executeQuery;
|
|
21
|
-
constructor(config: IntegrationConfig, executeQuery: QueryExecutor);
|
|
22
|
-
get name(): string;
|
|
23
|
-
get pluginId(): string;
|
|
24
|
-
/**
|
|
25
|
-
* Execute a request and wrap errors.
|
|
26
|
-
*/
|
|
27
|
-
private exec;
|
|
28
|
-
putRecord(params: KinesisPutParams, metadata?: TraceMetadata): Promise<unknown>;
|
|
29
|
-
getRecords(params: KinesisGetParams, metadata?: TraceMetadata): Promise<unknown>;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/integrations/kinesis/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEnE,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAUpB;;;;;;;GAOG;AACH,qBAAa,iBAAkB,YAAW,aAAa,EAAE,qBAAqB;IAC5E,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgB;gBAEjC,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa;IAKlE,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;OAEG;YACW,IAAI;IAgBZ,SAAS,CACb,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,OAAO,CAAC;IA4Bb,UAAU,CACd,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,OAAO,CAAC;CA2CpB"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kinesis client implementation.
|
|
3
|
-
*
|
|
4
|
-
* Uses the native Kinesis plugin type from @superblocksteam/types.
|
|
5
|
-
* Supports PUT (write records) and GET (read records) operations.
|
|
6
|
-
*/
|
|
7
|
-
import { IntegrationError } from "../../runtime/errors.js";
|
|
8
|
-
/**
|
|
9
|
-
* Kinesis operation type enum values matching the proto.
|
|
10
|
-
*/
|
|
11
|
-
const OPERATION_TYPE = {
|
|
12
|
-
PUT: "OPERATION_TYPE_PUT",
|
|
13
|
-
GET: "OPERATION_TYPE_GET",
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Internal implementation of KinesisClient.
|
|
17
|
-
*
|
|
18
|
-
* Sends requests matching the Kinesis plugin proto structure:
|
|
19
|
-
* - `operationType`: PUT or GET
|
|
20
|
-
* - `put`: PUT operation parameters
|
|
21
|
-
* - `get`: GET operation parameters
|
|
22
|
-
*/
|
|
23
|
-
export class KinesisClientImpl {
|
|
24
|
-
config;
|
|
25
|
-
executeQuery;
|
|
26
|
-
constructor(config, executeQuery) {
|
|
27
|
-
this.config = config;
|
|
28
|
-
this.executeQuery = executeQuery;
|
|
29
|
-
}
|
|
30
|
-
get name() {
|
|
31
|
-
return this.config.name;
|
|
32
|
-
}
|
|
33
|
-
get pluginId() {
|
|
34
|
-
return this.config.pluginId;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Execute a request and wrap errors.
|
|
38
|
-
*/
|
|
39
|
-
async exec(request, operation, metadata) {
|
|
40
|
-
try {
|
|
41
|
-
return await this.executeQuery(request, undefined, metadata);
|
|
42
|
-
}
|
|
43
|
-
catch (error) {
|
|
44
|
-
if (error instanceof IntegrationError) {
|
|
45
|
-
throw error;
|
|
46
|
-
}
|
|
47
|
-
throw new IntegrationError(this.config.name, operation, error);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
async putRecord(params, metadata) {
|
|
51
|
-
const put = {
|
|
52
|
-
data: params.data,
|
|
53
|
-
partitionKey: params.partitionKey,
|
|
54
|
-
};
|
|
55
|
-
if (params.streamIdentifierType) {
|
|
56
|
-
put.streamIdentifierType = params.streamIdentifierType;
|
|
57
|
-
}
|
|
58
|
-
if (params.streamName) {
|
|
59
|
-
put.streamName = params.streamName;
|
|
60
|
-
}
|
|
61
|
-
if (params.streamArn) {
|
|
62
|
-
put.streamArn = params.streamArn;
|
|
63
|
-
}
|
|
64
|
-
return this.exec({
|
|
65
|
-
operationType: OPERATION_TYPE.PUT,
|
|
66
|
-
put,
|
|
67
|
-
}, "putRecord", metadata);
|
|
68
|
-
}
|
|
69
|
-
async getRecords(params, metadata) {
|
|
70
|
-
const get = {
|
|
71
|
-
shardId: params.shardId,
|
|
72
|
-
shardIteratorType: params.shardIteratorType,
|
|
73
|
-
};
|
|
74
|
-
if (params.limit !== undefined) {
|
|
75
|
-
get.limit = params.limit;
|
|
76
|
-
}
|
|
77
|
-
if (params.pollingCooldownMs !== undefined) {
|
|
78
|
-
get.pollingCooldownMs = params.pollingCooldownMs;
|
|
79
|
-
}
|
|
80
|
-
if (params.startingSequenceNumber) {
|
|
81
|
-
get.startingSequenceNumber = params.startingSequenceNumber;
|
|
82
|
-
}
|
|
83
|
-
if (params.timestamp) {
|
|
84
|
-
get.timestamp = params.timestamp;
|
|
85
|
-
}
|
|
86
|
-
if (params.streamIdentifierType) {
|
|
87
|
-
get.streamIdentifierType = params.streamIdentifierType;
|
|
88
|
-
}
|
|
89
|
-
if (params.streamName) {
|
|
90
|
-
get.streamName = params.streamName;
|
|
91
|
-
}
|
|
92
|
-
if (params.streamArn) {
|
|
93
|
-
get.streamArn = params.streamArn;
|
|
94
|
-
}
|
|
95
|
-
return this.exec({
|
|
96
|
-
operationType: OPERATION_TYPE.GET,
|
|
97
|
-
get,
|
|
98
|
-
}, "getRecords", metadata);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/integrations/kinesis/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAO3D;;GAEG;AACH,MAAM,cAAc,GAAG;IACrB,GAAG,EAAE,oBAAoB;IACzB,GAAG,EAAE,oBAAoB;CACjB,CAAC;AAEX;;;;;;;GAOG;AACH,MAAM,OAAO,iBAAiB;IACnB,MAAM,CAAoB;IAClB,YAAY,CAAgB;IAE7C,YAAY,MAAyB,EAAE,YAA2B;QAChE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,I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
|
6
|
-
export type { KinesisClient, KinesisPutParams, KinesisGetParams, KinesisStreamIdentifier, KinesisShardIteratorType, } from "./types.js";
|
|
7
|
-
export { KinesisClientImpl } from "./client.js";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/kinesis/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integrations/kinesis/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC"}
|