:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(batch-exports): add aws-s3 and s3-compatible integration kinds (#65232)
Ross368ef9b4c79a
diff --git a/posthog/api/integration.py b/posthog/api/integration.pyindex 57c89fb7d059..4e1b7dd77488 100644--- a/posthog/api/integration.py+++ b/posthog/api/integration.py@@ -43,6 +43,7 @@ from posthog.models.integration import (GITHUB_REPOSITORY_REFRESH_COOLDOWN_SECONDS,SLACK_INTEGRATION_KINDS,AnthropicIntegration,+ AwsS3Integration,AzureBlobIntegration,AzureBlobIntegrationError,ClickUpIntegration,@@ -62,6 +63,8 @@ from posthog.models.integration import (LinkedInAdsIntegration,OauthIntegration,PostgreSQLIntegration,+ S3CompatibleIntegration,+ S3CredentialIntegrationError,SlackIntegration,StripeIntegration,TwilioIntegration,@@ -557,6 +560,57 @@ class IntegrationSerializer(serializers.ModelSerializer, UserAccessControlSerialraise ValidationError(str(e))return instance+ elif validated_data["kind"] == "aws-s3":+ config = validated_data.get("config", {})+ name = config.get("name")+ aws_access_key_id = config.get("aws_access_key_id")+ aws_secret_access_key = config.get("aws_secret_access_key")++ if not (name and aws_access_key_id and aws_secret_access_key):+ raise ValidationError("Name, access key ID, and secret access key must be provided")+ if not all(isinstance(value, str) for value in (name, aws_access_key_id, aws_secret_access_key)):+ raise ValidationError("Name, access key ID, and secret access key must be strings")++ try:+ instance = AwsS3Integration.integration_from_config(+ team_id=team_id,+ name=name,+ aws_access_key_id=aws_access_key_id,+ aws_secret_access_key=aws_secret_access_key,+ created_by=request.user,+ )+ except S3CredentialIntegrationError as e:+ raise ValidationError(str(e))+ return instance++ elif validated_data["kind"] == "s3-compatible":+ config = validated_data.get("config", {})+ name = config.get("name")+ endpoint_url = config.get("endpoint_url")+ aws_access_key_id = config.get("aws_access_key_id")+ aws_secret_access_key = config.get("aws_secret_access_key")++ if not (name and endpoint_url and aws_access_key_id and aws_secret_access_key):+ raise ValidationError("Name, endpoint URL, access key ID, and secret access key must be provided")+ if not all(+ isinstance(value, str) for value in (name, endpoint_url, aws_access_key_id, aws_secret_access_key)+ ):+ raise ValidationError("Name, endpoint URL, access key ID, and secret access key must be strings")++ try:+ # SSRF validation of `endpoint_url` happens inside `integration_from_config`.+ instance = S3CompatibleIntegration.integration_from_config(+ team_id=team_id,+ name=name,+ endpoint_url=endpoint_url,+ aws_access_key_id=aws_access_key_id,+ aws_secret_access_key=aws_secret_access_key,+ created_by=request.user,+ )+ except S3CredentialIntegrationError as e:+ raise ValidationError(str(e))+ return instance+elif validated_data["kind"] == "postgresql":config = validated_data.get("config", {})host = config.get("host")diff --git a/posthog/api/test/test_integration.py b/posthog/api/test/test_integration.pyindex 3fdd544eb3e6..3cd09a9bdd22 100644--- a/posthog/api/test/test_integration.py+++ b/posthog/api/test/test_integration.py@@ -12,6 +12,7 @@ from unittest.mock import MagicMock, patchfrom django.conf import settings as django_settingsfrom django.core.cache import cache+from django.test import override_settingsfrom django.test.client import Client as HttpClientfrom django.utils import timezone@@ -561,6 +562,230 @@ class TestDatabricksIntegration:assert response.json()["detail"] == expected_error_message+class TestAwsS3Integration:+ @pytest.fixture(autouse=True)+ def setup_integration(self, db):+ self.organization = Organization.objects.create(name="Test Org")+ self.team = Team.objects.create(organization=self.organization, name="Test Team")+ self.user = User.objects.create_and_join(+ self.organization, "[email protected]", "test", level=OrganizationMembership.Level.ADMIN+ )++ @patch("posthog.models.integration.AwsS3Integration.validate_credentials", return_value="123456789012")+ def test_create_with_valid_config(self, mock_validate, client: HttpClient):+ client.force_login(self.user)++ response = client.post(+ f"/api/environments/{self.team.pk}/integrations",+ {+ "kind": "aws-s3",+ "config": {+ "name": "prod-aws",+ "aws_access_key_id": "AKIAEXAMPLE",+ "aws_secret_access_key": "secret",+ },+ },+ content_type="application/json",+ )++ assert response.status_code == status.HTTP_201_CREATED, response.json()+ assert response.json()["kind"] == "aws-s3"++ integration = Integration.objects.get(id=response.json()["id"])+ assert integration.kind == "aws-s3"+ assert integration.team == self.team+ assert integration.integration_id == "prod-aws"+ assert integration.config == {"name": "prod-aws", "aws_account_id": "123456789012"}+ assert integration.sensitive_config == {+ "aws_access_key_id": "AKIAEXAMPLE",+ "aws_secret_access_key": "secret",+ }+ # Credentials must never surface anywhere in the API response (sensitive_config is not a+ # serializer field; this guards against a leak into config or any other exposed field).+ response_body = json.dumps(response.json())+ assert "aws_access_key_id" not in response_body+ assert "aws_secret_access_key" not in response_body+ assert "AKIAEXAMPLE" not in response_body++ @patch("posthog.models.integration.AwsS3Integration.validate_credentials")+ def test_create_rejects_invalid_credentials(self, mock_validate, client: HttpClient):+ from posthog.models.integration import S3CredentialIntegrationError++ mock_validate.side_effect = S3CredentialIntegrationError("AWS credentials are not valid: nope")+ client.force_login(self.user)++ response = client.post(+ f"/api/environments/{self.team.pk}/integrations",+ {+ "kind": "aws-s3",+ "config": {+ "name": "prod-aws",+ "aws_access_key_id": "AKIAEXAMPLE",+ "aws_secret_access_key": "wrong",+ },+ },+ content_type="application/json",+ )++ assert response.status_code == status.HTTP_400_BAD_REQUEST+ assert "AWS credentials are not valid" in response.json()["detail"]++ @patch("posthog.models.integration.AwsS3Integration.validate_credentials", return_value="123456789012")+ def test_create_rejects_duplicate_name(self, mock_validate, client: HttpClient):+ client.force_login(self.user)+ payload = {+ "kind": "aws-s3",+ "config": {"name": "prod-aws", "aws_access_key_id": "AKIAEXAMPLE", "aws_secret_access_key": "secret"},+ }++ first = client.post(f"/api/environments/{self.team.pk}/integrations", payload, content_type="application/json")+ assert first.status_code == status.HTTP_201_CREATED, first.json()++ second = client.post(f"/api/environments/{self.team.pk}/integrations", payload, content_type="application/json")+ assert second.status_code == status.HTTP_400_BAD_REQUEST+ assert "An integration named 'prod-aws' already exists" in second.json()["detail"]+ assert Integration.objects.filter(team=self.team, integration_id="prod-aws").count() == 1++ @pytest.mark.parametrize(+ "invalid_config,expected_error_message",+ [+ (+ {"aws_access_key_id": "k", "aws_secret_access_key": "s"},+ "Name, access key ID, and secret access key must be provided",+ ),+ (+ {"name": "n", "aws_secret_access_key": "s"},+ "Name, access key ID, and secret access key must be provided",+ ),+ ({"name": "n", "aws_access_key_id": "k"}, "Name, access key ID, and secret access key must be provided"),+ ({}, "Name, access key ID, and secret access key must be provided"),+ (+ {"name": "n", "aws_access_key_id": "k", "aws_secret_access_key": 1},+ "Name, access key ID, and secret access key must be strings",+ ),+ ],+ )+ def test_create_with_invalid_config(self, invalid_config, expected_error_message, client: HttpClient):+ client.force_login(self.user)++ response = client.post(+ f"/api/environments/{self.team.pk}/integrations",+ {"kind": "aws-s3", "config": invalid_config},+ content_type="application/json",+ )++ assert response.status_code == status.HTTP_400_BAD_REQUEST+ assert response.json()["detail"] == expected_error_message+++class TestS3CompatibleIntegration:+ @pytest.fixture(autouse=True)+ def setup_integration(self, db):+ self.organization = Organization.objects.create(name="Test Org")+ self.team = Team.objects.create(organization=self.organization, name="Test Team")+ self.user = User.objects.create_and_join(+ self.organization, "[email protected]", "test", level=OrganizationMembership.Level.ADMIN+ )++ def test_create_with_valid_config(self, client: HttpClient):+ client.force_login(self.user)++ response = client.post(+ f"/api/environments/{self.team.pk}/integrations",+ {+ "kind": "s3-compatible",+ "config": {+ "name": "my-r2",+ "endpoint_url": "https://account.r2.cloudflarestorage.com",+ "aws_access_key_id": "key",+ "aws_secret_access_key": "secret",+ },+ },+ content_type="application/json",+ )++ assert response.status_code == status.HTTP_201_CREATED, response.json()+ assert response.json()["kind"] == "s3-compatible"++ integration = Integration.objects.get(id=response.json()["id"])+ assert integration.integration_id == "my-r2"+ assert integration.config == {"name": "my-r2", "endpoint_url": "https://account.r2.cloudflarestorage.com"}+ assert integration.sensitive_config == {"aws_access_key_id": "key", "aws_secret_access_key": "secret"}+ # Credentials must never surface anywhere in the API response (sensitive_config is not a+ # serializer field; this guards against a leak into config or any other exposed field).+ response_body = json.dumps(response.json())+ assert "aws_access_key_id" not in response_body+ assert "aws_secret_access_key" not in response_body++ def test_create_rejects_duplicate_name(self, client: HttpClient):+ client.force_login(self.user)+ payload = {+ "kind": "s3-compatible",+ "config": {+ "name": "my-r2",+ "endpoint_url": "https://account.r2.cloudflarestorage.com",+ "aws_access_key_id": "key",+ "aws_secret_access_key": "secret",+ },+ }++ first = client.post(f"/api/environments/{self.team.pk}/integrations", payload, content_type="application/json")+ assert first.status_code == status.HTTP_201_CREATED, first.json()++ second = client.post(f"/api/environments/{self.team.pk}/integrations", payload, content_type="application/json")+ assert second.status_code == status.HTTP_400_BAD_REQUEST+ assert "An integration named 'my-r2' already exists" in second.json()["detail"]+ assert Integration.objects.filter(team=self.team, integration_id="my-r2").count() == 1++ # is_url_allowed bypasses validation in DEBUG/test mode, so force the production path to exercise rejection.+ @override_settings(FORCE_URL_VALIDATION=True)+ def test_create_rejects_invalid_endpoint_url(self, client: HttpClient):+ client.force_login(self.user)++ response = client.post(+ f"/api/environments/{self.team.pk}/integrations",+ {+ "kind": "s3-compatible",+ "config": {+ "name": "bad",+ "endpoint_url": "https://169.254.169.254",+ "aws_access_key_id": "key",+ "aws_secret_access_key": "secret",+ },+ },+ content_type="application/json",+ )++ assert response.status_code == status.HTTP_400_BAD_REQUEST+ assert "Invalid endpoint URL" in response.json()["detail"]++ @pytest.mark.parametrize(+ "invalid_config,expected_error_message",+ [+ (+ {"endpoint_url": "https://e.com", "aws_access_key_id": "k", "aws_secret_access_key": "s"},+ "Name, endpoint URL, access key ID, and secret access key must be provided",+ ),+ (+ {"name": "n", "aws_access_key_id": "k", "aws_secret_access_key": "s"},+ "Name, endpoint URL, access key ID, and secret access key must be provided",+ ),+ ({}, "Name, endpoint URL, access key ID, and secret access key must be provided"),+ ],+ )+ def test_create_with_invalid_config(self, invalid_config, expected_error_message, client: HttpClient):+ client.force_login(self.user)++ response = client.post(+ f"/api/environments/{self.team.pk}/integrations",+ {"kind": "s3-compatible", "config": invalid_config},+ content_type="application/json",+ )++ assert response.status_code == status.HTTP_400_BAD_REQUEST+ assert response.json()["detail"] == expected_error_message++class TestIntegrationAPIKeyAccess:@pytest.fixture(autouse=True)def setup_integration(self, db):diff --git a/posthog/migrations/1237_alter_integration_kind.py b/posthog/migrations/1237_alter_integration_kind.pynew file mode 100644index 000000000000..bd0c61b81ef6--- /dev/null+++ b/posthog/migrations/1237_alter_integration_kind.py@@ -0,0 +1,58 @@+# Generated by Django 5.2.14 on 2026-06-22 10:38++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [("posthog", "1236_userintegration_kind_extid_idx")]++ operations = [+ migrations.AlterField(+ model_name="integration",+ name="kind",+ field=models.CharField(+ choices=[+ ("anthropic", "Anthropic"),+ ("apns", "Apple Push"),+ ("aws-s3", "Aws S3"),+ ("azure-blob", "Azure Blob"),+ ("bing-ads", "Bing Ads"),+ ("clickup", "Clickup"),+ ("customerio-app", "Customerio App"),+ ("customerio-track", "Customerio Track"),+ ("customerio-webhook", "Customerio Webhook"),+ ("databricks", "Databricks"),+ ("email", "Email"),+ ("firebase", "Firebase"),+ ("github", "Github"),+ ("gitlab", "Gitlab"),+ ("google-ads", "Google Ads"),+ ("google-analytics", "Google Analytics"),+ ("google-cloud-service-account", "Google Cloud Service Account"),+ ("google-cloud-storage", "Google Cloud Storage"),+ ("google-pubsub", "Google Pubsub"),+ ("google-search-console", "Google Search Console"),+ ("google-sheets", "Google Sheets"),+ ("hubspot", "Hubspot"),+ ("intercom", "Intercom"),+ ("jira", "Jira"),+ ("linear", "Linear"),+ ("linkedin-ads", "Linkedin Ads"),+ ("meta-ads", "Meta Ads"),+ ("pinterest-ads", "Pinterest Ads"),+ ("postgresql", "Postgresql"),+ ("reddit-ads", "Reddit Ads"),+ ("s3-compatible", "S3 Compatible"),+ ("salesforce", "Salesforce"),+ ("slack", "Slack"),+ ("slack-posthog-code", "Slack Posthog Code"),+ ("snapchat", "Snapchat"),+ ("stripe", "Stripe"),+ ("tiktok-ads", "Tiktok Ads"),+ ("twilio", "Twilio"),+ ("vercel", "Vercel"),+ ],+ max_length=32,+ ),+ ),+ ]diff --git a/posthog/migrations/max_migration.txt b/posthog/migrations/max_migration.txtindex 3441c8c01c06..14c58165441a 100644--- a/posthog/migrations/max_migration.txt+++ b/posthog/migrations/max_migration.txt@@ -1 +1 @@-1236_userintegration_kind_extid_idx+1237_alter_integration_kinddiff --git a/posthog/models/integration.py b/posthog/models/integration.pyindex ffc5957fb2a7..bc67b521819f 100644--- a/posthog/models/integration.py+++ b/posthog/models/integration.py@@ -182,6 +182,7 @@ class Integration(models.Model):class IntegrationKind(models.TextChoices):ANTHROPIC = "anthropic"APPLE_PUSH = "apns"+ AWS_S3 = "aws-s3"AZURE_BLOB = "azure-blob"BING_ADS = "bing-ads"CLICKUP = "clickup"@@ -209,6 +210,7 @@ class Integration(models.Model):PINTEREST_ADS = "pinterest-ads"POSTGRESQL = "postgresql"REDDIT_ADS = "reddit-ads"+ S3_COMPATIBLE = "s3-compatible"SALESFORCE = "salesforce"SLACK = "slack"# Deprecated — kept in choices to avoid a no-op migration. The runtime no longer creates@@ -263,6 +265,19 @@ class Integration(models.Model):return dot_get(self.config, "account.name", self.integration_id)if self.kind == "databricks":return self.integration_id or "unknown ID"+ if self.kind == Integration.IntegrationKind.AWS_S3:+ name = self.integration_id or "unknown ID"+ # config["auth_type"] leaves room for a future OIDC / IAM-role mode; only keys exist today.+ auth_label = self.config.get("auth_type", "access key")+ account_id = self.config.get("aws_account_id")+ detail = f"{auth_label}, AWS account {account_id}" if account_id else auth_label+ return f"{name} ({detail})"+ if self.kind == Integration.IntegrationKind.S3_COMPATIBLE:+ name = self.integration_id or "unknown ID"+ auth_label = self.config.get("auth_type", "access key")+ endpoint_url = self.config.get("endpoint_url")+ detail = f"{auth_label}, {endpoint_url}" if endpoint_url else auth_label+ return f"{name} ({detail})"if self.kind == "gitlab":return self.integration_id or "unknown ID"if self.kind == "email":@@ -3402,6 +3417,210 @@ class AzureBlobIntegration:return None+class S3CredentialIntegrationError(Exception):+ """Error raised when an S3-family credential integration is not valid."""++ pass+++def _read_s3_credentials(integration: Integration) -> tuple[str, str]:+ try:+ return (+ integration.sensitive_config["aws_access_key_id"],+ integration.sensitive_config["aws_secret_access_key"],+ )+ except KeyError as e:+ raise S3CredentialIntegrationError(f"S3 integration is not valid: {str(e)} missing")+++def _build_s3_sensitive_config(aws_access_key_id: str, aws_secret_access_key: str) -> dict[str, str]:+ return {+ "aws_access_key_id": aws_access_key_id,+ "aws_secret_access_key": aws_secret_access_key,+ }+++def _create_unique_s3_integration(+ *,+ team_id: int,+ kind: str,+ name: str,+ config: dict[str, Any],+ sensitive_config: dict[str, str],+ created_by: "User | None",+) -> Integration:+ """Create an S3-family integration, rejecting a name already taken for this team and kind.++ Unlike most integrations, `name` is a free-form user-supplied identifier rather than one derived+ from the external connection (an OAuth account id, service-account email, etc.). So we create+ rather than upsert — re-using a name is a 400, not a silent overwrite of an unrelated credential+ set.+ """+ try:+ # Savepoint so the unique-constraint IntegrityError aborts only this INSERT, not the+ # surrounding transaction (e.g. the test wrapper, or any outer atomic block).+ with transaction.atomic():+ return Integration.objects.create(+ team_id=team_id,+ kind=kind,+ integration_id=name,+ config=config,+ sensitive_config=sensitive_config,+ created_by=created_by,+ )+ except IntegrityError:+ raise S3CredentialIntegrationError(f"An integration named '{name}' already exists")+++class AwsS3Integration:+ """An AWS S3 integration storing reusable AWS credentials.++ Holds only credentials; bucket, region, prefix and other export-specific settings stay on the+ batch export destination config, so one credential can be reused across many buckets/regions —+ and, in future, by Redshift COPY-mode exports that stage to S3.++ Unlike `S3CompatibleIntegration` it has no `endpoint_url` — an AWS+ integration must never be pointed at an arbitrary endpoint (SSRF boundary).+ """++ integration: Integration+ aws_access_key_id: str+ aws_secret_access_key: str++ def __init__(self, integration: Integration) -> None:+ if integration.kind != Integration.IntegrationKind.AWS_S3.value:+ raise S3CredentialIntegrationError(+ f"Integration provided is not an AWS S3 integration (got kind='{integration.kind}')"+ )+ self.integration = integration+ self.aws_access_key_id, self.aws_secret_access_key = _read_s3_credentials(integration)++ @property+ def aws_account_id(self) -> str | None:+ """The AWS account id resolved from the credentials at create time, if available."""+ return self.integration.config.get("aws_account_id")++ @staticmethod+ def validate_credentials(aws_access_key_id: str, aws_secret_access_key: str) -> str:+ """Validate AWS credentials via STS GetCallerIdentity, returning the AWS account id.++ GetCallerIdentity requires no IAM permissions, so it verifies the credentials are valid+ without assuming any particular S3 policy. It hits the fixed global AWS STS endpoint, so+ there is no user-controlled endpoint and no SSRF surface (unlike S3-compatible).++ This runs synchronously on the request thread, so the timeout budget is kept tight:+ a single attempt (no retry) bounds the worst case at ~10s (connect + read) if STS is+ unreachable, rather than blocking the worker while botocore retries.+ """+ import boto3 # noqa: PLC0415 — keeps botocore off the module import path (startup time)+ from botocore.config import Config # noqa: PLC0415+ from botocore.exceptions import BotoCoreError, ClientError # noqa: PLC0415++ client = boto3.client(+ "sts",+ aws_access_key_id=aws_access_key_id,+ aws_secret_access_key=aws_secret_access_key,+ config=Config(connect_timeout=5, read_timeout=5, retries={"max_attempts": 1}),+ )+ try:+ identity = client.get_caller_identity()+ except ClientError as e:+ message = e.response.get("Error", {}).get("Message") or str(e)+ raise S3CredentialIntegrationError(f"AWS credentials are not valid: {message}")+ except BotoCoreError as e:+ raise S3CredentialIntegrationError(f"Could not validate AWS credentials: {e}")++ return identity["Account"]++ @classmethod+ def integration_from_config(+ cls,+ team_id: int,+ name: str,+ aws_access_key_id: str,+ aws_secret_access_key: str,+ created_by: "User | None" = None,+ ) -> Integration:+ if not name:+ raise S3CredentialIntegrationError("A name is required for an AWS S3 integration")++ # Fail fast on invalid/expired credentials, and capture the (non-sensitive) account id.+ account_id = cls.validate_credentials(aws_access_key_id, aws_secret_access_key)++ # `name` is the unencrypted, frontend-visible identifier — never an AWS credential, which is+ # treated as a secret. The account id is non-sensitive and kept for display/debugging.+ return _create_unique_s3_integration(+ team_id=team_id,+ kind=Integration.IntegrationKind.AWS_S3.value,+ name=name,+ config={"name": name, "aws_account_id": account_id},+ sensitive_config=_build_s3_sensitive_config(aws_access_key_id, aws_secret_access_key),+ created_by=created_by,+ )+++class S3CompatibleIntegration:+ """An S3-compatible storage integration (Cloudflare R2, DigitalOcean Spaces, Hetzner, etc.).++ Holds the same credentials as `AwsS3Integration` plus the provider `endpoint_url` (non-sensitive),+ since credentials are bound to a specific S3-compatible provider. `integration_from_config`+ SSRF-validates `endpoint_url`, so callers don't have to.++ bucket, region, prefix and other export-specific settings stay on the batch export destination+ config, so one credential can be reused across many buckets/regions.+ """++ integration: Integration+ # The `aws_` prefix applies even to these non-AWS providers: they are AWS Signature V4+ # credentials, which every S3-compatible provider (R2, MinIO, Spaces, ...) uses. The names also+ # match boto3's kwargs and the existing S3-family batch export config fields, so they pass+ # through unchanged.+ aws_access_key_id: str+ aws_secret_access_key: str+ endpoint_url: str++ def __init__(self, integration: Integration) -> None:+ if integration.kind != Integration.IntegrationKind.S3_COMPATIBLE.value:+ raise S3CredentialIntegrationError(+ f"Integration provided is not an S3-compatible integration (got kind='{integration.kind}')"+ )+ self.integration = integration+ self.aws_access_key_id, self.aws_secret_access_key = _read_s3_credentials(integration)+ try:+ self.endpoint_url = integration.config["endpoint_url"]+ except KeyError:+ raise S3CredentialIntegrationError("S3-compatible integration is missing required field: 'endpoint_url'")++ @classmethod+ def integration_from_config(+ cls,+ team_id: int,+ name: str,+ endpoint_url: str,+ aws_access_key_id: str,+ aws_secret_access_key: str,+ created_by: "User | None" = None,+ ) -> Integration:+ if not name:+ raise S3CredentialIntegrationError("A name is required for an S3-compatible integration")+ if not endpoint_url:+ raise S3CredentialIntegrationError("An endpoint URL is required for an S3-compatible integration")++ # SSRF protection — credentials must not be testable against an attacker-controlled endpoint.+ allowed, error = is_url_allowed(endpoint_url)+ if not allowed:+ raise S3CredentialIntegrationError(f"Invalid endpoint URL: {error}")++ return _create_unique_s3_integration(+ team_id=team_id,+ kind=Integration.IntegrationKind.S3_COMPATIBLE.value,+ name=name,+ config={"name": name, "endpoint_url": endpoint_url},+ sensitive_config=_build_s3_sensitive_config(aws_access_key_id, aws_secret_access_key),+ created_by=created_by,+ )++class StripeIntegration:integration: Integrationdiff --git a/posthog/models/test/test_integration_model.py b/posthog/models/test/test_integration_model.pyindex c2148736890f..5fe94920e871 100644--- a/posthog/models/test/test_integration_model.py+++ b/posthog/models/test/test_integration_model.py@@ -11,6 +11,7 @@ from unittest.mock import MagicMock, call, patchfrom django.core.cache import cachefrom django.db import connection+from django.test import override_settingsfrom django.utils import timezoneimport requests@@ -25,6 +26,7 @@ from posthog.models.integration import (MISSING_CERT_PATH,TLS,Authority,+ AwsS3Integration,Credentials,DatabricksIntegration,DatabricksIntegrationError,@@ -37,6 +39,8 @@ from posthog.models.integration import (Integration,OauthIntegration,PostgreSQLIntegration,+ S3CompatibleIntegration,+ S3CredentialIntegrationError,SlackIntegration,raise_if_github_rate_limited,)@@ -1969,6 +1973,162 @@ class TestDatabricksIntegrationModel(BaseTest):)+class TestAwsS3IntegrationModel(BaseTest):+ @patch("posthog.models.integration.AwsS3Integration.validate_credentials", return_value="123456789012")+ def test_integration_from_config_with_valid_config(self, mock_validate):+ integration = AwsS3Integration.integration_from_config(+ team_id=self.team.pk,+ name="prod-aws",+ aws_access_key_id="AKIAEXAMPLE",+ aws_secret_access_key="secret",+ created_by=self.user,+ )+ assert integration.team == self.team+ assert integration.created_by == self.user+ assert integration.kind == Integration.IntegrationKind.AWS_S3+ # The identifier is the user-supplied name, never a credential.+ assert integration.integration_id == "prod-aws"+ # The account id resolved from STS is stored in non-sensitive config.+ assert integration.config == {"name": "prod-aws", "aws_account_id": "123456789012"}+ assert integration.sensitive_config == {+ "aws_access_key_id": "AKIAEXAMPLE",+ "aws_secret_access_key": "secret",+ }+ # display_name surfaces auth type and AWS account so users can tell integrations apart.+ assert integration.display_name == "prod-aws (access key, AWS account 123456789012)"+ assert AwsS3Integration(integration).aws_account_id == "123456789012"++ def test_integration_from_config_requires_name(self):+ with pytest.raises(S3CredentialIntegrationError, match="A name is required"):+ AwsS3Integration.integration_from_config(+ team_id=self.team.pk,+ name="",+ aws_access_key_id="AKIAEXAMPLE",+ aws_secret_access_key="secret",+ )++ @patch("posthog.models.integration.AwsS3Integration.validate_credentials", return_value="123456789012")+ def test_integration_from_config_rejects_duplicate_name(self, mock_validate):+ AwsS3Integration.integration_from_config(+ team_id=self.team.pk,+ name="prod-aws",+ aws_access_key_id="AKIAEXAMPLE",+ aws_secret_access_key="secret",+ )+ with pytest.raises(S3CredentialIntegrationError, match="An integration named 'prod-aws' already exists"):+ AwsS3Integration.integration_from_config(+ team_id=self.team.pk,+ name="prod-aws",+ aws_access_key_id="AKIAOTHER",+ aws_secret_access_key="other-secret",+ )+ assert Integration.objects.filter(team=self.team, integration_id="prod-aws").count() == 1++ @patch("boto3.client")+ def test_validate_credentials_returns_account_id(self, mock_boto_client):+ mock_boto_client.return_value.get_caller_identity.return_value = {"Account": "123456789012"}+ assert AwsS3Integration.validate_credentials("key", "secret") == "123456789012"++ @patch("boto3.client")+ def test_validate_credentials_raises_on_invalid_credentials(self, mock_boto_client):+ from botocore.exceptions import ClientError++ mock_boto_client.return_value.get_caller_identity.side_effect = ClientError(+ {"Error": {"Code": "InvalidClientTokenId", "Message": "The security token is invalid."}},+ "GetCallerIdentity",+ )+ with pytest.raises(+ S3CredentialIntegrationError, match="AWS credentials are not valid: The security token is invalid."+ ):+ AwsS3Integration.validate_credentials("key", "secret")++ def test_wrapping_wrong_kind_raises(self):+ integration = Integration.objects.create(+ team=self.team, kind=Integration.IntegrationKind.S3_COMPATIBLE, integration_id="x"+ )+ with pytest.raises(S3CredentialIntegrationError, match="is not an AWS S3 integration"):+ AwsS3Integration(integration)++ def test_wrapping_missing_credentials_raises(self):+ integration = Integration.objects.create(+ team=self.team, kind=Integration.IntegrationKind.AWS_S3, integration_id="x", sensitive_config={}+ )+ with pytest.raises(S3CredentialIntegrationError, match="missing"):+ AwsS3Integration(integration)+++class TestS3CompatibleIntegrationModel(BaseTest):+ def test_integration_from_config_with_valid_config(self):+ integration = S3CompatibleIntegration.integration_from_config(+ team_id=self.team.pk,+ name="my-r2",+ endpoint_url="https://account.r2.cloudflarestorage.com",+ aws_access_key_id="key",+ aws_secret_access_key="secret",+ created_by=self.user,+ )+ assert integration.kind == Integration.IntegrationKind.S3_COMPATIBLE+ assert integration.integration_id == "my-r2"+ # endpoint_url is non-sensitive and lives in config.+ assert integration.config == {"name": "my-r2", "endpoint_url": "https://account.r2.cloudflarestorage.com"}+ assert integration.sensitive_config == {"aws_access_key_id": "key", "aws_secret_access_key": "secret"}+ wrapped = S3CompatibleIntegration(integration)+ assert wrapped.endpoint_url == "https://account.r2.cloudflarestorage.com"+ # display_name surfaces auth type and endpoint so users can tell integrations apart.+ assert integration.display_name == "my-r2 (access key, https://account.r2.cloudflarestorage.com)"++ def test_integration_from_config_requires_endpoint_url(self):+ with pytest.raises(S3CredentialIntegrationError, match="endpoint URL is required"):+ S3CompatibleIntegration.integration_from_config(+ team_id=self.team.pk,+ name="my-r2",+ endpoint_url="",+ aws_access_key_id="key",+ aws_secret_access_key="secret",+ )++ def test_integration_from_config_rejects_duplicate_name(self):+ S3CompatibleIntegration.integration_from_config(+ team_id=self.team.pk,+ name="my-r2",+ endpoint_url="https://account.r2.cloudflarestorage.com",+ aws_access_key_id="key",+ aws_secret_access_key="secret",+ )+ with pytest.raises(S3CredentialIntegrationError, match="An integration named 'my-r2' already exists"):+ S3CompatibleIntegration.integration_from_config(+ team_id=self.team.pk,+ name="my-r2",+ endpoint_url="https://other.r2.cloudflarestorage.com",+ aws_access_key_id="key2",+ aws_secret_access_key="secret2",+ )+ assert Integration.objects.filter(team=self.team, integration_id="my-r2").count() == 1++ # is_url_allowed bypasses validation in DEBUG/test mode, so force the production path to exercise rejection.+ @override_settings(FORCE_URL_VALIDATION=True)+ def test_integration_from_config_rejects_internal_endpoint(self):+ with pytest.raises(S3CredentialIntegrationError, match="Invalid endpoint URL"):+ S3CompatibleIntegration.integration_from_config(+ team_id=self.team.pk,+ name="my-r2",+ endpoint_url="https://169.254.169.254",+ aws_access_key_id="key",+ aws_secret_access_key="secret",+ )++ def test_wrapping_missing_endpoint_url_raises(self):+ integration = Integration.objects.create(+ team=self.team,+ kind=Integration.IntegrationKind.S3_COMPATIBLE,+ integration_id="x",+ config={"name": "x"},+ sensitive_config={"aws_access_key_id": "key", "aws_secret_access_key": "secret"},+ )+ with pytest.raises(S3CredentialIntegrationError, match="missing required field: 'endpoint_url'"):+ S3CompatibleIntegration(integration)++class TestGoogleCloudServiceAccountIntegration(BaseTest):def test_raises_on_duplicate_service_account_email(self):_ = GoogleCloudServiceAccountIntegration.integration_from_service_account(diff --git a/posthog/security/test/test_url_validation.py b/posthog/security/test/test_url_validation.pyindex 32d853d11fa3..34ea75f9e220 100644--- a/posthog/security/test/test_url_validation.py+++ b/posthog/security/test/test_url_validation.py@@ -34,16 +34,15 @@ class TestUrlValidation:assert ok and err is Noneassert uv.should_block_url("http://localhost/x") is False- @pytest.mark.parametrize("env_value", ["1", "true", "TRUE", "True"])- def test_force_url_validation_env_var_disables_dev_bypass(self, monkeypatch, env_value):+ def test_force_url_validation_setting_disables_dev_bypass(self, monkeypatch, settings):monkeypatch.setattr(uv, "is_dev_mode", lambda: True)- monkeypatch.setenv("POSTHOG_FORCE_URL_VALIDATION", env_value)+ settings.FORCE_URL_VALIDATION = Trueok, err = uv.is_url_allowed("http://localhost")assert not ok and "Loopback" in (err or "")- def test_force_url_validation_env_var_unset_keeps_dev_bypass(self, monkeypatch):+ def test_force_url_validation_setting_off_keeps_dev_bypass(self, monkeypatch, settings):monkeypatch.setattr(uv, "is_dev_mode", lambda: True)- monkeypatch.delenv("POSTHOG_FORCE_URL_VALIDATION", raising=False)+ settings.FORCE_URL_VALIDATION = Falseok, err = uv.is_url_allowed("http://localhost")assert ok and err is Nonediff --git a/posthog/security/url_validation.py b/posthog/security/url_validation.pyindex 14e0449b903a..88140e71d623 100644--- a/posthog/security/url_validation.py+++ b/posthog/security/url_validation.py@@ -1,8 +1,9 @@-import osimport socketimport ipaddressimport urllib.parse as urlparse+from django.conf import settings+import structlogfrom posthog.cloud_utils import is_dev_mode@@ -109,14 +110,15 @@ def has_authority_bypass_chars(url: str) -> bool:def _dev_bypass_enabled() -> bool:- """- Dev mode short-circuits is_url_allowed unless POSTHOG_FORCE_URL_VALIDATION is set.- Developers can set the env var to exercise the production code path locally- (e.g. to reproduce or verify SSRF-related fixes) without flipping global DEBUG.+ """Dev mode short-circuits is_url_allowed.++ Set the FORCE_URL_VALIDATION setting (POSTHOG_FORCE_URL_VALIDATION env var) to+ exercise the production code path locally (e.g. to reproduce or verify SSRF-related+ fixes) without flipping global DEBUG."""if not is_dev_mode():return False- return os.environ.get("POSTHOG_FORCE_URL_VALIDATION", "").lower() not in {"1", "true"}+ return not settings.FORCE_URL_VALIDATIONdef is_url_allowed(raw_url: str) -> tuple[bool, str | None]:diff --git a/posthog/settings/access.py b/posthog/settings/access.pyindex e08a40c590ba..46c1d4af109a 100644--- a/posthog/settings/access.py+++ b/posthog/settings/access.py@@ -150,3 +150,8 @@ else:CORS_ORIGIN_ALLOW_ALL = TrueBLOCKED_GEOIP_REGIONS = get_list(os.getenv("BLOCKED_GEOIP_REGIONS", ""))++# SSRF protection: in dev/DEBUG, is_url_allowed() short-circuits and allows every URL so local+# development can reach localhost services. Set this to run the production validation path in dev —+# e.g. to reproduce or test SSRF fixes — without flipping DEBUG globally.+FORCE_URL_VALIDATION: bool = get_from_env("POSTHOG_FORCE_URL_VALIDATION", False, type_cast=str_to_bool)diff --git a/products/integrations/frontend/generated/api.schemas.ts b/products/integrations/frontend/generated/api.schemas.tsindex 37cd0febda4c..7565b6015ad2 100644--- a/products/integrations/frontend/generated/api.schemas.ts+++ b/products/integrations/frontend/generated/api.schemas.ts@@ -151,6 +151,7 @@ export interface RoleLookupResponseApi {/*** * `anthropic` - Anthropic* * `apns` - Apple Push+ * * `aws-s3` - Aws S3* * `azure-blob` - Azure Blob* * `bing-ads` - Bing Ads* * `clickup` - Clickup@@ -178,6 +179,7 @@ export interface RoleLookupResponseApi {* * `pinterest-ads` - Pinterest Ads* * `postgresql` - Postgresql* * `reddit-ads` - Reddit Ads+ * * `s3-compatible` - S3 Compatible* * `salesforce` - Salesforce* * `slack` - Slack* * `slack-posthog-code` - Slack Posthog Code@@ -192,6 +194,7 @@ export type IntegrationKindEnumApi = (typeof IntegrationKindEnumApi)[keyof typeoexport const IntegrationKindEnumApi = {Anthropic: 'anthropic',Apns: 'apns',+ AwsS3: 'aws-s3',AzureBlob: 'azure-blob',BingAds: 'bing-ads',Clickup: 'clickup',@@ -219,6 +222,7 @@ export const IntegrationKindEnumApi = {PinterestAds: 'pinterest-ads',Postgresql: 'postgresql',RedditAds: 'reddit-ads',+ S3Compatible: 's3-compatible',Salesforce: 'salesforce',Slack: 'slack',SlackPosthogCode: 'slack-posthog-code',@@ -352,6 +356,7 @@ export interface IntegrationAccessRequestApi {** * `anthropic` - Anthropic* * `apns` - Apple Push+ * * `aws-s3` - Aws S3* * `azure-blob` - Azure Blob* * `bing-ads` - Bing Ads* * `clickup` - Clickup@@ -379,6 +384,7 @@ export interface IntegrationAccessRequestApi {* * `pinterest-ads` - Pinterest Ads* * `postgresql` - Postgresql* * `reddit-ads` - Reddit Ads+ * * `s3-compatible` - S3 Compatible* * `salesforce` - Salesforce* * `slack` - Slack* * `slack-posthog-code` - Slack Posthog Code@@ -438,6 +444,7 @@ export type IntegrationsListParams = {/*** * `anthropic` - Anthropic* * `apns` - Apple Push+ * * `aws-s3` - Aws S3* * `azure-blob` - Azure Blob* * `bing-ads` - Bing Ads* * `clickup` - Clickup@@ -465,6 +472,7 @@ export type IntegrationsListParams = {* * `pinterest-ads` - Pinterest Ads* * `postgresql` - Postgresql* * `reddit-ads` - Reddit Ads+ * * `s3-compatible` - S3 Compatible* * `salesforce` - Salesforce* * `slack` - Slack* * `slack-posthog-code` - Slack Posthog Code@@ -490,6 +498,7 @@ export type IntegrationsListKind = (typeof IntegrationsListKind)[keyof typeof Inexport const IntegrationsListKind = {Anthropic: 'anthropic',Apns: 'apns',+ AwsS3: 'aws-s3',AzureBlob: 'azure-blob',BingAds: 'bing-ads',Clickup: 'clickup',@@ -517,6 +526,7 @@ export const IntegrationsListKind = {PinterestAds: 'pinterest-ads',Postgresql: 'postgresql',RedditAds: 'reddit-ads',+ S3Compatible: 's3-compatible',Salesforce: 'salesforce',Slack: 'slack',SlackPosthogCode: 'slack-posthog-code',diff --git a/products/integrations/frontend/generated/api.zod.ts b/products/integrations/frontend/generated/api.zod.tsindex 0abbe6bb1a0c..134c0e94d170 100644--- a/products/integrations/frontend/generated/api.zod.ts+++ b/products/integrations/frontend/generated/api.zod.ts@@ -64,6 +64,7 @@ export const IntegrationsCreateBody = /* @__PURE__ */ zod.enum(['anthropic','apns',+ 'aws-s3','azure-blob','bing-ads','clickup',@@ -91,6 +92,7 @@ export const IntegrationsCreateBody = /* @__PURE__ */ zod'pinterest-ads','postgresql','reddit-ads',+ 's3-compatible','salesforce','slack','slack-posthog-code',@@ -101,7 +103,7 @@ export const IntegrationsCreateBody = /* @__PURE__ */ zod'vercel',]).describe(- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'),config: zod.unknown().optional(),})@@ -113,6 +115,7 @@ export const IntegrationsEmailPartialUpdateBody = /* @__PURE__ */ zod.enum(['anthropic','apns',+ 'aws-s3','azure-blob','bing-ads','clickup',@@ -140,6 +143,7 @@ export const IntegrationsEmailPartialUpdateBody = /* @__PURE__ */ zod'pinterest-ads','postgresql','reddit-ads',+ 's3-compatible','salesforce','slack','slack-posthog-code',@@ -151,7 +155,7 @@ export const IntegrationsEmailPartialUpdateBody = /* @__PURE__ */ zod]).optional().describe(- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'),config: zod.unknown().optional(),})@@ -163,6 +167,7 @@ export const IntegrationsEmailVerifyCreateBody = /* @__PURE__ */ zod.enum(['anthropic','apns',+ 'aws-s3','azure-blob','bing-ads','clickup',@@ -190,6 +195,7 @@ export const IntegrationsEmailVerifyCreateBody = /* @__PURE__ */ zod'pinterest-ads','postgresql','reddit-ads',+ 's3-compatible','salesforce','slack','slack-posthog-code',@@ -200,7 +206,7 @@ export const IntegrationsEmailVerifyCreateBody = /* @__PURE__ */ zod'vercel',]).describe(- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'),config: zod.unknown().optional(),})@@ -219,6 +225,7 @@ export const IntegrationsDomainConnectApplyUrlCreateBody = /* @__PURE__ */ zod.enum(['anthropic','apns',+ 'aws-s3','azure-blob','bing-ads','clickup',@@ -246,6 +253,7 @@ export const IntegrationsDomainConnectApplyUrlCreateBody = /* @__PURE__ */ zod'pinterest-ads','postgresql','reddit-ads',+ 's3-compatible','salesforce','slack','slack-posthog-code',@@ -256,7 +264,7 @@ export const IntegrationsDomainConnectApplyUrlCreateBody = /* @__PURE__ */ zod'vercel',]).describe(- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'),config: zod.unknown().optional(),})@@ -271,6 +279,7 @@ export const IntegrationsGithubLinkExistingCreateBody = /* @__PURE__ */ zod.enum(['anthropic','apns',+ 'aws-s3','azure-blob','bing-ads','clickup',@@ -298,6 +307,7 @@ export const IntegrationsGithubLinkExistingCreateBody = /* @__PURE__ */ zod'pinterest-ads','postgresql','reddit-ads',+ 's3-compatible','salesforce','slack','slack-posthog-code',@@ -308,7 +318,7 @@ export const IntegrationsGithubLinkExistingCreateBody = /* @__PURE__ */ zod'vercel',]).describe(- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'),config: zod.unknown().optional(),})@@ -323,6 +333,7 @@ export const IntegrationsGithubOauthAuthorizeCreateBody = /* @__PURE__ */ zod.enum(['anthropic','apns',+ 'aws-s3','azure-blob','bing-ads','clickup',@@ -350,6 +361,7 @@ export const IntegrationsGithubOauthAuthorizeCreateBody = /* @__PURE__ */ zod'pinterest-ads','postgresql','reddit-ads',+ 's3-compatible','salesforce','slack','slack-posthog-code',@@ -360,7 +372,7 @@ export const IntegrationsGithubOauthAuthorizeCreateBody = /* @__PURE__ */ zod'vercel',]).describe(- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'),config: zod.unknown().optional(),})@@ -376,6 +388,7 @@ export const IntegrationsRequestAccessCreateBody = /* @__PURE__ */ zod.object({.enum(['anthropic','apns',+ 'aws-s3','azure-blob','bing-ads','clickup',@@ -403,6 +416,7 @@ export const IntegrationsRequestAccessCreateBody = /* @__PURE__ */ zod.object({'pinterest-ads','postgresql','reddit-ads',+ 's3-compatible','salesforce','slack','slack-posthog-code',@@ -413,10 +427,10 @@ export const IntegrationsRequestAccessCreateBody = /* @__PURE__ */ zod.object({'vercel',]).describe(- '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel'+ '\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel').describe(- "The kind of integration the member is requesting be connected (e.g. 'slack', 'github').\n\n\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel"+ "The kind of integration the member is requesting be connected (e.g. 'slack', 'github').\n\n\* `anthropic` - Anthropic\n\* `apns` - Apple Push\n\* `aws-s3` - Aws S3\n\* `azure-blob` - Azure Blob\n\* `bing-ads` - Bing Ads\n\* `clickup` - Clickup\n\* `customerio-app` - Customerio App\n\* `customerio-track` - Customerio Track\n\* `customerio-webhook` - Customerio Webhook\n\* `databricks` - Databricks\n\* `email` - Email\n\* `firebase` - Firebase\n\* `github` - Github\n\* `gitlab` - Gitlab\n\* `google-ads` - Google Ads\n\* `google-analytics` - Google Analytics\n\* `google-cloud-service-account` - Google Cloud Service Account\n\* `google-cloud-storage` - Google Cloud Storage\n\* `google-pubsub` - Google Pubsub\n\* `google-search-console` - Google Search Console\n\* `google-sheets` - Google Sheets\n\* `hubspot` - Hubspot\n\* `intercom` - Intercom\n\* `jira` - Jira\n\* `linear` - Linear\n\* `linkedin-ads` - Linkedin Ads\n\* `meta-ads` - Meta Ads\n\* `pinterest-ads` - Pinterest Ads\n\* `postgresql` - Postgresql\n\* `reddit-ads` - Reddit Ads\n\* `s3-compatible` - S3 Compatible\n\* `salesforce` - Salesforce\n\* `slack` - Slack\n\* `slack-posthog-code` - Slack Posthog Code\n\* `snapchat` - Snapchat\n\* `stripe` - Stripe\n\* `tiktok-ads` - Tiktok Ads\n\* `twilio` - Twilio\n\* `vercel` - Vercel"),reason: zod.string()diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex f20d8fd10166..c1d556c46ba1 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -26349,6 +26349,7 @@ export namespace Schemas {/*** * `anthropic` - Anthropic* * `apns` - Apple Push+ * * `aws-s3` - Aws S3* * `azure-blob` - Azure Blob* * `bing-ads` - Bing Ads* * `clickup` - Clickup@@ -26376,6 +26377,7 @@ export namespace Schemas {* * `pinterest-ads` - Pinterest Ads* * `postgresql` - Postgresql* * `reddit-ads` - Reddit Ads+ * * `s3-compatible` - S3 Compatible* * `salesforce` - Salesforce* * `slack` - Slack* * `slack-posthog-code` - Slack Posthog Code@@ -26391,6 +26393,7 @@ export namespace Schemas {export const IntegrationKindEnum = {Anthropic: 'anthropic',Apns: 'apns',+ AwsS3: 'aws-s3',AzureBlob: 'azure-blob',BingAds: 'bing-ads',Clickup: 'clickup',@@ -26418,6 +26421,7 @@ export namespace Schemas {PinterestAds: 'pinterest-ads',Postgresql: 'postgresql',RedditAds: 'reddit-ads',+ S3Compatible: 's3-compatible',Salesforce: 'salesforce',Slack: 'slack',SlackPosthogCode: 'slack-posthog-code',@@ -26433,6 +26437,7 @@ export namespace Schemas {** * `anthropic` - Anthropic* * `apns` - Apple Push+ * * `aws-s3` - Aws S3* * `azure-blob` - Azure Blob* * `bing-ads` - Bing Ads* * `clickup` - Clickup@@ -26460,6 +26465,7 @@ export namespace Schemas {* * `pinterest-ads` - Pinterest Ads* * `postgresql` - Postgresql* * `reddit-ads` - Reddit Ads+ * * `s3-compatible` - S3 Compatible* * `salesforce` - Salesforce* * `slack` - Slack* * `slack-posthog-code` - Slack Posthog Code@@ -54469,6 +54475,7 @@ export namespace Schemas {/*** * `anthropic` - Anthropic* * `apns` - Apple Push+ * * `aws-s3` - Aws S3* * `azure-blob` - Azure Blob* * `bing-ads` - Bing Ads* * `clickup` - Clickup@@ -54496,6 +54503,7 @@ export namespace Schemas {* * `pinterest-ads` - Pinterest Ads* * `postgresql` - Postgresql* * `reddit-ads` - Reddit Ads+ * * `s3-compatible` - S3 Compatible* * `salesforce` - Salesforce* * `slack` - Slack* * `slack-posthog-code` - Slack Posthog Code@@ -54522,6 +54530,7 @@ export namespace Schemas {export const EnvironmentsIntegrationsListKind = {Anthropic: 'anthropic',Apns: 'apns',+ AwsS3: 'aws-s3',AzureBlob: 'azure-blob',BingAds: 'bing-ads',Clickup: 'clickup',@@ -54549,6 +54558,7 @@ export namespace Schemas {PinterestAds: 'pinterest-ads',Postgresql: 'postgresql',RedditAds: 'reddit-ads',+ S3Compatible: 's3-compatible',Salesforce: 'salesforce',Slack: 'slack',SlackPosthogCode: 'slack-posthog-code',@@ -60771,6 +60781,7 @@ export namespace Schemas {/*** * `anthropic` - Anthropic* * `apns` - Apple Push+ * * `aws-s3` - Aws S3* * `azure-blob` - Azure Blob* * `bing-ads` - Bing Ads* * `clickup` - Clickup@@ -60798,6 +60809,7 @@ export namespace Schemas {* * `pinterest-ads` - Pinterest Ads* * `postgresql` - Postgresql* * `reddit-ads` - Reddit Ads+ * * `s3-compatible` - S3 Compatible* * `salesforce` - Salesforce* * `slack` - Slack* * `slack-posthog-code` - Slack Posthog Code@@ -60824,6 +60836,7 @@ export namespace Schemas {export const IntegrationsListKind = {Anthropic: 'anthropic',Apns: 'apns',+ AwsS3: 'aws-s3',AzureBlob: 'azure-blob',BingAds: 'bing-ads',Clickup: 'clickup',@@ -60851,6 +60864,7 @@ export namespace Schemas {PinterestAds: 'pinterest-ads',Postgresql: 'postgresql',RedditAds: 'reddit-ads',+ S3Compatible: 's3-compatible',Salesforce: 'salesforce',Slack: 'slack',SlackPosthogCode: 'slack-posthog-code',diff --git a/services/mcp/src/generated/integrations/api.ts b/services/mcp/src/generated/integrations/api.tsindex ed8f961ab8ad..a32b9d29f2a4 100644--- a/services/mcp/src/generated/integrations/api.ts+++ b/services/mcp/src/generated/integrations/api.ts@@ -21,6 +21,7 @@ export const IntegrationsListQueryParams = /* @__PURE__ */ zod.object({.enum(['anthropic','apns',+ 'aws-s3','azure-blob','bing-ads','clickup',@@ -48,6 +49,7 @@ export const IntegrationsListQueryParams = /* @__PURE__ */ zod.object({'pinterest-ads','postgresql','reddit-ads',+ 's3-compatible','salesforce','slack','slack-posthog-code',@@ -59,7 +61,7 @@ export const IntegrationsListQueryParams = /* @__PURE__ */ zod.object({]).optional().describe(- '* `anthropic` - Anthropic\n* `apns` - Apple Push\n* `azure-blob` - Azure Blob\n* `bing-ads` - Bing Ads\n* `clickup` - Clickup\n* `customerio-app` - Customerio App\n* `customerio-track` - Customerio Track\n* `customerio-webhook` - Customerio Webhook\n* `databricks` - Databricks\n* `email` - Email\n* `firebase` - Firebase\n* `github` - Github\n* `gitlab` - Gitlab\n* `google-ads` - Google Ads\n* `google-analytics` - Google Analytics\n* `google-cloud-service-account` - Google Cloud Service Account\n* `google-cloud-storage` - Google Cloud Storage\n* `google-pubsub` - Google Pubsub\n* `google-search-console` - Google Search Console\n* `google-sheets` - Google Sheets\n* `hubspot` - Hubspot\n* `intercom` - Intercom\n* `jira` - Jira\n* `linear` - Linear\n* `linkedin-ads` - Linkedin Ads\n* `meta-ads` - Meta Ads\n* `pinterest-ads` - Pinterest Ads\n* `postgresql` - Postgresql\n* `reddit-ads` - Reddit Ads\n* `salesforce` - Salesforce\n* `slack` - Slack\n* `slack-posthog-code` - Slack Posthog Code\n* `snapchat` - Snapchat\n* `stripe` - Stripe\n* `tiktok-ads` - Tiktok Ads\n* `twilio` - Twilio\n* `vercel` - Vercel'+ '* `anthropic` - Anthropic\n* `apns` - Apple Push\n* `aws-s3` - Aws S3\n* `azure-blob` - Azure Blob\n* `bing-ads` - Bing Ads\n* `clickup` - Clickup\n* `customerio-app` - Customerio App\n* `customerio-track` - Customerio Track\n* `customerio-webhook` - Customerio Webhook\n* `databricks` - Databricks\n* `email` - Email\n* `firebase` - Firebase\n* `github` - Github\n* `gitlab` - Gitlab\n* `google-ads` - Google Ads\n* `google-analytics` - Google Analytics\n* `google-cloud-service-account` - Google Cloud Service Account\n* `google-cloud-storage` - Google Cloud Storage\n* `google-pubsub` - Google Pubsub\n* `google-search-console` - Google Search Console\n* `google-sheets` - Google Sheets\n* `hubspot` - Hubspot\n* `intercom` - Intercom\n* `jira` - Jira\n* `linear` - Linear\n* `linkedin-ads` - Linkedin Ads\n* `meta-ads` - Meta Ads\n* `pinterest-ads` - Pinterest Ads\n* `postgresql` - Postgresql\n* `reddit-ads` - Reddit Ads\n* `s3-compatible` - S3 Compatible\n* `salesforce` - Salesforce\n* `slack` - Slack\n* `slack-posthog-code` - Slack Posthog Code\n* `snapchat` - Snapchat\n* `stripe` - Stripe\n* `tiktok-ads` - Tiktok Ads\n* `twilio` - Twilio\n* `vercel` - Vercel'),limit: zod.number().optional().describe('Number of results to return per page.'),offset: zod.number().optional().describe('The initial index from which to return the results.'),diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-list.jsonindex 852295d1cb47..dca200a0147f 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-list.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-list.json@@ -2,10 +2,11 @@"$schema": "https://json-schema.org/draft/2020-12/schema","properties": {"kind": {- "description": "* `anthropic` - Anthropic\n* `apns` - Apple Push\n* `azure-blob` - Azure Blob\n* `bing-ads` - Bing Ads\n* `clickup` - Clickup\n* `customerio-app` - Customerio App\n* `customerio-track` - Customerio Track\n* `customerio-webhook` - Customerio Webhook\n* `databricks` - Databricks\n* `email` - Email\n* `firebase` - Firebase\n* `github` - Github\n* `gitlab` - Gitlab\n* `google-ads` - Google Ads\n* `google-analytics` - Google Analytics\n* `google-cloud-service-account` - Google Cloud Service Account\n* `google-cloud-storage` - Google Cloud Storage\n* `google-pubsub` - Google Pubsub\n* `google-search-console` - Google Search Console\n* `google-sheets` - Google Sheets\n* `hubspot` - Hubspot\n* `intercom` - Intercom\n* `jira` - Jira\n* `linear` - Linear\n* `linkedin-ads` - Linkedin Ads\n* `meta-ads` - Meta Ads\n* `pinterest-ads` - Pinterest Ads\n* `postgresql` - Postgresql\n* `reddit-ads` - Reddit Ads\n* `salesforce` - Salesforce\n* `slack` - Slack\n* `slack-posthog-code` - Slack Posthog Code\n* `snapchat` - Snapchat\n* `stripe` - Stripe\n* `tiktok-ads` - Tiktok Ads\n* `twilio` - Twilio\n* `vercel` - Vercel",+ "description": "* `anthropic` - Anthropic\n* `apns` - Apple Push\n* `aws-s3` - Aws S3\n* `azure-blob` - Azure Blob\n* `bing-ads` - Bing Ads\n* `clickup` - Clickup\n* `customerio-app` - Customerio App\n* `customerio-track` - Customerio Track\n* `customerio-webhook` - Customerio Webhook\n* `databricks` - Databricks\n* `email` - Email\n* `firebase` - Firebase\n* `github` - Github\n* `gitlab` - Gitlab\n* `google-ads` - Google Ads\n* `google-analytics` - Google Analytics\n* `google-cloud-service-account` - Google Cloud Service Account\n* `google-cloud-storage` - Google Cloud Storage\n* `google-pubsub` - Google Pubsub\n* `google-search-console` - Google Search Console\n* `google-sheets` - Google Sheets\n* `hubspot` - Hubspot\n* `intercom` - Intercom\n* `jira` - Jira\n* `linear` - Linear\n* `linkedin-ads` - Linkedin Ads\n* `meta-ads` - Meta Ads\n* `pinterest-ads` - Pinterest Ads\n* `postgresql` - Postgresql\n* `reddit-ads` - Reddit Ads\n* `s3-compatible` - S3 Compatible\n* `salesforce` - Salesforce\n* `slack` - Slack\n* `slack-posthog-code` - Slack Posthog Code\n* `snapchat` - Snapchat\n* `stripe` - Stripe\n* `tiktok-ads` - Tiktok Ads\n* `twilio` - Twilio\n* `vercel` - Vercel","enum": ["anthropic","apns",+ "aws-s3","azure-blob","bing-ads","clickup",@@ -33,6 +34,7 @@"pinterest-ads","postgresql","reddit-ads",+ "s3-compatible","salesforce","slack","slack-posthog-code",