: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
chore(devex): make product isolation checks enforce what they claim (#82442)
Julian Bez6153ff4ce862
diff --git a/.claude/rules/product-isolation.md b/.claude/rules/product-isolation.mdindex 94585bd50125..6a5d985b1f27 100644--- a/.claude/rules/product-isolation.md+++ b/.claude/rules/product-isolation.md@@ -16,7 +16,9 @@ this product is isolated.(`QueryRunner`, `MaxTool`, Temporal defns, `@shared_task`) and are defined under theproduct's wiring locations (`backend/hogql_queries/`, `backend/max_tools.py`,`backend/temporal/`, `backend/tasks/`); data and error types belong in- `facade/contracts.py`; Django models never cross the boundary+ `facade/contracts.py`; Django models never cross the boundary, except for the few+ `(product, class)` pairs on the frozen watched-models allowance (`MODEL_CROSSINGS`),+ whose `backend/models/` + `backend/migrations/` must stay in the contract-check inputs(see `products/architecture.md` § Wiring couplings).- **Not isolated:** boundaries are not yet enforced by CI, but prefer using existingfacades when they exist rather than importing internals.diff --git a/AGENTS.md b/AGENTS.mdindex 31e711a40a4d..ebb8087421ca 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -206,7 +206,7 @@ See [.agents/security.md](.agents/security.md) for security guidelines — least- Comments: never log change history or chat context in code — no "previously did X, now does Y", "per <task/PR>", "changed because…", or "AI:"/"agent:" notes. That goes in the commit message and PR description- Comments: when refactoring or moving code, preserve existing comments unless they are explicitly made obsolete by the change- Python tests: do not add doc comments-- Python: do not create empty `__init__.py` files+- Python: do not create empty `__init__.py` files, with one exception: the package markers import tooling needs — `products/`, every product's `backend/`, and their `facade/` and `presentation/` trees. `products/` carries one so file-based mypy resolves `products.<name>.backend` rather than `<name>.backend`; that makes it a regular package, and grimp then stops descending at the first directory without a marker, silently dropping everything below it from every import-linter contract. `hogli product:lint` enforces those markers. Everywhere else — test directories, generated trees — leave the file out- jest tests: when writing jest tests, prefer a single top-level describe block in a file- Tests: prefer parameterized tests (use the `parameterized` library in Python) — if you're writing multiple assertions for variations of the same logic, it should be parameterized- Tests must earn their place: every new test has to catch a realistic regression no existing test already catches (if you can't name it, don't add it), assert observable behavior through the public interface rather than implementation details, and stay cheap — deterministic, isolated, and at the lowest level that catches the bug (see `/writing-tests`)diff --git a/posthog/hogql/database/database.py b/posthog/hogql/database/database.pyindex a1e6fd8341aa..7e3490369d33 100644--- a/posthog/hogql/database/database.py+++ b/posthog/hogql/database/database.py@@ -1320,8 +1320,8 @@ class Database(BaseModel):from products.warehouse_sources.backend.facade.models import ( # noqa: PLC0415DataWarehouseTable,ExternalDataSource,- ManagedWarehouseSQLMode,)+ from products.warehouse_sources.backend.facade.types import ManagedWarehouseSQLMode # noqa: PLC0415with timings.measure("team", emit_span=True):if team_id is None and team is None:diff --git a/posthog/hogql/direct_connection.py b/posthog/hogql/direct_connection.pyindex 3dd0977b233b..1d44680f3647 100644--- a/posthog/hogql/direct_connection.py+++ b/posthog/hogql/direct_connection.py@@ -14,11 +14,8 @@ from posthog.rbac.user_access_control import UserAccessControlfrom posthog.shared_link_user import SharedLinkUserfrom posthog.synthetic_user import SyntheticUser-from products.warehouse_sources.backend.facade.models import (- DataWarehouseTable,- ExternalDataSource,- ManagedWarehouseSQLMode,-)+from products.warehouse_sources.backend.facade.models import DataWarehouseTable, ExternalDataSource+from products.warehouse_sources.backend.facade.types import ManagedWarehouseSQLModeif TYPE_CHECKING:from posthog.models import Team, Userdiff --git a/posthog/hogql/direct_sql/__init__.py b/posthog/hogql/direct_sql/__init__.pyindex 48b7bf6a402e..93a65a3c07b3 100644--- a/posthog/hogql/direct_sql/__init__.py+++ b/posthog/hogql/direct_sql/__init__.py@@ -10,7 +10,8 @@ from posthog.hogql.direct_sql.redshift_adapter import RedshiftAdapterfrom posthog.hogql.direct_sql.registry import get_adapter, register_adapter, registered_enginesfrom posthog.hogql.direct_sql.snowflake_adapter import SnowflakeAdapter-from products.warehouse_sources.backend.facade.models import ExternalDataSource, ManagedWarehouseSQLMode+from products.warehouse_sources.backend.facade.models import ExternalDataSource+from products.warehouse_sources.backend.facade.types import ManagedWarehouseSQLModeregister_adapter(PostgresAdapter())register_adapter(MySQLAdapter())diff --git a/posthog/hogql/query.py b/posthog/hogql/query.pyindex 06b45fd6ed85..d12c445b3792 100644--- a/posthog/hogql/query.py+++ b/posthog/hogql/query.py@@ -74,7 +74,7 @@ from posthog.models.user import Userfrom posthog.rbac.user_access_control import UserAccessControlfrom posthog.settings import HOGQL_INCREASED_MAX_EXECUTION_TIME-from products.warehouse_sources.backend.facade.models import ManagedWarehouseSQLMode+from products.warehouse_sources.backend.facade.types import ManagedWarehouseSQLModetracer = trace.get_tracer(__name__)diff --git a/posthog/hogql_queries/hogql_query_runner.py b/posthog/hogql_queries/hogql_query_runner.pyindex ed1b0c51763c..5d17c72d4860 100644--- a/posthog/hogql_queries/hogql_query_runner.py+++ b/posthog/hogql_queries/hogql_query_runner.py@@ -34,7 +34,7 @@ from posthog.hogql_queries.query_runner import AnalyticsQueryRunner, ExecutionMofrom posthog.models import Userfrom products.managed_warehouse.backend.facade import feature_flags as managed_warehouse_feature_flags-from products.warehouse_sources.backend.facade.models import ManagedWarehouseSQLMode+from products.warehouse_sources.backend.facade.types import ManagedWarehouseSQLMode_INFORMATION_SCHEMA_PREFIX = "system.information_schema."diff --git a/posthog/settings/web.py b/posthog/settings/web.pyindex c528d5f5f7d0..cd30b06d34c7 100644--- a/posthog/settings/web.py+++ b/posthog/settings/web.py@@ -587,7 +587,7 @@ SPECTACULAR_SETTINGS = {"SavedQueryStatusEnum": "products.data_modeling.backend.models.datawarehouse_saved_query.DataWarehouseSavedQuery.Status","PushTokenPlatformEnum": "posthog.models.user_push_token.UserPushToken.Platform","PropertyDefinitionTypeEnum": "products.event_definitions.backend.models.property_definition.PropertyType",- "ExternalDataSourceTypeEnum": "products.warehouse_sources.backend.types.ExternalDataSourceType",+ "ExternalDataSourceTypeEnum": "products.warehouse_sources.backend.facade.types.ExternalDataSourceType","ExperimentMetricKindEnum": "products.ai_observability.backend.models.score_definitions.ScoreDefinition.Kind","EvaluationTargetEnum": "products.ai_observability.backend.models.evaluations.EvaluationTarget","IntegrationKindEnum": "posthog.models.integration.Integration.IntegrationKind",diff --git a/products/alerts/backend/facade/__init__.py b/products/alerts/backend/facade/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/annotations/backend/__init__.py b/products/annotations/backend/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/apm/backend/__init__.py b/products/apm/backend/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/apm/backend/facade/__init__.py b/products/apm/backend/facade/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/apm/backend/presentation/__init__.py b/products/apm/backend/presentation/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/apm/backend/tasks/__init__.py b/products/apm/backend/tasks/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/architecture.md b/products/architecture.mdindex c54daf996b23..908098a50233 100644--- a/products/architecture.md+++ b/products/architecture.md@@ -105,6 +105,15 @@ A model cannot be narrowed: whatever interface it presents, the object still carTwo core registries are keyed by model class identity and are explicit, sanctioned exceptions: the team-extension registry and the file-system unfiled registry (`FileSystemSyncMixin`).There the class crosses for registration only, core drives only the registry's mixin methods, and the model's module must stay in the product's contract-check inputs.+**The watched-models allowance** is the one further, deliberately temporary exception, for products whose models are load-bearing substrate that core consumes at query time and cannot yet stop consuming (today only `warehouse_sources`, whose warehouse table/schema/source models core HogQL reads to build queryable tables).+An allowance product's facade may hand out model classes defined under `backend/models/`, provided the whole model surface — `backend/models/` and `backend/migrations/` — stays in the `backend:contract-check` inputs, so any model or migration change still re-runs the full suite.+That is the same soundness contract wiring locations have; what it does not buy is isolation — the coupling to core remains, `hogli product:lint` keeps a standing warning on it, and the direction of travel is still facade functions returning contracts.+The list lives in `MODEL_CROSSINGS` (`tools/hogli-commands/hogli_commands/product/isolation.py`) and is keyed `(product, class)`, like the carve-outs above: a class that is not listed is a leak and blocks narrowing, so a product already on the list cannot grow a new crossing without a doctrine change.+It only shrinks.+Adding an entry requires amending this section to name the class and why it cannot yet be a contract.+The bar is that some consumer needs ORM semantics a contract cannot express — relation traversal, queryset-typed downstream APIs like access-control filtering, row locking, or model behavior.+A consumer that only reads fields, or that ends in `values_list`, is disqualifying: the remedy there is a facade function returning contracts, not an entry here.+A behavioral class that fits no approved interface must not cross at all.Wrap it in a facade function returning contracts, or register a plain function (see the managed-view provider registry in `products/data_modeling/backend/facade/managed_viewset_hooks.py`).A product whose facade hands out unapproved behavior is not soundly isolated: it loses `backend:contract-check` and pays the full suite until fixed.diff --git a/products/data_catalog/backend/__init__.py b/products/data_catalog/backend/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/data_catalog/backend/facade/__init__.py b/products/data_catalog/backend/facade/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/data_catalog/backend/facade/api.py b/products/data_catalog/backend/facade/api.pyindex e394c47062c0..c580595e723f 100644--- a/products/data_catalog/backend/facade/api.py+++ b/products/data_catalog/backend/facade/api.py@@ -25,10 +25,11 @@ from ..logic.metrics import (upsert_metric,)from ..logic.relationships import accept_proposal, propose_relationship, reject_proposal, relationships_for_team-from ..logic.validation import validate_metric_definition+from ..logic.validation import MAX_DESCRIPTION_LENGTH, validate_metric_definitionfrom .models import Metric, RelationshipProposal, TableCertification__all__ = [+ "MAX_DESCRIPTION_LENGTH","Metric","RelationshipProposal","TableCertification",diff --git a/products/data_catalog/backend/presentation/__init__.py b/products/data_catalog/backend/presentation/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/data_catalog/backend/presentation/serializers.py b/products/data_catalog/backend/presentation/serializers.pyindex d006e2961586..fa5b0031297d 100644--- a/products/data_catalog/backend/presentation/serializers.py+++ b/products/data_catalog/backend/presentation/serializers.py@@ -13,9 +13,9 @@ from posthog.api.shared import UserBasicSerializerfrom posthog.schema_enums import IntervalTypefrom ..facade import api+from ..facade.api import MAX_DESCRIPTION_LENGTHfrom ..facade.enums import CreatedSourcefrom ..facade.models import Metric, RelationshipProposal, TableCertification-from ..logic.validation import MAX_DESCRIPTION_LENGTH@extend_schema_field(OpenApiTypes.OBJECT)diff --git a/products/data_catalog/backend/tasks/__init__.py b/products/data_catalog/backend/tasks/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/data_modeling/backend/facade/__init__.py b/products/data_modeling/backend/facade/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/data_modeling/backend/tests/api/test_node_api.py b/products/data_modeling/backend/tests/api/test_node_api.pyindex ab694bf6ab1a..27099f4f100c 100644--- a/products/data_modeling/backend/tests/api/test_node_api.py+++ b/products/data_modeling/backend/tests/api/test_node_api.py@@ -16,7 +16,7 @@ from products.data_modeling.backend.logic.node_frequency import set_declared_tarfrom products.data_modeling.backend.logic.node_suspension import mark_node_suspended, suspension_statefrom products.data_modeling.backend.models import DAG, Edge, Node, NodeTypefrom products.data_modeling.backend.models.datawarehouse_saved_query import DataWarehouseSavedQuery-from products.warehouse_sources.backend.tests.api._access_control_base import WarehouseAccessControlTestMixin+from products.warehouse_sources.backend.facade.testing import WarehouseAccessControlTestMixinclass TestNodeViewSet(APIBaseTest):diff --git a/products/data_quality/backend/facade/__init__.py b/products/data_quality/backend/facade/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/data_warehouse/backend/tests/api/test_expression_access_control.py b/products/data_warehouse/backend/tests/api/test_expression_access_control.pyindex e68d8cce24b2..6cc0d86b3dfe 100644--- a/products/data_warehouse/backend/tests/api/test_expression_access_control.py+++ b/products/data_warehouse/backend/tests/api/test_expression_access_control.py@@ -6,7 +6,7 @@ from rest_framework import statusfrom posthog.hogql.database.database import Database-from products.warehouse_sources.backend.tests.api._access_control_base import WarehouseAccessControlTestMixin+from products.warehouse_sources.backend.facade.testing import WarehouseAccessControlTestMixin@pytest.mark.eediff --git a/products/data_warehouse/backend/tests/api/test_managed_warehouse_monitoring.py b/products/data_warehouse/backend/tests/api/test_managed_warehouse_monitoring.pyindex ae6c2ad358cb..b82648eacfb1 100644--- a/products/data_warehouse/backend/tests/api/test_managed_warehouse_monitoring.py+++ b/products/data_warehouse/backend/tests/api/test_managed_warehouse_monitoring.py@@ -15,7 +15,7 @@ from products.data_modeling.backend.facade.models import DataWarehouseSavedQueryfrom products.data_warehouse.backend.presentation.managed_warehouse_monitoring import (ManagedWarehouseMonitoringSeriesQuerySerializer,)-from products.warehouse_sources.backend.tests.api._access_control_base import WarehouseAccessControlTestMixin+from products.warehouse_sources.backend.facade.testing import WarehouseAccessControlTestMixindef _snapshot(organization_id: object) -> dict[str, object]:diff --git a/products/data_warehouse/backend/tests/api/test_misc_warehouse_viewsets_access_control.py b/products/data_warehouse/backend/tests/api/test_misc_warehouse_viewsets_access_control.pyindex c2ae11325c09..c046199f236f 100644--- a/products/data_warehouse/backend/tests/api/test_misc_warehouse_viewsets_access_control.py+++ b/products/data_warehouse/backend/tests/api/test_misc_warehouse_viewsets_access_control.py@@ -23,7 +23,7 @@ from products.data_modeling.backend.facade.models import (NodeType,)from products.warehouse_sources.backend.facade.models import ExternalDataSchema, ExternalDataSource-from products.warehouse_sources.backend.tests.api._access_control_base import WarehouseAccessControlTestMixin+from products.warehouse_sources.backend.facade.testing import WarehouseAccessControlTestMixinMANAGED_VIEWSET_KIND = "revenue_analytics"diff --git a/products/data_warehouse/backend/tests/api/test_saved_query_access_control.py b/products/data_warehouse/backend/tests/api/test_saved_query_access_control.pyindex f34b4aee5d72..bb1e8b935cd1 100644--- a/products/data_warehouse/backend/tests/api/test_saved_query_access_control.py+++ b/products/data_warehouse/backend/tests/api/test_saved_query_access_control.py@@ -18,8 +18,8 @@ from products.warehouse_sources.backend.facade.models import (ExternalDataSchema,ExternalDataSource,)+from products.warehouse_sources.backend.facade.testing import WarehouseAccessControlTestMixinfrom products.warehouse_sources.backend.facade.types import ExternalDataSourceType-from products.warehouse_sources.backend.tests.api._access_control_base import WarehouseAccessControlTestMixintry:from ee.models.rbac.access_control import AccessControldiff --git a/products/data_warehouse/backend/tests/api/test_table_access_control.py b/products/data_warehouse/backend/tests/api/test_table_access_control.pyindex 0fd8ad7cc992..20c55868f379 100644--- a/products/data_warehouse/backend/tests/api/test_table_access_control.py+++ b/products/data_warehouse/backend/tests/api/test_table_access_control.py@@ -7,7 +7,7 @@ from posthog.models.organization import OrganizationMembershipfrom posthog.models.user import Userfrom products.warehouse_sources.backend.facade.models import DataWarehouseTable-from products.warehouse_sources.backend.tests.api._access_control_base import WarehouseAccessControlTestMixin+from products.warehouse_sources.backend.facade.testing import WarehouseAccessControlTestMixintry:from ee.models.rbac.access_control import AccessControldiff --git a/products/data_warehouse/backend/tests/api/test_view_link_access_control.py b/products/data_warehouse/backend/tests/api/test_view_link_access_control.pyindex ae812217c496..80092f987d32 100644--- a/products/data_warehouse/backend/tests/api/test_view_link_access_control.py+++ b/products/data_warehouse/backend/tests/api/test_view_link_access_control.py@@ -3,7 +3,7 @@ import pytestfrom parameterized import parameterizedfrom rest_framework import status-from products.warehouse_sources.backend.tests.api._access_control_base import WarehouseAccessControlTestMixin+from products.warehouse_sources.backend.facade.testing import WarehouseAccessControlTestMixin@pytest.mark.eediff --git a/products/data_warehouse/dags/tests/test_managed_viewset_sync.py b/products/data_warehouse/dags/tests/test_managed_viewset_sync.pyindex 136532f50c3d..75daaf528ac2 100644--- a/products/data_warehouse/dags/tests/test_managed_viewset_sync.py+++ b/products/data_warehouse/dags/tests/test_managed_viewset_sync.py@@ -7,7 +7,7 @@ from posthog.models import Organization, Teamfrom products.data_modeling.backend.facade.models import DataWarehouseManagedViewSetfrom products.data_warehouse.dags.managed_viewset_sync import sync_managed_viewsets_job, sync_managed_viewsets_op-from products.warehouse_sources.backend.types import DataWarehouseManagedViewSetKind+from products.warehouse_sources.backend.facade.types import DataWarehouseManagedViewSetKindclass TestSyncManagedViewsetsOp:diff --git a/products/engineering_analytics/backend/tests/test_access_control.py b/products/engineering_analytics/backend/tests/test_access_control.pyindex 0801d356eb7f..7dfde19eff8e 100644--- a/products/engineering_analytics/backend/tests/test_access_control.py+++ b/products/engineering_analytics/backend/tests/test_access_control.py@@ -39,7 +39,7 @@ from products.engineering_analytics.backend.tests._github_fixtures import (link_schema,)from products.warehouse_sources.backend.facade.models import ExternalDataSource-from products.warehouse_sources.backend.tests.api._access_control_base import WarehouseAccessControlTestMixin+from products.warehouse_sources.backend.facade.testing import WarehouseAccessControlTestMixin# Every curated query runs HogQL through this method; stub it to empty so a resolved source# returns 200 with no rows, leaving the resolver's access-control decision as the only variable.diff --git a/products/experiments/backend/presentation/__init__.py b/products/experiments/backend/presentation/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/exports/backend/facade/__init__.py b/products/exports/backend/facade/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/managed_warehouse/backend/logic/connection.py b/products/managed_warehouse/backend/logic/connection.pyindex ec1068495d37..fb57b618375e 100644--- a/products/managed_warehouse/backend/logic/connection.py+++ b/products/managed_warehouse/backend/logic/connection.py@@ -32,10 +32,9 @@ from products.warehouse_sources.backend.facade.models import (DataWarehouseTable,ExternalDataSchema,ExternalDataSource,- ManagedWarehouseSQLMode,)from products.warehouse_sources.backend.facade.source_management import SourceRegistry-from products.warehouse_sources.backend.facade.types import ExternalDataSourceType+from products.warehouse_sources.backend.facade.types import ExternalDataSourceType, ManagedWarehouseSQLModelogger = structlog.get_logger(__name__)diff --git a/products/managed_warehouse/backend/presentation/__init__.py b/products/managed_warehouse/backend/presentation/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/pulse/backend/__init__.py b/products/pulse/backend/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/pulse/backend/api/__init__.py b/products/pulse/backend/api/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/pulse/backend/generation/__init__.py b/products/pulse/backend/generation/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/pulse/backend/sources/__init__.py b/products/pulse/backend/sources/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/pulse/backend/temporal/__init__.py b/products/pulse/backend/temporal/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/stamphog/backend/__init__.py b/products/stamphog/backend/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/stamphog/backend/facade/__init__.py b/products/stamphog/backend/facade/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/stamphog/backend/facade/api.py b/products/stamphog/backend/facade/api.pyindex 6786b56381fb..73cc31345609 100644--- a/products/stamphog/backend/facade/api.py+++ b/products/stamphog/backend/facade/api.py@@ -8,9 +8,55 @@ dataclasses. Never return ORM instances or import DRF.from __future__ import annotations+from collections.abc import Callable, Iterator, Sequence+from typing import Any, TypeVar, overload+from uuid import UUID++from django.db import IntegrityError+from django.db.models import QuerySet+from django.utils import timezone++import structlog+from ..models import DigestChannel, DigestRun, PullRequest, ReviewRun, StamphogRepoConfigfrom . import contracts-from .enums import ChannelResolutionSource, DigestRunStatus, ReviewRunStatus, ReviewVerdict+from .enums import TERMINAL_STATUSES, ChannelResolutionSource, DigestRunStatus, ReviewRunStatus, ReviewVerdict++logger = structlog.get_logger(__name__)++_DTO = TypeVar("_DTO")+++class LazyDTOList(Sequence[_DTO]):+ """DTOs backed by a queryset, converted only for the rows a caller actually slices.++ A paginating view sizes the collection and then slices it, so a list endpoint reads one page+ out of the database rather than converting every matching row. Nothing but DTOs leaves the+ facade. Sizing goes through ``__len__``, which is a COUNT rather than a fetch.+ """++ def __init__(self, queryset: QuerySet, to_dto: Callable[[Any], _DTO]) -> None:+ self._queryset = queryset+ self._to_dto = to_dto++ def __len__(self) -> int:+ return self._queryset.count()++ def __iter__(self) -> Iterator[_DTO]:+ # Explicit: the Sequence mixin would iterate by index, one query per row.+ return (self._to_dto(row) for row in self._queryset)++ @overload+ def __getitem__(self, index: int) -> _DTO: ...++ @overload+ def __getitem__(self, index: slice) -> list[_DTO]: ...++ def __getitem__(self, index: int | slice) -> _DTO | list[_DTO]:+ rows = self._queryset[index]+ if isinstance(index, slice):+ return [self._to_dto(row) for row in rows]+ return self._to_dto(rows)def _repo_config_to_dto(obj: StamphogRepoConfig) -> contracts.RepoConfigDTO:@@ -22,6 +68,8 @@ def _repo_config_to_dto(obj: StamphogRepoConfig) -> contracts.RepoConfigDTO:enabled=obj.enabled,installation_id=obj.installation_id,digest_enabled=obj.digest_enabled,+ review_mode=obj.review_mode,+ trigger_label=obj.trigger_label,created_at=obj.created_at,updated_at=obj.updated_at,)@@ -89,6 +137,7 @@ def _review_run_to_dto(obj: ReviewRun) -> contracts.ReviewRunDTO:repository=obj.pull_request.repo_config.repository,pr_number=obj.pull_request.pr_number,pr_url=obj.pull_request.pr_url,+ head_branch=obj.pull_request.head_branch,head_sha=obj.head_sha,status=ReviewRunStatus(obj.status),verdict=ReviewVerdict(obj.verdict),@@ -163,3 +212,179 @@ def get_digest_run(team_id: int, digest_run_id: str) -> contracts.DigestRunDTO |def get_pull_request(team_id: int, pull_request_id: str) -> contracts.PullRequestDTO | None:obj = PullRequest.objects.for_team(team_id).filter(id=pull_request_id).select_related("repo_config").first()return _pull_request_to_dto(obj) if obj is not None else None+++# --- Repo configs ---+++def list_repo_configs(team_id: int) -> LazyDTOList[contracts.RepoConfigDTO]:+ qs = StamphogRepoConfig.objects.for_team(team_id).order_by("repository")+ return LazyDTOList(qs, _repo_config_to_dto)+++def create_repo_config(+ team_id: int,+ *,+ provider: str = "github",+ repository: str,+ enabled: bool = True,+ digest_enabled: bool = False,+ review_mode: str | None = None,+ trigger_label: str | None = None,+) -> contracts.RepoConfigDTO:+ """Create a repo config, refusing a repository another team already owns.++ installation_id is never accepted here: only the verified sync flow may bind one, so a manual+ config carries a blank installation and won't resolve webhooks until synced. A blank+ installation proves no ownership, so it never claims a repo across teams — which is why the+ cross-team check (and the DB constraint behind it) only applies to non-empty installations.+ """+ fields: dict[str, object] = {"provider": provider, "repository": repository, "enabled": enabled}+ fields["digest_enabled"] = digest_enabled+ if review_mode is not None:+ fields["review_mode"] = review_mode+ if trigger_label is not None:+ fields["trigger_label"] = trigger_label+ # unique_stamphog_installation_repo backs this at the DB level, so a race that slips past the+ # read still fails closed on the create below and surfaces as the same domain error.+ try:+ obj = StamphogRepoConfig.objects.for_team(team_id).create(team_id=team_id, **fields)+ except IntegrityError:+ raise contracts.RepoAlreadyClaimedError(repository)+ return _repo_config_to_dto(obj)+++def update_repo_config(team_id: int, config_id: str, **fields: object) -> contracts.RepoConfigDTO:+ """Apply an update, superseding in-flight runs when the repo goes from enabled to disabled.++ provider and repository are the config's identity — they resolve inbound webhooks and anchor+ every PullRequest/ReviewRun FK — so they are never updatable here.+ """+ fields.pop("provider", None)+ fields.pop("repository", None)+ fields.pop("installation_id", None)+ obj = StamphogRepoConfig.objects.for_team(team_id).get(id=config_id)+ was_enabled = obj.enabled+ for name, value in fields.items():+ setattr(obj, name, value)+ obj.save()+ if was_enabled and not obj.enabled:+ _supersede_active_runs(team_id, obj)+ return _repo_config_to_dto(obj)+++def disable_repo_config(team_id: int, config_id: str) -> None:+ """Soft-disable rather than hard-delete (same tombstone pattern as digest channels).++ A hard delete cascades away the PRs and review runs — including posted_review_id — so a push to+ a previously approved PR could no longer resolve the config or dismiss the stale approval,+ leaving it satisfying required reviews forever. A disabled row keeps webhooks resolvable, and+ the disabled-repo skip path retracts standing approvals on the next head change.+ """+ obj = StamphogRepoConfig.objects.for_team(team_id).get(id=config_id)+ obj.enabled = False+ obj.digest_enabled = False+ obj.save(update_fields=["enabled", "digest_enabled", "updated_at"])+ _supersede_active_runs(team_id, obj)+++def _supersede_active_runs(team_id: int, config: StamphogRepoConfig) -> None:+ # Disabling (or tombstone-deleting) a repo must also stop reviews already in flight: their+ # workflows never re-check enabled, so a queued/reviewing run could still post an approval+ # after an admin removed stamphog from the repo. Every workflow step bails on SUPERSEDED.+ superseded = (+ ReviewRun.objects.for_team(team_id)+ .filter(pull_request__repo_config=config)+ .exclude(status__in=TERMINAL_STATUSES)+ .update(status=ReviewRunStatus.SUPERSEDED, updated_at=timezone.now())+ )+ if superseded:+ logger.info("stamphog_repo_disable_superseded_runs", repository=config.repository, superseded=superseded)+++# --- Read lists for the product's own views ---+++def list_review_runs(+ team_id: int,+ *,+ repository: str | None = None,+ pr_number: int | None = None,+ status: str | None = None,+) -> LazyDTOList[contracts.ReviewRunDTO]:+ qs = ReviewRun.objects.for_team(team_id).select_related("pull_request__repo_config").order_by("-created_at")+ if repository:+ qs = qs.filter(pull_request__repo_config__repository=repository)+ if pr_number is not None:+ qs = qs.filter(pull_request__pr_number=pr_number)+ if status:+ qs = qs.filter(status=status)+ return LazyDTOList(qs, _review_run_to_dto)+++def list_pull_requests(+ team_id: int,+ *,+ pr_number: int | None = None,+ merged: bool | None = None,+) -> LazyDTOList[contracts.PullRequestDTO]:+ qs = PullRequest.objects.for_team(team_id).select_related("repo_config").order_by("-created_at")+ if pr_number is not None:+ qs = qs.filter(pr_number=pr_number)+ if merged is not None:+ qs = qs.filter(merged_at__isnull=not merged)+ return LazyDTOList(qs, _pull_request_to_dto)+++# --- Digest channels ---+++def list_digest_channels(team_id: int) -> LazyDTOList[contracts.DigestChannelDTO]:+ qs = DigestChannel.objects.for_team(team_id).order_by("audience_key")+ return LazyDTOList(qs, _digest_channel_to_dto)+++def create_digest_channel(team_id: int, **fields: object) -> contracts.DigestChannelDTO:+ # team_id is injected rather than supplied, so the unique (team, audience_key) constraint can't+ # be pre-validated by the caller — catch it here so a duplicate audience is a domain error+ # rather than a 500.+ try:+ obj = DigestChannel.objects.for_team(team_id).create(team_id=team_id, **fields)+ except IntegrityError:+ raise contracts.DuplicateAudienceError(str(fields.get("audience_key", "")))+ return _digest_channel_to_dto(obj)+++def update_digest_channel(team_id: int, channel_id: str, **fields: object) -> contracts.DigestChannelDTO:+ # audience_key is the bucket this channel is bound to. Editing it re-points the channel at a+ # different audience — and can effectively re-open an audience a human opted out of, since the+ # disabled tombstone row keying off the old audience_key would no longer match.+ fields.pop("audience_key", None)+ obj = DigestChannel.objects.for_team(team_id).get(id=channel_id)+ for name, value in fields.items():+ setattr(obj, name, value)+ obj.save()+ return _digest_channel_to_dto(obj)+++def disable_digest_channel(team_id: int, channel_id: str) -> None:+ """Soft-disable rather than removing the row.++ The (team_id, audience_key) row is the tombstone that stops auto_provision_channel from+ recreating and re-posting a digest someone opted out of (see logic/channel_resolution.py —+ auto-provisioning skips any existing row, disabled included). A hard delete would let the next+ daily beat resurrect the channel and re-send the digest.+ """+ obj = DigestChannel.objects.for_team(team_id).get(id=channel_id)+ obj.enabled = False+ obj.save(update_fields=["enabled", "updated_at"])+++# --- Digest runs ---+++def list_digest_runs(team_id: int, *, digest_channel_id: UUID | None = None) -> LazyDTOList[contracts.DigestRunDTO]:+ qs = DigestRun.objects.for_team(team_id).order_by("-created_at")+ if digest_channel_id is not None:+ qs = qs.filter(digest_channel_id=digest_channel_id)+ return LazyDTOList(qs, _digest_run_to_dto)diff --git a/products/stamphog/backend/facade/contracts.py b/products/stamphog/backend/facade/contracts.pyindex 6c53812ba2f7..f42216ca15e8 100644--- a/products/stamphog/backend/facade/contracts.py+++ b/products/stamphog/backend/facade/contracts.py@@ -30,6 +30,8 @@ class RepoConfigDTO:enabled: boolinstallation_id: strdigest_enabled: bool = False+ review_mode: str = ""+ trigger_label: str = ""created_at: datetime | None = Noneupdated_at: datetime | None = None@@ -102,6 +104,7 @@ class ReviewRunDTO:repository: strpr_number: intpr_url: str+ head_branch: strhead_sha: strstatus: ReviewRunStatusverdict: ReviewVerdict@@ -112,3 +115,20 @@ class ReviewRunDTO:created_at: datetime | None = Noneupdated_at: datetime | None = Nonecompleted_at: datetime | None = None+++class RepoAlreadyClaimedError(Exception):+ """Another team already owns this repository under this GitHub installation."""+++class DuplicateAudienceError(Exception):+ """A digest channel for this audience already exists on the team."""+++class StamphogGitHubError(Exception):+ """A Stamphog GitHub API call failed for a non-rate-limit reason (auth failure, unexpected status,+ malformed response). Rate limits raise ``GitHubRateLimitError`` from the egress layer instead."""++ def __init__(self, message: str, *, status_code: int | None = None) -> None:+ super().__init__(message)+ self.status_code = status_codediff --git a/products/stamphog/backend/facade/github.py b/products/stamphog/backend/facade/github.pynew file mode 100644index 000000000000..5f266ff3fc35--- /dev/null+++ b/products/stamphog/backend/facade/github.py@@ -0,0 +1,138 @@+"""Facade re-export of the GitHub client surface the repo-config views need.++The install/sync endpoints talk to GitHub directly: they list a user's installations and+accessible repositories during setup, before any repo config exists to read from. That is+presentation-layer work against an external service, not product data, so it crosses as+functions rather than contracts.++Lives apart from ``api.py`` for the same reason ``tasks.py`` does — the client pulls the+GitHub App auth stack, which must stay off the module review_hog's settings serializer+imports on every request.+"""++from django.db import IntegrityError, router, transaction+from django.utils import timezone++from products.stamphog.backend.facade import contracts+from products.stamphog.backend.facade.api import _repo_config_to_dto+from products.stamphog.backend.facade.contracts import StamphogGitHubError+from products.stamphog.backend.logic.github_client import (+ exchange_oauth_code_for_user_token,+ list_user_accessible_repositories,+ list_user_installations,+ user_can_access_installation,+)+from products.stamphog.backend.models import StamphogRepoConfig++__all__ = [+ "StamphogGitHubError",+ "sync_installation_repositories",+ "exchange_oauth_code_for_user_token",+ "list_user_accessible_repositories",+ "list_user_installations",+ "user_can_access_installation",+]+++def _adopt_preexisting_config(team_id: int, repository: str, installation_id: str) -> StamphogRepoConfig | None:+ """Bind a manually-created (installation-less) config to a now-verified installation.++ Reached when the installation sync hits the unique (team, repository) constraint: a row for this+ repo already exists on the team, created through the plain API/MCP path with a blank installation_id+ — or bound to a PREVIOUS installation after an uninstall/reinstall cycle (each reinstall mints a new+ installation id, and the app can only be installed once per repo, so the old binding is dead).+ Stamp the verified installation onto it so it starts resolving webhooks again, rather than reporting+ it skipped and leaving it unbound forever. Safe to rebind: this helper is team-scoped and only+ reached from the sync flow, which already proved the caller owns the NEW installation.++ A never-bound placeholder binds DISABLED: its enabled flags were set by whoever created the row,+ who never proved GitHub access to the repo — otherwise a member could pre-arm ``enabled=True``+ for a private repo and have reviews start (under the syncing teammate's identity) the moment+ someone else completes the install. Reinstall rows keep their settings: they were configured+ while verifiably bound to a real installation.+ """+ # Writer pin: the writer-side unique constraint is what routed us here, so the row exists on the+ # writer — a lagged reader missing it would mark the repo skipped and leave it unbound forever.+ existing = (+ StamphogRepoConfig.objects.for_team(team_id)+ .using(router.db_for_write(StamphogRepoConfig))+ .filter(provider="github", repository=repository)+ .first()+ )+ if existing is None:+ return None+ if existing.installation_id != installation_id:+ update_fields = ["installation_id", "updated_at"]+ if not existing.installation_id:+ existing.enabled = False+ existing.digest_enabled = False+ update_fields += ["enabled", "digest_enabled"]+ existing.installation_id = installation_id+ try:+ existing.save(update_fields=update_fields)+ except IntegrityError:+ return None+ return existing+++def sync_installation_repositories(+ team_id: int,+ *,+ installation_id: str,+ user_token: str,+ connected_by_user_id: int,+) -> tuple[list[contracts.RepoConfigDTO], list[str]]:+ """Bind every user-accessible repo in one installation to the team. Returns (synced, skipped).++ Enumerate with the USER token, not the app installation token: bind only the repos this user can+ actually reach in the installation, so proving access to one repo can't attach repos they can't+ see. The app-token list would return every repo the installer selected regardless of this user.+ Raises :class:`StamphogGitHubError` on an enumeration failure so the caller fails closed.++ Every synced row records the caller as its connecting user — the identity the review sandbox's+ short-lived gateway token is minted under. Re-syncs re-stamp on purpose: the latest human to+ prove installation ownership is the right principal (the original installer may be long gone).+ """+ repositories = list_user_accessible_repositories(installation_id, user_token)+ synced: list[StamphogRepoConfig] = []+ skipped: list[str] = []+ # Bind the per-row savepoint to the model's routed DB (stamphog_db_writer when the product DB is+ # configured, else default) — a bare atomic() opens on the default connection, so the get_or_create+ # would run outside any transaction on the product DB.+ write_db = router.db_for_write(StamphogRepoConfig)+ for full_name in repositories:+ # Per-row savepoint: an IntegrityError only rolls back that row, leaving the rest of the+ # batch (and the outer autocommit context) intact.+ try:+ with transaction.atomic(using=write_db):+ config, _ = StamphogRepoConfig.objects.for_team(team_id).get_or_create(+ provider="github",+ installation_id=installation_id,+ repository=full_name,+ # for_team() scopes the read but not row creation, so team_id is explicit here.+ # Bind disabled: an installation can surface hundreds of repos, so connect them+ # but don't start reviewing until a human toggles each on. enabled only seeds new+ # rows; an existing row's toggle is never flipped.+ defaults={"team_id": team_id, "enabled": False},+ )+ except IntegrityError:+ # The unique (team, repository) constraint tripped: a same-team row for this repo already+ # exists under a different installation_id — the manually-created config (blank+ # installation) finally being bound. Adopt it instead of skipping; only a real conflict+ # (already bound to another installation) stays skipped.+ adopted = _adopt_preexisting_config(team_id, full_name, installation_id)+ if adopted is None:+ skipped.append(full_name)+ else:+ synced.append(adopted)+ continue+ synced.append(config)++ # .update() bypasses auto_now, so updated_at is set by hand.+ restamp_ids = [config.id for config in synced if config.connected_by_user_id != connected_by_user_id]+ if restamp_ids:+ StamphogRepoConfig.objects.for_team(team_id).filter(id__in=restamp_ids).update(+ connected_by_user_id=connected_by_user_id, updated_at=timezone.now()+ )++ return [_repo_config_to_dto(c) for c in synced], skippeddiff --git a/products/stamphog/backend/facade/tasks.py b/products/stamphog/backend/facade/tasks.pyindex 52925419956c..b6d3974ec17e 100644--- a/products/stamphog/backend/facade/tasks.py+++ b/products/stamphog/backend/facade/tasks.py@@ -9,9 +9,19 @@ settings serializer imports on every request.from products.stamphog.backend.tasks.digest import send_daily_digestsfrom products.stamphog.backend.tasks.schedules import DAILY_DIGEST_CRONTAB-from products.stamphog.backend.tasks.tasks import process_inbox_pr_review+from products.stamphog.backend.tasks.tasks import (+ process_inbox_pr_review,+ process_installation_event,+ process_pull_request_event,+)-__all__ = ["DAILY_DIGEST_CRONTAB", "queue_inbox_pr_review", "send_daily_digests"]+__all__ = [+ "DAILY_DIGEST_CRONTAB",+ "process_installation_event",+ "process_pull_request_event",+ "queue_inbox_pr_review",+ "send_daily_digests",+]def queue_inbox_pr_review(diff --git a/products/stamphog/backend/logic/github_client.py b/products/stamphog/backend/logic/github_client.pyindex 6a3fa74aba28..24acee8f3569 100644--- a/products/stamphog/backend/logic/github_client.py+++ b/products/stamphog/backend/logic/github_client.py@@ -27,6 +27,8 @@ from posthog.egress.github.limiter import remember_observed_core_limitfrom posthog.egress.github.transport import github_request, raise_if_github_rate_limitedfrom posthog.egress.limiter.policies import Priority+from products.stamphog.backend.facade.contracts import StamphogGitHubError+logger = structlog.get_logger(__name__)# Per-subsystem attribution on the shared GitHub egress metrics.@@ -158,15 +160,6 @@ def _parse_review_thread_comments(comment_nodes: list) -> list[dict]:]-class StamphogGitHubError(Exception):- """A Stamphog GitHub API call failed for a non-rate-limit reason (auth failure, unexpected status,- malformed response). Rate limits raise ``GitHubRateLimitError`` from the egress layer instead."""-- def __init__(self, message: str, *, status_code: int | None = None) -> None:- super().__init__(message)- self.status_code = status_code--def _app_private_key() -> str:"""The Stamphog App private key, with escaped newlines restored (env vars often carry ``\\n``)."""key = settings.STAMPHOG_GITHUB_APP_PRIVATE_KEYdiff --git a/products/stamphog/backend/presentation/__init__.py b/products/stamphog/backend/presentation/__init__.pynew file mode 100644index 000000000000..e69de29bb2d1diff --git a/products/stamphog/backend/presentation/serializers.py b/products/stamphog/backend/presentation/serializers.pyindex 878d061ba449..c21df3c6a83f 100644--- a/products/stamphog/backend/presentation/serializers.py+++ b/products/stamphog/backend/presentation/serializers.py@@ -1,15 +1,21 @@-"""DRF serializers for stamphog."""+"""DRF serializers for stamphog.++Every serializer here reads and writes facade contracts, never ORM models — the presentation+layer reaches product data only through ``facade.api``. Field-level help text is the source of+the generated OpenAPI schema, so it stays on the serializer rather than moving to the contract.+"""from typing import Anyfrom drf_spectacular.types import OpenApiTypesfrom drf_spectacular.utils import extend_schema_field, extend_schema_serializerfrom rest_framework import serializers+from rest_framework_dataclasses.serializers import DataclassSerializerfrom posthog.models.integration import Integration-from ..facade.enums import ChannelResolutionSource, DigestRunStatus, ReviewRunStatus, ReviewVerdict-from ..models import DigestChannel, DigestRun, PullRequest, ReviewRun, StamphogRepoConfig+from ..facade import contracts+from ..facade.enums import ChannelResolutionSource, DigestRunStatus, ReviewMode, ReviewRunStatus, ReviewVerdictclass _GateResultSummarySerializer(serializers.Serializer):@@ -38,7 +44,7 @@ class _ReviewOutputSummarySerializer(serializers.Serializer):The raw ``output`` blob also holds the reviewer's stdout, the full PR payload, changed-file patches,and default-branch policy file contents — repository content a project member without repo access- must never read over the API. Only these derived, content-free fields are exposed.+ must never read. Only these derived, content-free fields are exposed."""stamphog_version = serializers.CharField(@@ -53,7 +59,8 @@ class _ReviewOutputSummarySerializer(serializers.Serializer):)-class StamphogRepoConfigSerializer(serializers.ModelSerializer):+@extend_schema_serializer(component_name="StamphogRepoConfig")+class StamphogRepoConfigSerializer(DataclassSerializer):def get_fields(self) -> dict[str, serializers.Field]:fields = super().get_fields()# provider + repository are the config's identity: they resolve inbound webhooks and anchor@@ -65,30 +72,17 @@ class StamphogRepoConfigSerializer(serializers.ModelSerializer):fields["repository"].read_only = Truereturn fields- def validate_trigger_label(self, value: str) -> str:- value = value.strip()- if not value:- raise serializers.ValidationError("Trigger label cannot be blank.")- return value-- def validate(self, attrs: dict[str, Any]) -> dict[str, Any]:- # The digest reports what stamphog approved, so it has nothing to report without the review- # path running. PATCH sends only changed fields, so fall back to the stored values.- attrs = super().validate(attrs)- enabled = attrs.get("enabled", getattr(self.instance, "enabled", True))- if enabled:- return attrs- if attrs.get("digest_enabled"):- raise serializers.ValidationError(- {"digest_enabled": "Digests report what stamphog approved, so they need 'enabled' set to true."}- )- # Turning reviews off takes the digest with it rather than failing the write — the same- # pairing the soft-delete tombstone applies, and the Enabled toggle sends only `enabled`.- attrs["digest_enabled"] = False- return attrs+ review_mode = serializers.ChoiceField(+ choices=[(m.value, m.value) for m in ReviewMode],+ read_only=True,+ help_text=(+ "When reviews run: 'all' reviews every pull request (the default); 'label' reviews "+ "only pull requests carrying the trigger label, mirroring the Action's opt-in flow."+ ),+ )class Meta:- model = StamphogRepoConfig+ dataclass = contracts.RepoConfigDTOfields = ["id","provider",@@ -127,13 +121,6 @@ class StamphogRepoConfigSerializer(serializers.ModelSerializer):"'enabled', since the digest reports what stamphog approved."),},- "review_mode": {- "required": False,- "help_text": (- "When reviews run: 'all' reviews every pull request (the default); 'label' reviews "- "only pull requests carrying the trigger label, mirroring the Action's opt-in flow."- ),- },"trigger_label": {"required": False,"help_text": (@@ -248,18 +235,24 @@ class StamphogSyncInstallationResponseSerializer(serializers.Serializer):@extend_schema_serializer(component_name="StamphogPullRequest")-class PullRequestSerializer(serializers.ModelSerializer):+class PullRequestSerializer(DataclassSerializer):repository = serializers.CharField(- source="repo_config.repository",read_only=True,help_text="Full name of the repository this pull request belongs to.",)merged = serializers.SerializerMethodField(help_text="Whether this pull request has merged (merged_at is set).",)+ merged_at = serializers.DateTimeField(+ read_only=True,+ allow_null=True,+ help_text="When the pull request merged, null if it hasn't.",+ )class Meta:- model = PullRequest+ dataclass = contracts.PullRequestDTO+ # body_excerpt is deliberately absent: it reproduces pull request body text, repository+ # content a project member without GitHub repo access must not read over the API.fields = ["id","repository",@@ -277,14 +270,27 @@ class PullRequestSerializer(serializers.ModelSerializer):"created_at","updated_at",]- read_only_fields = fields+ # Only the fields NOT declared above (see ReviewRunSerializer).+ read_only_fields = [+ "id",+ "pr_number",+ "title",+ "author_login",+ "pr_url",+ "head_branch",+ "merge_commit_sha",+ "additions",+ "deletions",+ "changed_files",+ "created_at",+ "updated_at",+ ]extra_kwargs = {"pr_number": {"help_text": "Pull request number on GitHub."},"title": {"help_text": "Pull request title, refreshed on every relevant webhook delivery."},"author_login": {"help_text": "GitHub login of the pull request author."},"pr_url": {"help_text": "Full URL to the pull request on GitHub."},"head_branch": {"help_text": "Branch name of the PR head."},- "merged_at": {"help_text": "When the pull request merged, null if it hasn't."},"merge_commit_sha": {"help_text": "Merge commit SHA, blank until the pull request merges."},"additions": {"help_text": "Lines added, recorded when the pull request merges."},"deletions": {"help_text": "Lines deleted, recorded when the pull request merges."},@@ -294,33 +300,30 @@ class PullRequestSerializer(serializers.ModelSerializer):}@extend_schema_field(OpenApiTypes.BOOL)- def get_merged(self, obj: PullRequest) -> bool:+ def get_merged(self, obj: contracts.PullRequestDTO) -> bool:return obj.merged_at is not None-class ReviewRunSerializer(serializers.ModelSerializer):+@extend_schema_serializer(component_name="ReviewRun")+class ReviewRunSerializer(DataclassSerializer):pull_request = serializers.UUIDField(source="pull_request_id",read_only=True,help_text="ID of the pull request this review run belongs to.",)repository = serializers.CharField(- source="pull_request.repo_config.repository",read_only=True,help_text="Full name of the repository this review run belongs to.",)pr_number = serializers.IntegerField(- source="pull_request.pr_number",read_only=True,help_text="Pull request number on GitHub.",)pr_url = serializers.CharField(- source="pull_request.pr_url",read_only=True,help_text="Full URL to the pull request on GitHub.",)head_branch = serializers.CharField(- source="pull_request.head_branch",read_only=True,help_text="Branch name of the PR head.",)@@ -334,6 +337,16 @@ class ReviewRunSerializer(serializers.ModelSerializer):read_only=True,help_text="Final verdict reached by the reviewer, if any.",)+ delivery_id = serializers.CharField(+ read_only=True,+ allow_null=True,+ help_text="GitHub webhook delivery ID that triggered this run, used for deduplication.",+ )+ completed_at = serializers.DateTimeField(+ read_only=True,+ allow_null=True,+ help_text="When the review run reached a terminal state, if it has.",+ )gate_result = serializers.SerializerMethodField(help_text=("Allowlisted deterministic gate outcome (gate_blocked, final_verdict). The nested gate, "@@ -351,7 +364,7 @@ class ReviewRunSerializer(serializers.ModelSerializer):)@extend_schema_field(_ReviewOutputSummarySerializer)- def get_output(self, obj: ReviewRun) -> dict[str, object]:+ def get_output(self, obj: contracts.ReviewRunDTO) -> dict[str, object]:# Explicit allowlist: never echo reviewer_raw / pr / files / policy_files out of the API.raw = obj.output or {}summary: dict[str, object] = {}@@ -362,7 +375,7 @@ class ReviewRunSerializer(serializers.ModelSerializer):return summary@extend_schema_field(_GateResultSummarySerializer)- def get_gate_result(self, obj: ReviewRun) -> dict[str, object]:+ def get_gate_result(self, obj: contracts.ReviewRunDTO) -> dict[str, object]:# Explicit allowlist: never echo the gates / classification / policy sub-objects, which carry# changed-file paths and policy scopes.raw = obj.gate_result or {}@@ -374,7 +387,7 @@ class ReviewRunSerializer(serializers.ModelSerializer):return summaryclass Meta:- model = ReviewRun+ dataclass = contracts.ReviewRunDTOfields = ["id","pull_request",@@ -393,18 +406,19 @@ class ReviewRunSerializer(serializers.ModelSerializer):"updated_at","completed_at",]- read_only_fields = fields+ # Only the fields NOT declared above: DataclassSerializer rejects a field that is both+ # explicitly declared and named here.+ read_only_fields = ["id", "head_sha", "error", "created_at", "updated_at"]extra_kwargs = {"head_sha": {"help_text": "Commit SHA of the PR head at the time this run started."},- "delivery_id": {"help_text": "GitHub webhook delivery ID that triggered this run, used for deduplication."},"error": {"help_text": "Error message if the run failed, blank otherwise."},"created_at": {"help_text": "When the review run was created."},"updated_at": {"help_text": "When the review run was last updated."},- "completed_at": {"help_text": "When the review run reached a terminal state, if it has."},}-class DigestChannelSerializer(serializers.ModelSerializer):+@extend_schema_serializer(component_name="DigestChannel")+class DigestChannelSerializer(DataclassSerializer):def get_fields(self) -> dict[str, serializers.Field]:fields = super().get_fields()# audience_key is the bucket this channel is bound to. Editing it on an existing row re-points@@ -416,6 +430,11 @@ class DigestChannelSerializer(serializers.ModelSerializer):fields["audience_key"].read_only = Truereturn fields+ last_digest_at = serializers.DateTimeField(+ read_only=True,+ allow_null=True,+ help_text="When a digest was last posted to this channel.",+ )resolution_source = serializers.ChoiceField(choices=[(s.value, s.name) for s in ChannelResolutionSource],read_only=True,@@ -429,7 +448,7 @@ class DigestChannelSerializer(serializers.ModelSerializer):)class Meta:- model = DigestChannel+ dataclass = contracts.DigestChannelDTOfields = ["id","audience_key",@@ -442,7 +461,7 @@ class DigestChannelSerializer(serializers.ModelSerializer):"created_at","updated_at",]- read_only_fields = ["id", "last_digest_at", "created_at", "updated_at"]+ read_only_fields = ["id", "created_at", "updated_at"]extra_kwargs = {"audience_key": {"help_text": (@@ -473,18 +492,29 @@ class DigestChannelSerializer(serializers.ModelSerializer):return value-class DigestRunSerializer(serializers.ModelSerializer):+@extend_schema_serializer(component_name="DigestRun")+class DigestRunSerializer(DataclassSerializer):status = serializers.ChoiceField(choices=[(s.value, s.name) for s in DigestRunStatus],read_only=True,help_text="Current state of the digest run (pending, completed, failed).",)+ digest_channel = serializers.UUIDField(+ source="digest_channel_id",+ read_only=True,+ help_text="ID of the digest channel this run belongs to.",+ )+ posted_at = serializers.DateTimeField(+ read_only=True,+ allow_null=True,+ help_text="When the digest was posted to Slack, if it was.",+ )# The rendered summary is deliberately NOT exposed here: it's generated from each PR's body_excerpt,# so it reproduces repository content a project member without GitHub repo access must not read. It# lives only in the Slack post (whose audience already has channel access).class Meta:- model = DigestRun+ dataclass = contracts.DigestRunDTOfields = ["id","digest_channel",@@ -495,12 +525,128 @@ class DigestRunSerializer(serializers.ModelSerializer):"created_at","posted_at",]- read_only_fields = fields+ # Only the fields NOT declared above (see ReviewRunSerializer).+ read_only_fields = ["id", "pr_count", "slack_message_ts", "error", "created_at"]extra_kwargs = {- "digest_channel": {"help_text": "ID of the digest channel this run belongs to."},"pr_count": {"help_text": "Number of merged PRs included in the posted digest."},"slack_message_ts": {"help_text": "Slack message timestamp of the posted digest, if posted."},"error": {"help_text": "Error message if the run failed, blank otherwise."},"created_at": {"help_text": "When the digest run was created."},- "posted_at": {"help_text": "When the digest was posted to Slack, if it was."},}+++class StamphogRepoConfigWriteSerializer(serializers.Serializer):+ """Input shape for creating/updating a repo config.++ Separate from the read serializer because the contract is an output shape: it carries a+ required id, which a create request has no way to supply. Same split as visual_review's+ input serializers.++ installation_id is deliberately absent: it may only ever be set by the verified+ sync_installation flow, which proves the caller owns the installation before binding it. A+ client-supplied value on this path is ignored, so a manually created config carries no+ installation and simply won't resolve webhooks until synced.+ """++ provider = serializers.CharField(+ required=False, help_text="SCM provider this config talks to. Defaults to 'github'."+ )+ repository = serializers.CharField(help_text="Repository full name, e.g. 'PostHog/posthog'.")+ enabled = serializers.BooleanField(+ required=False, help_text="Whether stamphog actively reviews pull requests for this repo."+ )+ digest_enabled = serializers.BooleanField(+ required=False, help_text="Whether merged PRs on this repo are captured for the daily Slack digest."+ )+ review_mode = serializers.ChoiceField(+ choices=[(m.value, m.value) for m in ReviewMode],+ required=False,+ help_text=(+ "When reviews run: 'all' reviews every pull request (the default); 'label' reviews "+ "only pull requests carrying the trigger label, mirroring the Action's opt-in flow."+ ),+ )+ trigger_label = serializers.CharField(+ required=False,+ help_text=("Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'."),+ )++ def __init__(+ self,+ *args,+ partial_update: bool = False,+ current: contracts.RepoConfigDTO | None = None,+ **kwargs,+ ) -> None:+ super().__init__(*args, **kwargs)+ # A PATCH sends only the changed fields, so the digest rule below needs the stored row to+ # judge a write that leaves `enabled` untouched.+ self.current = current+ if partial_update:+ # provider + repository are the config's identity: they resolve inbound webhooks and anchor+ # every PullRequest/ReviewRun FK. Editing them on an existing row would reroute that history+ # to a different repo and stop the original repo's webhooks from resolving, so on update+ # they are dropped rather than applied.+ self.fields.pop("provider")+ self.fields.pop("repository")++ def validate_trigger_label(self, value: str) -> str:+ value = value.strip()+ if not value:+ raise serializers.ValidationError("Trigger label cannot be blank.")+ return value++ def validate(self, attrs: dict[str, Any]) -> dict[str, Any]:+ # The digest reports what stamphog approved, so it has nothing to report without the review+ # path running.+ attrs = super().validate(attrs)+ enabled = attrs.get("enabled", self.current.enabled if self.current else True)+ if enabled:+ return attrs+ if attrs.get("digest_enabled"):+ raise serializers.ValidationError(+ {"digest_enabled": "Digests report what stamphog approved, so they need 'enabled' set to true."}+ )+ # Turning reviews off takes the digest with it rather than failing the write — the same+ # pairing the soft-delete tombstone applies, and the Enabled toggle sends only `enabled`.+ attrs["digest_enabled"] = False+ return attrs+++class DigestChannelWriteSerializer(serializers.Serializer):+ """Input shape for creating/updating a digest channel (see the repo-config write serializer)."""++ audience_key = serializers.CharField(+ help_text=(+ "Opaque digest bucket this channel receives, e.g. 'repo:PostHog/posthog'. Immutable "+ "after creation — it anchors the audience and its opt-out tombstone."+ )+ )+ slack_integration_id = serializers.IntegerField(+ help_text="ID of the team's Slack integration used to post the digest."+ )+ slack_channel_id = serializers.CharField(help_text="Slack channel ID to post the digest to, e.g. 'C012AB3CD'.")+ slack_channel_name = serializers.CharField(+ required=False, allow_blank=True, help_text="Human-readable Slack channel name, for display only."+ )+ enabled = serializers.BooleanField(+ required=False, help_text="Whether this channel is included in the daily digest fan-out."+ )++ def __init__(self, *args, partial_update: bool = False, **kwargs) -> None:+ super().__init__(*args, **kwargs)+ if partial_update:+ # audience_key is the bucket this channel is bound to. Editing it on an existing row+ # re-points the channel at a different audience — and can effectively re-open an audience a+ # human opted out of, since the disabled tombstone row keying off the old audience_key would+ # no longer match. Create-only, so it is dropped on update.+ self.fields.pop("audience_key")++ def validate_slack_integration_id(self, value: int) -> int:+ # The integration must belong to the requesting team and be a Slack integration — otherwise a+ # team could point a digest at another team's Slack workspace.+ team_id = self.context["team_id"]+ exists = Integration.objects.filter(id=value, team_id=team_id, kind="slack").exists()+ if not exists:+ raise serializers.ValidationError("No Slack integration with this ID exists for this team.")+ return valuediff --git a/products/stamphog/backend/presentation/views.py b/products/stamphog/backend/presentation/views.pyindex e6d50980c89c..48f15c2a6118 100644--- a/products/stamphog/backend/presentation/views.py+++ b/products/stamphog/backend/presentation/views.py@@ -12,43 +12,43 @@ from uuid import UUIDfrom django.conf import settingsfrom django.core import signing-from django.db import IntegrityError, router, transaction-from django.db.models import QuerySet-from django.utils import timezoneimport structlogfrom drf_spectacular.types import OpenApiTypesfrom drf_spectacular.utils import OpenApiParameter, extend_schemafrom rest_framework import viewsetsfrom rest_framework.decorators import action-from rest_framework.exceptions import PermissionDenied, ValidationError+from rest_framework.exceptions import NotFound, PermissionDenied, ValidationErrorfrom rest_framework.permissions import BasePermissionfrom rest_framework.request import Requestfrom rest_framework.response import Response-from rest_framework.serializers import BaseSerializerfrom rest_framework.views import APIViewfrom posthog.api.routing import TeamAndOrgViewSetMixinfrom posthog.auth import OAuthAccessTokenAuthentication, PersonalAPIKeyAuthenticationfrom posthog.models.scoping.manager import resolve_effective_team_id-from products.stamphog.backend.facade.enums import TERMINAL_STATUSES, ReviewRunStatus+from products.stamphog.backend.facade import (+ api as facade_api,+ contracts,+)-from ..logic.github_client import (+from ..facade.github import (StamphogGitHubError,exchange_oauth_code_for_user_token,- list_user_accessible_repositories,list_user_installations,+ sync_installation_repositories,user_can_access_installation,)-from ..models import DigestChannel, DigestRun, PullRequest, ReviewRun, StamphogRepoConfigfrom .serializers import (DigestChannelSerializer,+ DigestChannelWriteSerializer,DigestRunSerializer,PullRequestSerializer,ReviewRunSerializer,StamphogInstallInfoSerializer,StamphogRepoConfigSerializer,+ StamphogRepoConfigWriteSerializer,StamphogSyncInstallationRequestSerializer,StamphogSyncInstallationResponseSerializer,)@@ -63,47 +63,6 @@ _INSTALL_STATE_SALT = "stamphog-install-state"_INSTALL_STATE_MAX_AGE_SECONDS = 60 * 60-def _adopt_preexisting_config(team_id: int, repository: str, installation_id: str) -> StamphogRepoConfig | None:- """Bind a manually-created (installation-less) config to a now-verified installation.-- Reached when the installation sync hits the unique (team, repository) constraint: a row for this- repo already exists on the team, created through the plain API/MCP path with a blank installation_id- — or bound to a PREVIOUS installation after an uninstall/reinstall cycle (each reinstall mints a new- installation id, and the app can only be installed once per repo, so the old binding is dead).- Stamp the verified installation onto it so it starts resolving webhooks again, rather than reporting- it skipped and leaving it unbound forever. Safe to rebind: this helper is team-scoped and only- reached from the sync flow, which already proved the caller owns the NEW installation.-- A never-bound placeholder binds DISABLED: its enabled flags were set by whoever created the row,- who never proved GitHub access to the repo — otherwise a member could pre-arm ``enabled=True``- for a private repo and have reviews start (under the syncing teammate's identity) the moment- someone else completes the install. Reinstall rows keep their settings: they were configured- while verifiably bound to a real installation.- """- # Writer pin: the writer-side unique constraint is what routed us here, so the row exists on the- # writer — a lagged reader missing it would mark the repo skipped and leave it unbound forever.- existing = (- StamphogRepoConfig.objects.for_team(team_id)- .using(router.db_for_write(StamphogRepoConfig))- .filter(provider="github", repository=repository)- .first()- )- if existing is None:- return None- if existing.installation_id != installation_id:- update_fields = ["installation_id", "updated_at"]- if not existing.installation_id:- existing.enabled = False- existing.digest_enabled = False- update_fields += ["enabled", "digest_enabled"]- existing.installation_id = installation_id- try:- existing.save(update_fields=update_fields)- except IntegrityError:- return None- return existing--class StamphogCanonicalTeamAccessPermission(BasePermission):"""Authorize against the canonical (data-owning) team, not just the URL environment team.@@ -180,77 +139,61 @@ class _StamphogTeamScopedViewSet(TeamAndOrgViewSetMixin):return True-class StamphogRepoConfigViewSet(_StamphogTeamScopedViewSet, viewsets.ModelViewSet):+class StamphogRepoConfigViewSet(_StamphogTeamScopedViewSet, viewsets.GenericViewSet):"""Per-repo stamphog settings — enable/disable review, GitHub App installation, policy overrides."""scope_object = "stamphog"serializer_class = StamphogRepoConfigSerializer- # Unscoped base: the fail-closed manager raises at class-body eval if scoped here.- # safely_get_queryset re-applies the team filter per request.- queryset = StamphogRepoConfig.objects.unscoped()-- def safely_get_queryset(self, queryset: QuerySet[StamphogRepoConfig]) -> QuerySet[StamphogRepoConfig]:- return queryset.filter(team_id=self.canonical_team_id).order_by("repository")-- def perform_create(self, serializer: BaseSerializer[StamphogRepoConfig]) -> None:- # installation_id is read-only on this serializer, so a manual create can never claim an- # installation the caller hasn't proven ownership of — only the verified sync_installation flow- # sets it. A manually created config therefore carries an empty installation and won't resolve- # webhooks until synced. The cross-team guard below still binds a (provider, installation,- # repository) triple to the first team that claims it, closing the check-then-act race at the DB.- provider = serializer.validated_data.get("provider", "github")- installation_id = serializer.validated_data.get("installation_id", "")- repository = serializer.validated_data.get("repository", "")- already_claimed_error = ValidationError(- {"repository": "This repository is already configured under this GitHub installation by another team."}- )- # A blank installation proves no ownership, so a manual placeholder never claims a repo across- # teams (the DB constraint is likewise restricted to non-empty installation_id). Only a real,- # synced installation can already be owned elsewhere.- already_claimed = bool(installation_id) and (- StamphogRepoConfig.objects.unscoped()- .filter(provider=provider, installation_id=installation_id, repository=repository)- .exclude(team_id=self.canonical_team_id)- .exists()- )- if already_claimed:- raise already_claimed_error- # unique_stamphog_installation_repo backs the check above at the DB level, so a race that slips- # past the read still fails closed here — surface it as the same 400, not a 500.++ def _get_or_404(self, pk: str | None) -> contracts.RepoConfigDTO:+ for config in facade_api.list_repo_configs(self.canonical_team_id):+ if str(config.id) == str(pk):+ return config+ raise NotFound()++ def list(self, request: Request, **kwargs) -> Response:+ configs = facade_api.list_repo_configs(self.canonical_team_id)+ page = self.paginate_queryset(configs)+ return self.get_paginated_response(self.get_serializer(page, many=True).data)++ def retrieve(self, request: Request, pk: str | None = None, **kwargs) -> Response:+ return Response(self.get_serializer(self._get_or_404(pk)).data)++ @extend_schema(request=StamphogRepoConfigWriteSerializer, responses={201: StamphogRepoConfigSerializer})+ def create(self, request: Request, **kwargs) -> Response:+ serializer = StamphogRepoConfigWriteSerializer(data=request.data, context=self.get_serializer_context())+ serializer.is_valid(raise_exception=True)try:- serializer.save(team_id=self.team_id)- except IntegrityError:- raise already_claimed_error-- def perform_destroy(self, instance: StamphogRepoConfig) -> None:- # Soft-disable rather than hard-delete (same tombstone pattern as digest channels). A hard- # delete cascades away the PRs and review runs — including posted_review_id — so a push to a- # previously approved PR could no longer resolve the config or dismiss the stale approval,- # leaving it satisfying required reviews forever. A disabled row keeps webhooks resolvable,- # and the disabled-repo skip path retracts standing approvals on the next head change.- instance.enabled = False- instance.digest_enabled = False- instance.save(update_fields=["enabled", "digest_enabled", "updated_at"])- self._supersede_active_runs(instance)-- def perform_update(self, serializer: BaseSerializer[StamphogRepoConfig]) -> None:- was_enabled = serializer.instance is not None and serializer.instance.enabled- serializer.save()- if was_enabled and serializer.instance is not None and not serializer.instance.enabled:- self._supersede_active_runs(serializer.instance)-- def _supersede_active_runs(self, instance: StamphogRepoConfig) -> None:- # Disabling (or tombstone-deleting) a repo must also stop reviews already in flight: their- # workflows never re-check enabled, so a queued/reviewing run could still post an approval- # after an admin removed stamphog from the repo. Every workflow step bails on SUPERSEDED.- superseded = (- ReviewRun.objects.for_team(self.canonical_team_id)- .filter(pull_request__repo_config=instance)- .exclude(status__in=TERMINAL_STATUSES)- .update(status=ReviewRunStatus.SUPERSEDED, updated_at=timezone.now())+ config = facade_api.create_repo_config(self.canonical_team_id, **serializer.validated_data)+ except contracts.RepoAlreadyClaimedError:+ raise ValidationError(+ {"repository": "This repository is already configured under this GitHub installation by another team."}+ )+ return Response(self.get_serializer(config).data, status=201)++ @extend_schema(request=StamphogRepoConfigWriteSerializer, responses={200: StamphogRepoConfigSerializer})+ def update(self, request: Request, pk: str | None = None, **kwargs) -> Response:+ current = self._get_or_404(pk)+ serializer = StamphogRepoConfigWriteSerializer(+ data=request.data,+ partial=kwargs.get("partial", False),+ partial_update=True,+ current=current,+ context=self.get_serializer_context(),)- if superseded:- logger.info("stamphog_repo_disable_superseded_runs", repository=instance.repository, superseded=superseded)+ serializer.is_valid(raise_exception=True)+ config = facade_api.update_repo_config(self.canonical_team_id, str(pk), **serializer.validated_data)+ return Response(self.get_serializer(config).data)++ @extend_schema(request=StamphogRepoConfigWriteSerializer, responses={200: StamphogRepoConfigSerializer})+ @extend_schema(request=DigestChannelWriteSerializer, responses={200: DigestChannelSerializer})+ def partial_update(self, request: Request, pk: str | None = None, **kwargs) -> Response:+ return self.update(request, pk=pk, partial=True, **kwargs)++ def destroy(self, request: Request, pk: str | None = None, **kwargs) -> Response:+ self._get_or_404(pk)+ facade_api.disable_repo_config(self.canonical_team_id, str(pk))+ return Response(status=204)@extend_schema(responses={200: StamphogInstallInfoSerializer})@action(detail=False, methods=["GET"], url_path="install_info", required_scopes=["stamphog:read"])@@ -281,53 +224,6 @@ class StamphogRepoConfigViewSet(_StamphogTeamScopedViewSet, viewsets.ModelViewSe).datareturn Response(data)- def _sync_installation_repositories(- self, installation_id: str, user_token: str- ) -> tuple[list[StamphogRepoConfig], list[str]]:- """Bind every user-accessible repo in one installation to the current team. Returns (synced, skipped).-- Enumerate with the USER token, not the app installation token: bind only the repos this user can- actually reach in the installation, so proving access to one repo can't attach repos they can't- see. The app-token list would return every repo the installer selected regardless of this user.- Raises :class:`StamphogGitHubError` on an enumeration failure so the caller fails closed. Shared by- the explicit-id and discovery paths so both bind identically.- """- repositories = list_user_accessible_repositories(installation_id, user_token)- synced: list[StamphogRepoConfig] = []- skipped: list[str] = []- # Bind the per-row savepoint to the model's routed DB (stamphog_db_writer when the product DB is- # configured, else default) — a bare atomic() opens on the default connection, so the get_or_create- # would run outside any transaction on the product DB.- write_db = router.db_for_write(StamphogRepoConfig)- for full_name in repositories:- # Per-row savepoint: an IntegrityError only rolls back that row, leaving the rest of the- # batch (and the outer autocommit context) intact.- try:- with transaction.atomic(using=write_db):- config, _ = StamphogRepoConfig.objects.for_team(self.team_id).get_or_create(- provider="github",- installation_id=installation_id,- repository=full_name,- # for_team() scopes the read but not row creation, so team_id is explicit here.- # Bind disabled: an installation can surface hundreds of repos, so connect them- # but don't start reviewing until a human toggles each on. enabled only seeds new- # rows; an existing row's toggle is never flipped.- defaults={"team_id": self.team_id, "enabled": False},- )- except IntegrityError:- # The unique (team, repository) constraint tripped: a same-team row for this repo already- # exists under a different installation_id — the manually-created config (blank- # installation) finally being bound. Adopt it instead of skipping; only a real conflict- # (already bound to another installation) stays skipped.- adopted = _adopt_preexisting_config(self.team_id, full_name, installation_id)- if adopted is None:- skipped.append(full_name)- else:- synced.append(adopted)- continue- synced.append(config)- return synced, skipped-@extend_schema(request=StamphogSyncInstallationRequestSerializer,responses={200: StamphogSyncInstallationResponseSerializer},@@ -370,10 +266,13 @@ class StamphogRepoConfigViewSet(_StamphogTeamScopedViewSet, viewsets.ModelViewSeteam_id=self.team_id,)raise PermissionDenied("This installation link was started for a different project.")+ connected_by_user_id = request.user.pk+ if connected_by_user_id is None:+ raise PermissionDenied("Log in to complete the installation.")# The token also binds the callback to the member who started the flow. Without this, one# project member could hand another the callback and complete an install under the second# member's session (both pass the team check). Same 403 path as the team mismatch.- if state_payload.get("user_id") != request.user.pk:+ if state_payload.get("user_id") != connected_by_user_id:logger.warning("stamphog sync_installation: state user mismatch",installation_id=installation_id,@@ -437,12 +336,15 @@ class StamphogRepoConfigViewSet(_StamphogTeamScopedViewSet, viewsets.ModelViewSereturn Response(data)installation_ids = [discovered[0]["id"]]- synced: list[StamphogRepoConfig] = []+ synced: list[contracts.RepoConfigDTO] = []skipped: list[str] = []for one_installation_id in installation_ids:try:- installation_synced, installation_skipped = self._sync_installation_repositories(- one_installation_id, user_token+ installation_synced, installation_skipped = sync_installation_repositories(+ self.canonical_team_id,+ installation_id=one_installation_id,+ user_token=user_token,+ connected_by_user_id=connected_by_user_id,)except StamphogGitHubError:logger.warning(@@ -454,54 +356,40 @@ class StamphogRepoConfigViewSet(_StamphogTeamScopedViewSet, viewsets.ModelViewSesynced.extend(installation_synced)skipped.extend(installation_skipped)- # Every synced row records the caller as its connecting user — the identity the review- # sandbox's short-lived gateway token is minted under. Re-syncs re-stamp on purpose: the- # latest human to prove installation ownership is the right principal (the original- # installer may be long gone). .update() bypasses auto_now, so updated_at is set by hand.- restamp_ids = [config.id for config in synced if config.connected_by_user_id != request.user.pk]- if restamp_ids:- StamphogRepoConfig.objects.for_team(self.team_id).filter(id__in=restamp_ids).update(- connected_by_user_id=request.user.pk, updated_at=timezone.now()- )-data = StamphogSyncInstallationResponseSerializer({"synced": synced, "skipped": skipped, "app_not_installed": False, "installations": []}).datareturn Response(data)-class ReviewRunViewSet(_StamphogTeamScopedViewSet, viewsets.ReadOnlyModelViewSet):+class ReviewRunViewSet(_StamphogTeamScopedViewSet, viewsets.GenericViewSet):"""Read-only history of stamphog review runs, filterable by repository, PR number, and status."""scope_object = "stamphog"serializer_class = ReviewRunSerializer- # Unscoped base: the fail-closed manager raises at class-body eval if scoped here.- # safely_get_queryset re-applies the team filter per request.- queryset = ReviewRun.objects.unscoped()-- def safely_get_queryset(self, queryset: QuerySet[ReviewRun]) -> QuerySet[ReviewRun]:- queryset = (- queryset.filter(team_id=self.canonical_team_id)- .select_related("pull_request__repo_config")- .order_by("-created_at")- )-- repository = self.request.query_params.get("repository")- if repository:- queryset = queryset.filter(pull_request__repo_config__repository=repository)+ def _runs(self) -> facade_api.LazyDTOList[contracts.ReviewRunDTO] | None:+ """The team's review runs under the request's filters, or None if a filter is unparseable."""pr_number = self.request.query_params.get("pr_number")if pr_number:try:- queryset = queryset.filter(pull_request__pr_number=int(pr_number))+ pr_number_value = int(pr_number)except ValueError:- return queryset.none()-- status_filter = self.request.query_params.get("status")- if status_filter:- queryset = queryset.filter(status=status_filter)+ return None+ else:+ pr_number_value = None+ return facade_api.list_review_runs(+ self.canonical_team_id,+ repository=self.request.query_params.get("repository"),+ pr_number=pr_number_value,+ status=self.request.query_params.get("status"),+ )- return queryset+ def retrieve(self, request: Request, pk: str | None = None, **kwargs) -> Response:+ run = facade_api.get_review_run(self.canonical_team_id, str(pk))+ if run is None:+ raise NotFound()+ return Response(self.get_serializer(run).data)@extend_schema(parameters=[@@ -530,33 +418,39 @@ class ReviewRunViewSet(_StamphogTeamScopedViewSet, viewsets.ReadOnlyModelViewSetresponses={200: ReviewRunSerializer(many=True)},)def list(self, request: Request, **kwargs) -> Response:- return super().list(request, **kwargs)+ runs = self._runs()+ page = self.paginate_queryset(runs if runs is not None else [])+ return self.get_paginated_response(self.get_serializer(page, many=True).data)-class PullRequestViewSet(_StamphogTeamScopedViewSet, viewsets.ReadOnlyModelViewSet):+class PullRequestViewSet(_StamphogTeamScopedViewSet, viewsets.GenericViewSet):"""Read-only pull requests stamphog knows about, filterable by PR number and merge state."""scope_object = "stamphog"serializer_class = PullRequestSerializer- # Unscoped base: the fail-closed manager raises at class-body eval if scoped here.- # safely_get_queryset re-applies the team filter per request.- queryset = PullRequest.objects.unscoped()-- def safely_get_queryset(self, queryset: QuerySet[PullRequest]) -> QuerySet[PullRequest]:- queryset = queryset.filter(team_id=self.canonical_team_id).select_related("repo_config").order_by("-created_at")+ def _pull_requests(self) -> facade_api.LazyDTOList[contracts.PullRequestDTO] | None:+ """The team's pull requests under the request's filters, or None if a filter is unparseable."""pr_number = self.request.query_params.get("pr_number")if pr_number:try:- queryset = queryset.filter(pr_number=int(pr_number))+ pr_number_value = int(pr_number)except ValueError:- return queryset.none()-+ return None+ else:+ pr_number_value = Nonemerged = self.request.query_params.get("merged")- if merged is not None:- queryset = queryset.filter(merged_at__isnull=merged.lower() not in ("true", "1"))+ return facade_api.list_pull_requests(+ self.canonical_team_id,+ pr_number=pr_number_value,+ merged=None if merged is None else merged.lower() in ("true", "1"),+ )- return queryset+ def retrieve(self, request: Request, pk: str | None = None, **kwargs) -> Response:+ pull_request = facade_api.get_pull_request(self.canonical_team_id, str(pk))+ if pull_request is None:+ raise NotFound()+ return Response(self.get_serializer(pull_request).data)@extend_schema(parameters=[@@ -578,60 +472,85 @@ class PullRequestViewSet(_StamphogTeamScopedViewSet, viewsets.ReadOnlyModelViewSresponses={200: PullRequestSerializer(many=True)},)def list(self, request: Request, **kwargs) -> Response:- return super().list(request, **kwargs)+ pull_requests = self._pull_requests()+ page = self.paginate_queryset(pull_requests if pull_requests is not None else [])+ return self.get_paginated_response(self.get_serializer(page, many=True).data)-class DigestChannelViewSet(_StamphogTeamScopedViewSet, viewsets.ModelViewSet):+class DigestChannelViewSet(_StamphogTeamScopedViewSet, viewsets.GenericViewSet):"""Per-audience Slack destinations for the daily merged-PR digest."""scope_object = "stamphog"serializer_class = DigestChannelSerializer- # Unscoped base: the fail-closed manager raises at class-body eval if scoped here.- # safely_get_queryset re-applies the team filter per request.- queryset = DigestChannel.objects.unscoped()- def safely_get_queryset(self, queryset: QuerySet[DigestChannel]) -> QuerySet[DigestChannel]:- return queryset.filter(team_id=self.canonical_team_id).order_by("audience_key")+ def _get_or_404(self, pk: str | None) -> contracts.DigestChannelDTO:+ channel = facade_api.get_digest_channel(self.canonical_team_id, str(pk))+ if channel is None:+ raise NotFound()+ return channel++ def list(self, request: Request, **kwargs) -> Response:+ channels = facade_api.list_digest_channels(self.canonical_team_id)+ page = self.paginate_queryset(channels)+ return self.get_paginated_response(self.get_serializer(page, many=True).data)++ def retrieve(self, request: Request, pk: str | None = None, **kwargs) -> Response:+ return Response(self.get_serializer(self._get_or_404(pk)).data)- def perform_create(self, serializer: BaseSerializer[DigestChannel]) -> None:- # team_id is injected here (not a serializer field), so DRF can't pre-validate the- # unique (team, audience_key) constraint — without this catch a duplicate audience- # surfaces as a 500 instead of a plain validation error.+ @extend_schema(request=DigestChannelWriteSerializer, responses={201: DigestChannelSerializer})+ def create(self, request: Request, **kwargs) -> Response:+ serializer = DigestChannelWriteSerializer(data=request.data, context=self.get_serializer_context())+ serializer.is_valid(raise_exception=True)try:- serializer.save(team_id=self.team_id)- except IntegrityError:+ channel = facade_api.create_digest_channel(self.canonical_team_id, **serializer.validated_data)+ except contracts.DuplicateAudienceError:raise ValidationError({"audience_key": "A digest channel for this audience already exists."})+ return Response(self.get_serializer(channel).data, status=201)++ @extend_schema(request=DigestChannelWriteSerializer, responses={200: DigestChannelSerializer})+ def update(self, request: Request, pk: str | None = None, **kwargs) -> Response:+ self._get_or_404(pk)+ serializer = DigestChannelWriteSerializer(+ data=request.data,+ partial=kwargs.get("partial", False),+ partial_update=True,+ context=self.get_serializer_context(),+ )+ serializer.is_valid(raise_exception=True)+ channel = facade_api.update_digest_channel(self.canonical_team_id, str(pk), **serializer.validated_data)+ return Response(self.get_serializer(channel).data)- def perform_destroy(self, instance: DigestChannel) -> None:- # Soft-disable rather than removing the row. The (team_id, audience_key) row is the tombstone- # that stops auto_provision_channel from recreating and re-posting a digest someone opted out of- # (see logic/channel_resolution.py — auto-provisioning skips any existing row, disabled included).- # A hard delete would let the next daily beat resurrect the channel and re-send the digest.- instance.enabled = False- instance.save(update_fields=["enabled", "updated_at"])+ def partial_update(self, request: Request, pk: str | None = None, **kwargs) -> Response:+ return self.update(request, pk=pk, partial=True, **kwargs)+ def destroy(self, request: Request, pk: str | None = None, **kwargs) -> Response:+ self._get_or_404(pk)+ facade_api.disable_digest_channel(self.canonical_team_id, str(pk))+ return Response(status=204)-class DigestRunViewSet(_StamphogTeamScopedViewSet, viewsets.ReadOnlyModelViewSet):++class DigestRunViewSet(_StamphogTeamScopedViewSet, viewsets.GenericViewSet):"""Read-only history of posted (or attempted) digests, filterable by digest channel."""scope_object = "stamphog"serializer_class = DigestRunSerializer- # Unscoped base: the fail-closed manager raises at class-body eval if scoped here.- # safely_get_queryset re-applies the team filter per request.- queryset = DigestRun.objects.unscoped()-- def safely_get_queryset(self, queryset: QuerySet[DigestRun]) -> QuerySet[DigestRun]:- queryset = queryset.filter(team_id=self.canonical_team_id).order_by("-created_at")+ def _digest_runs(self) -> facade_api.LazyDTOList[contracts.DigestRunDTO] | None:+ """The team's digest runs under the request's filter, or None if it is unparseable."""digest_channel = self.request.query_params.get("digest_channel")+ channel_id = Noneif digest_channel:try:channel_id = UUID(digest_channel)except ValueError:- return queryset.none()- queryset = queryset.filter(digest_channel_id=channel_id)+ return None+ return facade_api.list_digest_runs(self.canonical_team_id, digest_channel_id=channel_id)- return queryset+ def retrieve(self, request: Request, pk: str | None = None, **kwargs) -> Response:+ digest_run = facade_api.get_digest_run(self.canonical_team_id, str(pk))+ if digest_run is None:+ raise NotFound()+ return Response(self.get_serializer(digest_run).data)@extend_schema(parameters=[@@ -646,4 +565,6 @@ class DigestRunViewSet(_StamphogTeamScopedViewSet, viewsets.ReadOnlyModelViewSetresponses={200: DigestRunSerializer(many=True)},)def list(self, request: Request, **kwargs) -> Response:- return super().list(request, **kwargs)+ digest_runs = self._digest_runs()+ page = self.paginate_queryset(digest_runs if digest_runs is not None else [])+ return self.get_paginated_response(self.get_serializer(page, many=True).data)diff --git a/products/stamphog/backend/presentation/webhooks.py b/products/stamphog/backend/presentation/webhooks.pyindex 97b2aa2b2475..2e053da38fee 100644--- a/products/stamphog/backend/presentation/webhooks.py+++ b/products/stamphog/backend/presentation/webhooks.py@@ -15,7 +15,7 @@ from django.views.decorators.csrf import csrf_exemptimport structlog-from products.stamphog.backend.tasks.tasks import process_installation_event, process_pull_request_event+from products.stamphog.backend.facade.tasks import process_installation_event, process_pull_request_eventlogger = structlog.get_logger(__name__)diff --git a/products/stamphog/backend/tests/test_api.py b/products/stamphog/backend/tests/test_api.pyindex 4cc0e0087d0e..83d8bec8fb5a 100644--- a/products/stamphog/backend/tests/test_api.py+++ b/products/stamphog/backend/tests/test_api.py@@ -10,15 +10,18 @@ from rest_framework import statusfrom posthog.models.integration import Integrationfrom posthog.models.personal_api_key import PersonalAPIKey, hash_key_valuefrom posthog.models.team import Team-from posthog.models.utils import generate_random_token_personal+from posthog.models.utils import generate_random_token_personal, uuid7+from products.stamphog.backend.facade import contractsfrom products.stamphog.backend.facade.enums import ReviewRunStatusfrom products.stamphog.backend.models import DigestChannel, PullRequest, ReviewRun, StamphogRepoConfig-from products.stamphog.backend.presentation.serializers import StamphogRepoConfigSerializer+from products.stamphog.backend.presentation.serializers import StamphogRepoConfigWriteSerializerfrom products.stamphog.backend.presentation.views import _INSTALL_STATE_SALTfrom products.stamphog.backend.tests.conftest import PRODUCT_DATABASES, StamphogTeamScopedTestMixin_VIEWS = "products.stamphog.backend.presentation.views"+# The repo enumeration moved behind the facade with the sync logic; the rest is still looked up in views.+_GITHUB_FACADE = "products.stamphog.backend.facade.github"_CLIENT = "products.stamphog.backend.logic.github_client.StamphogGitHubClient"@@ -179,29 +182,47 @@ class TestStamphogRepoConfigAPI(StamphogTeamScopedTestMixin, APIBaseTest):assert not StamphogRepoConfig.objects.unscoped().filter(repository="PostHog/quiet").exists()+def _repo_config_dto(*, enabled: bool, digest_enabled: bool) -> contracts.RepoConfigDTO:+ return contracts.RepoConfigDTO(+ id=uuid7(),+ team_id=1,+ provider="github",+ repository="PostHog/posthog",+ enabled=enabled,+ installation_id="1",+ digest_enabled=digest_enabled,+ )++class TestStamphogRepoConfigSerializerValidation(SimpleTestCase):@parameterized.expand([("create", None, {"repository": "PostHog/posthog", "enabled": False, "digest_enabled": True}),("enable_digest_on_review_off_repo",- StamphogRepoConfig(enabled=False, digest_enabled=False),+ _repo_config_dto(enabled=False, digest_enabled=False),{"digest_enabled": True},),])def test_asking_for_digest_without_reviews_is_rejected(- self, _name: str, instance: StamphogRepoConfig | None, data: dict+ self, _name: str, current: contracts.RepoConfigDTO | None, data: dict) -> None:- serializer = StamphogRepoConfigSerializer(instance=instance, data=data, partial=instance is not None)+ serializer = StamphogRepoConfigWriteSerializer(+ data=data, partial=current is not None, partial_update=current is not None, current=current+ )assert not serializer.is_valid()assert "digest_enabled" in serializer.errorsdef test_disabling_reviews_clears_the_digest(self) -> None:# The Enabled toggle PATCHes only `enabled`, so rejecting the write would leave an admin# unable to turn reviews off on any digest-enabled repo, with a generic failure toast.- instance = StamphogRepoConfig(enabled=True, digest_enabled=True)- serializer = StamphogRepoConfigSerializer(instance=instance, data={"enabled": False}, partial=True)+ serializer = StamphogRepoConfigWriteSerializer(+ data={"enabled": False},+ partial=True,+ partial_update=True,+ current=_repo_config_dto(enabled=True, digest_enabled=True),+ )assert serializer.is_valid(), serializer.errorsassert serializer.validated_data["digest_enabled"] is False@@ -312,7 +333,7 @@ class TestSyncInstallationAPI(StamphogTeamScopedTestMixin, APIBaseTest):self.url = f"/api/projects/{self.team.id}/stamphog/repo_configs/sync_installation/"self.state = _install_state(self.team.id, self.user.id)- @patch(f"{_VIEWS}.list_user_accessible_repositories", return_value=["PostHog/posthog", "PostHog/other"])+ @patch(f"{_GITHUB_FACADE}.list_user_accessible_repositories", return_value=["PostHog/posthog", "PostHog/other"])@patch(f"{_VIEWS}.user_can_access_installation", return_value=True)@patch(f"{_VIEWS}.exchange_oauth_code_for_user_token", return_value="user-token")def test_verified_installation_binds_repos(self, mock_exchange, mock_verify, mock_list) -> None:@@ -334,7 +355,7 @@ class TestSyncInstallationAPI(StamphogTeamScopedTestMixin, APIBaseTest):# The caller becomes the connecting user — the identity review-sandbox credentials are minted under.assert all(config.connected_by_user_id == self.user.id for config in bound)- @patch(f"{_VIEWS}.list_user_accessible_repositories", return_value=["PostHog/posthog"])+ @patch(f"{_GITHUB_FACADE}.list_user_accessible_repositories", return_value=["PostHog/posthog"])@patch(f"{_VIEWS}.user_can_access_installation", return_value=True)@patch(f"{_VIEWS}.exchange_oauth_code_for_user_token", return_value="user-token")def test_sync_adopts_preexisting_manual_config(self, mock_exchange, mock_verify, mock_list) -> None:@@ -359,7 +380,7 @@ class TestSyncInstallationAPI(StamphogTeamScopedTestMixin, APIBaseTest):assert manual.enabled is Falseassert manual.digest_enabled is False- @patch(f"{_VIEWS}.list_user_accessible_repositories", return_value=["PostHog/posthog"])+ @patch(f"{_GITHUB_FACADE}.list_user_accessible_repositories", return_value=["PostHog/posthog"])@patch(f"{_VIEWS}.user_can_access_installation", return_value=True)@patch(f"{_VIEWS}.exchange_oauth_code_for_user_token", return_value="user-token")def test_sync_rebinds_repo_after_reinstall(self, mock_exchange, mock_verify, mock_list) -> None:@@ -379,7 +400,7 @@ class TestSyncInstallationAPI(StamphogTeamScopedTestMixin, APIBaseTest):assert stale.installation_id == "42"assert stale.enabled is True # settings survive the rebind- @patch(f"{_VIEWS}.list_user_accessible_repositories")+ @patch(f"{_GITHUB_FACADE}.list_user_accessible_repositories")@patch(f"{_VIEWS}.user_can_access_installation", return_value=False)@patch(f"{_VIEWS}.exchange_oauth_code_for_user_token", return_value="user-token")def test_installation_not_owned_by_caller_is_rejected(self, mock_exchange, mock_verify, mock_list) -> None:@@ -394,7 +415,7 @@ class TestSyncInstallationAPI(StamphogTeamScopedTestMixin, APIBaseTest):mock_list.assert_not_called()assert not StamphogRepoConfig.objects.unscoped().filter(installation_id="999").exists()- @patch(f"{_VIEWS}.list_user_accessible_repositories")+ @patch(f"{_GITHUB_FACADE}.list_user_accessible_repositories")@patch(f"{_VIEWS}.user_can_access_installation")@patch(f"{_VIEWS}.exchange_oauth_code_for_user_token", return_value=None)def test_unexchangeable_code_fails_closed(self, mock_exchange, mock_verify, mock_list) -> None:@@ -410,7 +431,7 @@ class TestSyncInstallationAPI(StamphogTeamScopedTestMixin, APIBaseTest):assert not StamphogRepoConfig.objects.unscoped().filter(installation_id="42").exists()@parameterized.expand(["team", "user"])- @patch(f"{_VIEWS}.list_user_accessible_repositories")+ @patch(f"{_GITHUB_FACADE}.list_user_accessible_repositories")@patch(f"{_VIEWS}.exchange_oauth_code_for_user_token")def test_state_for_another_team_or_user_is_rejected(self, mismatch, mock_exchange, mock_list) -> None:# CSRF guard: the callback binds an installation to the team AND the member named in the signed@@ -443,7 +464,7 @@ class TestSyncInstallationAPI(StamphogTeamScopedTestMixin, APIBaseTest):response = self.client.post(self.url, {"installation_id": "42", "state": self.state}, format="json")assert response.status_code == status.HTTP_400_BAD_REQUEST, response.content- @patch(f"{_VIEWS}.list_user_accessible_repositories", return_value=["PostHog/posthog"])+ @patch(f"{_GITHUB_FACADE}.list_user_accessible_repositories", return_value=["PostHog/posthog"])@patch(f"{_VIEWS}.list_user_installations", return_value=[{"id": "42", "account_login": "PostHog"}])@patch(f"{_VIEWS}.exchange_oauth_code_for_user_token", return_value="user-token")def test_discovery_without_installation_id_syncs_discovered_installation(@@ -463,7 +484,7 @@ class TestSyncInstallationAPI(StamphogTeamScopedTestMixin, APIBaseTest):bound = StamphogRepoConfig.objects.unscoped().filter(team_id=self.team.id, installation_id="42")assert bound.count() == 1- @patch(f"{_VIEWS}.list_user_accessible_repositories")+ @patch(f"{_GITHUB_FACADE}.list_user_accessible_repositories")@patch(f"{_VIEWS}.list_user_installations",return_value=[{"id": "100", "account_login": "AlphaOrg"}, {"id": "200", "account_login": "SharedOrg"}],@@ -489,7 +510,7 @@ class TestSyncInstallationAPI(StamphogTeamScopedTestMixin, APIBaseTest):mock_list.assert_not_called()assert not StamphogRepoConfig.objects.unscoped().filter(team_id=self.team.id).exists()- @patch(f"{_VIEWS}.list_user_accessible_repositories")+ @patch(f"{_GITHUB_FACADE}.list_user_accessible_repositories")@patch(f"{_VIEWS}.list_user_installations", return_value=[])@patch(f"{_VIEWS}.exchange_oauth_code_for_user_token", return_value="user-token")def test_discovery_with_no_installations_reports_app_not_installed(diff --git a/products/stamphog/frontend/generated/api.schemas.ts b/products/stamphog/frontend/generated/api.schemas.tsindex 663d45cbde16..b6888fdd3b1f 100644--- a/products/stamphog/frontend/generated/api.schemas.ts+++ b/products/stamphog/frontend/generated/api.schemas.ts@@ -24,26 +24,13 @@ export const ResolutionSourceEnumApi = {export interface DigestChannelApi {readonly id: string- /**- * Opaque digest bucket this channel receives, e.g. 'repo:PostHog/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone.- * @maxLength 255- */+ /** Opaque digest bucket this channel receives, e.g. 'repo:PostHog/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone. */audience_key: string- /**- * ID of the team's Slack integration used to post the digest.- * @minimum -2147483648- * @maximum 2147483647- */+ /** ID of the team's Slack integration used to post the digest. */slack_integration_id: number- /**- * Slack channel ID to post the digest to, e.g. 'C012AB3CD'.- * @maxLength 64- */+ /** Slack channel ID to post the digest to, e.g. 'C012AB3CD'. */slack_channel_id: string- /**- * Human-readable Slack channel name, for display only.- * @maxLength 255- */+ /** Human-readable Slack channel name, for display only. */slack_channel_name?: string/** How this row was created: 'manual' (via this API), 'slack_name_match' (auto-provisioned because the workspace has a channel named exactly like the audience_key), 'stamphog_config' (auto-provisioned from the channel the repo declared under 'digest:' in .stamphog/policy.yml), or 'owners_contact' (reserved for the future owners.yaml contact.slack step, not implemented yet).*@@ -53,8 +40,11 @@ export interface DigestChannelApi {* * `owners_contact` - OWNERS_CONTACT */readonly resolution_source: ResolutionSourceEnumApi/** Whether this channel is included in the daily digest fan-out. */- enabled?: boolean- /** @nullable */+ enabled: boolean+ /**+ * When a digest was last posted to this channel.+ * @nullable+ */readonly last_digest_at: string | nullreadonly created_at: stringreadonly updated_at: string@@ -69,28 +59,31 @@ export interface PaginatedDigestChannelListApi {results: DigestChannelApi[]}+/**+ * Input shape for creating/updating a digest channel (see the repo-config write serializer).+ */+export interface DigestChannelWriteApi {+ /** Opaque digest bucket this channel receives, e.g. 'repo:PostHog/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone. */+ audience_key: string+ /** ID of the team's Slack integration used to post the digest. */+ slack_integration_id: number+ /** Slack channel ID to post the digest to, e.g. 'C012AB3CD'. */+ slack_channel_id: string+ /** Human-readable Slack channel name, for display only. */+ slack_channel_name?: string+ /** Whether this channel is included in the daily digest fan-out. */+ enabled?: boolean+}+export interface PatchedDigestChannelApi {readonly id?: string- /**- * Opaque digest bucket this channel receives, e.g. 'repo:PostHog/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone.- * @maxLength 255- */+ /** Opaque digest bucket this channel receives, e.g. 'repo:PostHog/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone. */audience_key?: string- /**- * ID of the team's Slack integration used to post the digest.- * @minimum -2147483648- * @maximum 2147483647- */+ /** ID of the team's Slack integration used to post the digest. */slack_integration_id?: number- /**- * Slack channel ID to post the digest to, e.g. 'C012AB3CD'.- * @maxLength 64- */+ /** Slack channel ID to post the digest to, e.g. 'C012AB3CD'. */slack_channel_id?: string- /**- * Human-readable Slack channel name, for display only.- * @maxLength 255- */+ /** Human-readable Slack channel name, for display only. */slack_channel_name?: string/** How this row was created: 'manual' (via this API), 'slack_name_match' (auto-provisioned because the workspace has a channel named exactly like the audience_key), 'stamphog_config' (auto-provisioned from the channel the repo declared under 'digest:' in .stamphog/policy.yml), or 'owners_contact' (reserved for the future owners.yaml contact.slack step, not implemented yet).*@@ -101,7 +94,10 @@ export interface PatchedDigestChannelApi {readonly resolution_source?: ResolutionSourceEnumApi/** Whether this channel is included in the daily digest fan-out. */enabled?: boolean- /** @nullable */+ /**+ * When a digest was last posted to this channel.+ * @nullable+ */readonly last_digest_at?: string | nullreadonly created_at?: stringreadonly updated_at?: string@@ -211,18 +207,12 @@ export const ReviewModeEnumApi = {export interface StamphogRepoConfigApi {readonly id: string- /**- * SCM provider this config talks to. Defaults to 'github'.- * @maxLength 32- */+ /** SCM provider this config talks to. Defaults to 'github'. */provider?: string- /**- * Repository full name, e.g. 'PostHog/posthog'.- * @maxLength 255- */+ /** Repository full name, e.g. 'PostHog/posthog'. */repository: string/** Whether stamphog actively reviews pull requests for this repo. */- enabled?: boolean+ enabled: boolean/** Provider app installation ID that authorizes API calls for this repo. Set only by the verified sync_installation flow; ignored on direct writes. */readonly installation_id: string/** Whether merged PRs on this repo are captured for the daily Slack digest. Requires 'enabled', since the digest reports what stamphog approved. */@@ -231,11 +221,8 @@ export interface StamphogRepoConfigApi {** * `all` - all* * `label` - label */- review_mode?: ReviewModeEnumApi- /**- * Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'.- * @maxLength 100- */+ readonly review_mode: ReviewModeEnumApi+ /** Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'. */trigger_label?: stringreadonly created_at: stringreadonly updated_at: string@@ -250,36 +237,64 @@ export interface PaginatedStamphogRepoConfigListApi {results: StamphogRepoConfigApi[]}-export interface PatchedStamphogRepoConfigApi {- readonly id?: string- /**- * SCM provider this config talks to. Defaults to 'github'.- * @maxLength 32- */+/**+ * Input shape for creating/updating a repo config.+ *+ * Separate from the read serializer because the contract is an output shape: it carries a+ * required id, which a create request has no way to supply. Same split as visual_review's+ * input serializers.+ *+ * installation_id is deliberately absent: it may only ever be set by the verified+ * sync_installation flow, which proves the caller owns the installation before binding it. A+ * client-supplied value on this path is ignored, so a manually created config carries no+ * installation and simply won't resolve webhooks until synced.+ */+export interface StamphogRepoConfigWriteApi {+ /** SCM provider this config talks to. Defaults to 'github'. */provider?: string- /**- * Repository full name, e.g. 'PostHog/posthog'.- * @maxLength 255- */+ /** Repository full name, e.g. 'PostHog/posthog'. */+ repository: string+ /** Whether stamphog actively reviews pull requests for this repo. */+ enabled?: boolean+ /** Whether merged PRs on this repo are captured for the daily Slack digest. */+ digest_enabled?: boolean+ /** When reviews run: 'all' reviews every pull request (the default); 'label' reviews only pull requests carrying the trigger label, mirroring the Action's opt-in flow.+ *+ * * `all` - all+ * * `label` - label */+ review_mode?: ReviewModeEnumApi+ /** Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'. */+ trigger_label?: string+}++/**+ * Input shape for creating/updating a repo config.+ *+ * Separate from the read serializer because the contract is an output shape: it carries a+ * required id, which a create request has no way to supply. Same split as visual_review's+ * input serializers.+ *+ * installation_id is deliberately absent: it may only ever be set by the verified+ * sync_installation flow, which proves the caller owns the installation before binding it. A+ * client-supplied value on this path is ignored, so a manually created config carries no+ * installation and simply won't resolve webhooks until synced.+ */+export interface PatchedStamphogRepoConfigWriteApi {+ /** SCM provider this config talks to. Defaults to 'github'. */+ provider?: string+ /** Repository full name, e.g. 'PostHog/posthog'. */repository?: string/** Whether stamphog actively reviews pull requests for this repo. */enabled?: boolean- /** Provider app installation ID that authorizes API calls for this repo. Set only by the verified sync_installation flow; ignored on direct writes. */- readonly installation_id?: string- /** Whether merged PRs on this repo are captured for the daily Slack digest. Requires 'enabled', since the digest reports what stamphog approved. */+ /** Whether merged PRs on this repo are captured for the daily Slack digest. */digest_enabled?: boolean/** When reviews run: 'all' reviews every pull request (the default); 'label' reviews only pull requests carrying the trigger label, mirroring the Action's opt-in flow.** * `all` - all* * `label` - label */review_mode?: ReviewModeEnumApi- /**- * Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'.- * @maxLength 100- */+ /** Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'. */trigger_label?: string- readonly created_at?: string- readonly updated_at?: string}/**@@ -394,7 +409,7 @@ export interface _GateResultSummaryApi {** The raw ``output`` blob also holds the reviewer's stdout, the full PR payload, changed-file patches,* and default-branch policy file contents — repository content a project member without repo access- * must never read over the API. Only these derived, content-free fields are exposed.+ * must never read. Only these derived, content-free fields are exposed.*/export interface _ReviewOutputSummaryApi {/** Version of the stamphog engine that produced this review, if it reported one. */diff --git a/products/stamphog/frontend/generated/api.ts b/products/stamphog/frontend/generated/api.tsindex e8fdf1d6fda6..7588fd4a487b 100644--- a/products/stamphog/frontend/generated/api.ts+++ b/products/stamphog/frontend/generated/api.ts@@ -10,6 +10,7 @@ import { apiMutator } from '../../../../frontend/src/lib/api-orval-mutator'*/import type {DigestChannelApi,+ DigestChannelWriteApi,DigestRunApi,PaginatedDigestChannelListApi,PaginatedDigestRunListApi,@@ -17,7 +18,7 @@ import type {PaginatedStamphogPullRequestListApi,PaginatedStamphogRepoConfigListApi,PatchedDigestChannelApi,- PatchedStamphogRepoConfigApi,+ PatchedStamphogRepoConfigWriteApi,ReviewRunApi,StamphogDigestChannelsListParams,StamphogDigestRunsListParams,@@ -25,6 +26,7 @@ import type {StamphogPullRequestApi,StamphogPullRequestsListParams,StamphogRepoConfigApi,+ StamphogRepoConfigWriteApi,StamphogRepoConfigsListParams,StamphogReviewRunsListParams,StamphogSyncInstallationRequestApi,@@ -87,14 +89,14 @@ export const getStamphogDigestChannelsCreateUrl = (projectId: string) => {*/export const stamphogDigestChannelsCreate = async (projectId: string,- digestChannelApi: NonReadonly<DigestChannelApi>,+ digestChannelWriteApi: DigestChannelWriteApi,options?: RequestInit): Promise<DigestChannelApi> => {return apiMutator<DigestChannelApi>(getStamphogDigestChannelsCreateUrl(projectId), {...options,method: 'POST',headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(digestChannelApi),+ body: JSON.stringify(digestChannelWriteApi),})}@@ -126,14 +128,14 @@ export const getStamphogDigestChannelsUpdateUrl = (projectId: string, id: stringexport const stamphogDigestChannelsUpdate = async (projectId: string,id: string,- digestChannelApi: NonReadonly<DigestChannelApi>,+ digestChannelWriteApi: DigestChannelWriteApi,options?: RequestInit): Promise<DigestChannelApi> => {return apiMutator<DigestChannelApi>(getStamphogDigestChannelsUpdateUrl(projectId, id), {...options,method: 'PUT',headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(digestChannelApi),+ body: JSON.stringify(digestChannelWriteApi),})}@@ -311,14 +313,14 @@ export const getStamphogRepoConfigsCreateUrl = (projectId: string) => {*/export const stamphogRepoConfigsCreate = async (projectId: string,- stamphogRepoConfigApi: NonReadonly<StamphogRepoConfigApi>,+ stamphogRepoConfigWriteApi: StamphogRepoConfigWriteApi,options?: RequestInit): Promise<StamphogRepoConfigApi> => {return apiMutator<StamphogRepoConfigApi>(getStamphogRepoConfigsCreateUrl(projectId), {...options,method: 'POST',headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(stamphogRepoConfigApi),+ body: JSON.stringify(stamphogRepoConfigWriteApi),})}@@ -350,14 +352,14 @@ export const getStamphogRepoConfigsUpdateUrl = (projectId: string, id: string) =export const stamphogRepoConfigsUpdate = async (projectId: string,id: string,- stamphogRepoConfigApi: NonReadonly<StamphogRepoConfigApi>,+ stamphogRepoConfigWriteApi: StamphogRepoConfigWriteApi,options?: RequestInit): Promise<StamphogRepoConfigApi> => {return apiMutator<StamphogRepoConfigApi>(getStamphogRepoConfigsUpdateUrl(projectId, id), {...options,method: 'PUT',headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(stamphogRepoConfigApi),+ body: JSON.stringify(stamphogRepoConfigWriteApi),})}@@ -371,14 +373,14 @@ export const getStamphogRepoConfigsPartialUpdateUrl = (projectId: string, id: stexport const stamphogRepoConfigsPartialUpdate = async (projectId: string,id: string,- patchedStamphogRepoConfigApi?: NonReadonly<PatchedStamphogRepoConfigApi>,+ patchedStamphogRepoConfigWriteApi?: PatchedStamphogRepoConfigWriteApi,options?: RequestInit): Promise<StamphogRepoConfigApi> => {return apiMutator<StamphogRepoConfigApi>(getStamphogRepoConfigsPartialUpdateUrl(projectId, id), {...options,method: 'PATCH',headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedStamphogRepoConfigApi),+ body: JSON.stringify(patchedStamphogRepoConfigWriteApi),})}diff --git a/products/stamphog/frontend/generated/api.zod.ts b/products/stamphog/frontend/generated/api.zod.tsindex 44a27eb362d4..88907d8a541d 100644--- a/products/stamphog/frontend/generated/api.zod.ts+++ b/products/stamphog/frontend/generated/api.zod.ts@@ -12,237 +12,139 @@ import * as zod from 'zod'/*** Per-audience Slack destinations for the daily merged-PR digest.*/-export const stamphogDigestChannelsCreateBodyAudienceKeyMax = 255--export const stamphogDigestChannelsCreateBodySlackIntegrationIdMin = -2147483648-export const stamphogDigestChannelsCreateBodySlackIntegrationIdMax = 2147483647--export const stamphogDigestChannelsCreateBodySlackChannelIdMax = 64--export const stamphogDigestChannelsCreateBodySlackChannelNameMax = 255--export const StamphogDigestChannelsCreateBody = /* @__PURE__ */ zod.object({- audience_key: zod- .string()- .max(stamphogDigestChannelsCreateBodyAudienceKeyMax)- .describe(- "Opaque digest bucket this channel receives, e.g. 'repo:PostHog\/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone."- ),- slack_integration_id: zod- .number()- .min(stamphogDigestChannelsCreateBodySlackIntegrationIdMin)- .max(stamphogDigestChannelsCreateBodySlackIntegrationIdMax)- .describe("ID of the team's Slack integration used to post the digest."),- slack_channel_id: zod- .string()- .max(stamphogDigestChannelsCreateBodySlackChannelIdMax)- .describe("Slack channel ID to post the digest to, e.g. 'C012AB3CD'."),- slack_channel_name: zod- .string()- .max(stamphogDigestChannelsCreateBodySlackChannelNameMax)- .optional()- .describe('Human-readable Slack channel name, for display only.'),- enabled: zod.boolean().optional().describe('Whether this channel is included in the daily digest fan-out.'),-})+export const StamphogDigestChannelsCreateBody = /* @__PURE__ */ zod+ .object({+ audience_key: zod+ .string()+ .describe(+ "Opaque digest bucket this channel receives, e.g. 'repo:PostHog\/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone."+ ),+ slack_integration_id: zod.number().describe("ID of the team's Slack integration used to post the digest."),+ slack_channel_id: zod.string().describe("Slack channel ID to post the digest to, e.g. 'C012AB3CD'."),+ slack_channel_name: zod.string().optional().describe('Human-readable Slack channel name, for display only.'),+ enabled: zod.boolean().optional().describe('Whether this channel is included in the daily digest fan-out.'),+ })+ .describe('Input shape for creating\/updating a digest channel (see the repo-config write serializer).')/*** Per-audience Slack destinations for the daily merged-PR digest.*/-export const stamphogDigestChannelsUpdateBodyAudienceKeyMax = 255--export const stamphogDigestChannelsUpdateBodySlackIntegrationIdMin = -2147483648-export const stamphogDigestChannelsUpdateBodySlackIntegrationIdMax = 2147483647--export const stamphogDigestChannelsUpdateBodySlackChannelIdMax = 64--export const stamphogDigestChannelsUpdateBodySlackChannelNameMax = 255--export const StamphogDigestChannelsUpdateBody = /* @__PURE__ */ zod.object({- audience_key: zod- .string()- .max(stamphogDigestChannelsUpdateBodyAudienceKeyMax)- .describe(- "Opaque digest bucket this channel receives, e.g. 'repo:PostHog\/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone."- ),- slack_integration_id: zod- .number()- .min(stamphogDigestChannelsUpdateBodySlackIntegrationIdMin)- .max(stamphogDigestChannelsUpdateBodySlackIntegrationIdMax)- .describe("ID of the team's Slack integration used to post the digest."),- slack_channel_id: zod- .string()- .max(stamphogDigestChannelsUpdateBodySlackChannelIdMax)- .describe("Slack channel ID to post the digest to, e.g. 'C012AB3CD'."),- slack_channel_name: zod- .string()- .max(stamphogDigestChannelsUpdateBodySlackChannelNameMax)- .optional()- .describe('Human-readable Slack channel name, for display only.'),- enabled: zod.boolean().optional().describe('Whether this channel is included in the daily digest fan-out.'),-})+export const StamphogDigestChannelsUpdateBody = /* @__PURE__ */ zod+ .object({+ audience_key: zod+ .string()+ .describe(+ "Opaque digest bucket this channel receives, e.g. 'repo:PostHog\/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone."+ ),+ slack_integration_id: zod.number().describe("ID of the team's Slack integration used to post the digest."),+ slack_channel_id: zod.string().describe("Slack channel ID to post the digest to, e.g. 'C012AB3CD'."),+ slack_channel_name: zod.string().optional().describe('Human-readable Slack channel name, for display only.'),+ enabled: zod.boolean().optional().describe('Whether this channel is included in the daily digest fan-out.'),+ })+ .describe('Input shape for creating\/updating a digest channel (see the repo-config write serializer).')/*** Per-audience Slack destinations for the daily merged-PR digest.*/-export const stamphogDigestChannelsPartialUpdateBodyAudienceKeyMax = 255--export const stamphogDigestChannelsPartialUpdateBodySlackIntegrationIdMin = -2147483648-export const stamphogDigestChannelsPartialUpdateBodySlackIntegrationIdMax = 2147483647--export const stamphogDigestChannelsPartialUpdateBodySlackChannelIdMax = 64--export const stamphogDigestChannelsPartialUpdateBodySlackChannelNameMax = 255-export const StamphogDigestChannelsPartialUpdateBody = /* @__PURE__ */ zod.object({audience_key: zod.string()- .max(stamphogDigestChannelsPartialUpdateBodyAudienceKeyMax).optional().describe("Opaque digest bucket this channel receives, e.g. 'repo:PostHog\/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone."),slack_integration_id: zod.number()- .min(stamphogDigestChannelsPartialUpdateBodySlackIntegrationIdMin)- .max(stamphogDigestChannelsPartialUpdateBodySlackIntegrationIdMax).optional().describe("ID of the team's Slack integration used to post the digest."),- slack_channel_id: zod- .string()- .max(stamphogDigestChannelsPartialUpdateBodySlackChannelIdMax)- .optional()- .describe("Slack channel ID to post the digest to, e.g. 'C012AB3CD'."),- slack_channel_name: zod- .string()- .max(stamphogDigestChannelsPartialUpdateBodySlackChannelNameMax)- .optional()- .describe('Human-readable Slack channel name, for display only.'),+ slack_channel_id: zod.string().optional().describe("Slack channel ID to post the digest to, e.g. 'C012AB3CD'."),+ slack_channel_name: zod.string().optional().describe('Human-readable Slack channel name, for display only.'),enabled: zod.boolean().optional().describe('Whether this channel is included in the daily digest fan-out.'),})/*** Per-repo stamphog settings — enable/disable review, GitHub App installation, policy overrides.*/-export const stamphogRepoConfigsCreateBodyProviderDefault = `github`-export const stamphogRepoConfigsCreateBodyProviderMax = 32--export const stamphogRepoConfigsCreateBodyRepositoryMax = 255--export const stamphogRepoConfigsCreateBodyTriggerLabelMax = 100--export const StamphogRepoConfigsCreateBody = /* @__PURE__ */ zod.object({- provider: zod- .string()- .max(stamphogRepoConfigsCreateBodyProviderMax)- .default(stamphogRepoConfigsCreateBodyProviderDefault)- .describe("SCM provider this config talks to. Defaults to 'github'."),- repository: zod- .string()- .max(stamphogRepoConfigsCreateBodyRepositoryMax)- .describe("Repository full name, e.g. 'PostHog\/posthog'."),- enabled: zod.boolean().optional().describe('Whether stamphog actively reviews pull requests for this repo.'),- digest_enabled: zod- .boolean()- .optional()- .describe(- "Whether merged PRs on this repo are captured for the daily Slack digest. Requires 'enabled', since the digest reports what stamphog approved."- ),- review_mode: zod- .enum(['all', 'label'])- .describe('\* `all` - all\n\* `label` - label')- .optional()- .describe(- "When reviews run: 'all' reviews every pull request (the default); 'label' reviews only pull requests carrying the trigger label, mirroring the Action's opt-in flow.\n\n\* `all` - all\n\* `label` - label"- ),- trigger_label: zod- .string()- .max(stamphogRepoConfigsCreateBodyTriggerLabelMax)- .optional()- .describe("Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'."),-})+export const StamphogRepoConfigsCreateBody = /* @__PURE__ */ zod+ .object({+ provider: zod.string().optional().describe("SCM provider this config talks to. Defaults to 'github'."),+ repository: zod.string().describe("Repository full name, e.g. 'PostHog\/posthog'."),+ enabled: zod.boolean().optional().describe('Whether stamphog actively reviews pull requests for this repo.'),+ digest_enabled: zod+ .boolean()+ .optional()+ .describe('Whether merged PRs on this repo are captured for the daily Slack digest.'),+ review_mode: zod+ .enum(['all', 'label'])+ .describe('\* `all` - all\n\* `label` - label')+ .optional()+ .describe(+ "When reviews run: 'all' reviews every pull request (the default); 'label' reviews only pull requests carrying the trigger label, mirroring the Action's opt-in flow.\n\n\* `all` - all\n\* `label` - label"+ ),+ trigger_label: zod+ .string()+ .optional()+ .describe("Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'."),+ })+ .describe(+ "Input shape for creating\/updating a repo config.\n\nSeparate from the read serializer because the contract is an output shape: it carries a\nrequired id, which a create request has no way to supply. Same split as visual_review's\ninput serializers.\n\ninstallation_id is deliberately absent: it may only ever be set by the verified\nsync_installation flow, which proves the caller owns the installation before binding it. A\nclient-supplied value on this path is ignored, so a manually created config carries no\ninstallation and simply won't resolve webhooks until synced."+ )/*** Per-repo stamphog settings — enable/disable review, GitHub App installation, policy overrides.*/-export const stamphogRepoConfigsUpdateBodyProviderDefault = `github`-export const stamphogRepoConfigsUpdateBodyProviderMax = 32--export const stamphogRepoConfigsUpdateBodyRepositoryMax = 255--export const stamphogRepoConfigsUpdateBodyTriggerLabelMax = 100--export const StamphogRepoConfigsUpdateBody = /* @__PURE__ */ zod.object({- provider: zod- .string()- .max(stamphogRepoConfigsUpdateBodyProviderMax)- .default(stamphogRepoConfigsUpdateBodyProviderDefault)- .describe("SCM provider this config talks to. Defaults to 'github'."),- repository: zod- .string()- .max(stamphogRepoConfigsUpdateBodyRepositoryMax)- .describe("Repository full name, e.g. 'PostHog\/posthog'."),- enabled: zod.boolean().optional().describe('Whether stamphog actively reviews pull requests for this repo.'),- digest_enabled: zod- .boolean()- .optional()- .describe(- "Whether merged PRs on this repo are captured for the daily Slack digest. Requires 'enabled', since the digest reports what stamphog approved."- ),- review_mode: zod- .enum(['all', 'label'])- .describe('\* `all` - all\n\* `label` - label')- .optional()- .describe(- "When reviews run: 'all' reviews every pull request (the default); 'label' reviews only pull requests carrying the trigger label, mirroring the Action's opt-in flow.\n\n\* `all` - all\n\* `label` - label"- ),- trigger_label: zod- .string()- .max(stamphogRepoConfigsUpdateBodyTriggerLabelMax)- .optional()- .describe("Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'."),-})+export const StamphogRepoConfigsUpdateBody = /* @__PURE__ */ zod+ .object({+ provider: zod.string().optional().describe("SCM provider this config talks to. Defaults to 'github'."),+ repository: zod.string().describe("Repository full name, e.g. 'PostHog\/posthog'."),+ enabled: zod.boolean().optional().describe('Whether stamphog actively reviews pull requests for this repo.'),+ digest_enabled: zod+ .boolean()+ .optional()+ .describe('Whether merged PRs on this repo are captured for the daily Slack digest.'),+ review_mode: zod+ .enum(['all', 'label'])+ .describe('\* `all` - all\n\* `label` - label')+ .optional()+ .describe(+ "When reviews run: 'all' reviews every pull request (the default); 'label' reviews only pull requests carrying the trigger label, mirroring the Action's opt-in flow.\n\n\* `all` - all\n\* `label` - label"+ ),+ trigger_label: zod+ .string()+ .optional()+ .describe("Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'."),+ })+ .describe(+ "Input shape for creating\/updating a repo config.\n\nSeparate from the read serializer because the contract is an output shape: it carries a\nrequired id, which a create request has no way to supply. Same split as visual_review's\ninput serializers.\n\ninstallation_id is deliberately absent: it may only ever be set by the verified\nsync_installation flow, which proves the caller owns the installation before binding it. A\nclient-supplied value on this path is ignored, so a manually created config carries no\ninstallation and simply won't resolve webhooks until synced."+ )/*** Per-repo stamphog settings — enable/disable review, GitHub App installation, policy overrides.*/-export const stamphogRepoConfigsPartialUpdateBodyProviderDefault = `github`-export const stamphogRepoConfigsPartialUpdateBodyProviderMax = 32--export const stamphogRepoConfigsPartialUpdateBodyRepositoryMax = 255--export const stamphogRepoConfigsPartialUpdateBodyTriggerLabelMax = 100--export const StamphogRepoConfigsPartialUpdateBody = /* @__PURE__ */ zod.object({- provider: zod- .string()- .max(stamphogRepoConfigsPartialUpdateBodyProviderMax)- .default(stamphogRepoConfigsPartialUpdateBodyProviderDefault)- .describe("SCM provider this config talks to. Defaults to 'github'."),- repository: zod- .string()- .max(stamphogRepoConfigsPartialUpdateBodyRepositoryMax)- .optional()- .describe("Repository full name, e.g. 'PostHog\/posthog'."),- enabled: zod.boolean().optional().describe('Whether stamphog actively reviews pull requests for this repo.'),- digest_enabled: zod- .boolean()- .optional()- .describe(- "Whether merged PRs on this repo are captured for the daily Slack digest. Requires 'enabled', since the digest reports what stamphog approved."- ),- review_mode: zod- .enum(['all', 'label'])- .describe('\* `all` - all\n\* `label` - label')- .optional()- .describe(- "When reviews run: 'all' reviews every pull request (the default); 'label' reviews only pull requests carrying the trigger label, mirroring the Action's opt-in flow.\n\n\* `all` - all\n\* `label` - label"- ),- trigger_label: zod- .string()- .max(stamphogRepoConfigsPartialUpdateBodyTriggerLabelMax)- .optional()- .describe("Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'."),-})+export const StamphogRepoConfigsPartialUpdateBody = /* @__PURE__ */ zod+ .object({+ provider: zod.string().optional().describe("SCM provider this config talks to. Defaults to 'github'."),+ repository: zod.string().optional().describe("Repository full name, e.g. 'PostHog\/posthog'."),+ enabled: zod.boolean().optional().describe('Whether stamphog actively reviews pull requests for this repo.'),+ digest_enabled: zod+ .boolean()+ .optional()+ .describe('Whether merged PRs on this repo are captured for the daily Slack digest.'),+ review_mode: zod+ .enum(['all', 'label'])+ .describe('\* `all` - all\n\* `label` - label')+ .optional()+ .describe(+ "When reviews run: 'all' reviews every pull request (the default); 'label' reviews only pull requests carrying the trigger label, mirroring the Action's opt-in flow.\n\n\* `all` - all\n\* `label` - label"+ ),+ trigger_label: zod+ .string()+ .optional()+ .describe("Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'."),+ })+ .describe(+ "Input shape for creating\/updating a repo config.\n\nSeparate from the read serializer because the contract is an output shape: it carries a\nrequired id, which a create request has no way to supply. Same split as visual_review's\ninput serializers.\n\ninstallation_id is deliberately absent: it may only ever be set by the verified\nsync_installation flow, which proves the caller owns the installation before binding it. A\nclient-supplied value on this path is ignored, so a manually created config carries no\ninstallation and simply won't resolve webhooks until synced."+ )/*** Per-repo stamphog settings — enable/disable review, GitHub App installation, policy overrides.diff --git a/products/warehouse_sources/backend/tests/api/_access_control_base.py b/products/warehouse_sources/backend/facade/_access_control_base.pysimilarity index 82%rename from products/warehouse_sources/backend/tests/api/_access_control_base.pyrename to products/warehouse_sources/backend/facade/_access_control_base.pyindex aa6e70458159..800202c46265 100644--- a/products/warehouse_sources/backend/tests/api/_access_control_base.py+++ b/products/warehouse_sources/backend/facade/_access_control_base.py@@ -1,9 +1,7 @@"""Shared fixtures for warehouse access-control tests.-Saved-query, folder, and table test classes all need the same org-feature-enablement, the same test users at different access levels, and the same-helpers for creating `AccessControl` rows. Centralizing them here avoids-duplicating ~15 lines across three test files.+Lives inside facade/ so the contract-check inputs always watch it; reach it through+``facade.testing``, which resolves it lazily."""from posthog.test.base import APIBaseTest@@ -21,7 +19,10 @@ except ImportError:class WarehouseAccessControlTestMixin(APIBaseTest):"""Base test case that enables RBAC features and creates standard test users.- Subclasses should set `resource` to `"warehouse_view"` or `"warehouse_table"`.+ Saved-query, folder, and table test classes all need the same org-feature+ enablement, the same test users at different access levels, and the same+ helpers for creating `AccessControl` rows. Subclasses should set `resource`+ to `"warehouse_view"` or `"warehouse_table"`."""resource: str = "warehouse_view"diff --git a/products/warehouse_sources/backend/facade/models.py b/products/warehouse_sources/backend/facade/models.pyindex 703fe604b4ed..3db7850850dd 100644--- a/products/warehouse_sources/backend/facade/models.py+++ b/products/warehouse_sources/backend/facade/models.py@@ -18,10 +18,6 @@ from products.warehouse_sources.backend.models.credential import (DataWarehouseCredential,get_or_create_datawarehouse_credential,)-from products.warehouse_sources.backend.models.custom_oauth2_integration import (- CustomOAuth2Integration,- get_custom_oauth2_integration,-)from products.warehouse_sources.backend.models.external_data_job import ExternalDataJob, get_latest_run_if_existsfrom products.warehouse_sources.backend.models.external_data_schema import (ExternalDataSchema,@@ -38,12 +34,10 @@ from products.warehouse_sources.backend.models.external_data_source import (MANAGED_WAREHOUSE_PROJECT_READER_CREDENTIAL_KIND,MANAGED_WAREHOUSE_SOURCE_PREFIX,ExternalDataSource,- ManagedWarehouseSQLMode,get_direct_external_data_source_for_connection,is_managed_warehouse_connection_ready,)from products.warehouse_sources.backend.models.pending_source_credential import PendingSourceCredential-from products.warehouse_sources.backend.models.ssh_tunnel import SSHTunnelfrom products.warehouse_sources.backend.models.table import (SERIALIZED_FIELD_TO_CLICKHOUSE_MAPPING,DataWarehouseTable,@@ -68,7 +62,6 @@ from products.warehouse_sources.backend.models.util import ()__all__ = [- "CustomOAuth2Integration","DataWarehouseCredential","DataWarehouseTable","DataWarehouseTableColumns",@@ -78,16 +71,13 @@ __all__ = ["MANAGED_WAREHOUSE_LEGACY_CREDENTIAL_KINDS","MANAGED_WAREHOUSE_PROJECT_READER_CREDENTIAL_KIND","MANAGED_WAREHOUSE_SOURCE_PREFIX",- "ManagedWarehouseSQLMode","PendingSourceCredential","SERIALIZED_FIELD_TO_CLICKHOUSE_MAPPING",- "SSHTunnel","WarehouseColumnAnnotation","WarehouseColumnStatistics","acreate_datawarehousetable","asave_datawarehousetable","auto_enable_new_schemas",- "get_custom_oauth2_integration","get_all_schemas_for_source_id","get_direct_external_data_source_for_connection","is_managed_warehouse_connection_ready",diff --git a/products/warehouse_sources/backend/facade/testing.py b/products/warehouse_sources/backend/facade/testing.pyindex 15fc5b9410af..e61edb461738 100644--- a/products/warehouse_sources/backend/facade/testing.py+++ b/products/warehouse_sources/backend/facade/testing.py@@ -2,17 +2,18 @@Shared test-infrastructure wiring for warehouse_sources.Many sibling products' test suites build a real warehouse table (to exercise queries over-imported data) or subclass the warehouse access-control test mixin. Those helpers live in-this product's test tree; re-export them here so cross-product tests reach them through the-facade rather than importing the internal test modules directly.+imported data) or subclass the warehouse access-control test mixin. The mixin's module+lives inside facade/ so the contract-check inputs always watch it.-Resolved lazily (PEP 562) so the test-only dependencies (S3 fixtures, ``APIBaseTest``) never-load unless a test actually imports one of these — keeping them off the ``django.setup()`` path.+Resolved lazily (PEP 562) so the test-only dependencies (S3 fixtures, ``APIBaseTest``)+never load unless a caller actually imports one of these — non-test code reaches this+module too (demo-data generation uses the table helper), so they must stay off the+module-body import path."""_MODULES = {"create_data_warehouse_table_from_csv": "products.warehouse_sources.backend.test.utils",- "WarehouseAccessControlTestMixin": "products.warehouse_sources.backend.tests.api._access_control_base",+ "WarehouseAccessControlTestMixin": "products.warehouse_sources.backend.facade._access_control_base",}__all__ = sorted(_MODULES)diff --git a/products/warehouse_sources/backend/facade/types.py b/products/warehouse_sources/backend/facade/types.pyindex 3c207de08b9c..a118ee5355d7 100644--- a/products/warehouse_sources/backend/facade/types.py+++ b/products/warehouse_sources/backend/facade/types.py@@ -1,20 +1,17 @@"""-Shared type wiring for warehouse_sources.+Shared type surface for warehouse_sources.-Re-exports the framework-light shared enums and typed structures that cross-product-consumers compare against or annotate with. These carry Django ``TextChoices`` /-``StrEnum`` semantics (not framework-free), so they are object wiring re-exported here-rather than contracts in ``facade.contracts``.+The framework-light shared enums and typed structures that cross-product consumers+compare against or annotate with. They carry Django ``TextChoices`` / ``StrEnum``+semantics (not framework-free), so they live here as object wiring rather than in+``facade.contracts``. Defined in the facade so the contract-check inputs always watch+them; ``backend.types`` re-exports them for product-internal use."""-from products.warehouse_sources.backend.types import (- DIRECT_ENGINE_BY_SOURCE_TYPE,- DataWarehouseManagedViewSetKind,- ExternalDataSourceType,- IncrementalField,- IncrementalFieldType,- PartitionSettings,-)+import typing+from enum import StrEnum++from django.db import models__all__ = ["DIRECT_ENGINE_BY_SOURCE_TYPE",@@ -22,5 +19,1368 @@ __all__ = ["ExternalDataSourceType","IncrementalField","IncrementalFieldType",+ "ManagedWarehouseSQLMode","PartitionSettings",]+++class IncrementalFieldType(StrEnum):+ Integer = "integer"+ Numeric = "numeric" # For snowflake+ DateTime = "datetime"+ Date = "date"+ Timestamp = "timestamp"+ # MongoDB specific+ ObjectID = "objectid"+ # Postgres xmin system column — synthetic cursor, never in information_schema+ XID = "xid"+++class IncrementalField(typing.TypedDict, total=False):+ label: typing.Required[str] # Label shown in the UI+ type: typing.Required[IncrementalFieldType] # Field type shown in the UI+ field: typing.Required[str] # Actual DB field accessed+ field_type: typing.Required[IncrementalFieldType] # Actual DB type of the field+ nullable: bool # Whether the field allows null values+ # Whether the field is the leading column of an index (or equivalent fast-lookup+ # structure for the engine: clustering key, sortkey, partition column, etc.).+ # Used to warn users picking an incremental field that would force a full scan+ # on every sync. Defaults to True when omitted so missing detection never warns.+ is_indexed: bool+++class PartitionSettings(typing.NamedTuple):+ """Settings used when partitioning data warehouse tables.++ Attributes:+ partition_count: Total number of partitions.+ partition_size: Number of rows to include per partition.+ """++ partition_count: int+ partition_size: int+++class ExternalDataSourceType(models.TextChoices):+ ASHBY = "Ashby", "Ashby"+ SUPABASE = "Supabase", "Supabase"+ CUSTOMERIO = "CustomerIO", "CustomerIO"+ GITHUB = "Github", "Github"+ STRIPE = "Stripe", "Stripe"+ HUBSPOT = "Hubspot", "Hubspot"+ POSTGRES = "Postgres", "Postgres"+ ZENDESK = "Zendesk", "Zendesk"+ SNOWFLAKE = "Snowflake", "Snowflake"+ SALESFORCE = "Salesforce", "Salesforce"+ MYSQL = "MySQL", "MySQL"+ MONGODB = "MongoDB", "MongoDB"+ MSSQL = "MSSQL", "MSSQL"+ VITALLY = "Vitally", "Vitally"+ BIGQUERY = "BigQuery", "BigQuery"+ CHARGEBEE = "Chargebee", "Chargebee"+ CLERK = "Clerk", "Clerk"+ GOOGLEADS = "GoogleAds", "GoogleAds"+ GOOGLESEARCHCONSOLE = "GoogleSearchConsole", "GoogleSearchConsole"+ TEMPORALIO = "TemporalIO", "TemporalIO"+ DOIT = "DoIt", "DoIt"+ GOOGLESHEETS = "GoogleSheets", "GoogleSheets"+ METAADS = "MetaAds", "MetaAds"+ KLAVIYO = "Klaviyo", "Klaviyo"+ MAILCHIMP = "Mailchimp", "Mailchimp"+ BRAZE = "Braze", "Braze"+ MAILJET = "Mailjet", "Mailjet"+ REDSHIFT = "Redshift", "Redshift"+ POLAR = "Polar", "Polar"+ REVENUECAT = "RevenueCat", "RevenueCat"+ LINKEDINADS = "LinkedinAds", "LinkedinAds"+ REDDITADS = "RedditAds", "RedditAds"+ TIKTOKADS = "TikTokAds", "TikTokAds"+ BINGADS = "BingAds", "BingAds"+ SHOPIFY = "Shopify", "Shopify"+ ATTIO = "Attio", "Attio"+ SNAPCHATADS = "SnapchatAds", "SnapchatAds"+ LINEAR = "Linear", "Linear"+ INTERCOM = "Intercom", "Intercom"+ AMPLITUDE = "Amplitude", "Amplitude"+ MIXPANEL = "Mixpanel", "Mixpanel"+ JIRA = "Jira", "Jira"+ ACTIVECAMPAIGN = "ActiveCampaign", "ActiveCampaign"+ MARKETO = "Marketo", "Marketo"+ ADJUST = "Adjust", "Adjust"+ APPSFLYER = "AppsFlyer", "AppsFlyer"+ FRESHDESK = "Freshdesk", "Freshdesk"+ GOOGLEANALYTICS = "GoogleAnalytics", "GoogleAnalytics"+ PIPEDRIVE = "Pipedrive", "Pipedrive"+ SENDGRID = "SendGrid", "SendGrid"+ SLACK = "Slack", "Slack"+ PAGERDUTY = "PagerDuty", "PagerDuty"+ ASANA = "Asana", "Asana"+ NOTION = "Notion", "Notion"+ AIRTABLE = "Airtable", "Airtable"+ GREENHOUSE = "Greenhouse", "Greenhouse"+ BAMBOOHR = "BambooHR", "BambooHR"+ LEVER = "Lever", "Lever"+ GITLAB = "GitLab", "GitLab"+ DATADOG = "Datadog", "Datadog"+ SENTRY = "Sentry", "Sentry"+ PENDO = "Pendo", "Pendo"+ FULLSTORY = "FullStory", "FullStory"+ AMAZONADS = "AmazonAds", "AmazonAds"+ PINTERESTADS = "PinterestAds", "PinterestAds"+ APPLESEARCHADS = "AppleSearchAds", "AppleSearchAds"+ QUICKBOOKS = "QuickBooks", "QuickBooks"+ XERO = "Xero", "Xero"+ NETSUITE = "NetSuite", "NetSuite"+ WOOCOMMERCE = "WooCommerce", "WooCommerce"+ BIGCOMMERCE = "BigCommerce", "BigCommerce"+ PAYPAL = "PayPal", "PayPal"+ SQUARE = "Square", "Square"+ ZOOM = "Zoom", "Zoom"+ TRELLO = "Trello", "Trello"+ MONDAY = "Monday", "Monday"+ CLICKUP = "ClickUp", "ClickUp"+ CONFLUENCE = "Confluence", "Confluence"+ RECURLY = "Recurly", "Recurly"+ SALESLOFT = "SalesLoft", "SalesLoft"+ OUTREACH = "Outreach", "Outreach"+ GONG = "Gong", "Gong"+ CALENDLY = "Calendly", "Calendly"+ TYPEFORM = "Typeform", "Typeform"+ ITERABLE = "Iterable", "Iterable"+ ZOHOCRM = "ZohoCRM", "ZohoCRM"+ CLOSE = "Close", "Close"+ ORACLE = "Oracle", "Oracle"+ DYNAMODB = "DynamoDB", "DynamoDB"+ ELASTICSEARCH = "Elasticsearch", "Elasticsearch"+ KAFKA = "Kafka", "Kafka"+ LAUNCHDARKLY = "LaunchDarkly", "LaunchDarkly"+ BRAINTREE = "Braintree", "Braintree"+ RECHARGE = "Recharge", "Recharge"+ HELPSCOUT = "HelpScout", "HelpScout"+ GORGIAS = "Gorgias", "Gorgias"+ INSTAGRAM = "Instagram", "Instagram"+ YOUTUBEANALYTICS = "YouTubeAnalytics", "YouTubeAnalytics"+ FACEBOOKPAGES = "FacebookPages", "FacebookPages"+ TWITTERADS = "TwitterAds", "TwitterAds"+ WORKDAY = "Workday", "Workday"+ SERVICENOW = "ServiceNow", "ServiceNow"+ PARDOT = "Pardot", "Pardot"+ COPPER = "Copper", "Copper"+ FRONT = "Front", "Front"+ CHARTMOGUL = "ChartMogul", "ChartMogul"+ ZUORA = "Zuora", "Zuora"+ PADDLE = "Paddle", "Paddle"+ CIRCLECI = "CircleCI", "CircleCI"+ COCKROACHDB = "CockroachDB", "CockroachDB"+ FIREBASE = "Firebase", "Firebase"+ AZUREBLOB = "AzureBlob", "AzureBlob"+ GOOGLEDRIVE = "GoogleDrive", "GoogleDrive"+ ONEDRIVE = "OneDrive", "OneDrive"+ SHAREPOINT = "SharePoint", "SharePoint"+ BOX = "Box", "Box"+ SFTP = "SFTP", "SFTP"+ MICROSOFTTEAMS = "MicrosoftTeams", "MicrosoftTeams"+ AIRCALL = "Aircall", "Aircall"+ WEBFLOW = "Webflow", "Webflow"+ OKTA = "Okta", "Okta"+ AUTH0 = "Auth0", "Auth0"+ PRODUCTBOARD = "Productboard", "Productboard"+ SMARTSHEET = "Smartsheet", "Smartsheet"+ WRIKE = "Wrike", "Wrike"+ PLAID = "Plaid", "Plaid"+ SURVEYMONKEY = "SurveyMonkey", "SurveyMonkey"+ EVENTBRITE = "Eventbrite", "Eventbrite"+ RINGCENTRAL = "RingCentral", "RingCentral"+ TWILIO = "Twilio", "Twilio"+ FRESHSALES = "Freshsales", "Freshsales"+ SHORTCUT = "Shortcut", "Shortcut"+ CONVERTKIT = "ConvertKit", "ConvertKit"+ DRIP = "Drip", "Drip"+ CAMPAIGNMONITOR = "CampaignMonitor", "CampaignMonitor"+ MAILERLITE = "MailerLite", "MailerLite"+ OMNISEND = "Omnisend", "Omnisend"+ BREVO = "Brevo", "Brevo"+ POSTMARK = "Postmark", "Postmark"+ GRANOLA = "Granola", "Granola"+ BUILDBETTER = "BuildBetter", "BuildBetter"+ CONVEX = "Convex", "Convex"+ CLICKHOUSE = "ClickHouse", "ClickHouse"+ PLAIN = "Plain", "Plain"+ RESEND = "Resend", "Resend"+ PGANALYZE = "PgAnalyze", "PgAnalyze"+ WORKOS = "WorkOS", "WorkOS"+ AMAZONS3 = "AmazonS3", "AmazonS3"+ GOOGLECLOUDSTORAGE = "GoogleCloudStorage", "GoogleCloudStorage"+ DATABRICKS = "Databricks", "Databricks"+ DYNAMICS365 = "Dynamics365", "Dynamics365"+ SALESFORCEMARKETINGCLOUD = "SalesforceMarketingCloud", "SalesforceMarketingCloud"+ DB2 = "Db2", "Db2"+ HEAP = "Heap", "Heap"+ ADOBEANALYTICS = "AdobeAnalytics", "AdobeAnalytics"+ MATOMO = "Matomo", "Matomo"+ OPTIMIZELY = "Optimizely", "Optimizely"+ ADYEN = "Adyen", "Adyen"+ GOCARDLESS = "GoCardless", "GoCardless"+ MOLLIE = "Mollie", "Mollie"+ CHECKOUTCOM = "CheckoutCom", "CheckoutCom"+ BRANCH = "Branch", "Branch"+ CRITEO = "Criteo", "Criteo"+ OUTBRAIN = "Outbrain", "Outbrain"+ TABOOLA = "Taboola", "Taboola"+ ADROLL = "AdRoll", "AdRoll"+ DISPLAYVIDEO360 = "DisplayVideo360", "DisplayVideo360"+ GOOGLEADMANAGER = "GoogleAdManager", "GoogleAdManager"+ CAMPAIGNMANAGER360 = "CampaignManager360", "CampaignManager360"+ SEARCHADS360 = "SearchAds360", "SearchAds360"+ ADOBECOMMERCE = "AdobeCommerce", "AdobeCommerce"+ AMAZONSELLINGPARTNER = "AmazonSellingPartner", "AmazonSellingPartner"+ EBAY = "Ebay", "Ebay"+ COMMERCETOOLS = "Commercetools", "Commercetools"+ LIGHTSPEEDRETAIL = "LightspeedRetail", "LightspeedRetail"+ SHIPSTATION = "ShipStation", "ShipStation"+ CONSTANTCONTACT = "ConstantContact", "ConstantContact"+ MAILGUN = "Mailgun", "Mailgun"+ ELOQUA = "Eloqua", "Eloqua"+ SAILTHRU = "Sailthru", "Sailthru"+ ORTTO = "Ortto", "Ortto"+ ATTENTIVE = "Attentive", "Attentive"+ KUSTOMER = "Kustomer", "Kustomer"+ DIXA = "Dixa", "Dixa"+ GLADLY = "Gladly", "Gladly"+ QUALTRICS = "Qualtrics", "Qualtrics"+ AZUREDEVOPS = "AzureDevOps", "AzureDevOps"+ ROLLBAR = "Rollbar", "Rollbar"+ OPSGENIE = "Opsgenie", "Opsgenie"+ INCIDENTIO = "IncidentIo", "IncidentIo"+ PINGDOM = "Pingdom", "Pingdom"+ CLOUDFLARE = "Cloudflare", "Cloudflare"+ COSMOSDB = "CosmosDB", "CosmosDB"+ PLANETSCALEMYSQL = "PlanetScaleMySQL", "PlanetScaleMySQL"+ PLANETSCALEPOSTGRES = "PlanetScalePostgres", "PlanetScalePostgres"+ SAPHANA = "SapHana", "SapHana"+ RIPPLING = "Rippling", "Rippling"+ HIBOB = "HiBob", "HiBob"+ PERSONIO = "Personio", "Personio"+ DEEL = "Deel", "Deel"+ ADPWORKFORCENOW = "AdpWorkforceNow", "AdpWorkforceNow"+ PAYLOCITY = "Paylocity", "Paylocity"+ GUSTO = "Gusto", "Gusto"+ CULTUREAMP = "CultureAmp", "CultureAmp"+ LATTICE = "Lattice", "Lattice"+ SAGEINTACCT = "SageIntacct", "SageIntacct"+ FRESHBOOKS = "FreshBooks", "FreshBooks"+ EXPENSIFY = "Expensify", "Expensify"+ RAMP = "Ramp", "Ramp"+ BREX = "Brex", "Brex"+ COUPA = "Coupa", "Coupa"+ SAPCONCUR = "SapConcur", "SapConcur"+ APOLLO = "Apollo", "Apollo"+ CRUNCHBASE = "Crunchbase", "Crunchbase"+ ZOOMINFO = "ZoomInfo", "ZoomInfo"+ CLARI = "Clari", "Clari"+ CHORUS = "Chorus", "Chorus"+ CODA = "Coda", "Coda"+ GURU = "Guru", "Guru"+ DROPBOX = "Dropbox", "Dropbox"+ DOCUSIGN = "Docusign", "Docusign"+ PANDADOC = "PandaDoc", "PandaDoc"+ SAPERP = "SapErp", "SapErp"+ SAPSUCCESSFACTORS = "SapSuccessFactors", "SapSuccessFactors"+ ORACLEEBS = "OracleEbs", "OracleEbs"+ ORACLEFUSION = "OracleFusion", "OracleFusion"+ AMAZONSNS = "AmazonSNS", "AmazonSNS"+ AMAZONEVENTBRIDGE = "AmazonEventBridge", "AmazonEventBridge"+ AMAZONSQS = "AmazonSQS", "AmazonSQS"+ AMAZONKINESIS = "AmazonKinesis", "AmazonKinesis"+ AMAZONCLOUDWATCH = "AmazonCloudWatch", "AmazonCloudWatch"+ OPENAIADS = "OpenAIAds", "OpenAIAds"+ ONEHUNDREDMS = "OneHundredMs", "OneHundredMs"+ SEVENSHIFTS = "SevenShifts", "SevenShifts"+ ACUITYSCHEDULING = "AcuityScheduling", "AcuityScheduling"+ AGILECRM = "AgileCRM", "AgileCRM"+ AHA = "Aha", "Aha"+ AIRBYTE = "Airbyte", "Airbyte"+ AKENEO = "Akeneo", "Akeneo"+ ALGOLIA = "Algolia", "Algolia"+ ALPACABROKERAPI = "AlpacaBrokerAPI", "AlpacaBrokerAPI"+ APIFYDATASET = "ApifyDataset", "ApifyDataset"+ APPCUES = "Appcues", "Appcues"+ APPFIGURES = "Appfigures", "Appfigures"+ APPFOLLOW = "Appfollow", "Appfollow"+ APPTIVO = "Apptivo", "Apptivo"+ ASSEMBLYAI = "AssemblyAI", "AssemblyAI"+ AWIN = "Awin", "Awin"+ AWSCLOUDTRAIL = "AwsCloudTrail", "AwsCloudTrail"+ AZURETABLESTORAGE = "AzureTableStorage", "AzureTableStorage"+ BABELFORCE = "Babelforce", "Babelforce"+ BASECAMP = "Basecamp", "Basecamp"+ BEAMER = "Beamer", "Beamer"+ BIGMAILER = "BigMailer", "BigMailer"+ BLUETALLY = "Bluetally", "Bluetally"+ BOLDSIGN = "BoldSign", "BoldSign"+ BREEZYHR = "BreezyHR", "BreezyHR"+ BUGSNAG = "Bugsnag", "Bugsnag"+ BUILDKITE = "Buildkite", "Buildkite"+ BUNNY = "Bunny", "Bunny"+ BUZZSPROUT = "Buzzsprout", "Buzzsprout"+ CALCOM = "CalCom", "CalCom"+ CALLRAIL = "CallRail", "CallRail"+ CAMPAYN = "Campayn", "Campayn"+ CANNY = "Canny", "Canny"+ CAPSULECRM = "CapsuleCRM", "CapsuleCRM"+ CAPTAINDATA = "CaptainData", "CaptainData"+ CARTCOM = "CartCom", "CartCom"+ CASTOREDC = "CastorEDC", "CastorEDC"+ CHAMELEON = "Chameleon", "Chameleon"+ CHARGEDESK = "Chargedesk", "Chargedesk"+ CHARGIFY = "Chargify", "Chargify"+ CHIFT = "Chift", "Chift"+ CHURNKEY = "Churnkey", "Churnkey"+ CIN7 = "Cin7", "Cin7"+ CISCOMERAKI = "CiscoMeraki", "CiscoMeraki"+ CLAZAR = "Clazar", "Clazar"+ CLOCKIFY = "Clockify", "Clockify"+ CLOCKODO = "Clockodo", "Clockodo"+ CLOUDBEDS = "Cloudbeds", "Cloudbeds"+ COASSEMBLE = "Coassemble", "Coassemble"+ CODEFRESH = "Codefresh", "Codefresh"+ CONCORD = "Concord", "Concord"+ CONFIGCAT = "ConfigCat", "ConfigCat"+ COUCHBASE = "Couchbase", "Couchbase"+ CURVE = "Curve", "Curve"+ CUSTOMERLY = "Customerly", "Customerly"+ DATASCOPE = "Datascope", "Datascope"+ DBT = "Dbt", "Dbt"+ DEPUTY = "Deputy", "Deputy"+ DEVINAI = "DevinAI", "DevinAI"+ DOCUSEAL = "Docuseal", "Docuseal"+ DOLIBARR = "Dolibarr", "Dolibarr"+ DREMIO = "Dremio", "Dremio"+ DROPBOXSIGN = "DropboxSign", "DropboxSign"+ DWOLLA = "Dwolla", "Dwolla"+ ECONOMIC = "EConomic", "EConomic"+ EASYPOST = "Easypost", "Easypost"+ EASYPROMOS = "Easypromos", "Easypromos"+ ELASTICEMAIL = "Elasticemail", "Elasticemail"+ EMAILOCTOPUS = "EmailOctopus", "EmailOctopus"+ EMPLOYMENTHERO = "EmploymentHero", "EmploymentHero"+ ENCHARGE = "Encharge", "Encharge"+ EVENTEE = "Eventee", "Eventee"+ EVENTZILLA = "Eventzilla", "Eventzilla"+ EVERHOUR = "Everhour", "Everhour"+ EZOFFICEINVENTORY = "EZOfficeInventory", "EZOfficeInventory"+ FACTORIAL = "Factorial", "Factorial"+ FASTBILL = "Fastbill", "Fastbill"+ FASTLY = "Fastly", "Fastly"+ FAUNA = "Fauna", "Fauna"+ FEISHU = "Feishu", "Feishu"+ FILLOUT = "Fillout", "Fillout"+ FINAGE = "Finage", "Finage"+ FIREBOLT = "Firebolt", "Firebolt"+ FIREHYDRANT = "FireHydrant", "FireHydrant"+ FLEETIO = "Fleetio", "Fleetio"+ FLEXMAIL = "Flexmail", "Flexmail"+ FLEXPORT = "Flexport", "Flexport"+ FLOATAPP = "FloatApp", "FloatApp"+ FLOWLU = "Flowlu", "Flowlu"+ FORMBRICKS = "Formbricks", "Formbricks"+ FRAMER = "Framer", "Framer"+ FREEAGENT = "FreeAgent", "FreeAgent"+ FREIGHTVIEW = "Freightview", "Freightview"+ FRESHCALLER = "Freshcaller", "Freshcaller"+ FRESHCHAT = "Freshchat", "Freshchat"+ FRESHSERVICE = "Freshservice", "Freshservice"+ FULCRUM = "Fulcrum", "Fulcrum"+ GAINSIGHTPX = "GainsightPx", "GainsightPx"+ GITBOOK = "GitBook", "GitBook"+ GLASSFROG = "Glassfrog", "Glassfrog"+ GOLDCAST = "Goldcast", "Goldcast"+ GOLOGIN = "GoLogin", "GoLogin"+ GRAFANA = "Grafana", "Grafana"+ GREYTHR = "GreytHr", "GreytHr"+ GRIDLY = "Gridly", "Gridly"+ HARNESS = "Harness", "Harness"+ HEIGHT = "Height", "Height"+ HELLOBATON = "Hellobaton", "Hellobaton"+ HIGHLEVEL = "HighLevel", "HighLevel"+ HOORAYHR = "HoorayHR", "HoorayHR"+ HUBPLANNER = "Hubplanner", "Hubplanner"+ HUMANITIX = "Humanitix", "Humanitix"+ HUNTR = "Huntr", "Huntr"+ INFLOWINVENTORY = "Inflowinventory", "Inflowinventory"+ INFORNEXUS = "InforNexus", "InforNexus"+ INSIGHTFUL = "Insightful", "Insightful"+ INSIGHTLY = "Insightly", "Insightly"+ INSTANTLY = "Instantly", "Instantly"+ INSTATUS = "Instatus", "Instatus"+ INTRUDER = "Intruder", "Intruder"+ INVOICED = "Invoiced", "Invoiced"+ INVOICENINJA = "Invoiceninja", "Invoiceninja"+ JAMFPRO = "JamfPro", "JamfPro"+ JOBNIMBUS = "JobNimbus", "JobNimbus"+ JOTFORM = "Jotform", "Jotform"+ JUDGEMEREVIEWS = "JudgeMeReviews", "JudgeMeReviews"+ JUSTCALL = "JustCall", "JustCall"+ JUSTSIFT = "JustSift", "JustSift"+ K6CLOUD = "K6Cloud", "K6Cloud"+ KATANA = "Katana", "Katana"+ KEKA = "Keka", "Keka"+ KISI = "Kisi", "Kisi"+ KISSMETRICS = "Kissmetrics", "Kissmetrics"+ KLARNA = "Klarna", "Klarna"+ KLAUS = "Klaus", "Klaus"+ LAGO = "Lago", "Lago"+ LEADFEEDER = "Leadfeeder", "Leadfeeder"+ LEMLIST = "Lemlist", "Lemlist"+ LESSANNOYINGCRM = "LessAnnoyingCRM", "LessAnnoyingCRM"+ LINKEDINPAGES = "LinkedinPages", "LinkedinPages"+ LINKRUNNER = "Linkrunner", "Linkrunner"+ LINNWORKS = "Linnworks", "Linnworks"+ LOB = "Lob", "Lob"+ LOKALISE = "Lokalise", "Lokalise"+ LOOKER = "Looker", "Looker"+ LUMA = "Luma", "Luma"+ MAILERSEND = "MailerSend", "MailerSend"+ MAILOSAUR = "Mailosaur", "Mailosaur"+ MAILTRAP = "Mailtrap", "Mailtrap"+ MANTLE = "Mantle", "Mantle"+ MENTION = "Mention", "Mention"+ MERCADOADS = "MercadoAds", "MercadoAds"+ MERGE = "Merge", "Merge"+ METABASE = "Metabase", "Metabase"+ METRICOOL = "Metricool", "Metricool"+ MICROSOFTDATAVERSE = "MicrosoftDataverse", "MicrosoftDataverse"+ MICROSOFTENTRAID = "MicrosoftEntraId", "MicrosoftEntraId"+ MICROSOFTLISTS = "MicrosoftLists", "MicrosoftLists"+ MIRO = "Miro", "Miro"+ MISSIVE = "Missive", "Missive"+ MIXMAX = "MixMax", "MixMax"+ MODE = "Mode", "Mode"+ MUX = "Mux", "Mux"+ MYHOURS = "MyHours", "MyHours"+ N8N = "N8n", "N8n"+ NAVAN = "Navan", "Navan"+ NEBIUSAI = "NebiusAI", "NebiusAI"+ NEXIOPAY = "Nexiopay", "Nexiopay"+ NINJAONERMM = "NinjaOneRMM", "NinjaOneRMM"+ NOCRM = "NoCRM", "NoCRM"+ NORTHPASSLMS = "NorthpassLMS", "NorthpassLMS"+ NUTSHELL = "Nutshell", "Nutshell"+ NYLAS = "Nylas", "Nylas"+ ONCEHUB = "Oncehub", "Oncehub"+ ONEPAGECRM = "Onepagecrm", "Onepagecrm"+ ONESIGNAL = "OneSignal", "OneSignal"+ ONFLEET = "Onfleet", "Onfleet"+ OPINIONSTAGE = "OpinionStage", "OpinionStage"+ OPUSWATCH = "OPUSWatch", "OPUSWatch"+ ORB = "Orb", "Orb"+ ORBIT = "Orbit", "Orbit"+ OURA = "Oura", "Oura"+ OVEIT = "Oveit", "Oveit"+ PABBLYSUBSCRIPTIONSBILLING = "PabblySubscriptionsBilling", "PabblySubscriptionsBilling"+ PAPERFORM = "Paperform", "Paperform"+ PAPERSIGN = "Papersign", "Papersign"+ PARTNERIZE = "Partnerize", "Partnerize"+ PARTNERSTACK = "PartnerStack", "PartnerStack"+ PAYFIT = "PayFit", "PayFit"+ PAYSTACK = "Paystack", "Paystack"+ PENNYLANE = "Pennylane", "Pennylane"+ PERK = "Perk", "Perk"+ PERSISTIQ = "PersistIq", "PersistIq"+ PERSONA = "Persona", "Persona"+ PHYLLO = "Phyllo", "Phyllo"+ PICQER = "Picqer", "Picqer"+ PIPELINER = "Pipeliner", "Pipeliner"+ PIVOTALTRACKER = "PivotalTracker", "PivotalTracker"+ PIWIK = "Piwik", "Piwik"+ PLANHAT = "Planhat", "Planhat"+ PLAUSIBLE = "Plausible", "Plausible"+ POPLAR = "Poplar", "Poplar"+ PRESTASHOP = "PrestaShop", "PrestaShop"+ PRETIX = "Pretix", "Pretix"+ PRIMETRIC = "Primetric", "Primetric"+ PRINTAVO = "Printavo", "Printavo"+ PRINTIFY = "Printify", "Printify"+ PRODUCTIVE = "Productive", "Productive"+ PYLON = "Pylon", "Pylon"+ QONTO = "Qonto", "Qonto"+ QUALAROO = "Qualaroo", "Qualaroo"+ RAILZ = "Railz", "Railz"+ RDSTATIONMARKETING = "RDStationMarketing", "RDStationMarketing"+ RECRUITEE = "Recruitee", "Recruitee"+ REDDIT = "Reddit", "Reddit"+ REFERRALHERO = "ReferralHero", "ReferralHero"+ RENTCAST = "RentCast", "RentCast"+ REPAIRSHOPR = "Repairshopr", "Repairshopr"+ REPLYIO = "ReplyIo", "ReplyIo"+ RETAILEXPRESS = "RetailExpress", "RetailExpress"+ RETENTLY = "Retently", "Retently"+ REVOLUTMERCHANT = "RevolutMerchant", "RevolutMerchant"+ ROCKETCHAT = "RocketChat", "RocketChat"+ ROCKETLANE = "Rocketlane", "Rocketlane"+ ROOTLY = "Rootly", "Rootly"+ RUDDR = "Ruddr", "Ruddr"+ SAFETYCULTURE = "SafetyCulture", "SafetyCulture"+ SAGEHR = "SageHR", "SageHR"+ SALESFLARE = "Salesflare", "Salesflare"+ SAPFIELDGLASS = "SAPFieldglass", "SAPFieldglass"+ SAVVYCAL = "SavvyCal", "SavvyCal"+ SECODA = "Secoda", "Secoda"+ SEGMENT = "Segment", "Segment"+ SENDOWL = "Sendowl", "Sendowl"+ SENDPULSE = "SendPulse", "SendPulse"+ SENSEFORCE = "Senseforce", "Senseforce"+ SERPSTAT = "Serpstat", "Serpstat"+ SHARETRIBE = "Sharetribe", "Sharetribe"+ SHIPPO = "Shippo", "Shippo"+ SHOPWIRED = "ShopWired", "ShopWired"+ SHORTIO = "Shortio", "Shortio"+ SHUTTERSTOCK = "Shutterstock", "Shutterstock"+ SIGMACOMPUTING = "SigmaComputing", "SigmaComputing"+ SIGNNOW = "SignNow", "SignNow"+ SIMPLECAST = "SimpleCast", "SimpleCast"+ SIMPLESAT = "Simplesat", "Simplesat"+ SMAILY = "Smaily", "Smaily"+ SMARTENGAGE = "SmartEngage", "SmartEngage"+ SMARTREACH = "Smartreach", "Smartreach"+ SMARTWAIVER = "Smartwaiver", "Smartwaiver"+ SOLARWINDSSERVICEDESK = "SolarwindsServiceDesk", "SolarwindsServiceDesk"+ SONARCLOUD = "SonarCloud", "SonarCloud"+ SPARKPOST = "SparkPost", "SparkPost"+ SPLITIO = "SplitIo", "SplitIo"+ SPOTIFYADS = "SpotifyAds", "SpotifyAds"+ SPOTLERCRM = "SpotlerCRM", "SpotlerCRM"+ SQUARESPACE = "Squarespace", "Squarespace"+ STATSIG = "Statsig", "Statsig"+ STATUSPAGE = "Statuspage", "Statuspage"+ STIGG = "Stigg", "Stigg"+ STRAVA = "Strava", "Strava"+ SURVEYSPARROW = "SurveySparrow", "SurveySparrow"+ SURVICATE = "Survicate", "Survicate"+ SVIX = "Svix", "Svix"+ SYSTEME = "Systeme", "Systeme"+ TAVUS = "Tavus", "Tavus"+ TEAMTAILOR = "Teamtailor", "Teamtailor"+ TEAMWORK = "Teamwork", "Teamwork"+ TEMPO = "Tempo", "Tempo"+ TESTRAIL = "Testrail", "Testrail"+ THINKIFIC = "Thinkific", "Thinkific"+ THINKIFICCOURSES = "ThinkificCourses", "ThinkificCourses"+ THRIVELEARNING = "ThriveLearning", "ThriveLearning"+ TICKETMASTER = "Ticketmaster", "Ticketmaster"+ TICKETTAILOR = "TicketTailor", "TicketTailor"+ TICKTICK = "TickTick", "TickTick"+ TIMELY = "Timely", "Timely"+ TINYEMAIL = "Tinyemail", "Tinyemail"+ TODOIST = "Todoist", "Todoist"+ TOGGL = "Toggl", "Toggl"+ TRACKPMS = "TrackPMS", "TrackPMS"+ TREMENDOUS = "Tremendous", "Tremendous"+ TRUSTPILOT = "TrustPilot", "TrustPilot"+ TWITTER = "Twitter", "Twitter"+ TYNTECSMS = "TyntecSMS", "TyntecSMS"+ UNLEASH = "Unleash", "Unleash"+ UPPROMOTE = "UpPromote", "UpPromote"+ UPTICK = "Uptick", "Uptick"+ USERVOICE = "Uservoice", "Uservoice"+ VANTAGE = "Vantage", "Vantage"+ VEEQO = "Veeqo", "Veeqo"+ VERCEL = "Vercel", "Vercel"+ VISMAECONOMIC = "VismaEconomic", "VismaEconomic"+ VWO = "VWO", "VWO"+ WAITERAID = "Waiteraid", "Waiteraid"+ WASABI = "Wasabi", "Wasabi"+ WHENIWORK = "WhenIWork", "WhenIWork"+ WORDPRESS = "Wordpress", "Wordpress"+ WORKABLE = "Workable", "Workable"+ WORKFLOWMAX = "Workflowmax", "Workflowmax"+ WORKRAMP = "Workramp", "Workramp"+ WUFOO = "Wufoo", "Wufoo"+ XSOLLA = "Xsolla", "Xsolla"+ YANDEXMETRICA = "YandexMetrica", "YandexMetrica"+ YOTPO = "Yotpo", "Yotpo"+ YNAB = "Ynab", "Ynab"+ YOUNIUM = "Younium", "Younium"+ YOUSIGN = "YouSign", "YouSign"+ YOUTUBEDATA = "YoutubeData", "YoutubeData"+ ZAPIERSUPPORTEDSTORAGE = "ZapierSupportedStorage", "ZapierSupportedStorage"+ ZAPSIGN = "ZapSign", "ZapSign"+ ZENDESKSELL = "ZendeskSell", "ZendeskSell"+ ZENDESKSUNSHINE = "ZendeskSunshine", "ZendeskSunshine"+ ZENEFITS = "Zenefits", "Zenefits"+ ZENLOOP = "Zenloop", "Zenloop"+ ZOHOANALYTICS = "ZohoAnalytics", "ZohoAnalytics"+ ZOHOBIGIN = "ZohoBigin", "ZohoBigin"+ ZOHOBILLING = "ZohoBilling", "ZohoBilling"+ ZOHOBOOKS = "ZohoBooks", "ZohoBooks"+ ZOHOCAMPAIGN = "ZohoCampaign", "ZohoCampaign"+ ZOHODESK = "ZohoDesk", "ZohoDesk"+ ZOHOEXPENSE = "ZohoExpense", "ZohoExpense"+ ZOHOINVENTORY = "ZohoInventory", "ZohoInventory"+ ZOHOINVOICE = "ZohoInvoice", "ZohoInvoice"+ ZONKAFEEDBACK = "ZonkaFeedback", "ZonkaFeedback"+ ALPHAVANTAGE = "AlphaVantage", "AlphaVantage"+ AVIATIONSTACK = "Aviationstack", "Aviationstack"+ BITLY = "Bitly", "Bitly"+ BLOGGER = "Blogger", "Blogger"+ BREEZOMETER = "Breezometer", "Breezometer"+ CAREQUALITYCOMMISSION = "CareQualityCommission", "CareQualityCommission"+ CIMIS = "Cimis", "Cimis"+ COINAPI = "CoinApi", "CoinApi"+ COINGECKO = "CoinGecko", "CoinGecko"+ COINMARKETCAP = "CoinMarketCap", "CoinMarketCap"+ DINGCONNECT = "DingConnect", "DingConnect"+ DOCKERHUB = "Dockerhub", "Dockerhub"+ EXCHANGERATESAPI = "ExchangeRatesApi", "ExchangeRatesApi"+ FINANCIALMODELLING = "FinancialModelling", "FinancialModelling"+ FINNHUB = "Finnhub", "Finnhub"+ FINNWORLDS = "Finnworlds", "Finnworlds"+ GIPHY = "Giphy", "Giphy"+ GMAIL = "Gmail", "Gmail"+ GNEWS = "GNews", "GNews"+ GOOGLECALENDAR = "GoogleCalendar", "GoogleCalendar"+ GOOGLECLASSROOM = "GoogleClassroom", "GoogleClassroom"+ GOOGLEDIRECTORY = "GoogleDirectory", "GoogleDirectory"+ GOOGLEFORMS = "GoogleForms", "GoogleForms"+ GOOGLEPAGESPEEDINSIGHTS = "GooglePageSpeedInsights", "GooglePageSpeedInsights"+ GOOGLETASKS = "GoogleTasks", "GoogleTasks"+ GOOGLEWEBFONTS = "GoogleWebfonts", "GoogleWebfonts"+ GOOGLEWORKSPACEADMINREPORTS = "GoogleWorkspaceAdminReports", "GoogleWorkspaceAdminReports"+ HUGGINGFACE = "HuggingFace", "HuggingFace"+ ILLUMINABASESPACE = "IlluminaBasespace", "IlluminaBasespace"+ IMAGGA = "Imagga", "Imagga"+ INTERZOID = "Interzoid", "Interzoid"+ IP2WHOIS = "IP2Whois", "IP2Whois"+ KYVE = "KYVE", "KYVE"+ MARKETSTACK = "Marketstack", "Marketstack"+ MENDELEY = "Mendeley", "Mendeley"+ NASA = "Nasa", "Nasa"+ NEWYORKTIMES = "NewYorkTimes", "NewYorkTimes"+ NEWSAPI = "NewsApi", "NewsApi"+ NEWSDATA = "NewsData", "NewsData"+ OPENDATADC = "OpenDataDc", "OpenDataDc"+ OPENEXCHANGERATES = "OpenExchangeRates", "OpenExchangeRates"+ OPENAQ = "OpenAQ", "OpenAQ"+ OPENFDA = "OpenFDA", "OpenFDA"+ OPENWEATHER = "OpenWeather", "OpenWeather"+ OUTLOOK = "Outlook", "Outlook"+ PERIGON = "Perigon", "Perigon"+ PEXELS = "Pexels", "Pexels"+ POCKET = "Pocket", "Pocket"+ POLYGON = "Polygon", "Polygon"+ PYPI = "PyPI", "PyPI"+ RECREATION = "Recreation", "Recreation"+ RKICOVID = "RKICovid", "RKICovid"+ RSS = "Rss", "Rss"+ SIMFIN = "SimFin", "SimFin"+ STOCKDATA = "StockData", "StockData"+ GUARDIAN = "Guardian", "Guardian"+ TMDB = "TMDb", "TMDb"+ TVMAZE = "TVMaze", "TVMaze"+ TWELVEDATA = "TwelveData", "TwelveData"+ UBIDOTS = "Ubidots", "Ubidots"+ USCENSUS = "USCensus", "USCensus"+ WATCHMODE = "Watchmode", "Watchmode"+ WIKIPEDIAPAGEVIEWS = "WikipediaPageviews", "WikipediaPageviews"+ YAHOOFINANCE = "YahooFinance", "YahooFinance"+ CLARIFAI = "Clarifai", "Clarifai"+ ADAPTY = "Adapty", "Adapty"+ BRAINTRUST = "Braintrust", "Braintrust"+ STREAMELEMENTS = "StreamElements", "StreamElements"+ STREAMLABS = "Streamlabs", "Streamlabs"+ DATORAMA = "Datorama", "Datorama"+ AHREFS = "Ahrefs", "Ahrefs"+ LIGHTFIELD = "Lightfield", "Lightfield"+ APPSTACK = "Appstack", "Appstack"+ RAZORPAY = "Razorpay", "Razorpay"+ NEON = "Neon", "Neon"+ NEWRELIC = "NewRelic", "NewRelic"+ CUSTOM = "Custom", "Custom"+ TILE38 = "Tile38", "Tile38"+ CHATWOOT = "Chatwoot", "Chatwoot"+ SANITY = "Sanity", "Sanity"+ METRONOME = "Metronome", "Metronome"+ JOBBER = "Jobber", "Jobber"+ KNOCK = "Knock", "Knock"+ LEEXI = "Leexi", "Leexi"+ RB2B = "RB2B", "RB2B"+ SUPERWALL = "Superwall", "Superwall"+ LIANA = "Liana", "Liana"+ TAWKTO = "TawkTo", "TawkTo"+ HIGHTOUCH = "Hightouch", "Hightouch"+ LEMONSQUEEZY = "LemonSqueezy", "LemonSqueezy"+ IKAS = "Ikas", "Ikas"+ TALKWALKER = "Talkwalker", "Talkwalker"+ NEXTDOORADS = "NextdoorAds", "NextdoorAds"+ APPLOVIN = "AppLovin", "AppLovin"+ BASEROW = "Baserow", "Baserow"+ PLUNK = "Plunk", "Plunk"+ DUB = "Dub", "Dub"+ AIROPS = "AirOps", "AirOps"+ PODIUM = "Podium", "Podium"+ LOOPS = "Loops", "Loops"+ REDIS = "Redis", "Redis"+ MERCURY = "Mercury", "Mercury"+ GOJIBERRY = "Gojiberry", "Gojiberry"+ TEACHABLE = "Teachable", "Teachable"+ PEECAI = "PeecAI", "PeecAI"+ HEALTHCHECKS = "Healthchecks", "Healthchecks"+ IMPACT = "Impact", "Impact"+ AIKIDOSECURITY = "AikidoSecurity", "AikidoSecurity"+ ALGUNA = "Alguna", "Alguna"+ ANTHROPIC = "Anthropic", "Anthropic"+ APPWRITE = "Appwrite", "Appwrite"+ BLANDAI = "BlandAI", "BlandAI"+ BROWSEAI = "BrowseAI", "BrowseAI"+ BROWSERUSE = "BrowserUse", "BrowserUse"+ CHARTHOP = "ChartHop", "ChartHop"+ CODY = "Cody", "Cody"+ CURSOR = "Cursor", "Cursor"+ DECAGON = "Decagon", "Decagon"+ DEEPGRAM = "Deepgram", "Deepgram"+ ELEVENLABS = "ElevenLabs", "ElevenLabs"+ HARVEY = "Harvey", "Harvey"+ HYPERSPELL = "Hyperspell", "Hyperspell"+ LANGFUSE = "Langfuse", "Langfuse"+ LINGODEV = "LingoDev", "LingoDev"+ M3TER = "M3ter", "M3ter"+ MAXIO = "Maxio", "Maxio"+ METORIAL = "Metorial", "Metorial"+ OPENROUTER = "OpenRouter", "OpenRouter"+ TOGETHERAI = "TogetherAI", "TogetherAI"+ VAPI = "Vapi", "Vapi"+ VESPA = "Vespa", "Vespa"+ WRITESONIC = "Writesonic", "Writesonic"+ AIVEN = "Aiven", "Aiven"+ AVIATOR = "Aviator", "Aviator"+ BACKBLAZE = "Backblaze", "Backblaze"+ BASETEN = "Baseten", "Baseten"+ BROWSERBASE = "Browserbase", "Browserbase"+ COHERE = "Cohere", "Cohere"+ DENODEPLOY = "DenoDeploy", "DenoDeploy"+ DIGITALOCEAN = "DigitalOcean", "DigitalOcean"+ E2B = "E2B", "E2B"+ FINTOC = "Fintoc", "Fintoc"+ FIRECRAWL = "Firecrawl", "Firecrawl"+ FIREWORKSAI = "FireworksAI", "FireworksAI"+ FLYIO = "FlyIo", "FlyIo"+ GROQ = "Groq", "Groq"+ GROWTHBOOK = "GrowthBook", "GrowthBook"+ GUMLOOP = "Gumloop", "Gumloop"+ HATCHET = "Hatchet", "Hatchet"+ HELICONE = "Helicone", "Helicone"+ HEROKU = "Heroku", "Heroku"+ HETZNER = "Hetzner", "Hetzner"+ HEYGEN = "HeyGen", "HeyGen"+ INFISICAL = "Infisical", "Infisical"+ INNGEST = "Inngest", "Inngest"+ KAPAAI = "KapaAI", "KapaAI"+ KERNEL = "Kernel", "Kernel"+ KOYEB = "Koyeb", "Koyeb"+ LAMBDALABS = "LambdaLabs", "LambdaLabs"+ LANGSMITH = "LangSmith", "LangSmith"+ LINODE = "Linode", "Linode"+ LLAMACLOUD = "LlamaCloud", "LlamaCloud"+ MEM0 = "Mem0", "Mem0"+ METRIPORT = "Metriport", "Metriport"+ MINTLIFY = "Mintlify", "Mintlify"+ MISTRALAI = "MistralAI", "MistralAI"+ MONO = "Mono", "Mono"+ NETLIFY = "Netlify", "Netlify"+ NORTHFLANK = "Northflank", "Northflank"+ OPENAI = "OpenAI", "OpenAI"+ PINECONE = "Pinecone", "Pinecone"+ PLATFORMSH = "PlatformSh", "PlatformSh"+ PROMPTINGCOMPANY = "PromptingCompany", "PromptingCompany"+ QDRANT = "Qdrant", "Qdrant"+ RENDER = "Render", "Render"+ REPLICATE = "Replicate", "Replicate"+ RETELLAI = "RetellAI", "RetellAI"+ ROARK = "Roark", "Roark"+ RUNPOD = "RunPod", "RunPod"+ SCALEAI = "ScaleAI", "ScaleAI"+ SCALEWAY = "Scaleway", "Scaleway"+ SIGNOZ = "SigNoz", "SigNoz"+ SIM = "Sim", "Sim"+ SKYVERN = "Skyvern", "Skyvern"+ SLASH = "Slash", "Slash"+ SYNTHESIA = "Synthesia", "Synthesia"+ TELLI = "Telli", "Telli"+ TERRAAPI = "TerraApi", "TerraApi"+ TRIGGERDEV = "TriggerDev", "TriggerDev"+ TURSO = "Turso", "Turso"+ SINGULAR = "Singular", "Singular"+ SWONKIE = "Swonkie", "Swonkie"+ TWELVELABS = "TwelveLabs", "TwelveLabs"+ TWENTY = "Twenty", "Twenty"+ UNSTRUCTURED = "Unstructured", "Unstructured"+ UPSTASH = "Upstash", "Upstash"+ VELLUM = "Vellum", "Vellum"+ VULTR = "Vultr", "Vultr"+ WINDMILL = "Windmill", "Windmill"+ ZEP = "Zep", "Zep"+ HEX = "Hex", "Hex"+ SUMSUB = "Sumsub", "Sumsub"+ GOOGLECHAT = "GoogleChat", "GoogleChat"+ KICKSCALE = "Kickscale", "Kickscale"+ ZELLIFY = "Zellify", "Zellify"+ RUDDERSTACK = "RudderStack", "RudderStack"+ DODOPAYMENTS = "DodoPayments", "DodoPayments"+ SALESTRICS = "Salestrics", "Salestrics"+ DOPPLER = "Doppler", "Doppler"+ USERSNAP = "Usersnap", "Usersnap"+ ASKNICELY = "Asknicely", "Asknicely"+ FEATUREBASE = "Featurebase", "Featurebase"+ FRILL = "Frill", "Frill"+ BETTERMODE = "Bettermode", "Bettermode"+ DYNATRACE = "Dynatrace", "Dynatrace"+ HONEYCOMB = "Honeycomb", "Honeycomb"+ SUMOLOGIC = "SumoLogic", "SumoLogic"+ LOGZIO = "LogzIO", "LogzIO"+ CORALOGIX = "Coralogix", "Coralogix"+ BETTERSTACK = "BetterStack", "BetterStack"+ RAYGUN = "Raygun", "Raygun"+ HONEYBADGER = "Honeybadger", "Honeybadger"+ AIRBRAKE = "Airbrake", "Airbrake"+ APPSIGNAL = "Appsignal", "Appsignal"+ APPDYNAMICS = "Appdynamics", "Appdynamics"+ INSTANA = "Instana", "Instana"+ SPLUNKOBSERVABILITYCLOUD = "SplunkObservabilityCloud", "SplunkObservabilityCloud"+ UPTIMEROBOT = "Uptimerobot", "Uptimerobot"+ STATUSCAKE = "Statuscake", "Statuscake"+ TAILSCALE = "Tailscale", "Tailscale"+ FLAGSMITH = "Flagsmith", "Flagsmith"+ XMATTERS = "Xmatters", "Xmatters"+ SQUADCAST = "Squadcast", "Squadcast"+ ZENDUTY = "Zenduty", "Zenduty"+ CRONITOR = "Cronitor", "Cronitor"+ JENKINS = "Jenkins", "Jenkins"+ BITBUCKET = "Bitbucket", "Bitbucket"+ GITEA = "Gitea", "Gitea"+ TEAMCITY = "Teamcity", "Teamcity"+ TRAVISCI = "TravisCI", "TravisCI"+ SEMAPHORE = "Semaphore", "Semaphore"+ CIRCLECIINSIGHTS = "CircleciInsights", "CircleciInsights"+ OCTOPUSDEPLOY = "OctopusDeploy", "OctopusDeploy"+ SOURCEGRAPH = "Sourcegraph", "Sourcegraph"+ BITRISE = "Bitrise", "Bitrise"+ GERRIT = "Gerrit", "Gerrit"+ TERRAFORMCLOUD = "TerraformCloud", "TerraformCloud"+ PULUMICLOUD = "PulumiCloud", "PulumiCloud"+ SPACELIFT = "Spacelift", "Spacelift"+ RAILWAY = "Railway", "Railway"+ ARGOCD = "Argocd", "Argocd"+ PREFECTCLOUD = "PrefectCloud", "PrefectCloud"+ DAGSTERCLOUD = "DagsterCloud", "DagsterCloud"+ ENV0 = "Env0", "Env0"+ KUBECOST = "Kubecost", "Kubecost"+ SNYK = "Snyk", "Snyk"+ SEMGREP = "Semgrep", "Semgrep"+ VERACODE = "Veracode", "Veracode"+ CHECKMARX = "Checkmarx", "Checkmarx"+ GITGUARDIAN = "Gitguardian", "Gitguardian"+ QUALYSVMDR = "QualysVmdr", "QualysVmdr"+ RAPID7INSIGHTVM = "Rapid7Insightvm", "Rapid7Insightvm"+ TENABLEVULNERABILITYMANAGEMENT = "TenableVulnerabilityManagement", "TenableVulnerabilityManagement"+ SENTINELONE = "Sentinelone", "Sentinelone"+ LACEWORK = "Lacework", "Lacework"+ ORCASECURITY = "OrcaSecurity", "OrcaSecurity"+ DRATA = "Drata", "Drata"+ SECUREFRAME = "Secureframe", "Secureframe"+ CISCODUO = "CiscoDuo", "CiscoDuo"+ JUMPCLOUD = "Jumpcloud", "Jumpcloud"+ ONEPASSWORD = "OnePassword", "OnePassword"+ STYTCH = "Stytch", "Stytch"+ SONARQUBE = "Sonarqube", "Sonarqube"+ CODECOV = "Codecov", "Codecov"+ COVERALLS = "Coveralls", "Coveralls"+ CODACY = "Codacy", "Codacy"+ DEEPSOURCE = "Deepsource", "Deepsource"+ LINEARB = "Linearb", "Linearb"+ JELLYFISH = "Jellyfish", "Jellyfish"+ SWARMIA = "Swarmia", "Swarmia"+ PACKAGIST = "Packagist", "Packagist"+ NUGET = "Nuget", "Nuget"+ CRATESIO = "CratesIO", "CratesIO"+ SONATYPENEXUS = "SonatypeNexus", "SonatypeNexus"+ JFROGARTIFACTORY = "JfrogArtifactory", "JfrogArtifactory"+ SNOWPLOW = "Snowplow", "Snowplow"+ WEIGHTSANDBIASES = "WeightsAndBiases", "WeightsAndBiases"+ MONTECARLO = "MonteCarlo", "MonteCarlo"+ METAPLANE = "Metaplane", "Metaplane"+ DATAHUB = "Datahub", "Datahub"+ CLICKHOUSECLOUD = "ClickhouseCloud", "ClickhouseCloud"+ CONFLUENTCLOUD = "ConfluentCloud", "ConfluentCloud"+ KONGKONNECT = "KongKonnect", "KongKonnect"+ KANDJI = "Kandji", "Kandji"+ AUTOMOX = "Automox", "Automox"+ AUTUMN = "Autumn", "Autumn"+ GETSTREAM = "GetStream", "GetStream"+ OCTOLENS = "Octolens", "Octolens"+ KAJABI = "Kajabi", "Kajabi"+ SHOPWARE = "Shopware", "Shopware"+ DUBSADO = "Dubsado", "Dubsado"+ CAMPFIRE = "Campfire", "Campfire"+ PROMPTWATCH = "PromptWatch", "PromptWatch"+ CRISP = "Crisp", "Crisp"+ KOMMO = "Kommo", "Kommo"+ AXIOM = "Axiom", "Axiom"+ PLIVO = "Plivo", "Plivo"+ DATAFORSEO = "DataForSEO", "DataForSEO"+ SLEEKPLAN = "Sleekplan", "Sleekplan"+ ABTASTY = "AbTasty", "AbTasty"+ ABLY = "Ably", "Ably"+ ABNORMALSECURITY = "AbnormalSecurity", "AbnormalSecurity"+ ACAST = "Acast", "Acast"+ ACCULYNX = "Acculynx", "Acculynx"+ ACTIONSTEP = "Actionstep", "Actionstep"+ AFTERSHIP = "Aftership", "Aftership"+ AHAIDEAS = "AhaIdeas", "AhaIdeas"+ AKAMAIREPORTING = "AkamaiReporting", "AkamaiReporting"+ ALATION = "Alation", "Alation"+ ALEGRA = "Alegra", "Alegra"+ ALLEGRO = "Allegro", "Allegro"+ ANODOTCOST = "AnodotCost", "AnodotCost"+ ANOMALO = "Anomalo", "Anomalo"+ APALEO = "Apaleo", "Apaleo"+ APITALLY = "Apitally", "Apitally"+ APPSTORECONNECT = "AppStoreConnect", "AppStoreConnect"+ APPDIRECT = "Appdirect", "Appdirect"+ APPFOLIO = "Appfolio", "Appfolio"+ ARXIV = "Arxiv", "Arxiv"+ ASAAS = "Asaas", "Asaas"+ ASTRONOMER = "Astronomer", "Astronomer"+ ATHENAHEALTH = "Athenahealth", "Athenahealth"+ ATLAN = "Atlan", "Atlan"+ AUTODESKCONSTRUCTIONCLOUD = "AutodeskConstructionCloud", "AutodeskConstructionCloud"+ AVALARA = "Avalara", "Avalara"+ AWSATHENA = "AwsAthena", "AwsAthena"+ AWSBATCH = "AwsBatch", "AwsBatch"+ AWSBUDGETS = "AwsBudgets", "AwsBudgets"+ AWSCLOUDFORMATION = "AwsCloudformation", "AwsCloudformation"+ AWSCOMPUTEOPTIMIZER = "AwsComputeOptimizer", "AwsComputeOptimizer"+ AWSCONFIG = "AwsConfig", "AwsConfig"+ AWSCONNECT = "AwsConnect", "AwsConnect"+ AWSCOSTANDUSAGEREPORT = "AwsCostAndUsageReport", "AwsCostAndUsageReport"+ AWSCOSTANOMALYDETECTION = "AwsCostAnomalyDetection", "AwsCostAnomalyDetection"+ AWSCOSTEXPLORER = "AwsCostExplorer", "AwsCostExplorer"+ AWSGLUEDATACATALOG = "AwsGlueDataCatalog", "AwsGlueDataCatalog"+ AWSGUARDDUTY = "AwsGuardduty", "AwsGuardduty"+ AWSHEALTH = "AwsHealth", "AwsHealth"+ AWSIAMACCESSANALYZER = "AwsIamAccessAnalyzer", "AwsIamAccessAnalyzer"+ AWSINSPECTOR = "AwsInspector", "AwsInspector"+ AWSMACIE = "AwsMacie", "AwsMacie"+ AWSORGANIZATIONS = "AwsOrganizations", "AwsOrganizations"+ AWSRDSPERFORMANCEINSIGHTS = "AwsRdsPerformanceInsights", "AwsRdsPerformanceInsights"+ AWSSAGEMAKER = "AwsSagemaker", "AwsSagemaker"+ AWSSAVINGSPLANS = "AwsSavingsPlans", "AwsSavingsPlans"+ AWSSECURITYHUB = "AwsSecurityHub", "AwsSecurityHub"+ AWSSES = "AwsSes", "AwsSes"+ AWSSTEPFUNCTIONS = "AwsStepFunctions", "AwsStepFunctions"+ AWSSUPPORT = "AwsSupport", "AwsSupport"+ AWSSYSTEMSMANAGER = "AwsSystemsManager", "AwsSystemsManager"+ AWSTRUSTEDADVISOR = "AwsTrustedAdvisor", "AwsTrustedAdvisor"+ AWSWAF = "AwsWaf", "AwsWaf"+ AWSXRAY = "AwsXray", "AwsXray"+ AZUREACTIVITYLOG = "AzureActivityLog", "AzureActivityLog"+ AZUREADVISOR = "AzureAdvisor", "AzureAdvisor"+ AZUREAPIMANAGEMENT = "AzureApiManagement", "AzureApiManagement"+ AZUREAPPLICATIONINSIGHTS = "AzureApplicationInsights", "AzureApplicationInsights"+ AZURECOSTMANAGEMENT = "AzureCostManagement", "AzureCostManagement"+ AZUREDATAEXPLORER = "AzureDataExplorer", "AzureDataExplorer"+ AZUREDATAFACTORY = "AzureDataFactory", "AzureDataFactory"+ AZURELOGANALYTICS = "AzureLogAnalytics", "AzureLogAnalytics"+ AZUREMONITORALERTS = "AzureMonitorAlerts", "AzureMonitorAlerts"+ AZUREMONITORMETRICS = "AzureMonitorMetrics", "AzureMonitorMetrics"+ AZUREOPENAIUSAGE = "AzureOpenaiUsage", "AzureOpenaiUsage"+ AZUREPOLICYINSIGHTS = "AzurePolicyInsights", "AzurePolicyInsights"+ AZURERESERVATIONS = "AzureReservations", "AzureReservations"+ AZURERESOURCEGRAPH = "AzureResourceGraph", "AzureResourceGraph"+ AZURERESOURCEHEALTH = "AzureResourceHealth", "AzureResourceHealth"+ AZURESERVICEHEALTH = "AzureServiceHealth", "AzureServiceHealth"+ AZURESYNAPSE = "AzureSynapse", "AzureSynapse"+ BACKMARKET = "BackMarket", "BackMarket"+ BEEHIIV = "Beehiiv", "Beehiiv"+ BIGEYE = "Bigeye", "Bigeye"+ BILLCOM = "BillCom", "BillCom"+ BILLOMAT = "Billomat", "Billomat"+ BINGWEBMASTERTOOLS = "BingWebmasterTools", "BingWebmasterTools"+ BITWARDEN = "Bitwarden", "Bitwarden"+ BLACKBAUDRAISERSEDGENXT = "BlackbaudRaisersEdgeNxt", "BlackbaudRaisersEdgeNxt"+ BLACKBOARDLEARN = "BlackboardLearn", "BlackboardLearn"+ BLING = "Bling", "Bling"+ BLOOMERANG = "Bloomerang", "Bloomerang"+ BLUESKY = "Bluesky", "Bluesky"+ BOLRETAILER = "BolRetailer", "BolRetailer"+ BOULEVARD = "Boulevard", "Boulevard"+ BUFFER = "Buffer", "Buffer"+ BUGHERD = "Bugherd", "Bugherd"+ BUILDIUM = "Buildium", "Buildium"+ BUTTONDOWN = "Buttondown", "Buttondown"+ BUYMEACOFFEE = "BuyMeACoffee", "BuyMeACoffee"+ CALENDARIFIC = "Calendarific", "Calendarific"+ CALIBRE = "Calibre", "Calibre"+ CANVASLMS = "CanvasLms", "CanvasLms"+ CAPTIVATE = "Captivate", "Captivate"+ CASHFREE = "Cashfree", "Cashfree"+ CASTAI = "CastAi", "CastAi"+ CATCHPOINT = "Catchpoint", "Catchpoint"+ CDCOPENDATA = "CdcOpenData", "CdcOpenData"+ CENSUS = "Census", "Census"+ CHECKLY = "Checkly", "Checkly"+ CIRCLESO = "CircleSo", "CircleSo"+ CLASSY = "Classy", "Classy"+ CLEARTAX = "Cleartax", "Cleartax"+ CLEVER = "Clever", "Clever"+ CLEVERTAP = "Clevertap", "Clevertap"+ CLINIKO = "Cliniko", "Cliniko"+ CLIO = "Clio", "Clio"+ CLIP = "Clip", "Clip"+ CLOUDABILITY = "Cloudability", "Cloudability"+ CLOUDSMITH = "Cloudsmith", "Cloudsmith"+ CLOUDZERO = "Cloudzero", "Cloudzero"+ CLOVER = "Clover", "Clover"+ CODEMAGIC = "Codemagic", "Codemagic"+ CODESCENE = "Codescene", "Codescene"+ COLLIBRA = "Collibra", "Collibra"+ COMPANYCAM = "Companycam", "Companycam"+ CONEKTA = "Conekta", "Conekta"+ CONTAAZUL = "ContaAzul", "ContaAzul"+ CONTENTSQUARE = "Contentsquare", "Contentsquare"+ CORTEX = "Cortex", "Cortex"+ COURIER = "Courier", "Courier"+ CROSSREF = "Crossref", "Crossref"+ CROWDSTRIKEFALCON = "CrowdstrikeFalcon", "CrowdstrikeFalcon"+ CUBECLOUD = "CubeCloud", "CubeCloud"+ D2LBRIGHTSPACE = "D2lBrightspace", "D2lBrightspace"+ DAYFORCE = "Dayforce", "Dayforce"+ DEBUGBEAR = "Debugbear", "Debugbear"+ DESCOPE = "Descope", "Descope"+ DEVELOCITY = "Develocity", "Develocity"+ DIALPAD = "Dialpad", "Dialpad"+ DISCORD = "Discord", "Discord"+ DISCOURSE = "Discourse", "Discourse"+ DONORBOX = "Donorbox", "Donorbox"+ DOORLOOP = "Doorloop", "Doorloop"+ DOVETAIL = "Dovetail", "Dovetail"+ DRCHRONO = "Drchrono", "Drchrono"+ DYNAMICS365BUSINESSCENTRAL = "Dynamics365BusinessCentral", "Dynamics365BusinessCentral"+ ECBDATAPORTAL = "EcbDataPortal", "EcbDataPortal"+ EMARSYS = "Emarsys", "Emarsys"+ EMBRACE = "Embrace", "Embrace"+ ENTSOE = "Entsoe", "Entsoe"+ EPPO = "Eppo", "Eppo"+ ETSY = "Etsy", "Etsy"+ EUROSTAT = "Eurostat", "Eurostat"+ FAIRE = "Faire", "Faire"+ FAROSAI = "FarosAi", "FarosAi"+ FIELDPULSE = "Fieldpulse", "Fieldpulse"+ FIELDWIRE = "Fieldwire", "Fieldwire"+ FILEVINE = "Filevine", "Filevine"+ FINOUT = "Finout", "Finout"+ FIVE9 = "Five9", "Five9"+ FLEXERACLOUDCOST = "FlexeraCloudCost", "FlexeraCloudCost"+ FLUTTERWAVE = "Flutterwave", "Flutterwave"+ FORTNOX = "Fortnox", "Fortnox"+ FOURTHWALL = "Fourthwall", "Fourthwall"+ FRED = "Fred", "Fred"+ FRONTEGG = "Frontegg", "Frontegg"+ FUSIONAUTH = "FusionAuth", "FusionAuth"+ G2 = "G2", "G2"+ GCORE = "Gcore", "Gcore"+ GCPAPIGEE = "GcpApigee", "GcpApigee"+ GCPARTIFACTREGISTRY = "GcpArtifactRegistry", "GcpArtifactRegistry"+ GCPBIGTABLE = "GcpBigtable", "GcpBigtable"+ GCPCHRONICLE = "GcpChronicle", "GcpChronicle"+ GCPCLOUDASSETINVENTORY = "GcpCloudAssetInventory", "GcpCloudAssetInventory"+ GCPCLOUDBILLING = "GcpCloudBilling", "GcpCloudBilling"+ GCPCLOUDBUILD = "GcpCloudBuild", "GcpCloudBuild"+ GCPCLOUDDEPLOY = "GcpCloudDeploy", "GcpCloudDeploy"+ GCPCLOUDDNS = "GcpCloudDns", "GcpCloudDns"+ GCPCLOUDFUNCTIONS = "GcpCloudFunctions", "GcpCloudFunctions"+ GCPCLOUDLOGGING = "GcpCloudLogging", "GcpCloudLogging"+ GCPCLOUDMONITORING = "GcpCloudMonitoring", "GcpCloudMonitoring"+ GCPCLOUDRUN = "GcpCloudRun", "GcpCloudRun"+ GCPCLOUDSPANNER = "GcpCloudSpanner", "GcpCloudSpanner"+ GCPCLOUDSQL = "GcpCloudSql", "GcpCloudSql"+ GCPCLOUDTRACE = "GcpCloudTrace", "GcpCloudTrace"+ GCPCLOUDWORKFLOWS = "GcpCloudWorkflows", "GcpCloudWorkflows"+ GCPCOMPUTEENGINE = "GcpComputeEngine", "GcpComputeEngine"+ GCPCONTAINERANALYSIS = "GcpContainerAnalysis", "GcpContainerAnalysis"+ GCPDATAFLOW = "GcpDataflow", "GcpDataflow"+ GCPDATAPLEX = "GcpDataplex", "GcpDataplex"+ GCPDATAPROC = "GcpDataproc", "GcpDataproc"+ GCPERRORREPORTING = "GcpErrorReporting", "GcpErrorReporting"+ GCPGKE = "GcpGke", "GcpGke"+ GCPPUBSUB = "GcpPubsub", "GcpPubsub"+ GCPRECAPTCHAENTERPRISE = "GcpRecaptchaEnterprise", "GcpRecaptchaEnterprise"+ GCPRECOMMENDER = "GcpRecommender", "GcpRecommender"+ GCPSECURITYCOMMANDCENTER = "GcpSecurityCommandCenter", "GcpSecurityCommandCenter"+ GDELT = "Gdelt", "Gdelt"+ GENESYSCLOUD = "GenesysCloud", "GenesysCloud"+ GETDX = "Getdx", "Getdx"+ GHOST = "Ghost", "Ghost"+ GIVEBUTTER = "Givebutter", "Givebutter"+ GLEIF = "Gleif", "Gleif"+ GOOGLEPLAYCONSOLE = "GooglePlayConsole", "GooglePlayConsole"+ GUESTY = "Guesty", "Guesty"+ GUMROAD = "Gumroad", "Gumroad"+ HARNESSCCM = "HarnessCcm", "HarnessCcm"+ HARNESSSEI = "HarnessSei", "HarnessSei"+ HARVEST = "Harvest", "Harvest"+ HEALTHIE = "Healthie", "Healthie"+ HITPAY = "Hitpay", "Hitpay"+ HIVEBRITE = "Hivebrite", "Hivebrite"+ HOLDED = "Holded", "Holded"+ HOSTAWAY = "Hostaway", "Hostaway"+ HOUSECALLPRO = "HousecallPro", "HousecallPro"+ HUMANITEC = "Humanitec", "Humanitec"+ IMFDATA = "ImfData", "ImfData"+ IMPERVA = "Imperva", "Imperva"+ INFLUXDBCLOUD = "InfluxdbCloud", "InfluxdbCloud"+ IYZICO = "Iyzico", "Iyzico"+ JOBTREAD = "Jobtread", "Jobtread"+ KAMELEOON = "Kameleoon", "Kameleoon"+ KAUFLANDMARKETPLACE = "KauflandMarketplace", "KauflandMarketplace"+ KESTRA = "Kestra", "Kestra"+ KICK = "Kick", "Kick"+ KINDE = "Kinde", "Kinde"+ KION = "Kion", "Kion"+ KNOWBE4 = "Knowbe4", "Knowbe4"+ KOMODOR = "Komodor", "Komodor"+ LABELBOX = "Labelbox", "Labelbox"+ LAWMATICS = "Lawmatics", "Lawmatics"+ LEARNWORLDS = "Learnworlds", "Learnworlds"+ LEXWAREOFFICE = "LexwareOffice", "LexwareOffice"+ LIGHTDASH = "Lightdash", "Lightdash"+ LODGIFY = "Lodgify", "Lodgify"+ LOGICMONITOR = "Logicmonitor", "Logicmonitor"+ LOGROCKET = "Logrocket", "Logrocket"+ LOOPRETURNS = "LoopReturns", "LoopReturns"+ MASTODON = "Mastodon", "Mastodon"+ MEETUP = "Meetup", "Meetup"+ MEMBERFUL = "Memberful", "Memberful"+ MERCADOPAGO = "MercadoPago", "MercadoPago"+ METEOSTAT = "Meteostat", "Meteostat"+ MEWS = "Mews", "Mews"+ MEZMO = "Mezmo", "Mezmo"+ MICROSOFT365USAGEREPORTS = "Microsoft365UsageReports", "Microsoft365UsageReports"+ MICROSOFTADVERTISING = "MicrosoftAdvertising", "MicrosoftAdvertising"+ MICROSOFTCLARITY = "MicrosoftClarity", "MicrosoftClarity"+ MICROSOFTDEFENDERCLOUDAPPS = "MicrosoftDefenderCloudApps", "MicrosoftDefenderCloudApps"+ MICROSOFTDEFENDERENDPOINT = "MicrosoftDefenderEndpoint", "MicrosoftDefenderEndpoint"+ MICROSOFTDEFENDERFORCLOUD = "MicrosoftDefenderForCloud", "MicrosoftDefenderForCloud"+ MICROSOFTINTUNE = "MicrosoftIntune", "MicrosoftIntune"+ MICROSOFTPURVIEW = "MicrosoftPurview", "MicrosoftPurview"+ MICROSOFTPURVIEWAUDIT = "MicrosoftPurviewAudit", "MicrosoftPurviewAudit"+ MICROSOFTSENTINEL = "MicrosoftSentinel", "MicrosoftSentinel"+ MICROSOFTTEAMSCALLRECORDS = "MicrosoftTeamsCallRecords", "MicrosoftTeamsCallRecords"+ MIDTRANS = "Midtrans", "Midtrans"+ MIGHTYNETWORKS = "MightyNetworks", "MightyNetworks"+ MINDBODY = "Mindbody", "Mindbody"+ MIRAKL = "Mirakl", "Mirakl"+ MOESIF = "Moesif", "Moesif"+ MONEYBIRD = "Moneybird", "Moneybird"+ MOODLE = "Moodle", "Moodle"+ MOTHERDUCK = "Motherduck", "Motherduck"+ MYCASE = "Mycase", "Mycase"+ NAGERDATE = "NagerDate", "NagerDate"+ NEONCRM = "NeonCrm", "NeonCrm"+ NEXHEALTH = "Nexhealth", "Nexhealth"+ NOAACDO = "NoaaCdo", "NoaaCdo"+ NOBL9 = "Nobl9", "Nobl9"+ NOLT = "Nolt", "Nolt"+ NOPS = "Nops", "Nops"+ NPMREGISTRY = "NpmRegistry", "NpmRegistry"+ OECD = "Oecd", "Oecd"+ OKENDO = "Okendo", "Okendo"+ OMNI = "Omni", "Omni"+ ONELOGIN = "Onelogin", "Onelogin"+ OPENDENTAL = "OpenDental", "OpenDental"+ OPENMETEO = "OpenMeteo", "OpenMeteo"+ OPENALEX = "Openalex", "Openalex"+ OPENCORPORATES = "Opencorporates", "Opencorporates"+ OPENFEC = "Openfec", "Openfec"+ OPNPAYMENTS = "OpnPayments", "OpnPayments"+ OPSLEVEL = "Opslevel", "Opslevel"+ OTTOMARKET = "OttoMarket", "OttoMarket"+ OWNERREZ = "Ownerrez", "Ownerrez"+ PAGBANK = "Pagbank", "Pagbank"+ PATREON = "Patreon", "Patreon"+ PAX8 = "Pax8", "Pax8"+ PAYCHEX = "Paychex", "Paychex"+ PAYMOB = "Paymob", "Paymob"+ PAYMONGO = "Paymongo", "Paymongo"+ PHONEPE = "Phonepe", "Phonepe"+ PIKE13 = "Pike13", "Pike13"+ PINGONE = "Pingone", "Pingone"+ PINTERESTORGANIC = "PinterestOrganic", "PinterestOrganic"+ PLANNINGCENTER = "PlanningCenter", "PlanningCenter"+ PLURALSIGHTFLOW = "PluralsightFlow", "PluralsightFlow"+ PODBEAN = "Podbean", "Podbean"+ POSTSCRIPT = "Postscript", "Postscript"+ POWERBIADMIN = "PowerBiAdmin", "PowerBiAdmin"+ PRACTICEPANTHER = "Practicepanther", "Practicepanther"+ PRESET = "Preset", "Preset"+ PROCORE = "Procore", "Procore"+ PRODUCTIV = "Productiv", "Productiv"+ PROOFPOINTTAP = "ProofpointTap", "ProofpointTap"+ PROPERTYWARE = "Propertyware", "Propertyware"+ PUBNUB = "Pubnub", "Pubnub"+ QUAY = "Quay", "Quay"+ RAKEN = "Raken", "Raken"+ REDPANDACLOUD = "RedpandaCloud", "RedpandaCloud"+ RENTMANAGER = "RentManager", "RentManager"+ REVERB = "Reverb", "Reverb"+ ROCKETMATTER = "RocketMatter", "RocketMatter"+ RUBYGEMS = "Rubygems", "Rubygems"+ SCALR = "Scalr", "Scalr"+ SECEDGAR = "SecEdgar", "SecEdgar"+ SELECTSTAR = "SelectStar", "SelectStar"+ SEMANTICSCHOLAR = "SemanticScholar", "SemanticScholar"+ SEMRUSH = "Semrush", "Semrush"+ SERVICEFUSION = "ServiceFusion", "ServiceFusion"+ SERVICEM8 = "Servicem8", "Servicem8"+ SERVICETITAN = "Servicetitan", "Servicetitan"+ SERVICETRADE = "Servicetrade", "Servicetrade"+ SEVDESK = "Sevdesk", "Sevdesk"+ SIMILARWEB = "Similarweb", "Similarweb"+ SIMPRO = "Simpro", "Simpro"+ SINCH = "Sinch", "Sinch"+ SINGLESTORE = "Singlestore", "Singlestore"+ SITE24X7 = "Site24x7", "Site24x7"+ SLEUTH = "Sleuth", "Sleuth"+ SMARTLOOK = "Smartlook", "Smartlook"+ SMARTRECRUITERS = "Smartrecruiters", "Smartrecruiters"+ SMOKEBALL = "Smokeball", "Smokeball"+ SODACLOUD = "SodaCloud", "SodaCloud"+ SPEEDCURVE = "Speedcurve", "Speedcurve"+ SPOTIO = "SpotIo", "SpotIo"+ SPRIG = "Sprig", "Sprig"+ SPRINKLR = "Sprinklr", "Sprinklr"+ SPROUTSOCIAL = "SproutSocial", "SproutSocial"+ STACKOVERFLOWFORTEAMS = "StackOverflowForTeams", "StackOverflowForTeams"+ STOCKX = "Stockx", "Stockx"+ TACKLEIO = "TackleIo", "TackleIo"+ TALKDESK = "Talkdesk", "Talkdesk"+ TEAMUPFITNESS = "TeamupFitness", "TeamupFitness"+ TEBRA = "Tebra", "Tebra"+ TELNYX = "Telnyx", "Telnyx"+ TERNARY = "Ternary", "Ternary"+ THOUGHTSPOT = "Thoughtspot", "Thoughtspot"+ THOUSANDEYES = "Thousandeyes", "Thousandeyes"+ THREADS = "Threads", "Threads"+ TIKTOKSHOP = "TiktokShop", "TiktokShop"+ TINYERP = "TinyErp", "TinyErp"+ TINYBIRD = "Tinybird", "Tinybird"+ TIPALTI = "Tipalti", "Tipalti"+ TOAST = "Toast", "Toast"+ TORII = "Torii", "Torii"+ TRANSISTOR = "Transistor", "Transistor"+ TRUNKIO = "TrunkIo", "TrunkIo"+ TRUSTRADIUS = "Trustradius", "Trustradius"+ TWITCH = "Twitch", "Twitch"+ TWOC2P = "TwoC2p", "TwoC2p"+ UKCOMPANIESHOUSE = "UkCompaniesHouse", "UkCompaniesHouse"+ UKONS = "UkOns", "UkOns"+ UNCOMTRADE = "UnComtrade", "UnComtrade"+ USBEA = "UsBea", "UsBea"+ USBLS = "UsBls", "UsBls"+ USEIA = "UsEia", "UsEia"+ USTREASURYFISCALDATA = "UsTreasuryFiscalData", "UsTreasuryFiscalData"+ VANTA = "Vanta", "Vanta"+ VENDR = "Vendr", "Vendr"+ VIRTUOUS = "Virtuous", "Virtuous"+ VONAGE = "Vonage", "Vonage"+ WALMARTMARKETPLACE = "WalmartMarketplace", "WalmartMarketplace"+ WAYDEV = "Waydev", "Waydev"+ WAYFAIR = "Wayfair", "Wayfair"+ WHATSAPPBUSINESSMANAGEMENT = "WhatsappBusinessManagement", "WhatsappBusinessManagement"+ WHOGHO = "WhoGho", "WhoGho"+ WHOP = "Whop", "Whop"+ WIZ = "Wiz", "Wiz"+ WOMPI = "Wompi", "Wompi"+ WORKIZ = "Workiz", "Workiz"+ WORLDBANK = "WorldBank", "WorldBank"+ XENDIT = "Xendit", "Xendit"+ YOCO = "Yoco", "Yoco"+ ZALANDOZDIRECT = "ZalandoZdirect", "ZalandoZdirect"+ ZLURI = "Zluri", "Zluri"+ ZYLO = "Zylo", "Zylo"+ TALLY = "Tally", "Tally"+ NUNTLY = "Nuntly", "Nuntly"+ VTURB = "Vturb", "Vturb"+ MELTWATER = "Meltwater", "Meltwater"+ USERCOM = "UserCom", "UserCom"+ LATITUDE = "Latitude", "Latitude"+ WORKATO = "Workato", "Workato"+ SIDESHIFT = "SideShift", "SideShift"+ DUCKLAKE = "DuckLake", "DuckLake"+ STARBURST = "Starburst", "Starburst"+ EASYBILL = "Easybill", "Easybill"+ BEXIO = "Bexio", "Bexio"+ UMAMI = "Umami", "Umami"+ MANYCHAT = "Manychat", "Manychat"+ KICKSTARTER = "Kickstarter", "Kickstarter"+ TYPESENSE = "Typesense", "Typesense"+ FIRSTPROMOTER = "FirstPromoter", "FirstPromoter"+ ZERO = "Zero", "Zero"+ INTH = "Inth", "Inth"+ BCMS = "BCMS", "BCMS"+ CONVONITE = "Convonite", "Convonite"+ HOOKDECK = "Hookdeck", "Hookdeck"+ BILLIT = "Billit", "Billit"+ MOXIE = "Moxie", "Moxie"+ TRIPLEWHALE = "TripleWhale", "TripleWhale"+ DIRECTUS = "Directus", "Directus"+ CLAY = "Clay", "Clay"+ TRADABLEBITS = "TradableBits", "TradableBits"+ SWAN = "Swan", "Swan"+ HYROS = "Hyros", "Hyros"+ ODOO = "Odoo", "Odoo"+ AIRBRIDGE = "Airbridge", "Airbridge"+ SNOVIO = "Snovio", "Snovio"+ GOOGLEMERCHANTCENTER = "GoogleMerchantCenter", "GoogleMerchantCenter"+ RAISELY = "Raisely", "Raisely"+ RAKUTENADVERTISING = "RakutenAdvertising", "RakutenAdvertising"+ ZITADEL = "Zitadel", "Zitadel"+ DEELFLOWS = "DeelFlows", "DeelFlows"+ WINDSORAI = "WindsorAi", "WindsorAi"+ WIX = "Wix", "Wix"+ SEVALLA = "Sevalla", "Sevalla"+ MOTION = "Motion", "Motion"+ IMPACTPARTNER = "ImpactPartner", "ImpactPartner"+ CLOUDINARY = "Cloudinary", "Cloudinary"+ UPLOADCARE = "Uploadcare", "Uploadcare"+ WHMCS = "WHMCS", "WHMCS"+ MSG91 = "MSG91", "MSG91"+ DEPOT = "Depot", "Depot"+ SCHEMATIC = "Schematic", "Schematic"+ DOKPLOY = "Dokploy", "Dokploy"+ HOOTSUITE = "Hootsuite", "Hootsuite"+ WISPRFLOW = "WisprFlow", "WisprFlow"+++# Maps a source type to the direct-SQL engine that can query it live. A source type is only+# direct-query-capable if it appears here AND has an adapter registered in posthog/hogql/direct_sql.+# Adding an engine = one entry here + one adapter module + one registry call.+DIRECT_ENGINE_BY_SOURCE_TYPE: dict[str, str] = {+ ExternalDataSourceType.POSTGRES: "postgres",+ ExternalDataSourceType.MYSQL: "mysql",+ ExternalDataSourceType.SNOWFLAKE: "snowflake",+ ExternalDataSourceType.REDSHIFT: "redshift",+ ExternalDataSourceType.CLICKHOUSE: "clickhouse",+ ExternalDataSourceType.CLICKHOUSECLOUD: "clickhouse",+ ExternalDataSourceType.MOTHERDUCK: "motherduck",+}+++class ManagedWarehouseSQLMode(StrEnum):+ EXTERNAL = "external"+ BUILT_IN = "built_in"+ UNAVAILABLE = "unavailable"+++class DataWarehouseManagedViewSetKind(models.TextChoices):+ REVENUE_ANALYTICS = "revenue_analytics", "Revenue Analytics"+ ENGINEERING_ANALYTICS = "engineering_analytics", "Engineering Analytics"diff --git a/products/warehouse_sources/backend/models/external_data_source.py b/products/warehouse_sources/backend/models/external_data_source.pyindex 7c678a282231..a35cbac3db2a 100644--- a/products/warehouse_sources/backend/models/external_data_source.py+++ b/products/warehouse_sources/backend/models/external_data_source.py@@ -1,4 +1,3 @@-from enum import StrEnumfrom uuid import UUIDfrom django.db import models@@ -11,7 +10,11 @@ from posthog.models.activity_logging.model_activity import ModelActivityMixinfrom posthog.models.utils import CreatedMetaFields, DeletedMetaFields, UpdatedMetaFields, UUIDTModel, sane_reprfrom posthog.sync import database_sync_to_async-from products.warehouse_sources.backend.types import DIRECT_ENGINE_BY_SOURCE_TYPE, ExternalDataSourceType+from products.warehouse_sources.backend.types import (+ DIRECT_ENGINE_BY_SOURCE_TYPE,+ ExternalDataSourceType,+ ManagedWarehouseSQLMode,+)logger = structlog.get_logger(__name__)@@ -21,12 +24,6 @@ MANAGED_WAREHOUSE_LEGACY_CREDENTIAL_KINDS = frozenset({"org_root", "stored_serveSYSTEM_MANAGED_SOURCE_PREFIXES = frozenset({MANAGED_WAREHOUSE_SOURCE_PREFIX})-class ManagedWarehouseSQLMode(StrEnum):- EXTERNAL = "external"- BUILT_IN = "built_in"- UNAVAILABLE = "unavailable"--class ExternalDataSourceManager(models.Manager):def get_queryset(self):return super().get_queryset().select_related("revenue_analytics_config")diff --git a/products/warehouse_sources/backend/presentation/views/external_data_source.py b/products/warehouse_sources/backend/presentation/views/external_data_source.pyindex f1ba93119036..9d66e3f53ed7 100644--- a/products/warehouse_sources/backend/presentation/views/external_data_source.py+++ b/products/warehouse_sources/backend/presentation/views/external_data_source.py@@ -109,7 +109,6 @@ from products.warehouse_sources.backend.facade.models import (ExternalDataJob,ExternalDataSchema,ExternalDataSource,- ManagedWarehouseSQLMode,PendingSourceCredential,auto_enable_new_schemas,sync_old_schemas_with_new_schemas,@@ -157,7 +156,11 @@ from products.warehouse_sources.backend.facade.source_management import (sql_schema_metadata,validate_and_coerce_row_filters,)-from products.warehouse_sources.backend.facade.types import DataWarehouseManagedViewSetKind, ExternalDataSourceType+from products.warehouse_sources.backend.facade.types import (+ DataWarehouseManagedViewSetKind,+ ExternalDataSourceType,+ ManagedWarehouseSQLMode,+)from products.warehouse_sources.backend.presentation.views.external_data_schema import (ExternalDataSchemaSerializer,RowFiltersField,diff --git a/products/warehouse_sources/backend/tests/api/test_external_data_source.py b/products/warehouse_sources/backend/tests/api/test_external_data_source.pyindex 702f630ab011..60fa3ce66a09 100644--- a/products/warehouse_sources/backend/tests/api/test_external_data_source.py+++ b/products/warehouse_sources/backend/tests/api/test_external_data_source.py@@ -45,7 +45,6 @@ from products.data_warehouse.backend.direct_postgres import DIRECT_POSTGRES_URL_from products.data_warehouse.backend.models.revenue_analytics_config import ExternalDataSourceRevenueAnalyticsConfigfrom products.revenue_analytics.backend.joins import get_customer_revenue_view_namefrom products.warehouse_sources.backend.facade.models import (- CustomOAuth2Integration,DataWarehouseTable,ExternalDataJob,ExternalDataSchema,@@ -54,6 +53,7 @@ from products.warehouse_sources.backend.facade.models import (sync_frequency_interval_to_sync_frequency,)from products.warehouse_sources.backend.facade.types import IncrementalFieldType+from products.warehouse_sources.backend.models.custom_oauth2_integration import CustomOAuth2Integrationfrom products.warehouse_sources.backend.presentation.views.external_data_schema import ExternalDataSchemaSerializerfrom products.warehouse_sources.backend.presentation.views.external_data_source import (INVALID_CREDENTIALS_FALLBACK_MESSAGE,diff --git a/products/data_warehouse/backend/models/test/test_ssh_tunnel.py b/products/warehouse_sources/backend/tests/test_ssh_tunnel.pysimilarity index 98%rename from products/data_warehouse/backend/models/test/test_ssh_tunnel.pyrename to products/warehouse_sources/backend/tests/test_ssh_tunnel.pyindex 5edebbfae4c0..f857a469b4be 100644--- a/products/data_warehouse/backend/models/test/test_ssh_tunnel.py+++ b/products/warehouse_sources/backend/tests/test_ssh_tunnel.py@@ -3,7 +3,7 @@ import pytestfrom cryptography.hazmat.primitives import serializationfrom cryptography.hazmat.primitives.asymmetric import ed25519-from products.warehouse_sources.backend.facade.models import SSHTunnel+from products.warehouse_sources.backend.models.ssh_tunnel import SSHTunneldef _keypair_tunnel(private_key: str | None, passphrase: str | None) -> SSHTunnel:diff --git a/products/warehouse_sources/backend/types.py b/products/warehouse_sources/backend/types.pyindex 96eb53bf52aa..f3182da2437d 100644--- a/products/warehouse_sources/backend/types.py+++ b/products/warehouse_sources/backend/types.py@@ -1,1360 +1,12 @@-import typing-from enum import StrEnum--from django.db import models---class IncrementalFieldType(StrEnum):- Integer = "integer"- Numeric = "numeric" # For snowflake- DateTime = "datetime"- Date = "date"- Timestamp = "timestamp"- # MongoDB specific- ObjectID = "objectid"- # Postgres xmin system column — synthetic cursor, never in information_schema- XID = "xid"---class IncrementalField(typing.TypedDict, total=False):- label: typing.Required[str] # Label shown in the UI- type: typing.Required[IncrementalFieldType] # Field type shown in the UI- field: typing.Required[str] # Actual DB field accessed- field_type: typing.Required[IncrementalFieldType] # Actual DB type of the field- nullable: bool # Whether the field allows null values- # Whether the field is the leading column of an index (or equivalent fast-lookup- # structure for the engine: clustering key, sortkey, partition column, etc.).- # Used to warn users picking an incremental field that would force a full scan- # on every sync. Defaults to True when omitted so missing detection never warns.- is_indexed: bool---class PartitionSettings(typing.NamedTuple):- """Settings used when partitioning data warehouse tables.-- Attributes:- partition_count: Total number of partitions.- partition_size: Number of rows to include per partition.- """-- partition_count: int- partition_size: int---class ExternalDataSourceType(models.TextChoices):- ASHBY = "Ashby", "Ashby"- SUPABASE = "Supabase", "Supabase"- CUSTOMERIO = "CustomerIO", "CustomerIO"- GITHUB = "Github", "Github"- STRIPE = "Stripe", "Stripe"- HUBSPOT = "Hubspot", "Hubspot"- POSTGRES = "Postgres", "Postgres"- ZENDESK = "Zendesk", "Zendesk"- SNOWFLAKE = "Snowflake", "Snowflake"- SALESFORCE = "Salesforce", "Salesforce"- MYSQL = "MySQL", "MySQL"- MONGODB = "MongoDB", "MongoDB"- MSSQL = "MSSQL", "MSSQL"- VITALLY = "Vitally", "Vitally"- BIGQUERY = "BigQuery", "BigQuery"- CHARGEBEE = "Chargebee", "Chargebee"- CLERK = "Clerk", "Clerk"- GOOGLEADS = "GoogleAds", "GoogleAds"- GOOGLESEARCHCONSOLE = "GoogleSearchConsole", "GoogleSearchConsole"- TEMPORALIO = "TemporalIO", "TemporalIO"- DOIT = "DoIt", "DoIt"- GOOGLESHEETS = "GoogleSheets", "GoogleSheets"- METAADS = "MetaAds", "MetaAds"- KLAVIYO = "Klaviyo", "Klaviyo"- MAILCHIMP = "Mailchimp", "Mailchimp"- BRAZE = "Braze", "Braze"- MAILJET = "Mailjet", "Mailjet"- REDSHIFT = "Redshift", "Redshift"- POLAR = "Polar", "Polar"- REVENUECAT = "RevenueCat", "RevenueCat"- LINKEDINADS = "LinkedinAds", "LinkedinAds"- REDDITADS = "RedditAds", "RedditAds"- TIKTOKADS = "TikTokAds", "TikTokAds"- BINGADS = "BingAds", "BingAds"- SHOPIFY = "Shopify", "Shopify"- ATTIO = "Attio", "Attio"- SNAPCHATADS = "SnapchatAds", "SnapchatAds"- LINEAR = "Linear", "Linear"- INTERCOM = "Intercom", "Intercom"- AMPLITUDE = "Amplitude", "Amplitude"- MIXPANEL = "Mixpanel", "Mixpanel"- JIRA = "Jira", "Jira"- ACTIVECAMPAIGN = "ActiveCampaign", "ActiveCampaign"- MARKETO = "Marketo", "Marketo"- ADJUST = "Adjust", "Adjust"- APPSFLYER = "AppsFlyer", "AppsFlyer"- FRESHDESK = "Freshdesk", "Freshdesk"- GOOGLEANALYTICS = "GoogleAnalytics", "GoogleAnalytics"- PIPEDRIVE = "Pipedrive", "Pipedrive"- SENDGRID = "SendGrid", "SendGrid"- SLACK = "Slack", "Slack"- PAGERDUTY = "PagerDuty", "PagerDuty"- ASANA = "Asana", "Asana"- NOTION = "Notion", "Notion"- AIRTABLE = "Airtable", "Airtable"- GREENHOUSE = "Greenhouse", "Greenhouse"- BAMBOOHR = "BambooHR", "BambooHR"- LEVER = "Lever", "Lever"- GITLAB = "GitLab", "GitLab"- DATADOG = "Datadog", "Datadog"- SENTRY = "Sentry", "Sentry"- PENDO = "Pendo", "Pendo"- FULLSTORY = "FullStory", "FullStory"- AMAZONADS = "AmazonAds", "AmazonAds"- PINTERESTADS = "PinterestAds", "PinterestAds"- APPLESEARCHADS = "AppleSearchAds", "AppleSearchAds"- QUICKBOOKS = "QuickBooks", "QuickBooks"- XERO = "Xero", "Xero"- NETSUITE = "NetSuite", "NetSuite"- WOOCOMMERCE = "WooCommerce", "WooCommerce"- BIGCOMMERCE = "BigCommerce", "BigCommerce"- PAYPAL = "PayPal", "PayPal"- SQUARE = "Square", "Square"- ZOOM = "Zoom", "Zoom"- TRELLO = "Trello", "Trello"- MONDAY = "Monday", "Monday"- CLICKUP = "ClickUp", "ClickUp"- CONFLUENCE = "Confluence", "Confluence"- RECURLY = "Recurly", "Recurly"- SALESLOFT = "SalesLoft", "SalesLoft"- OUTREACH = "Outreach", "Outreach"- GONG = "Gong", "Gong"- CALENDLY = "Calendly", "Calendly"- TYPEFORM = "Typeform", "Typeform"- ITERABLE = "Iterable", "Iterable"- ZOHOCRM = "ZohoCRM", "ZohoCRM"- CLOSE = "Close", "Close"- ORACLE = "Oracle", "Oracle"- DYNAMODB = "DynamoDB", "DynamoDB"- ELASTICSEARCH = "Elasticsearch", "Elasticsearch"- KAFKA = "Kafka", "Kafka"- LAUNCHDARKLY = "LaunchDarkly", "LaunchDarkly"- BRAINTREE = "Braintree", "Braintree"- RECHARGE = "Recharge", "Recharge"- HELPSCOUT = "HelpScout", "HelpScout"- GORGIAS = "Gorgias", "Gorgias"- INSTAGRAM = "Instagram", "Instagram"- YOUTUBEANALYTICS = "YouTubeAnalytics", "YouTubeAnalytics"- FACEBOOKPAGES = "FacebookPages", "FacebookPages"- TWITTERADS = "TwitterAds", "TwitterAds"- WORKDAY = "Workday", "Workday"- SERVICENOW = "ServiceNow", "ServiceNow"- PARDOT = "Pardot", "Pardot"- COPPER = "Copper", "Copper"- FRONT = "Front", "Front"- CHARTMOGUL = "ChartMogul", "ChartMogul"- ZUORA = "Zuora", "Zuora"- PADDLE = "Paddle", "Paddle"- CIRCLECI = "CircleCI", "CircleCI"- COCKROACHDB = "CockroachDB", "CockroachDB"- FIREBASE = "Firebase", "Firebase"- AZUREBLOB = "AzureBlob", "AzureBlob"- GOOGLEDRIVE = "GoogleDrive", "GoogleDrive"- ONEDRIVE = "OneDrive", "OneDrive"- SHAREPOINT = "SharePoint", "SharePoint"- BOX = "Box", "Box"- SFTP = "SFTP", "SFTP"- MICROSOFTTEAMS = "MicrosoftTeams", "MicrosoftTeams"- AIRCALL = "Aircall", "Aircall"- WEBFLOW = "Webflow", "Webflow"- OKTA = "Okta", "Okta"- AUTH0 = "Auth0", "Auth0"- PRODUCTBOARD = "Productboard", "Productboard"- SMARTSHEET = "Smartsheet", "Smartsheet"- WRIKE = "Wrike", "Wrike"- PLAID = "Plaid", "Plaid"- SURVEYMONKEY = "SurveyMonkey", "SurveyMonkey"- EVENTBRITE = "Eventbrite", "Eventbrite"- RINGCENTRAL = "RingCentral", "RingCentral"- TWILIO = "Twilio", "Twilio"- FRESHSALES = "Freshsales", "Freshsales"- SHORTCUT = "Shortcut", "Shortcut"- CONVERTKIT = "ConvertKit", "ConvertKit"- DRIP = "Drip", "Drip"- CAMPAIGNMONITOR = "CampaignMonitor", "CampaignMonitor"- MAILERLITE = "MailerLite", "MailerLite"- OMNISEND = "Omnisend", "Omnisend"- BREVO = "Brevo", "Brevo"- POSTMARK = "Postmark", "Postmark"- GRANOLA = "Granola", "Granola"- BUILDBETTER = "BuildBetter", "BuildBetter"- CONVEX = "Convex", "Convex"- CLICKHOUSE = "ClickHouse", "ClickHouse"- PLAIN = "Plain", "Plain"- RESEND = "Resend", "Resend"- PGANALYZE = "PgAnalyze", "PgAnalyze"- WORKOS = "WorkOS", "WorkOS"- AMAZONS3 = "AmazonS3", "AmazonS3"- GOOGLECLOUDSTORAGE = "GoogleCloudStorage", "GoogleCloudStorage"- DATABRICKS = "Databricks", "Databricks"- DYNAMICS365 = "Dynamics365", "Dynamics365"- SALESFORCEMARKETINGCLOUD = "SalesforceMarketingCloud", "SalesforceMarketingCloud"- DB2 = "Db2", "Db2"- HEAP = "Heap", "Heap"- ADOBEANALYTICS = "AdobeAnalytics", "AdobeAnalytics"- MATOMO = "Matomo", "Matomo"- OPTIMIZELY = "Optimizely", "Optimizely"- ADYEN = "Adyen", "Adyen"- GOCARDLESS = "GoCardless", "GoCardless"- MOLLIE = "Mollie", "Mollie"- CHECKOUTCOM = "CheckoutCom", "CheckoutCom"- BRANCH = "Branch", "Branch"- CRITEO = "Criteo", "Criteo"- OUTBRAIN = "Outbrain", "Outbrain"- TABOOLA = "Taboola", "Taboola"- ADROLL = "AdRoll", "AdRoll"- DISPLAYVIDEO360 = "DisplayVideo360", "DisplayVideo360"- GOOGLEADMANAGER = "GoogleAdManager", "GoogleAdManager"- CAMPAIGNMANAGER360 = "CampaignManager360", "CampaignManager360"- SEARCHADS360 = "SearchAds360", "SearchAds360"- ADOBECOMMERCE = "AdobeCommerce", "AdobeCommerce"- AMAZONSELLINGPARTNER = "AmazonSellingPartner", "AmazonSellingPartner"- EBAY = "Ebay", "Ebay"- COMMERCETOOLS = "Commercetools", "Commercetools"- LIGHTSPEEDRETAIL = "LightspeedRetail", "LightspeedRetail"- SHIPSTATION = "ShipStation", "ShipStation"- CONSTANTCONTACT = "ConstantContact", "ConstantContact"- MAILGUN = "Mailgun", "Mailgun"- ELOQUA = "Eloqua", "Eloqua"- SAILTHRU = "Sailthru", "Sailthru"- ORTTO = "Ortto", "Ortto"- ATTENTIVE = "Attentive", "Attentive"- KUSTOMER = "Kustomer", "Kustomer"- DIXA = "Dixa", "Dixa"- GLADLY = "Gladly", "Gladly"- QUALTRICS = "Qualtrics", "Qualtrics"- AZUREDEVOPS = "AzureDevOps", "AzureDevOps"- ROLLBAR = "Rollbar", "Rollbar"- OPSGENIE = "Opsgenie", "Opsgenie"- INCIDENTIO = "IncidentIo", "IncidentIo"- PINGDOM = "Pingdom", "Pingdom"- CLOUDFLARE = "Cloudflare", "Cloudflare"- COSMOSDB = "CosmosDB", "CosmosDB"- PLANETSCALEMYSQL = "PlanetScaleMySQL", "PlanetScaleMySQL"- PLANETSCALEPOSTGRES = "PlanetScalePostgres", "PlanetScalePostgres"- SAPHANA = "SapHana", "SapHana"- RIPPLING = "Rippling", "Rippling"- HIBOB = "HiBob", "HiBob"- PERSONIO = "Personio", "Personio"- DEEL = "Deel", "Deel"- ADPWORKFORCENOW = "AdpWorkforceNow", "AdpWorkforceNow"- PAYLOCITY = "Paylocity", "Paylocity"- GUSTO = "Gusto", "Gusto"- CULTUREAMP = "CultureAmp", "CultureAmp"- LATTICE = "Lattice", "Lattice"- SAGEINTACCT = "SageIntacct", "SageIntacct"- FRESHBOOKS = "FreshBooks", "FreshBooks"- EXPENSIFY = "Expensify", "Expensify"- RAMP = "Ramp", "Ramp"- BREX = "Brex", "Brex"- COUPA = "Coupa", "Coupa"- SAPCONCUR = "SapConcur", "SapConcur"- APOLLO = "Apollo", "Apollo"- CRUNCHBASE = "Crunchbase", "Crunchbase"- ZOOMINFO = "ZoomInfo", "ZoomInfo"- CLARI = "Clari", "Clari"- CHORUS = "Chorus", "Chorus"- CODA = "Coda", "Coda"- GURU = "Guru", "Guru"- DROPBOX = "Dropbox", "Dropbox"- DOCUSIGN = "Docusign", "Docusign"- PANDADOC = "PandaDoc", "PandaDoc"- SAPERP = "SapErp", "SapErp"- SAPSUCCESSFACTORS = "SapSuccessFactors", "SapSuccessFactors"- ORACLEEBS = "OracleEbs", "OracleEbs"- ORACLEFUSION = "OracleFusion", "OracleFusion"- AMAZONSNS = "AmazonSNS", "AmazonSNS"- AMAZONEVENTBRIDGE = "AmazonEventBridge", "AmazonEventBridge"- AMAZONSQS = "AmazonSQS", "AmazonSQS"- AMAZONKINESIS = "AmazonKinesis", "AmazonKinesis"- AMAZONCLOUDWATCH = "AmazonCloudWatch", "AmazonCloudWatch"- OPENAIADS = "OpenAIAds", "OpenAIAds"- ONEHUNDREDMS = "OneHundredMs", "OneHundredMs"- SEVENSHIFTS = "SevenShifts", "SevenShifts"- ACUITYSCHEDULING = "AcuityScheduling", "AcuityScheduling"- AGILECRM = "AgileCRM", "AgileCRM"- AHA = "Aha", "Aha"- AIRBYTE = "Airbyte", "Airbyte"- AKENEO = "Akeneo", "Akeneo"- ALGOLIA = "Algolia", "Algolia"- ALPACABROKERAPI = "AlpacaBrokerAPI", "AlpacaBrokerAPI"- APIFYDATASET = "ApifyDataset", "ApifyDataset"- APPCUES = "Appcues", "Appcues"- APPFIGURES = "Appfigures", "Appfigures"- APPFOLLOW = "Appfollow", "Appfollow"- APPTIVO = "Apptivo", "Apptivo"- ASSEMBLYAI = "AssemblyAI", "AssemblyAI"- AWIN = "Awin", "Awin"- AWSCLOUDTRAIL = "AwsCloudTrail", "AwsCloudTrail"- AZURETABLESTORAGE = "AzureTableStorage", "AzureTableStorage"- BABELFORCE = "Babelforce", "Babelforce"- BASECAMP = "Basecamp", "Basecamp"- BEAMER = "Beamer", "Beamer"- BIGMAILER = "BigMailer", "BigMailer"- BLUETALLY = "Bluetally", "Bluetally"- BOLDSIGN = "BoldSign", "BoldSign"- BREEZYHR = "BreezyHR", "BreezyHR"- BUGSNAG = "Bugsnag", "Bugsnag"- BUILDKITE = "Buildkite", "Buildkite"- BUNNY = "Bunny", "Bunny"- BUZZSPROUT = "Buzzsprout", "Buzzsprout"- CALCOM = "CalCom", "CalCom"- CALLRAIL = "CallRail", "CallRail"- CAMPAYN = "Campayn", "Campayn"- CANNY = "Canny", "Canny"- CAPSULECRM = "CapsuleCRM", "CapsuleCRM"- CAPTAINDATA = "CaptainData", "CaptainData"- CARTCOM = "CartCom", "CartCom"- CASTOREDC = "CastorEDC", "CastorEDC"- CHAMELEON = "Chameleon", "Chameleon"- CHARGEDESK = "Chargedesk", "Chargedesk"- CHARGIFY = "Chargify", "Chargify"- CHIFT = "Chift", "Chift"- CHURNKEY = "Churnkey", "Churnkey"- CIN7 = "Cin7", "Cin7"- CISCOMERAKI = "CiscoMeraki", "CiscoMeraki"- CLAZAR = "Clazar", "Clazar"- CLOCKIFY = "Clockify", "Clockify"- CLOCKODO = "Clockodo", "Clockodo"- CLOUDBEDS = "Cloudbeds", "Cloudbeds"- COASSEMBLE = "Coassemble", "Coassemble"- CODEFRESH = "Codefresh", "Codefresh"- CONCORD = "Concord", "Concord"- CONFIGCAT = "ConfigCat", "ConfigCat"- COUCHBASE = "Couchbase", "Couchbase"- CURVE = "Curve", "Curve"- CUSTOMERLY = "Customerly", "Customerly"- DATASCOPE = "Datascope", "Datascope"- DBT = "Dbt", "Dbt"- DEPUTY = "Deputy", "Deputy"- DEVINAI = "DevinAI", "DevinAI"- DOCUSEAL = "Docuseal", "Docuseal"- DOLIBARR = "Dolibarr", "Dolibarr"- DREMIO = "Dremio", "Dremio"- DROPBOXSIGN = "DropboxSign", "DropboxSign"- DWOLLA = "Dwolla", "Dwolla"- ECONOMIC = "EConomic", "EConomic"- EASYPOST = "Easypost", "Easypost"- EASYPROMOS = "Easypromos", "Easypromos"- ELASTICEMAIL = "Elasticemail", "Elasticemail"- EMAILOCTOPUS = "EmailOctopus", "EmailOctopus"- EMPLOYMENTHERO = "EmploymentHero", "EmploymentHero"- ENCHARGE = "Encharge", "Encharge"- EVENTEE = "Eventee", "Eventee"- EVENTZILLA = "Eventzilla", "Eventzilla"- EVERHOUR = "Everhour", "Everhour"- EZOFFICEINVENTORY = "EZOfficeInventory", "EZOfficeInventory"- FACTORIAL = "Factorial", "Factorial"- FASTBILL = "Fastbill", "Fastbill"- FASTLY = "Fastly", "Fastly"- FAUNA = "Fauna", "Fauna"- FEISHU = "Feishu", "Feishu"- FILLOUT = "Fillout", "Fillout"- FINAGE = "Finage", "Finage"- FIREBOLT = "Firebolt", "Firebolt"- FIREHYDRANT = "FireHydrant", "FireHydrant"- FLEETIO = "Fleetio", "Fleetio"- FLEXMAIL = "Flexmail", "Flexmail"- FLEXPORT = "Flexport", "Flexport"- FLOATAPP = "FloatApp", "FloatApp"- FLOWLU = "Flowlu", "Flowlu"- FORMBRICKS = "Formbricks", "Formbricks"- FRAMER = "Framer", "Framer"- FREEAGENT = "FreeAgent", "FreeAgent"- FREIGHTVIEW = "Freightview", "Freightview"- FRESHCALLER = "Freshcaller", "Freshcaller"- FRESHCHAT = "Freshchat", "Freshchat"- FRESHSERVICE = "Freshservice", "Freshservice"- FULCRUM = "Fulcrum", "Fulcrum"- GAINSIGHTPX = "GainsightPx", "GainsightPx"- GITBOOK = "GitBook", "GitBook"- GLASSFROG = "Glassfrog", "Glassfrog"- GOLDCAST = "Goldcast", "Goldcast"- GOLOGIN = "GoLogin", "GoLogin"- GRAFANA = "Grafana", "Grafana"- GREYTHR = "GreytHr", "GreytHr"- GRIDLY = "Gridly", "Gridly"- HARNESS = "Harness", "Harness"- HEIGHT = "Height", "Height"- HELLOBATON = "Hellobaton", "Hellobaton"- HIGHLEVEL = "HighLevel", "HighLevel"- HOORAYHR = "HoorayHR", "HoorayHR"- HUBPLANNER = "Hubplanner", "Hubplanner"- HUMANITIX = "Humanitix", "Humanitix"- HUNTR = "Huntr", "Huntr"- INFLOWINVENTORY = "Inflowinventory", "Inflowinventory"- INFORNEXUS = "InforNexus", "InforNexus"- INSIGHTFUL = "Insightful", "Insightful"- INSIGHTLY = "Insightly", "Insightly"- INSTANTLY = "Instantly", "Instantly"- INSTATUS = "Instatus", "Instatus"- INTRUDER = "Intruder", "Intruder"- INVOICED = "Invoiced", "Invoiced"- INVOICENINJA = "Invoiceninja", "Invoiceninja"- JAMFPRO = "JamfPro", "JamfPro"- JOBNIMBUS = "JobNimbus", "JobNimbus"- JOTFORM = "Jotform", "Jotform"- JUDGEMEREVIEWS = "JudgeMeReviews", "JudgeMeReviews"- JUSTCALL = "JustCall", "JustCall"- JUSTSIFT = "JustSift", "JustSift"- K6CLOUD = "K6Cloud", "K6Cloud"- KATANA = "Katana", "Katana"- KEKA = "Keka", "Keka"- KISI = "Kisi", "Kisi"- KISSMETRICS = "Kissmetrics", "Kissmetrics"- KLARNA = "Klarna", "Klarna"- KLAUS = "Klaus", "Klaus"- LAGO = "Lago", "Lago"- LEADFEEDER = "Leadfeeder", "Leadfeeder"- LEMLIST = "Lemlist", "Lemlist"- LESSANNOYINGCRM = "LessAnnoyingCRM", "LessAnnoyingCRM"- LINKEDINPAGES = "LinkedinPages", "LinkedinPages"- LINKRUNNER = "Linkrunner", "Linkrunner"- LINNWORKS = "Linnworks", "Linnworks"- LOB = "Lob", "Lob"- LOKALISE = "Lokalise", "Lokalise"- LOOKER = "Looker", "Looker"- LUMA = "Luma", "Luma"- MAILERSEND = "MailerSend", "MailerSend"- MAILOSAUR = "Mailosaur", "Mailosaur"- MAILTRAP = "Mailtrap", "Mailtrap"- MANTLE = "Mantle", "Mantle"- MENTION = "Mention", "Mention"- MERCADOADS = "MercadoAds", "MercadoAds"- MERGE = "Merge", "Merge"- METABASE = "Metabase", "Metabase"- METRICOOL = "Metricool", "Metricool"- MICROSOFTDATAVERSE = "MicrosoftDataverse", "MicrosoftDataverse"- MICROSOFTENTRAID = "MicrosoftEntraId", "MicrosoftEntraId"- MICROSOFTLISTS = "MicrosoftLists", "MicrosoftLists"- MIRO = "Miro", "Miro"- MISSIVE = "Missive", "Missive"- MIXMAX = "MixMax", "MixMax"- MODE = "Mode", "Mode"- MUX = "Mux", "Mux"- MYHOURS = "MyHours", "MyHours"- N8N = "N8n", "N8n"- NAVAN = "Navan", "Navan"- NEBIUSAI = "NebiusAI", "NebiusAI"- NEXIOPAY = "Nexiopay", "Nexiopay"- NINJAONERMM = "NinjaOneRMM", "NinjaOneRMM"- NOCRM = "NoCRM", "NoCRM"- NORTHPASSLMS = "NorthpassLMS", "NorthpassLMS"- NUTSHELL = "Nutshell", "Nutshell"- NYLAS = "Nylas", "Nylas"- ONCEHUB = "Oncehub", "Oncehub"- ONEPAGECRM = "Onepagecrm", "Onepagecrm"- ONESIGNAL = "OneSignal", "OneSignal"- ONFLEET = "Onfleet", "Onfleet"- OPINIONSTAGE = "OpinionStage", "OpinionStage"- OPUSWATCH = "OPUSWatch", "OPUSWatch"- ORB = "Orb", "Orb"- ORBIT = "Orbit", "Orbit"- OURA = "Oura", "Oura"- OVEIT = "Oveit", "Oveit"- PABBLYSUBSCRIPTIONSBILLING = "PabblySubscriptionsBilling", "PabblySubscriptionsBilling"- PAPERFORM = "Paperform", "Paperform"- PAPERSIGN = "Papersign", "Papersign"- PARTNERIZE = "Partnerize", "Partnerize"- PARTNERSTACK = "PartnerStack", "PartnerStack"- PAYFIT = "PayFit", "PayFit"- PAYSTACK = "Paystack", "Paystack"- PENNYLANE = "Pennylane", "Pennylane"- PERK = "Perk", "Perk"- PERSISTIQ = "PersistIq", "PersistIq"- PERSONA = "Persona", "Persona"- PHYLLO = "Phyllo", "Phyllo"- PICQER = "Picqer", "Picqer"- PIPELINER = "Pipeliner", "Pipeliner"- PIVOTALTRACKER = "PivotalTracker", "PivotalTracker"- PIWIK = "Piwik", "Piwik"- PLANHAT = "Planhat", "Planhat"- PLAUSIBLE = "Plausible", "Plausible"- POPLAR = "Poplar", "Poplar"- PRESTASHOP = "PrestaShop", "PrestaShop"- PRETIX = "Pretix", "Pretix"- PRIMETRIC = "Primetric", "Primetric"- PRINTAVO = "Printavo", "Printavo"- PRINTIFY = "Printify", "Printify"- PRODUCTIVE = "Productive", "Productive"- PYLON = "Pylon", "Pylon"- QONTO = "Qonto", "Qonto"- QUALAROO = "Qualaroo", "Qualaroo"- RAILZ = "Railz", "Railz"- RDSTATIONMARKETING = "RDStationMarketing", "RDStationMarketing"- RECRUITEE = "Recruitee", "Recruitee"- REDDIT = "Reddit", "Reddit"- REFERRALHERO = "ReferralHero", "ReferralHero"- RENTCAST = "RentCast", "RentCast"- REPAIRSHOPR = "Repairshopr", "Repairshopr"- REPLYIO = "ReplyIo", "ReplyIo"- RETAILEXPRESS = "RetailExpress", "RetailExpress"- RETENTLY = "Retently", "Retently"- REVOLUTMERCHANT = "RevolutMerchant", "RevolutMerchant"- ROCKETCHAT = "RocketChat", "RocketChat"- ROCKETLANE = "Rocketlane", "Rocketlane"- ROOTLY = "Rootly", "Rootly"- RUDDR = "Ruddr", "Ruddr"- SAFETYCULTURE = "SafetyCulture", "SafetyCulture"- SAGEHR = "SageHR", "SageHR"- SALESFLARE = "Salesflare", "Salesflare"- SAPFIELDGLASS = "SAPFieldglass", "SAPFieldglass"- SAVVYCAL = "SavvyCal", "SavvyCal"- SECODA = "Secoda", "Secoda"- SEGMENT = "Segment", "Segment"- SENDOWL = "Sendowl", "Sendowl"- SENDPULSE = "SendPulse", "SendPulse"- SENSEFORCE = "Senseforce", "Senseforce"- SERPSTAT = "Serpstat", "Serpstat"- SHARETRIBE = "Sharetribe", "Sharetribe"- SHIPPO = "Shippo", "Shippo"- SHOPWIRED = "ShopWired", "ShopWired"- SHORTIO = "Shortio", "Shortio"- SHUTTERSTOCK = "Shutterstock", "Shutterstock"- SIGMACOMPUTING = "SigmaComputing", "SigmaComputing"- SIGNNOW = "SignNow", "SignNow"- SIMPLECAST = "SimpleCast", "SimpleCast"- SIMPLESAT = "Simplesat", "Simplesat"- SMAILY = "Smaily", "Smaily"- SMARTENGAGE = "SmartEngage", "SmartEngage"- SMARTREACH = "Smartreach", "Smartreach"- SMARTWAIVER = "Smartwaiver", "Smartwaiver"- SOLARWINDSSERVICEDESK = "SolarwindsServiceDesk", "SolarwindsServiceDesk"- SONARCLOUD = "SonarCloud", "SonarCloud"- SPARKPOST = "SparkPost", "SparkPost"- SPLITIO = "SplitIo", "SplitIo"- SPOTIFYADS = "SpotifyAds", "SpotifyAds"- SPOTLERCRM = "SpotlerCRM", "SpotlerCRM"- SQUARESPACE = "Squarespace", "Squarespace"- STATSIG = "Statsig", "Statsig"- STATUSPAGE = "Statuspage", "Statuspage"- STIGG = "Stigg", "Stigg"- STRAVA = "Strava", "Strava"- SURVEYSPARROW = "SurveySparrow", "SurveySparrow"- SURVICATE = "Survicate", "Survicate"- SVIX = "Svix", "Svix"- SYSTEME = "Systeme", "Systeme"- TAVUS = "Tavus", "Tavus"- TEAMTAILOR = "Teamtailor", "Teamtailor"- TEAMWORK = "Teamwork", "Teamwork"- TEMPO = "Tempo", "Tempo"- TESTRAIL = "Testrail", "Testrail"- THINKIFIC = "Thinkific", "Thinkific"- THINKIFICCOURSES = "ThinkificCourses", "ThinkificCourses"- THRIVELEARNING = "ThriveLearning", "ThriveLearning"- TICKETMASTER = "Ticketmaster", "Ticketmaster"- TICKETTAILOR = "TicketTailor", "TicketTailor"- TICKTICK = "TickTick", "TickTick"- TIMELY = "Timely", "Timely"- TINYEMAIL = "Tinyemail", "Tinyemail"- TODOIST = "Todoist", "Todoist"- TOGGL = "Toggl", "Toggl"- TRACKPMS = "TrackPMS", "TrackPMS"- TREMENDOUS = "Tremendous", "Tremendous"- TRUSTPILOT = "TrustPilot", "TrustPilot"- TWITTER = "Twitter", "Twitter"- TYNTECSMS = "TyntecSMS", "TyntecSMS"- UNLEASH = "Unleash", "Unleash"- UPPROMOTE = "UpPromote", "UpPromote"- UPTICK = "Uptick", "Uptick"- USERVOICE = "Uservoice", "Uservoice"- VANTAGE = "Vantage", "Vantage"- VEEQO = "Veeqo", "Veeqo"- VERCEL = "Vercel", "Vercel"- VISMAECONOMIC = "VismaEconomic", "VismaEconomic"- VWO = "VWO", "VWO"- WAITERAID = "Waiteraid", "Waiteraid"- WASABI = "Wasabi", "Wasabi"- WHENIWORK = "WhenIWork", "WhenIWork"- WORDPRESS = "Wordpress", "Wordpress"- WORKABLE = "Workable", "Workable"- WORKFLOWMAX = "Workflowmax", "Workflowmax"- WORKRAMP = "Workramp", "Workramp"- WUFOO = "Wufoo", "Wufoo"- XSOLLA = "Xsolla", "Xsolla"- YANDEXMETRICA = "YandexMetrica", "YandexMetrica"- YOTPO = "Yotpo", "Yotpo"- YNAB = "Ynab", "Ynab"- YOUNIUM = "Younium", "Younium"- YOUSIGN = "YouSign", "YouSign"- YOUTUBEDATA = "YoutubeData", "YoutubeData"- ZAPIERSUPPORTEDSTORAGE = "ZapierSupportedStorage", "ZapierSupportedStorage"- ZAPSIGN = "ZapSign", "ZapSign"- ZENDESKSELL = "ZendeskSell", "ZendeskSell"- ZENDESKSUNSHINE = "ZendeskSunshine", "ZendeskSunshine"- ZENEFITS = "Zenefits", "Zenefits"- ZENLOOP = "Zenloop", "Zenloop"- ZOHOANALYTICS = "ZohoAnalytics", "ZohoAnalytics"- ZOHOBIGIN = "ZohoBigin", "ZohoBigin"- ZOHOBILLING = "ZohoBilling", "ZohoBilling"- ZOHOBOOKS = "ZohoBooks", "ZohoBooks"- ZOHOCAMPAIGN = "ZohoCampaign", "ZohoCampaign"- ZOHODESK = "ZohoDesk", "ZohoDesk"- ZOHOEXPENSE = "ZohoExpense", "ZohoExpense"- ZOHOINVENTORY = "ZohoInventory", "ZohoInventory"- ZOHOINVOICE = "ZohoInvoice", "ZohoInvoice"- ZONKAFEEDBACK = "ZonkaFeedback", "ZonkaFeedback"- ALPHAVANTAGE = "AlphaVantage", "AlphaVantage"- AVIATIONSTACK = "Aviationstack", "Aviationstack"- BITLY = "Bitly", "Bitly"- BLOGGER = "Blogger", "Blogger"- BREEZOMETER = "Breezometer", "Breezometer"- CAREQUALITYCOMMISSION = "CareQualityCommission", "CareQualityCommission"- CIMIS = "Cimis", "Cimis"- COINAPI = "CoinApi", "CoinApi"- COINGECKO = "CoinGecko", "CoinGecko"- COINMARKETCAP = "CoinMarketCap", "CoinMarketCap"- DINGCONNECT = "DingConnect", "DingConnect"- DOCKERHUB = "Dockerhub", "Dockerhub"- EXCHANGERATESAPI = "ExchangeRatesApi", "ExchangeRatesApi"- FINANCIALMODELLING = "FinancialModelling", "FinancialModelling"- FINNHUB = "Finnhub", "Finnhub"- FINNWORLDS = "Finnworlds", "Finnworlds"- GIPHY = "Giphy", "Giphy"- GMAIL = "Gmail", "Gmail"- GNEWS = "GNews", "GNews"- GOOGLECALENDAR = "GoogleCalendar", "GoogleCalendar"- GOOGLECLASSROOM = "GoogleClassroom", "GoogleClassroom"- GOOGLEDIRECTORY = "GoogleDirectory", "GoogleDirectory"- GOOGLEFORMS = "GoogleForms", "GoogleForms"- GOOGLEPAGESPEEDINSIGHTS = "GooglePageSpeedInsights", "GooglePageSpeedInsights"- GOOGLETASKS = "GoogleTasks", "GoogleTasks"- GOOGLEWEBFONTS = "GoogleWebfonts", "GoogleWebfonts"- GOOGLEWORKSPACEADMINREPORTS = "GoogleWorkspaceAdminReports", "GoogleWorkspaceAdminReports"- HUGGINGFACE = "HuggingFace", "HuggingFace"- ILLUMINABASESPACE = "IlluminaBasespace", "IlluminaBasespace"- IMAGGA = "Imagga", "Imagga"- INTERZOID = "Interzoid", "Interzoid"- IP2WHOIS = "IP2Whois", "IP2Whois"- KYVE = "KYVE", "KYVE"- MARKETSTACK = "Marketstack", "Marketstack"- MENDELEY = "Mendeley", "Mendeley"- NASA = "Nasa", "Nasa"- NEWYORKTIMES = "NewYorkTimes", "NewYorkTimes"- NEWSAPI = "NewsApi", "NewsApi"- NEWSDATA = "NewsData", "NewsData"- OPENDATADC = "OpenDataDc", "OpenDataDc"- OPENEXCHANGERATES = "OpenExchangeRates", "OpenExchangeRates"- OPENAQ = "OpenAQ", "OpenAQ"- OPENFDA = "OpenFDA", "OpenFDA"- OPENWEATHER = "OpenWeather", "OpenWeather"- OUTLOOK = "Outlook", "Outlook"- PERIGON = "Perigon", "Perigon"- PEXELS = "Pexels", "Pexels"- POCKET = "Pocket", "Pocket"- POLYGON = "Polygon", "Polygon"- PYPI = "PyPI", "PyPI"- RECREATION = "Recreation", "Recreation"- RKICOVID = "RKICovid", "RKICovid"- RSS = "Rss", "Rss"- SIMFIN = "SimFin", "SimFin"- STOCKDATA = "StockData", "StockData"- GUARDIAN = "Guardian", "Guardian"- TMDB = "TMDb", "TMDb"- TVMAZE = "TVMaze", "TVMaze"- TWELVEDATA = "TwelveData", "TwelveData"- UBIDOTS = "Ubidots", "Ubidots"- USCENSUS = "USCensus", "USCensus"- WATCHMODE = "Watchmode", "Watchmode"- WIKIPEDIAPAGEVIEWS = "WikipediaPageviews", "WikipediaPageviews"- YAHOOFINANCE = "YahooFinance", "YahooFinance"- CLARIFAI = "Clarifai", "Clarifai"- ADAPTY = "Adapty", "Adapty"- BRAINTRUST = "Braintrust", "Braintrust"- STREAMELEMENTS = "StreamElements", "StreamElements"- STREAMLABS = "Streamlabs", "Streamlabs"- DATORAMA = "Datorama", "Datorama"- AHREFS = "Ahrefs", "Ahrefs"- LIGHTFIELD = "Lightfield", "Lightfield"- APPSTACK = "Appstack", "Appstack"- RAZORPAY = "Razorpay", "Razorpay"- NEON = "Neon", "Neon"- NEWRELIC = "NewRelic", "NewRelic"- CUSTOM = "Custom", "Custom"- TILE38 = "Tile38", "Tile38"- CHATWOOT = "Chatwoot", "Chatwoot"- SANITY = "Sanity", "Sanity"- METRONOME = "Metronome", "Metronome"- JOBBER = "Jobber", "Jobber"- KNOCK = "Knock", "Knock"- LEEXI = "Leexi", "Leexi"- RB2B = "RB2B", "RB2B"- SUPERWALL = "Superwall", "Superwall"- LIANA = "Liana", "Liana"- TAWKTO = "TawkTo", "TawkTo"- HIGHTOUCH = "Hightouch", "Hightouch"- LEMONSQUEEZY = "LemonSqueezy", "LemonSqueezy"- IKAS = "Ikas", "Ikas"- TALKWALKER = "Talkwalker", "Talkwalker"- NEXTDOORADS = "NextdoorAds", "NextdoorAds"- APPLOVIN = "AppLovin", "AppLovin"- BASEROW = "Baserow", "Baserow"- PLUNK = "Plunk", "Plunk"- DUB = "Dub", "Dub"- AIROPS = "AirOps", "AirOps"- PODIUM = "Podium", "Podium"- LOOPS = "Loops", "Loops"- REDIS = "Redis", "Redis"- MERCURY = "Mercury", "Mercury"- GOJIBERRY = "Gojiberry", "Gojiberry"- TEACHABLE = "Teachable", "Teachable"- PEECAI = "PeecAI", "PeecAI"- HEALTHCHECKS = "Healthchecks", "Healthchecks"- IMPACT = "Impact", "Impact"- AIKIDOSECURITY = "AikidoSecurity", "AikidoSecurity"- ALGUNA = "Alguna", "Alguna"- ANTHROPIC = "Anthropic", "Anthropic"- APPWRITE = "Appwrite", "Appwrite"- BLANDAI = "BlandAI", "BlandAI"- BROWSEAI = "BrowseAI", "BrowseAI"- BROWSERUSE = "BrowserUse", "BrowserUse"- CHARTHOP = "ChartHop", "ChartHop"- CODY = "Cody", "Cody"- CURSOR = "Cursor", "Cursor"- DECAGON = "Decagon", "Decagon"- DEEPGRAM = "Deepgram", "Deepgram"- ELEVENLABS = "ElevenLabs", "ElevenLabs"- HARVEY = "Harvey", "Harvey"- HYPERSPELL = "Hyperspell", "Hyperspell"- LANGFUSE = "Langfuse", "Langfuse"- LINGODEV = "LingoDev", "LingoDev"- M3TER = "M3ter", "M3ter"- MAXIO = "Maxio", "Maxio"- METORIAL = "Metorial", "Metorial"- OPENROUTER = "OpenRouter", "OpenRouter"- TOGETHERAI = "TogetherAI", "TogetherAI"- VAPI = "Vapi", "Vapi"- VESPA = "Vespa", "Vespa"- WRITESONIC = "Writesonic", "Writesonic"- AIVEN = "Aiven", "Aiven"- AVIATOR = "Aviator", "Aviator"- BACKBLAZE = "Backblaze", "Backblaze"- BASETEN = "Baseten", "Baseten"- BROWSERBASE = "Browserbase", "Browserbase"- COHERE = "Cohere", "Cohere"- DENODEPLOY = "DenoDeploy", "DenoDeploy"- DIGITALOCEAN = "DigitalOcean", "DigitalOcean"- E2B = "E2B", "E2B"- FINTOC = "Fintoc", "Fintoc"- FIRECRAWL = "Firecrawl", "Firecrawl"- FIREWORKSAI = "FireworksAI", "FireworksAI"- FLYIO = "FlyIo", "FlyIo"- GROQ = "Groq", "Groq"- GROWTHBOOK = "GrowthBook", "GrowthBook"- GUMLOOP = "Gumloop", "Gumloop"- HATCHET = "Hatchet", "Hatchet"- HELICONE = "Helicone", "Helicone"- HEROKU = "Heroku", "Heroku"- HETZNER = "Hetzner", "Hetzner"- HEYGEN = "HeyGen", "HeyGen"- INFISICAL = "Infisical", "Infisical"- INNGEST = "Inngest", "Inngest"- KAPAAI = "KapaAI", "KapaAI"- KERNEL = "Kernel", "Kernel"- KOYEB = "Koyeb", "Koyeb"- LAMBDALABS = "LambdaLabs", "LambdaLabs"- LANGSMITH = "LangSmith", "LangSmith"- LINODE = "Linode", "Linode"- LLAMACLOUD = "LlamaCloud", "LlamaCloud"- MEM0 = "Mem0", "Mem0"- METRIPORT = "Metriport", "Metriport"- MINTLIFY = "Mintlify", "Mintlify"- MISTRALAI = "MistralAI", "MistralAI"- MONO = "Mono", "Mono"- NETLIFY = "Netlify", "Netlify"- NORTHFLANK = "Northflank", "Northflank"- OPENAI = "OpenAI", "OpenAI"- PINECONE = "Pinecone", "Pinecone"- PLATFORMSH = "PlatformSh", "PlatformSh"- PROMPTINGCOMPANY = "PromptingCompany", "PromptingCompany"- QDRANT = "Qdrant", "Qdrant"- RENDER = "Render", "Render"- REPLICATE = "Replicate", "Replicate"- RETELLAI = "RetellAI", "RetellAI"- ROARK = "Roark", "Roark"- RUNPOD = "RunPod", "RunPod"- SCALEAI = "ScaleAI", "ScaleAI"- SCALEWAY = "Scaleway", "Scaleway"- SIGNOZ = "SigNoz", "SigNoz"- SIM = "Sim", "Sim"- SKYVERN = "Skyvern", "Skyvern"- SLASH = "Slash", "Slash"- SYNTHESIA = "Synthesia", "Synthesia"- TELLI = "Telli", "Telli"- TERRAAPI = "TerraApi", "TerraApi"- TRIGGERDEV = "TriggerDev", "TriggerDev"- TURSO = "Turso", "Turso"- SINGULAR = "Singular", "Singular"- SWONKIE = "Swonkie", "Swonkie"- TWELVELABS = "TwelveLabs", "TwelveLabs"- TWENTY = "Twenty", "Twenty"- UNSTRUCTURED = "Unstructured", "Unstructured"- UPSTASH = "Upstash", "Upstash"- VELLUM = "Vellum", "Vellum"- VULTR = "Vultr", "Vultr"- WINDMILL = "Windmill", "Windmill"- ZEP = "Zep", "Zep"- HEX = "Hex", "Hex"- SUMSUB = "Sumsub", "Sumsub"- GOOGLECHAT = "GoogleChat", "GoogleChat"- KICKSCALE = "Kickscale", "Kickscale"- ZELLIFY = "Zellify", "Zellify"- RUDDERSTACK = "RudderStack", "RudderStack"- DODOPAYMENTS = "DodoPayments", "DodoPayments"- SALESTRICS = "Salestrics", "Salestrics"- DOPPLER = "Doppler", "Doppler"- USERSNAP = "Usersnap", "Usersnap"- ASKNICELY = "Asknicely", "Asknicely"- FEATUREBASE = "Featurebase", "Featurebase"- FRILL = "Frill", "Frill"- BETTERMODE = "Bettermode", "Bettermode"- DYNATRACE = "Dynatrace", "Dynatrace"- HONEYCOMB = "Honeycomb", "Honeycomb"- SUMOLOGIC = "SumoLogic", "SumoLogic"- LOGZIO = "LogzIO", "LogzIO"- CORALOGIX = "Coralogix", "Coralogix"- BETTERSTACK = "BetterStack", "BetterStack"- RAYGUN = "Raygun", "Raygun"- HONEYBADGER = "Honeybadger", "Honeybadger"- AIRBRAKE = "Airbrake", "Airbrake"- APPSIGNAL = "Appsignal", "Appsignal"- APPDYNAMICS = "Appdynamics", "Appdynamics"- INSTANA = "Instana", "Instana"- SPLUNKOBSERVABILITYCLOUD = "SplunkObservabilityCloud", "SplunkObservabilityCloud"- UPTIMEROBOT = "Uptimerobot", "Uptimerobot"- STATUSCAKE = "Statuscake", "Statuscake"- TAILSCALE = "Tailscale", "Tailscale"- FLAGSMITH = "Flagsmith", "Flagsmith"- XMATTERS = "Xmatters", "Xmatters"- SQUADCAST = "Squadcast", "Squadcast"- ZENDUTY = "Zenduty", "Zenduty"- CRONITOR = "Cronitor", "Cronitor"- JENKINS = "Jenkins", "Jenkins"- BITBUCKET = "Bitbucket", "Bitbucket"- GITEA = "Gitea", "Gitea"- TEAMCITY = "Teamcity", "Teamcity"- TRAVISCI = "TravisCI", "TravisCI"- SEMAPHORE = "Semaphore", "Semaphore"- CIRCLECIINSIGHTS = "CircleciInsights", "CircleciInsights"- OCTOPUSDEPLOY = "OctopusDeploy", "OctopusDeploy"- SOURCEGRAPH = "Sourcegraph", "Sourcegraph"- BITRISE = "Bitrise", "Bitrise"- GERRIT = "Gerrit", "Gerrit"- TERRAFORMCLOUD = "TerraformCloud", "TerraformCloud"- PULUMICLOUD = "PulumiCloud", "PulumiCloud"- SPACELIFT = "Spacelift", "Spacelift"- RAILWAY = "Railway", "Railway"- ARGOCD = "Argocd", "Argocd"- PREFECTCLOUD = "PrefectCloud", "PrefectCloud"- DAGSTERCLOUD = "DagsterCloud", "DagsterCloud"- ENV0 = "Env0", "Env0"- KUBECOST = "Kubecost", "Kubecost"- SNYK = "Snyk", "Snyk"- SEMGREP = "Semgrep", "Semgrep"- VERACODE = "Veracode", "Veracode"- CHECKMARX = "Checkmarx", "Checkmarx"- GITGUARDIAN = "Gitguardian", "Gitguardian"- QUALYSVMDR = "QualysVmdr", "QualysVmdr"- RAPID7INSIGHTVM = "Rapid7Insightvm", "Rapid7Insightvm"- TENABLEVULNERABILITYMANAGEMENT = "TenableVulnerabilityManagement", "TenableVulnerabilityManagement"- SENTINELONE = "Sentinelone", "Sentinelone"- LACEWORK = "Lacework", "Lacework"- ORCASECURITY = "OrcaSecurity", "OrcaSecurity"- DRATA = "Drata", "Drata"- SECUREFRAME = "Secureframe", "Secureframe"- CISCODUO = "CiscoDuo", "CiscoDuo"- JUMPCLOUD = "Jumpcloud", "Jumpcloud"- ONEPASSWORD = "OnePassword", "OnePassword"- STYTCH = "Stytch", "Stytch"- SONARQUBE = "Sonarqube", "Sonarqube"- CODECOV = "Codecov", "Codecov"- COVERALLS = "Coveralls", "Coveralls"- CODACY = "Codacy", "Codacy"- DEEPSOURCE = "Deepsource", "Deepsource"- LINEARB = "Linearb", "Linearb"- JELLYFISH = "Jellyfish", "Jellyfish"- SWARMIA = "Swarmia", "Swarmia"- PACKAGIST = "Packagist", "Packagist"- NUGET = "Nuget", "Nuget"- CRATESIO = "CratesIO", "CratesIO"- SONATYPENEXUS = "SonatypeNexus", "SonatypeNexus"- JFROGARTIFACTORY = "JfrogArtifactory", "JfrogArtifactory"- SNOWPLOW = "Snowplow", "Snowplow"- WEIGHTSANDBIASES = "WeightsAndBiases", "WeightsAndBiases"- MONTECARLO = "MonteCarlo", "MonteCarlo"- METAPLANE = "Metaplane", "Metaplane"- DATAHUB = "Datahub", "Datahub"- CLICKHOUSECLOUD = "ClickhouseCloud", "ClickhouseCloud"- CONFLUENTCLOUD = "ConfluentCloud", "ConfluentCloud"- KONGKONNECT = "KongKonnect", "KongKonnect"- KANDJI = "Kandji", "Kandji"- AUTOMOX = "Automox", "Automox"- AUTUMN = "Autumn", "Autumn"- GETSTREAM = "GetStream", "GetStream"- OCTOLENS = "Octolens", "Octolens"- KAJABI = "Kajabi", "Kajabi"- SHOPWARE = "Shopware", "Shopware"- DUBSADO = "Dubsado", "Dubsado"- CAMPFIRE = "Campfire", "Campfire"- PROMPTWATCH = "PromptWatch", "PromptWatch"- CRISP = "Crisp", "Crisp"- KOMMO = "Kommo", "Kommo"- AXIOM = "Axiom", "Axiom"- PLIVO = "Plivo", "Plivo"- DATAFORSEO = "DataForSEO", "DataForSEO"- SLEEKPLAN = "Sleekplan", "Sleekplan"- ABTASTY = "AbTasty", "AbTasty"- ABLY = "Ably", "Ably"- ABNORMALSECURITY = "AbnormalSecurity", "AbnormalSecurity"- ACAST = "Acast", "Acast"- ACCULYNX = "Acculynx", "Acculynx"- ACTIONSTEP = "Actionstep", "Actionstep"- AFTERSHIP = "Aftership", "Aftership"- AHAIDEAS = "AhaIdeas", "AhaIdeas"- AKAMAIREPORTING = "AkamaiReporting", "AkamaiReporting"- ALATION = "Alation", "Alation"- ALEGRA = "Alegra", "Alegra"- ALLEGRO = "Allegro", "Allegro"- ANODOTCOST = "AnodotCost", "AnodotCost"- ANOMALO = "Anomalo", "Anomalo"- APALEO = "Apaleo", "Apaleo"- APITALLY = "Apitally", "Apitally"- APPSTORECONNECT = "AppStoreConnect", "AppStoreConnect"- APPDIRECT = "Appdirect", "Appdirect"- APPFOLIO = "Appfolio", "Appfolio"- ARXIV = "Arxiv", "Arxiv"- ASAAS = "Asaas", "Asaas"- ASTRONOMER = "Astronomer", "Astronomer"- ATHENAHEALTH = "Athenahealth", "Athenahealth"- ATLAN = "Atlan", "Atlan"- AUTODESKCONSTRUCTIONCLOUD = "AutodeskConstructionCloud", "AutodeskConstructionCloud"- AVALARA = "Avalara", "Avalara"- AWSATHENA = "AwsAthena", "AwsAthena"- AWSBATCH = "AwsBatch", "AwsBatch"- AWSBUDGETS = "AwsBudgets", "AwsBudgets"- AWSCLOUDFORMATION = "AwsCloudformation", "AwsCloudformation"- AWSCOMPUTEOPTIMIZER = "AwsComputeOptimizer", "AwsComputeOptimizer"- AWSCONFIG = "AwsConfig", "AwsConfig"- AWSCONNECT = "AwsConnect", "AwsConnect"- AWSCOSTANDUSAGEREPORT = "AwsCostAndUsageReport", "AwsCostAndUsageReport"- AWSCOSTANOMALYDETECTION = "AwsCostAnomalyDetection", "AwsCostAnomalyDetection"- AWSCOSTEXPLORER = "AwsCostExplorer", "AwsCostExplorer"- AWSGLUEDATACATALOG = "AwsGlueDataCatalog", "AwsGlueDataCatalog"- AWSGUARDDUTY = "AwsGuardduty", "AwsGuardduty"- AWSHEALTH = "AwsHealth", "AwsHealth"- AWSIAMACCESSANALYZER = "AwsIamAccessAnalyzer", "AwsIamAccessAnalyzer"- AWSINSPECTOR = "AwsInspector", "AwsInspector"- AWSMACIE = "AwsMacie", "AwsMacie"- AWSORGANIZATIONS = "AwsOrganizations", "AwsOrganizations"- AWSRDSPERFORMANCEINSIGHTS = "AwsRdsPerformanceInsights", "AwsRdsPerformanceInsights"- AWSSAGEMAKER = "AwsSagemaker", "AwsSagemaker"- AWSSAVINGSPLANS = "AwsSavingsPlans", "AwsSavingsPlans"- AWSSECURITYHUB = "AwsSecurityHub", "AwsSecurityHub"- AWSSES = "AwsSes", "AwsSes"- AWSSTEPFUNCTIONS = "AwsStepFunctions", "AwsStepFunctions"- AWSSUPPORT = "AwsSupport", "AwsSupport"- AWSSYSTEMSMANAGER = "AwsSystemsManager", "AwsSystemsManager"- AWSTRUSTEDADVISOR = "AwsTrustedAdvisor", "AwsTrustedAdvisor"- AWSWAF = "AwsWaf", "AwsWaf"- AWSXRAY = "AwsXray", "AwsXray"- AZUREACTIVITYLOG = "AzureActivityLog", "AzureActivityLog"- AZUREADVISOR = "AzureAdvisor", "AzureAdvisor"- AZUREAPIMANAGEMENT = "AzureApiManagement", "AzureApiManagement"- AZUREAPPLICATIONINSIGHTS = "AzureApplicationInsights", "AzureApplicationInsights"- AZURECOSTMANAGEMENT = "AzureCostManagement", "AzureCostManagement"- AZUREDATAEXPLORER = "AzureDataExplorer", "AzureDataExplorer"- AZUREDATAFACTORY = "AzureDataFactory", "AzureDataFactory"- AZURELOGANALYTICS = "AzureLogAnalytics", "AzureLogAnalytics"- AZUREMONITORALERTS = "AzureMonitorAlerts", "AzureMonitorAlerts"- AZUREMONITORMETRICS = "AzureMonitorMetrics", "AzureMonitorMetrics"- AZUREOPENAIUSAGE = "AzureOpenaiUsage", "AzureOpenaiUsage"- AZUREPOLICYINSIGHTS = "AzurePolicyInsights", "AzurePolicyInsights"- AZURERESERVATIONS = "AzureReservations", "AzureReservations"- AZURERESOURCEGRAPH = "AzureResourceGraph", "AzureResourceGraph"- AZURERESOURCEHEALTH = "AzureResourceHealth", "AzureResourceHealth"- AZURESERVICEHEALTH = "AzureServiceHealth", "AzureServiceHealth"- AZURESYNAPSE = "AzureSynapse", "AzureSynapse"- BACKMARKET = "BackMarket", "BackMarket"- BEEHIIV = "Beehiiv", "Beehiiv"- BIGEYE = "Bigeye", "Bigeye"- BILLCOM = "BillCom", "BillCom"- BILLOMAT = "Billomat", "Billomat"- BINGWEBMASTERTOOLS = "BingWebmasterTools", "BingWebmasterTools"- BITWARDEN = "Bitwarden", "Bitwarden"- BLACKBAUDRAISERSEDGENXT = "BlackbaudRaisersEdgeNxt", "BlackbaudRaisersEdgeNxt"- BLACKBOARDLEARN = "BlackboardLearn", "BlackboardLearn"- BLING = "Bling", "Bling"- BLOOMERANG = "Bloomerang", "Bloomerang"- BLUESKY = "Bluesky", "Bluesky"- BOLRETAILER = "BolRetailer", "BolRetailer"- BOULEVARD = "Boulevard", "Boulevard"- BUFFER = "Buffer", "Buffer"- BUGHERD = "Bugherd", "Bugherd"- BUILDIUM = "Buildium", "Buildium"- BUTTONDOWN = "Buttondown", "Buttondown"- BUYMEACOFFEE = "BuyMeACoffee", "BuyMeACoffee"- CALENDARIFIC = "Calendarific", "Calendarific"- CALIBRE = "Calibre", "Calibre"- CANVASLMS = "CanvasLms", "CanvasLms"- CAPTIVATE = "Captivate", "Captivate"- CASHFREE = "Cashfree", "Cashfree"- CASTAI = "CastAi", "CastAi"- CATCHPOINT = "Catchpoint", "Catchpoint"- CDCOPENDATA = "CdcOpenData", "CdcOpenData"- CENSUS = "Census", "Census"- CHECKLY = "Checkly", "Checkly"- CIRCLESO = "CircleSo", "CircleSo"- CLASSY = "Classy", "Classy"- CLEARTAX = "Cleartax", "Cleartax"- CLEVER = "Clever", "Clever"- CLEVERTAP = "Clevertap", "Clevertap"- CLINIKO = "Cliniko", "Cliniko"- CLIO = "Clio", "Clio"- CLIP = "Clip", "Clip"- CLOUDABILITY = "Cloudability", "Cloudability"- CLOUDSMITH = "Cloudsmith", "Cloudsmith"- CLOUDZERO = "Cloudzero", "Cloudzero"- CLOVER = "Clover", "Clover"- CODEMAGIC = "Codemagic", "Codemagic"- CODESCENE = "Codescene", "Codescene"- COLLIBRA = "Collibra", "Collibra"- COMPANYCAM = "Companycam", "Companycam"- CONEKTA = "Conekta", "Conekta"- CONTAAZUL = "ContaAzul", "ContaAzul"- CONTENTSQUARE = "Contentsquare", "Contentsquare"- CORTEX = "Cortex", "Cortex"- COURIER = "Courier", "Courier"- CROSSREF = "Crossref", "Crossref"- CROWDSTRIKEFALCON = "CrowdstrikeFalcon", "CrowdstrikeFalcon"- CUBECLOUD = "CubeCloud", "CubeCloud"- D2LBRIGHTSPACE = "D2lBrightspace", "D2lBrightspace"- DAYFORCE = "Dayforce", "Dayforce"- DEBUGBEAR = "Debugbear", "Debugbear"- DESCOPE = "Descope", "Descope"- DEVELOCITY = "Develocity", "Develocity"- DIALPAD = "Dialpad", "Dialpad"- DISCORD = "Discord", "Discord"- DISCOURSE = "Discourse", "Discourse"- DONORBOX = "Donorbox", "Donorbox"- DOORLOOP = "Doorloop", "Doorloop"- DOVETAIL = "Dovetail", "Dovetail"- DRCHRONO = "Drchrono", "Drchrono"- DYNAMICS365BUSINESSCENTRAL = "Dynamics365BusinessCentral", "Dynamics365BusinessCentral"- ECBDATAPORTAL = "EcbDataPortal", "EcbDataPortal"- EMARSYS = "Emarsys", "Emarsys"- EMBRACE = "Embrace", "Embrace"- ENTSOE = "Entsoe", "Entsoe"- EPPO = "Eppo", "Eppo"- ETSY = "Etsy", "Etsy"- EUROSTAT = "Eurostat", "Eurostat"- FAIRE = "Faire", "Faire"- FAROSAI = "FarosAi", "FarosAi"- FIELDPULSE = "Fieldpulse", "Fieldpulse"- FIELDWIRE = "Fieldwire", "Fieldwire"- FILEVINE = "Filevine", "Filevine"- FINOUT = "Finout", "Finout"- FIVE9 = "Five9", "Five9"- FLEXERACLOUDCOST = "FlexeraCloudCost", "FlexeraCloudCost"- FLUTTERWAVE = "Flutterwave", "Flutterwave"- FORTNOX = "Fortnox", "Fortnox"- FOURTHWALL = "Fourthwall", "Fourthwall"- FRED = "Fred", "Fred"- FRONTEGG = "Frontegg", "Frontegg"- FUSIONAUTH = "FusionAuth", "FusionAuth"- G2 = "G2", "G2"- GCORE = "Gcore", "Gcore"- GCPAPIGEE = "GcpApigee", "GcpApigee"- GCPARTIFACTREGISTRY = "GcpArtifactRegistry", "GcpArtifactRegistry"- GCPBIGTABLE = "GcpBigtable", "GcpBigtable"- GCPCHRONICLE = "GcpChronicle", "GcpChronicle"- GCPCLOUDASSETINVENTORY = "GcpCloudAssetInventory", "GcpCloudAssetInventory"- GCPCLOUDBILLING = "GcpCloudBilling", "GcpCloudBilling"- GCPCLOUDBUILD = "GcpCloudBuild", "GcpCloudBuild"- GCPCLOUDDEPLOY = "GcpCloudDeploy", "GcpCloudDeploy"- GCPCLOUDDNS = "GcpCloudDns", "GcpCloudDns"- GCPCLOUDFUNCTIONS = "GcpCloudFunctions", "GcpCloudFunctions"- GCPCLOUDLOGGING = "GcpCloudLogging", "GcpCloudLogging"- GCPCLOUDMONITORING = "GcpCloudMonitoring", "GcpCloudMonitoring"- GCPCLOUDRUN = "GcpCloudRun", "GcpCloudRun"- GCPCLOUDSPANNER = "GcpCloudSpanner", "GcpCloudSpanner"- GCPCLOUDSQL = "GcpCloudSql", "GcpCloudSql"- GCPCLOUDTRACE = "GcpCloudTrace", "GcpCloudTrace"- GCPCLOUDWORKFLOWS = "GcpCloudWorkflows", "GcpCloudWorkflows"- GCPCOMPUTEENGINE = "GcpComputeEngine", "GcpComputeEngine"- GCPCONTAINERANALYSIS = "GcpContainerAnalysis", "GcpContainerAnalysis"- GCPDATAFLOW = "GcpDataflow", "GcpDataflow"- GCPDATAPLEX = "GcpDataplex", "GcpDataplex"- GCPDATAPROC = "GcpDataproc", "GcpDataproc"- GCPERRORREPORTING = "GcpErrorReporting", "GcpErrorReporting"- GCPGKE = "GcpGke", "GcpGke"- GCPPUBSUB = "GcpPubsub", "GcpPubsub"- GCPRECAPTCHAENTERPRISE = "GcpRecaptchaEnterprise", "GcpRecaptchaEnterprise"- GCPRECOMMENDER = "GcpRecommender", "GcpRecommender"- GCPSECURITYCOMMANDCENTER = "GcpSecurityCommandCenter", "GcpSecurityCommandCenter"- GDELT = "Gdelt", "Gdelt"- GENESYSCLOUD = "GenesysCloud", "GenesysCloud"- GETDX = "Getdx", "Getdx"- GHOST = "Ghost", "Ghost"- GIVEBUTTER = "Givebutter", "Givebutter"- GLEIF = "Gleif", "Gleif"- GOOGLEPLAYCONSOLE = "GooglePlayConsole", "GooglePlayConsole"- GUESTY = "Guesty", "Guesty"- GUMROAD = "Gumroad", "Gumroad"- HARNESSCCM = "HarnessCcm", "HarnessCcm"- HARNESSSEI = "HarnessSei", "HarnessSei"- HARVEST = "Harvest", "Harvest"- HEALTHIE = "Healthie", "Healthie"- HITPAY = "Hitpay", "Hitpay"- HIVEBRITE = "Hivebrite", "Hivebrite"- HOLDED = "Holded", "Holded"- HOSTAWAY = "Hostaway", "Hostaway"- HOUSECALLPRO = "HousecallPro", "HousecallPro"- HUMANITEC = "Humanitec", "Humanitec"- IMFDATA = "ImfData", "ImfData"- IMPERVA = "Imperva", "Imperva"- INFLUXDBCLOUD = "InfluxdbCloud", "InfluxdbCloud"- IYZICO = "Iyzico", "Iyzico"- JOBTREAD = "Jobtread", "Jobtread"- KAMELEOON = "Kameleoon", "Kameleoon"- KAUFLANDMARKETPLACE = "KauflandMarketplace", "KauflandMarketplace"- KESTRA = "Kestra", "Kestra"- KICK = "Kick", "Kick"- KINDE = "Kinde", "Kinde"- KION = "Kion", "Kion"- KNOWBE4 = "Knowbe4", "Knowbe4"- KOMODOR = "Komodor", "Komodor"- LABELBOX = "Labelbox", "Labelbox"- LAWMATICS = "Lawmatics", "Lawmatics"- LEARNWORLDS = "Learnworlds", "Learnworlds"- LEXWAREOFFICE = "LexwareOffice", "LexwareOffice"- LIGHTDASH = "Lightdash", "Lightdash"- LODGIFY = "Lodgify", "Lodgify"- LOGICMONITOR = "Logicmonitor", "Logicmonitor"- LOGROCKET = "Logrocket", "Logrocket"- LOOPRETURNS = "LoopReturns", "LoopReturns"- MASTODON = "Mastodon", "Mastodon"- MEETUP = "Meetup", "Meetup"- MEMBERFUL = "Memberful", "Memberful"- MERCADOPAGO = "MercadoPago", "MercadoPago"- METEOSTAT = "Meteostat", "Meteostat"- MEWS = "Mews", "Mews"- MEZMO = "Mezmo", "Mezmo"- MICROSOFT365USAGEREPORTS = "Microsoft365UsageReports", "Microsoft365UsageReports"- MICROSOFTADVERTISING = "MicrosoftAdvertising", "MicrosoftAdvertising"- MICROSOFTCLARITY = "MicrosoftClarity", "MicrosoftClarity"- MICROSOFTDEFENDERCLOUDAPPS = "MicrosoftDefenderCloudApps", "MicrosoftDefenderCloudApps"- MICROSOFTDEFENDERENDPOINT = "MicrosoftDefenderEndpoint", "MicrosoftDefenderEndpoint"- MICROSOFTDEFENDERFORCLOUD = "MicrosoftDefenderForCloud", "MicrosoftDefenderForCloud"- MICROSOFTINTUNE = "MicrosoftIntune", "MicrosoftIntune"- MICROSOFTPURVIEW = "MicrosoftPurview", "MicrosoftPurview"- MICROSOFTPURVIEWAUDIT = "MicrosoftPurviewAudit", "MicrosoftPurviewAudit"- MICROSOFTSENTINEL = "MicrosoftSentinel", "MicrosoftSentinel"- MICROSOFTTEAMSCALLRECORDS = "MicrosoftTeamsCallRecords", "MicrosoftTeamsCallRecords"- MIDTRANS = "Midtrans", "Midtrans"- MIGHTYNETWORKS = "MightyNetworks", "MightyNetworks"- MINDBODY = "Mindbody", "Mindbody"- MIRAKL = "Mirakl", "Mirakl"- MOESIF = "Moesif", "Moesif"- MONEYBIRD = "Moneybird", "Moneybird"- MOODLE = "Moodle", "Moodle"- MOTHERDUCK = "Motherduck", "Motherduck"- MYCASE = "Mycase", "Mycase"- NAGERDATE = "NagerDate", "NagerDate"- NEONCRM = "NeonCrm", "NeonCrm"- NEXHEALTH = "Nexhealth", "Nexhealth"- NOAACDO = "NoaaCdo", "NoaaCdo"- NOBL9 = "Nobl9", "Nobl9"- NOLT = "Nolt", "Nolt"- NOPS = "Nops", "Nops"- NPMREGISTRY = "NpmRegistry", "NpmRegistry"- OECD = "Oecd", "Oecd"- OKENDO = "Okendo", "Okendo"- OMNI = "Omni", "Omni"- ONELOGIN = "Onelogin", "Onelogin"- OPENDENTAL = "OpenDental", "OpenDental"- OPENMETEO = "OpenMeteo", "OpenMeteo"- OPENALEX = "Openalex", "Openalex"- OPENCORPORATES = "Opencorporates", "Opencorporates"- OPENFEC = "Openfec", "Openfec"- OPNPAYMENTS = "OpnPayments", "OpnPayments"- OPSLEVEL = "Opslevel", "Opslevel"- OTTOMARKET = "OttoMarket", "OttoMarket"- OWNERREZ = "Ownerrez", "Ownerrez"- PAGBANK = "Pagbank", "Pagbank"- PATREON = "Patreon", "Patreon"- PAX8 = "Pax8", "Pax8"- PAYCHEX = "Paychex", "Paychex"- PAYMOB = "Paymob", "Paymob"- PAYMONGO = "Paymongo", "Paymongo"- PHONEPE = "Phonepe", "Phonepe"- PIKE13 = "Pike13", "Pike13"- PINGONE = "Pingone", "Pingone"- PINTERESTORGANIC = "PinterestOrganic", "PinterestOrganic"- PLANNINGCENTER = "PlanningCenter", "PlanningCenter"- PLURALSIGHTFLOW = "PluralsightFlow", "PluralsightFlow"- PODBEAN = "Podbean", "Podbean"- POSTSCRIPT = "Postscript", "Postscript"- POWERBIADMIN = "PowerBiAdmin", "PowerBiAdmin"- PRACTICEPANTHER = "Practicepanther", "Practicepanther"- PRESET = "Preset", "Preset"- PROCORE = "Procore", "Procore"- PRODUCTIV = "Productiv", "Productiv"- PROOFPOINTTAP = "ProofpointTap", "ProofpointTap"- PROPERTYWARE = "Propertyware", "Propertyware"- PUBNUB = "Pubnub", "Pubnub"- QUAY = "Quay", "Quay"- RAKEN = "Raken", "Raken"- REDPANDACLOUD = "RedpandaCloud", "RedpandaCloud"- RENTMANAGER = "RentManager", "RentManager"- REVERB = "Reverb", "Reverb"- ROCKETMATTER = "RocketMatter", "RocketMatter"- RUBYGEMS = "Rubygems", "Rubygems"- SCALR = "Scalr", "Scalr"- SECEDGAR = "SecEdgar", "SecEdgar"- SELECTSTAR = "SelectStar", "SelectStar"- SEMANTICSCHOLAR = "SemanticScholar", "SemanticScholar"- SEMRUSH = "Semrush", "Semrush"- SERVICEFUSION = "ServiceFusion", "ServiceFusion"- SERVICEM8 = "Servicem8", "Servicem8"- SERVICETITAN = "Servicetitan", "Servicetitan"- SERVICETRADE = "Servicetrade", "Servicetrade"- SEVDESK = "Sevdesk", "Sevdesk"- SIMILARWEB = "Similarweb", "Similarweb"- SIMPRO = "Simpro", "Simpro"- SINCH = "Sinch", "Sinch"- SINGLESTORE = "Singlestore", "Singlestore"- SITE24X7 = "Site24x7", "Site24x7"- SLEUTH = "Sleuth", "Sleuth"- SMARTLOOK = "Smartlook", "Smartlook"- SMARTRECRUITERS = "Smartrecruiters", "Smartrecruiters"- SMOKEBALL = "Smokeball", "Smokeball"- SODACLOUD = "SodaCloud", "SodaCloud"- SPEEDCURVE = "Speedcurve", "Speedcurve"- SPOTIO = "SpotIo", "SpotIo"- SPRIG = "Sprig", "Sprig"- SPRINKLR = "Sprinklr", "Sprinklr"- SPROUTSOCIAL = "SproutSocial", "SproutSocial"- STACKOVERFLOWFORTEAMS = "StackOverflowForTeams", "StackOverflowForTeams"- STOCKX = "Stockx", "Stockx"- TACKLEIO = "TackleIo", "TackleIo"- TALKDESK = "Talkdesk", "Talkdesk"- TEAMUPFITNESS = "TeamupFitness", "TeamupFitness"- TEBRA = "Tebra", "Tebra"- TELNYX = "Telnyx", "Telnyx"- TERNARY = "Ternary", "Ternary"- THOUGHTSPOT = "Thoughtspot", "Thoughtspot"- THOUSANDEYES = "Thousandeyes", "Thousandeyes"- THREADS = "Threads", "Threads"- TIKTOKSHOP = "TiktokShop", "TiktokShop"- TINYERP = "TinyErp", "TinyErp"- TINYBIRD = "Tinybird", "Tinybird"- TIPALTI = "Tipalti", "Tipalti"- TOAST = "Toast", "Toast"- TORII = "Torii", "Torii"- TRANSISTOR = "Transistor", "Transistor"- TRUNKIO = "TrunkIo", "TrunkIo"- TRUSTRADIUS = "Trustradius", "Trustradius"- TWITCH = "Twitch", "Twitch"- TWOC2P = "TwoC2p", "TwoC2p"- UKCOMPANIESHOUSE = "UkCompaniesHouse", "UkCompaniesHouse"- UKONS = "UkOns", "UkOns"- UNCOMTRADE = "UnComtrade", "UnComtrade"- USBEA = "UsBea", "UsBea"- USBLS = "UsBls", "UsBls"- USEIA = "UsEia", "UsEia"- USTREASURYFISCALDATA = "UsTreasuryFiscalData", "UsTreasuryFiscalData"- VANTA = "Vanta", "Vanta"- VENDR = "Vendr", "Vendr"- VIRTUOUS = "Virtuous", "Virtuous"- VONAGE = "Vonage", "Vonage"- WALMARTMARKETPLACE = "WalmartMarketplace", "WalmartMarketplace"- WAYDEV = "Waydev", "Waydev"- WAYFAIR = "Wayfair", "Wayfair"- WHATSAPPBUSINESSMANAGEMENT = "WhatsappBusinessManagement", "WhatsappBusinessManagement"- WHOGHO = "WhoGho", "WhoGho"- WHOP = "Whop", "Whop"- WIZ = "Wiz", "Wiz"- WOMPI = "Wompi", "Wompi"- WORKIZ = "Workiz", "Workiz"- WORLDBANK = "WorldBank", "WorldBank"- XENDIT = "Xendit", "Xendit"- YOCO = "Yoco", "Yoco"- ZALANDOZDIRECT = "ZalandoZdirect", "ZalandoZdirect"- ZLURI = "Zluri", "Zluri"- ZYLO = "Zylo", "Zylo"- TALLY = "Tally", "Tally"- NUNTLY = "Nuntly", "Nuntly"- VTURB = "Vturb", "Vturb"- MELTWATER = "Meltwater", "Meltwater"- USERCOM = "UserCom", "UserCom"- LATITUDE = "Latitude", "Latitude"- WORKATO = "Workato", "Workato"- SIDESHIFT = "SideShift", "SideShift"- DUCKLAKE = "DuckLake", "DuckLake"- STARBURST = "Starburst", "Starburst"- EASYBILL = "Easybill", "Easybill"- BEXIO = "Bexio", "Bexio"- UMAMI = "Umami", "Umami"- MANYCHAT = "Manychat", "Manychat"- KICKSTARTER = "Kickstarter", "Kickstarter"- TYPESENSE = "Typesense", "Typesense"- FIRSTPROMOTER = "FirstPromoter", "FirstPromoter"- ZERO = "Zero", "Zero"- INTH = "Inth", "Inth"- BCMS = "BCMS", "BCMS"- CONVONITE = "Convonite", "Convonite"- HOOKDECK = "Hookdeck", "Hookdeck"- BILLIT = "Billit", "Billit"- MOXIE = "Moxie", "Moxie"- TRIPLEWHALE = "TripleWhale", "TripleWhale"- DIRECTUS = "Directus", "Directus"- CLAY = "Clay", "Clay"- TRADABLEBITS = "TradableBits", "TradableBits"- SWAN = "Swan", "Swan"- HYROS = "Hyros", "Hyros"- ODOO = "Odoo", "Odoo"- AIRBRIDGE = "Airbridge", "Airbridge"- SNOVIO = "Snovio", "Snovio"- GOOGLEMERCHANTCENTER = "GoogleMerchantCenter", "GoogleMerchantCenter"- RAISELY = "Raisely", "Raisely"- RAKUTENADVERTISING = "RakutenAdvertising", "RakutenAdvertising"- ZITADEL = "Zitadel", "Zitadel"- DEELFLOWS = "DeelFlows", "DeelFlows"- WINDSORAI = "WindsorAi", "WindsorAi"- WIX = "Wix", "Wix"- SEVALLA = "Sevalla", "Sevalla"- MOTION = "Motion", "Motion"- IMPACTPARTNER = "ImpactPartner", "ImpactPartner"- CLOUDINARY = "Cloudinary", "Cloudinary"- UPLOADCARE = "Uploadcare", "Uploadcare"- WHMCS = "WHMCS", "WHMCS"- MSG91 = "MSG91", "MSG91"- DEPOT = "Depot", "Depot"- SCHEMATIC = "Schematic", "Schematic"- DOKPLOY = "Dokploy", "Dokploy"- HOOTSUITE = "Hootsuite", "Hootsuite"- WISPRFLOW = "WisprFlow", "WisprFlow"---# Maps a source type to the direct-SQL engine that can query it live. A source type is only-# direct-query-capable if it appears here AND has an adapter registered in posthog/hogql/direct_sql.-# Adding an engine = one entry here + one adapter module + one registry call.-DIRECT_ENGINE_BY_SOURCE_TYPE: dict[str, str] = {- ExternalDataSourceType.POSTGRES: "postgres",- ExternalDataSourceType.MYSQL: "mysql",- ExternalDataSourceType.SNOWFLAKE: "snowflake",- ExternalDataSourceType.REDSHIFT: "redshift",- ExternalDataSourceType.CLICKHOUSE: "clickhouse",- ExternalDataSourceType.CLICKHOUSECLOUD: "clickhouse",- ExternalDataSourceType.MOTHERDUCK: "motherduck",-}---class DataWarehouseManagedViewSetKind(models.TextChoices):- REVENUE_ANALYTICS = "revenue_analytics", "Revenue Analytics"- ENGINEERING_ANALYTICS = "engineering_analytics", "Engineering Analytics"+"""Product-internal re-export of the shared type surface, which lives in the facade+(``facade/types.py``) so contract-check inputs always watch it."""++from products.warehouse_sources.backend.facade.types import (+ DIRECT_ENGINE_BY_SOURCE_TYPE as DIRECT_ENGINE_BY_SOURCE_TYPE,+ DataWarehouseManagedViewSetKind as DataWarehouseManagedViewSetKind,+ ExternalDataSourceType as ExternalDataSourceType,+ IncrementalField as IncrementalField,+ IncrementalFieldType as IncrementalFieldType,+ ManagedWarehouseSQLMode as ManagedWarehouseSQLMode,+ PartitionSettings as PartitionSettings,+)diff --git a/products/warehouse_sources/turbo.json b/products/warehouse_sources/turbo.jsonnew file mode 100644index 000000000000..8bc50b5287f6--- /dev/null+++ b/products/warehouse_sources/turbo.json@@ -0,0 +1,42 @@+{+ "extends": ["//"],+ "tasks": {+ "backend:contract-check": {+ "inputs": [+ "backend/facade/**",+ "backend/presentation/**",+ "backend/routes.py",+ "backend/models/**",+ "backend/migrations/**",+ "backend/tasks/**",+ "backend/temporal/data_imports/naming_convention.py",+ "backend/temporal/data_imports/pipelines/core/consts.py",+ "backend/temporal/data_imports/sources/generated_configs/**",+ "backend/temporal/data_imports/sources/clickhouse/**",+ "backend/temporal/data_imports/sources/common/**",+ "backend/temporal/data_imports/sources/google_search_console/**",+ "backend/temporal/data_imports/sources/motherduck/**",+ "backend/temporal/data_imports/sources/mysql/**",+ "backend/temporal/data_imports/sources/postgres/**",+ "backend/temporal/data_imports/sources/redshift/**",+ "backend/temporal/data_imports/sources/salesforce/**",+ "backend/temporal/data_imports/sources/snowflake/**",+ "backend/temporal/data_imports/sources/stripe/**",+ "!backend/temporal/data_imports/sources/common/rest_source/**",+ "!backend/temporal/data_imports/sources/common/test/**",+ "!backend/temporal/data_imports/sources/common/sql/tests/**",+ "!backend/temporal/data_imports/sources/google_search_console/tests/**",+ "!backend/temporal/data_imports/sources/motherduck/tests/**",+ "!backend/temporal/data_imports/sources/mysql/tests/**",+ "!backend/temporal/data_imports/sources/postgres/cdc/tests/**",+ "!backend/temporal/data_imports/sources/postgres/test_postgres.py",+ "!backend/temporal/data_imports/sources/redshift/tests/**",+ "!backend/temporal/data_imports/sources/salesforce/test/**",+ "!backend/temporal/data_imports/sources/snowflake/tests/**",+ "!backend/temporal/data_imports/sources/stripe/tests/**"+ ],+ "outputs": [],+ "cache": true+ }+ }+}diff --git a/pyproject.toml b/pyproject.tomlindex f9d286b5e187..3213ed1d7a68 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -620,6 +620,37 @@ ignore_imports = ["products.notebooks.backend.presentation.views.notebook -> products.notebooks.backend.sql_v2_state","products.notebooks.backend.presentation.views.notebook -> products.notebooks.backend.temporal.client","products.notebooks.backend.presentation.views.notebook -> products.notebooks.backend.temporal.sql_v2",+ # TODO: experiments presentation wave — these were invisible to import-linter until+ # backend/presentation/ got its package marker, so they are newly surfaced debt, not new+ # coupling. experiments is not isolated, so nothing was being skipped on their account.+ "products.experiments.backend.presentation.serializers -> products.ai_observability.backend.models.llm_prompt",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.experiment_service",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.facade",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.hogql_queries.experiment_metric_fingerprint",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.hogql_queries.exposure_query_logic",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.hogql_queries.utils",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.llm_metric_templates",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.metric_events",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.metric_utils",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.models.experiment",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.running_time_calculator",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.session_buckets",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.session_context",+ "products.experiments.backend.presentation.serializers -> products.experiments.backend.session_event_deltas",+ "products.experiments.backend.presentation.serializers -> products.feature_flags.backend.api.feature_flag",+ "products.experiments.backend.presentation.serializers -> products.feature_flags.backend.models.feature_flag",+ "products.experiments.backend.presentation.views -> products.approvals.backend.mixins",+ "products.experiments.backend.presentation.views -> products.experiments.backend.experiment_service",+ "products.experiments.backend.presentation.views -> products.experiments.backend.llm_metric_templates",+ "products.experiments.backend.presentation.views -> products.experiments.backend.models.experiment",+ "products.experiments.backend.presentation.views -> products.experiments.backend.recalculation",+ "products.experiments.backend.presentation.views -> products.experiments.backend.running_time_calculator",+ "products.experiments.backend.presentation.views -> products.experiments.backend.session_buckets",+ "products.experiments.backend.presentation.views -> products.experiments.backend.session_context",+ "products.experiments.backend.presentation.views -> products.experiments.backend.session_event_deltas",+ "products.experiments.backend.presentation.views -> products.experiments.backend.temporal.models",+ "products.experiments.backend.presentation.views -> products.feature_flags.backend.models.evaluation_context",+ "products.experiments.backend.presentation.views -> products.feature_flags.backend.models.feature_flag",# TODO: data_warehouse presentation wave — the structural move landed the viewsets under# presentation/views/ but they still reach in-product internals and sibling products# (warehouse_sources, data_modeling, data_tools, cdp, revenue_analytics, batch_exports)diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex a35f4078836b..3a9317a8f05c 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -25435,26 +25435,13 @@ export namespace Schemas {export interface DigestChannel {readonly id: string;- /**- * Opaque digest bucket this channel receives, e.g. 'repo:PostHog/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone.- * @maxLength 255- */+ /** Opaque digest bucket this channel receives, e.g. 'repo:PostHog/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone. */audience_key: string;- /**- * ID of the team's Slack integration used to post the digest.- * @minimum -2147483648- * @maximum 2147483647- */+ /** ID of the team's Slack integration used to post the digest. */slack_integration_id: number;- /**- * Slack channel ID to post the digest to, e.g. 'C012AB3CD'.- * @maxLength 64- */+ /** Slack channel ID to post the digest to, e.g. 'C012AB3CD'. */slack_channel_id: string;- /**- * Human-readable Slack channel name, for display only.- * @maxLength 255- */+ /** Human-readable Slack channel name, for display only. */slack_channel_name?: string;/** How this row was created: 'manual' (via this API), 'slack_name_match' (auto-provisioned because the workspace has a channel named exactly like the audience_key), 'stamphog_config' (auto-provisioned from the channel the repo declared under 'digest:' in .stamphog/policy.yml), or 'owners_contact' (reserved for the future owners.yaml contact.slack step, not implemented yet).*@@ -25464,13 +25451,32 @@ export namespace Schemas {* * `owners_contact` - OWNERS_CONTACT */readonly resolution_source: ResolutionSourceEnum;/** Whether this channel is included in the daily digest fan-out. */- enabled?: boolean;- /** @nullable */+ enabled: boolean;+ /**+ * When a digest was last posted to this channel.+ * @nullable+ */readonly last_digest_at: string | null;readonly created_at: string;readonly updated_at: string;}+ /**+ * Input shape for creating/updating a digest channel (see the repo-config write serializer).+ */+ export interface DigestChannelWrite {+ /** Opaque digest bucket this channel receives, e.g. 'repo:PostHog/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone. */+ audience_key: string;+ /** ID of the team's Slack integration used to post the digest. */+ slack_integration_id: number;+ /** Slack channel ID to post the digest to, e.g. 'C012AB3CD'. */+ slack_channel_id: string;+ /** Human-readable Slack channel name, for display only. */+ slack_channel_name?: string;+ /** Whether this channel is included in the daily digest fan-out. */+ enabled?: boolean;+ }+/*** * `pending` - PENDING* * `completed` - COMPLETED@@ -51345,7 +51351,7 @@ export namespace Schemas {** The raw ``output`` blob also holds the reviewer's stdout, the full PR payload, changed-file patches,* and default-branch policy file contents — repository content a project member without repo access- * must never read over the API. Only these derived, content-free fields are exposed.+ * must never read. Only these derived, content-free fields are exposed.*/export interface _ReviewOutputSummary {/** Version of the stamphog engine that produced this review, if it reported one. */@@ -52402,18 +52408,12 @@ export namespace Schemas {export interface StamphogRepoConfig {readonly id: string;- /**- * SCM provider this config talks to. Defaults to 'github'.- * @maxLength 32- */+ /** SCM provider this config talks to. Defaults to 'github'. */provider?: string;- /**- * Repository full name, e.g. 'PostHog/posthog'.- * @maxLength 255- */+ /** Repository full name, e.g. 'PostHog/posthog'. */repository: string;/** Whether stamphog actively reviews pull requests for this repo. */- enabled?: boolean;+ enabled: boolean;/** Provider app installation ID that authorizes API calls for this repo. Set only by the verified sync_installation flow; ignored on direct writes. */readonly installation_id: string;/** Whether merged PRs on this repo are captured for the daily Slack digest. Requires 'enabled', since the digest reports what stamphog approved. */@@ -52422,11 +52422,8 @@ export namespace Schemas {** * `all` - all* * `label` - label */- review_mode?: ReviewModeEnum;- /**- * Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'.- * @maxLength 100- */+ readonly review_mode: ReviewModeEnum;+ /** Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'. */trigger_label?: string;readonly created_at: string;readonly updated_at: string;@@ -56315,26 +56312,13 @@ export namespace Schemas {export interface PatchedDigestChannel {readonly id?: string;- /**- * Opaque digest bucket this channel receives, e.g. 'repo:PostHog/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone.- * @maxLength 255- */+ /** Opaque digest bucket this channel receives, e.g. 'repo:PostHog/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone. */audience_key?: string;- /**- * ID of the team's Slack integration used to post the digest.- * @minimum -2147483648- * @maximum 2147483647- */+ /** ID of the team's Slack integration used to post the digest. */slack_integration_id?: number;- /**- * Slack channel ID to post the digest to, e.g. 'C012AB3CD'.- * @maxLength 64- */+ /** Slack channel ID to post the digest to, e.g. 'C012AB3CD'. */slack_channel_id?: string;- /**- * Human-readable Slack channel name, for display only.- * @maxLength 255- */+ /** Human-readable Slack channel name, for display only. */slack_channel_name?: string;/** How this row was created: 'manual' (via this API), 'slack_name_match' (auto-provisioned because the workspace has a channel named exactly like the audience_key), 'stamphog_config' (auto-provisioned from the channel the repo declared under 'digest:' in .stamphog/policy.yml), or 'owners_contact' (reserved for the future owners.yaml contact.slack step, not implemented yet).*@@ -56345,7 +56329,10 @@ export namespace Schemas {readonly resolution_source?: ResolutionSourceEnum;/** Whether this channel is included in the daily digest fan-out. */enabled?: boolean;- /** @nullable */+ /**+ * When a digest was last posted to this channel.+ * @nullable+ */readonly last_digest_at?: string | null;readonly created_at?: string;readonly updated_at?: string;@@ -61024,36 +61011,34 @@ export namespace Schemas {readonly status?: string | null;}- export interface PatchedStamphogRepoConfig {- readonly id?: string;- /**- * SCM provider this config talks to. Defaults to 'github'.- * @maxLength 32- */+ /**+ * Input shape for creating/updating a repo config.+ *+ * Separate from the read serializer because the contract is an output shape: it carries a+ * required id, which a create request has no way to supply. Same split as visual_review's+ * input serializers.+ *+ * installation_id is deliberately absent: it may only ever be set by the verified+ * sync_installation flow, which proves the caller owns the installation before binding it. A+ * client-supplied value on this path is ignored, so a manually created config carries no+ * installation and simply won't resolve webhooks until synced.+ */+ export interface PatchedStamphogRepoConfigWrite {+ /** SCM provider this config talks to. Defaults to 'github'. */provider?: string;- /**- * Repository full name, e.g. 'PostHog/posthog'.- * @maxLength 255- */+ /** Repository full name, e.g. 'PostHog/posthog'. */repository?: string;/** Whether stamphog actively reviews pull requests for this repo. */enabled?: boolean;- /** Provider app installation ID that authorizes API calls for this repo. Set only by the verified sync_installation flow; ignored on direct writes. */- readonly installation_id?: string;- /** Whether merged PRs on this repo are captured for the daily Slack digest. Requires 'enabled', since the digest reports what stamphog approved. */+ /** Whether merged PRs on this repo are captured for the daily Slack digest. */digest_enabled?: boolean;/** When reviews run: 'all' reviews every pull request (the default); 'label' reviews only pull requests carrying the trigger label, mirroring the Action's opt-in flow.** * `all` - all* * `label` - label */review_mode?: ReviewModeEnum;- /**- * Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'.- * @maxLength 100- */+ /** Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'. */trigger_label?: string;- readonly created_at?: string;- readonly updated_at?: string;}/**@@ -76452,6 +76437,36 @@ export namespace Schemas {readonly authorize_url: string;}+ /**+ * Input shape for creating/updating a repo config.+ *+ * Separate from the read serializer because the contract is an output shape: it carries a+ * required id, which a create request has no way to supply. Same split as visual_review's+ * input serializers.+ *+ * installation_id is deliberately absent: it may only ever be set by the verified+ * sync_installation flow, which proves the caller owns the installation before binding it. A+ * client-supplied value on this path is ignored, so a manually created config carries no+ * installation and simply won't resolve webhooks until synced.+ */+ export interface StamphogRepoConfigWrite {+ /** SCM provider this config talks to. Defaults to 'github'. */+ provider?: string;+ /** Repository full name, e.g. 'PostHog/posthog'. */+ repository: string;+ /** Whether stamphog actively reviews pull requests for this repo. */+ enabled?: boolean;+ /** Whether merged PRs on this repo are captured for the daily Slack digest. */+ digest_enabled?: boolean;+ /** When reviews run: 'all' reviews every pull request (the default); 'label' reviews only pull requests carrying the trigger label, mirroring the Action's opt-in flow.+ *+ * * `all` - all+ * * `label` - label */+ review_mode?: ReviewModeEnum;+ /** Pull request label that triggers a review when review_mode is 'label'. Defaults to 'stamphog'. */+ trigger_label?: string;+ }+/*** Request body for binding a GitHub App installation to the current team.*diff --git a/services/mcp/src/generated/stamphog/api.ts b/services/mcp/src/generated/stamphog/api.tsindex 25a6c7a0bc74..d793fba13487 100644--- a/services/mcp/src/generated/stamphog/api.ts+++ b/services/mcp/src/generated/stamphog/api.ts@@ -35,44 +35,25 @@ export const StamphogDigestChannelsCreateParams = /* @__PURE__ */ zod.object({),})-export const stamphogDigestChannelsCreateBodyAudienceKeyMax = 255--export const stamphogDigestChannelsCreateBodySlackIntegrationIdMin = -2147483648-export const stamphogDigestChannelsCreateBodySlackIntegrationIdMax = 2147483647--export const stamphogDigestChannelsCreateBodySlackChannelIdMax = 64--export const stamphogDigestChannelsCreateBodySlackChannelNameMax = 255--export const StamphogDigestChannelsCreateBody = /* @__PURE__ */ zod.object({- audience_key: zod- .string()- .max(stamphogDigestChannelsCreateBodyAudienceKeyMax)- .describe(- "Opaque digest bucket this channel receives, e.g. 'repo:PostHog\/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone."- ),- slack_integration_id: zod- .number()- .min(stamphogDigestChannelsCreateBodySlackIntegrationIdMin)- .max(stamphogDigestChannelsCreateBodySlackIntegrationIdMax)- .describe("ID of the team's Slack integration used to post the digest."),- slack_channel_id: zod- .string()- .max(stamphogDigestChannelsCreateBodySlackChannelIdMax)- .describe("Slack channel ID to post the digest to, e.g. 'C012AB3CD'."),- slack_channel_name: zod- .string()- .max(stamphogDigestChannelsCreateBodySlackChannelNameMax)- .optional()- .describe('Human-readable Slack channel name, for display only.'),- enabled: zod.boolean().optional().describe('Whether this channel is included in the daily digest fan-out.'),-})+export const StamphogDigestChannelsCreateBody = /* @__PURE__ */ zod+ .object({+ audience_key: zod+ .string()+ .describe(+ "Opaque digest bucket this channel receives, e.g. 'repo:PostHog\/posthog'. Immutable after creation — it anchors the audience and its opt-out tombstone."+ ),+ slack_integration_id: zod.number().describe("ID of the team's Slack integration used to post the digest."),+ slack_channel_id: zod.string().describe("Slack channel ID to post the digest to, e.g. 'C012AB3CD'."),+ slack_channel_name: zod.string().optional().describe('Human-readable Slack channel name, for display only.'),+ enabled: zod.boolean().optional().describe('Whether this channel is included in the daily digest fan-out.'),+ })+ .describe('Input shape for creating\/updating a digest channel (see the repo-config write serializer).')/*** Per-audience Slack destinations for the daily merged-PR digest.*/export const StamphogDigestChannelsDestroyParams = /* @__PURE__ */ zod.object({- id: zod.string().describe('A UUID string identifying this digest channel.'),+ id: zod.string(),project_id: zod.string().describe(@@ -122,7 +103,7 @@ export const StamphogPullRequestsListQueryParams = /* @__PURE__ */ zod.object({* Read-only pull requests stamphog knows about, filterable by PR number and merge state.*/export const StamphogPullRequestsRetrieveParams = /* @__PURE__ */ zod.object({- id: zod.string().describe('A UUID string identifying this pull request.'),+ id: zod.string(),project_id: zod.string().describe(@@ -150,7 +131,7 @@ export const StamphogRepoConfigsListQueryParams = /* @__PURE__ */ zod.object({* Per-repo stamphog settings — enable/disable review, GitHub App installation, policy overrides.*/export const StamphogRepoConfigsRetrieveParams = /* @__PURE__ */ zod.object({- id: zod.string().describe('A UUID string identifying this stamphog repo config.'),+ id: zod.string(),project_id: zod.string().describe(@@ -162,7 +143,7 @@ export const StamphogRepoConfigsRetrieveParams = /* @__PURE__ */ zod.object({* Per-repo stamphog settings — enable/disable review, GitHub App installation, policy overrides.*/export const StamphogRepoConfigsDestroyParams = /* @__PURE__ */ zod.object({- id: zod.string().describe('A UUID string identifying this stamphog repo config.'),+ id: zod.string(),project_id: zod.string().describe(@@ -193,7 +174,7 @@ export const StamphogReviewRunsListQueryParams = /* @__PURE__ */ zod.object({* Read-only history of stamphog review runs, filterable by repository, PR number, and status.*/export const StamphogReviewRunsRetrieveParams = /* @__PURE__ */ zod.object({- id: zod.string().describe('A UUID string identifying this review run.'),+ id: zod.string(),project_id: zod.string().describe(diff --git a/tools/hogli-commands/hogli_commands/product/checks.py b/tools/hogli-commands/hogli_commands/product/checks.pyindex 68d3a7e40e33..941b96e35ba4 100644--- a/tools/hogli-commands/hogli_commands/product/checks.py+++ b/tools/hogli-commands/hogli_commands/product/checks.py@@ -313,6 +313,57 @@ class RequiredRootFilesCheck(ProductCheck):return CheckResult(lines=["✓ ok"])+class BackendPackageMarkerCheck(ProductCheck):+ """backend/ needs an __init__.py or every import contract silently skips the product.++ import-linter builds its graph from `products`, which is a regular package (it carries an+ __init__.py so file-based mypy resolves `products.<name>.backend` rather than `<name>.backend`).+ grimp does not descend from a regular package into PEP 420 namespace sub-directories, so a+ backend without the marker is absent from the graph entirely — and a contract that never sees a+ module reports success for it. The failure is silent in both directions: nothing warns, and the+ contract passes.+ """++ label = "backend package marker"++ # Only the paths import contracts actually target. Test directories and generated trees+ # (warehouse_sources' per-source connectors) are namespace dirs on purpose and stay that way.+ CONTRACT_TREES = ("facade", "presentation")++ def should_run(self, ctx: CheckContext) -> bool:+ return ctx.backend_dir.is_dir()++ def _missing_markers(self, ctx: CheckContext) -> list[str]:+ missing = []+ if not (ctx.backend_dir / "__init__.py").exists():+ missing.append("backend/")+ for tree in self.CONTRACT_TREES:+ root = ctx.backend_dir / tree+ if not root.is_dir():+ continue+ for directory in sorted(d for d in root.rglob("*") if d.is_dir()):+ if directory.name == "__pycache__" or not any(directory.glob("*.py")):+ continue+ if not (directory / "__init__.py").exists():+ missing.append(f"backend/{directory.relative_to(ctx.backend_dir)}/")+ if not (root / "__init__.py").exists():+ missing.append(f"backend/{tree}/")+ return sorted(set(missing))++ def run(self, ctx: CheckContext) -> CheckResult:+ missing = self._missing_markers(ctx)+ if not missing:+ return CheckResult(lines=["✓ ok"])+ return CheckResult(+ lines=[f"✗ missing __init__.py: {', '.join(missing)}"],+ issues=[+ f"missing __init__.py in {', '.join(missing)} — grimp stops descending at the first "+ "directory without one, so import-linter cannot see what is below it and every "+ "contract passes there vacuously. Add the marker (empty, like every other product's)"+ ],+ )++def _has_test_files(backend_dir: Path) -> bool:"""Check if backend/ contains any pytest-discoverable test files."""return any(backend_dir.rglob("test_*.py")) or any(backend_dir.rglob("*_test.py"))@@ -698,10 +749,23 @@ class IsolationChainCheck(ProductCheck):# a leak there is guidance, not breakage. Once narrowed, the same leak means core can reach an# unsanctioned class the suite may not re-test — a hard error. See products/architecture.md# § Wiring couplings.- if facade_violations:- detail = "; ".join(- f"{v.class_name} (from {v.source_path}, via facade/{v.facade_module})" for v in facade_violations+ def format_facade_imports(imports) -> str:+ return "; ".join(f"{v.class_name} (from {v.source_path}, via facade/{v.facade_module})" for v in imports)++ def format_crossings_by_class(imports) -> str:+ # the allowance is keyed per class, so report one entry per class even when several+ # facade modules re-export it — otherwise the count reads higher than the sanctioned list+ by_class: dict[str, tuple[str, list[str]]] = {}+ for v in imports:+ _, modules = by_class.setdefault(v.class_name, (v.source_path, []))+ modules.append(f"facade/{v.facade_module}")+ return "; ".join(+ f"{name} (from {source_path}, via {', '.join(sorted(modules))})"+ for name, (source_path, modules) in sorted(by_class.items()))++ if facade_violations:+ detail = format_facade_imports(facade_violations)remedies = ("move it to a garage (backend/hogql_queries/, backend/max_tools.py, backend/temporal/, ""backend/tasks.py) if it implements a core-owned base; move it to facade/contracts.py "@@ -717,6 +781,27 @@ class IsolationChainCheck(ProductCheck):f"inert while un-narrowed, but narrowing is blocked until this is fixed — {remedies}")+ # The watched-models allowance (MODEL_CROSSINGS). Crossing model classes are+ # sanctioned interim debt, so they never block narrowing — but the debt stays visible as a+ # standing warning, and a narrowed product must keep the whole model surface watched or the+ # skip is unsound (a model or migration change core observes would run no Django suite).+ if status.model_crossings:+ crossing_detail = format_crossings_by_class(status.model_crossings)+ result.warnings.append(+ f"facade hands out Django model class(es) under the watched-models allowance: {crossing_detail}. "+ "Sanctioned interim debt (products/architecture.md § Wiring couplings) — the model surface stays "+ "in the contract-check inputs so the skip is sound; convert crossings to facade contracts to "+ "retire the allowance entry"+ )+ if has_narrowed and status.uncovered_model_surface:+ surface_globs = ", ".join(location_input_glob(p) for p in status.uncovered_model_surface)+ result.issues.append(+ "turbo.json narrows contract-check inputs but omits the watched-models surface "+ f"{', '.join(status.uncovered_model_surface)} — the facade hands out model classes under the "+ f"watched-models allowance, so a change there would skip the Django suite. Add the matching "+ f"input(s) ({surface_globs})"+ )+# Earned but not turned on: a fully sealed, eligible product that already carries# 'backend:contract-check' (real facade, tach interface, no legacy leaks, presentation# wave emptied). Without a turbo.json narrowing its inputs to facade/presentation, that@@ -823,7 +908,9 @@ class IsolationChainCheck(ProductCheck):# fixed, so it wins; the co-firing mismatch issues still print in the lint output.# An unqualified permanent exposure is a defect in the tach.toml marker itself, so point# there; it takes precedence because it's the most fundamental of these issues.- turbo_omission = has_narrowed and (status.unwatched_garages or status.uncovered_carveout_modules)+ turbo_omission = has_narrowed and (+ status.unwatched_garages or status.uncovered_carveout_modules or status.uncovered_model_surface+ )if status.unqualified_permanent_exposures:result.file = "tach.toml"elif needs_turn_on or routes_unwatched or turbo_omission:@@ -1050,6 +1137,7 @@ class OrphanedTestFilesCheck(ProductCheck):CHECKS: list[ProductCheck] = [ProductYamlCheck(),RequiredRootFilesCheck(),+ BackendPackageMarkerCheck(),PackageJsonScriptsCheck(),MisplacedFilesCheck(),FileFolderConflictsCheck(),diff --git a/tools/hogli-commands/hogli_commands/product/isolation.py b/tools/hogli-commands/hogli_commands/product/isolation.pyindex dfaa6f5be586..083ddeb6dfd2 100644--- a/tools/hogli-commands/hogli_commands/product/isolation.py+++ b/tools/hogli-commands/hogli_commands/product/isolation.py@@ -314,16 +314,18 @@ def has_narrowed_turbo_inputs(product_dir: Path,permanent_modules: frozenset[str] = frozenset(),carveout_modules: frozenset[str] = frozenset(),+ model_surface: tuple[str, ...] = (),) -> bool:"""True only when contract-check inputs are confined to the public surface AND at least onetargets facade/presentation. A broad glob like backend/** alongside a facade entry keeps theskip inert, and a routes-only narrowing isn't a real contract surface — both are rejected.Negated globs ('!...') are excluded from the surface test.- Permanently-exposed modules, garage wiring locations, and carve-out modules all count as- extended surface: a product may list them without forfeiting the narrowing, since core depends- on each outside the plain facade->contracts channel and they must re-run the suite on change- (see uncovered_permanent_modules, unwatched_garages, and the carve-out coverage check)."""+ Permanently-exposed modules, garage wiring locations, carve-out modules, and (for products+ under the watched-models allowance) the model surface all count as extended surface: a product+ may list them without forfeiting the narrowing, since core depends on each outside the plain+ facade->contracts channel and they must re-run the suite on change (see+ uncovered_permanent_modules, unwatched_garages, and the carve-out/model coverage checks)."""inputs = [i for i in contract_check_inputs(product_dir) if not i.startswith("!")]if not inputs:return False@@ -334,6 +336,7 @@ def has_narrowed_turbo_inputs(+ GARAGE_PREFIXES+ permanent_prefixes+ tuple(carveout_modules)+ + model_surface)return all(_glob_targets(i, accepted) for i in inputs) and any(_glob_targets(i, _FACADE_PRESENTATION_PREFIXES) for i in inputs@@ -470,6 +473,36 @@ CARVE_OUTS: frozenset[tuple[str, str]] = frozenset()+# The watched-models allowance, keyed (product, class) like CARVE_OUTS above. These facades may+# hand out the named Django model class defined under backend/models/, provided the whole model+# surface (models + migrations) stays in the narrowed contract-check inputs — the same soundness+# contract garages have. Sanctioned interim debt, surfaced as a standing lint warning.+#+# Keyed per class, not per product, so a product on the list can't quietly grow a new crossing: an+# unlisted class is a leak again, and sanctioning it costs a doctrine amendment. The list only+# shrinks. The bar for an entry, and why these five are load-bearing, live in+# products/architecture.md § Wiring couplings.+MODEL_CROSSINGS: frozenset[tuple[str, str]] = frozenset(+ {+ ("warehouse_sources", "DataWarehouseCredential"),+ ("warehouse_sources", "DataWarehouseTable"),+ ("warehouse_sources", "ExternalDataJob"),+ ("warehouse_sources", "ExternalDataSchema"),+ ("warehouse_sources", "ExternalDataSource"),+ ("warehouse_sources", "PendingSourceCredential"),+ ("warehouse_sources", "WarehouseColumnAnnotation"),+ ("warehouse_sources", "WarehouseColumnStatistics"),+ }+)++# Where a crossing model class must be defined to fall under the allowance.+_MODEL_SOURCE_PREFIXES: tuple[str, ...] = ("backend/models/", "backend/models.py")++# The input surface a model-crossing product must keep watched: the model package and its+# migrations (a data migration changes observable state without touching a model file).+MODEL_SURFACE_PREFIXES: tuple[str, ...] = (*_MODEL_SOURCE_PREFIXES, "backend/migrations/")++@dataclass(frozen=True)class FacadeClassImport:"""A class a facade module re-exports from a product-internal, non-garage module."""@@ -657,20 +690,33 @@ def _iter_facade_class_reexports(backend_dir: Path) -> Iterator[FacadeClassImporyield FacadeClassImport(module_file.name, name, source_path)-def _split_facade_reexports(backend_dir: Path, name: str) -> tuple[list[FacadeClassImport], set[str]]:- """One facade traversal, split into (unsanctioned leaks, carve-out defining modules)."""+@dataclass(frozen=True)+class FacadeReexports:+ """One facade traversal, split by sanction: unsanctioned leaks, carve-out defining modules,+ and watched-models-allowance crossings."""++ leaks: tuple[FacadeClassImport, ...]+ carveout_modules: frozenset[str]+ model_crossings: tuple[FacadeClassImport, ...]+++def _split_facade_reexports(backend_dir: Path, name: str) -> FacadeReexports:leaks: list[FacadeClassImport] = []carveout_modules: set[str] = set()+ model_crossings: list[FacadeClassImport] = []for f in _iter_facade_class_reexports(backend_dir):if (name, f.class_name) in CARVE_OUTS:carveout_modules.add(f.source_path)+ elif (name, f.class_name) in MODEL_CROSSINGS and f.source_path.startswith(_MODEL_SOURCE_PREFIXES):+ model_crossings.append(f)else:leaks.append(f)- return leaks, carveout_modules+ return FacadeReexports(tuple(leaks), frozenset(carveout_modules), tuple(model_crossings))def facade_class_imports(backend_dir: Path, name: str) -> list[FacadeClassImport]:- """Classes the facade re-exports from a non-garage internal module, minus sanctioned carve-outs.+ """Classes the facade re-exports from a non-garage internal module, minus sanctioned carve-outs+ and watched-models-allowance crossings.Each is a class the facade can hand out that the wiring doctrine doesn't sanction. The remedy isalways one of three: move it to a garage (if it implements a core-owned base), to@@ -681,24 +727,38 @@ def facade_class_imports(backend_dir: Path, name: str) -> list[FacadeClassImportleftover is ruff F401's job. The residual hole is therefore only a class that is imported plainly,genuinely used inside function bodies, AND separately imported by core anyway — core-side misusethis lint doesn't chase."""- return _split_facade_reexports(backend_dir, name)[0]+ return list(_split_facade_reexports(backend_dir, name).leaks)def facade_carveout_modules(backend_dir: Path, name: str) -> set[str]:"""Backend-relative modules that define the carve-out classes this product's facade re-exports.A narrowed product must keep these in its contract-check inputs, exactly like a garage."""- return _split_facade_reexports(backend_dir, name)[1]+ return set(_split_facade_reexports(backend_dir, name).carveout_modules)-def unwatched_garages(product_dir: Path) -> set[str]:- """Garage locations present in the product but missing from its (narrowed) contract-check inputs.+def facade_model_crossings(backend_dir: Path, name: str) -> list[FacadeClassImport]:+ """Model classes this product's facade hands out under the watched-models allowance.- The accepted prefix keeps the garage's trailing slash, so a directory garage is only covered+ Sanctioned interim debt, never a leak; a narrowed product must keep the model surface+ (MODEL_SURFACE_PREFIXES) in its contract-check inputs."""+ return list(_split_facade_reexports(backend_dir, name).model_crossings)+++def _unwatched_present_locations(product_dir: Path, prefixes: tuple[str, ...]) -> set[str]:+ """Locations from `prefixes` that exist in the product but are missing from its (narrowed)+ contract-check inputs.++ The accepted prefix keeps a directory's trailing slash, so a directory location is only coveredby an input inside it — backend/tasks.py or backend/tasks_extra/** must not count as watchingbackend/tasks/ (same anchoring as _module_input_prefixes)."""- present = {g for g in GARAGE_PREFIXES if (product_dir / g.rstrip("/")).exists()}- return _uncovered_locations(product_dir, {g: (g,) for g in present})+ present = {p for p in prefixes if (product_dir / p.rstrip("/")).exists()}+ return _uncovered_locations(product_dir, {p: (p,) for p in present})+++def unwatched_garages(product_dir: Path) -> set[str]:+ """Garage locations present in the product but missing from its (narrowed) contract-check inputs."""+ return _unwatched_present_locations(product_dir, GARAGE_PREFIXES)def uncovered_carveout_modules(product_dir: Path, carveout_modules: frozenset[str]) -> set[str]:@@ -709,6 +769,41 @@ def uncovered_carveout_modules(product_dir: Path, carveout_modules: frozenset[streturn _uncovered_locations(product_dir, {m: (m,) for m in carveout_modules})+def _literal_prefix_overlaps(glob: str, prefix: str) -> bool:+ """Whether a glob could reach inside `prefix`, judged only by its literal part."""+ literal = glob.split("*", 1)[0]+ return literal.startswith(prefix) or prefix.startswith(literal)+++def unwatched_model_surface(product_dir: Path) -> set[str]:+ """Model-surface locations present in the product but not wholly watched by its (narrowed)+ contract-check inputs. Only meaningful for a product whose facade hands out model classes under+ the watched-models allowance — callers gate on that.++ Stricter than the garage check on purpose: the allowance requires the WHOLE surface watched, so+ a directory location needs its full glob (backend/models/**) — an input inside it, or a negation+ that may carve files out of it, does not count. A garage may be watched piecemeal; the model+ surface may not, because any unwatched model file is a class core can observe without re-running+ the suite. There is no glob engine here, so a negation only passes when its literal prefix (up+ to the first wildcard) is provably disjoint from the surface — `!backend/**/x.py` could match a+ model file and is rejected."""+ raw = contract_check_inputs(product_dir)+ if not raw:+ return set()+ positive = [i.removeprefix("./") for i in raw if not i.startswith("!")]+ negations = [i.removeprefix("!").removeprefix("./") for i in raw if i.startswith("!")]+ uncovered = set()+ for p in MODEL_SURFACE_PREFIXES:+ # Migrations are required whether or not the directory exists yet: a product that narrows+ # before its first migration would otherwise carry an unwatched location the moment one lands.+ if p != "backend/migrations/" and not (product_dir / p.rstrip("/")).exists():+ continue+ negation_may_touch = any(_literal_prefix_overlaps(n, p) for n in negations)+ if location_input_glob(p) not in positive or negation_may_touch:+ uncovered.add(p)+ return uncovered++# ---------------------------------------------------------------------------# High-level status — the synthesis both lint and maturity read# ---------------------------------------------------------------------------@@ -741,6 +836,11 @@ class IsolationStatus:# and carve-out modules missing the same way. Both keep the skip sound and block when narrowed.unwatched_garages: tuple[str, ...] = ()uncovered_carveout_modules: tuple[str, ...] = ()+ # Model classes the facade hands out under the watched-models allowance (see+ # MODEL_CROSSINGS); uncovered_model_surface lists the surface locations a narrowed+ # product fails to keep in its contract-check inputs.+ model_crossings: tuple[FacadeClassImport, ...] = ()+ uncovered_model_surface: tuple[str, ...] = ()@propertydef deferred_count(self) -> int:@@ -790,8 +890,9 @@ def compute_isolation_status(repo_root = REPO_ROOTmodule_path = f"products.{name}"permanent_modules = frozenset(permanent_interface_modules(tach_content, module_path))- facade_leaks, carveout_module_set = _split_facade_reexports(backend_dir, name)- carveout_modules = frozenset(carveout_module_set)+ reexports = _split_facade_reexports(backend_dir, name)+ carveout_modules = reexports.carveout_modules+ model_surface = MODEL_SURFACE_PREFIXES if reexports.model_crossings else ()return IsolationStatus(name=name,is_isolated=is_isolated,@@ -800,13 +901,15 @@ def compute_isolation_status(has_legacy_leaks=has_legacy_interface_leaks(tach_content, module_path),bypass_entries=tuple(presentation_bypass_entries(name, pyproject_text)),has_contract_check_script=has_contract_check_script(product_dir),- has_narrowed_turbo=has_narrowed_turbo_inputs(product_dir, permanent_modules, carveout_modules),+ has_narrowed_turbo=has_narrowed_turbo_inputs(product_dir, permanent_modules, carveout_modules, model_surface),permanent_exposures=tuple(sorted(permanent_modules)),uncovered_permanent_exposures=tuple(sorted(uncovered_permanent_modules(product_dir, permanent_modules))),unqualified_permanent_exposures=tuple(sorted(unqualified_permanent_modules(module_path, permanent_modules, repo_root=repo_root))),- facade_leaks=tuple(facade_leaks),+ facade_leaks=reexports.leaks,unwatched_garages=tuple(sorted(unwatched_garages(product_dir))),uncovered_carveout_modules=tuple(sorted(uncovered_carveout_modules(product_dir, carveout_modules))),+ model_crossings=reexports.model_crossings,+ uncovered_model_surface=tuple(sorted(unwatched_model_surface(product_dir))) if model_surface else (),)diff --git a/tools/hogli-commands/hogli_commands/product_structure.yaml b/tools/hogli-commands/hogli_commands/product_structure.yamlindex 17f21444bb81..bce083e576a1 100644--- a/tools/hogli-commands/hogli_commands/product_structure.yaml+++ b/tools/hogli-commands/hogli_commands/product_structure.yaml@@ -86,15 +86,20 @@ root_files:# Backend files (in backend/)#-# We deliberately do not scaffold `__init__.py` files for `backend/`,-# `backend/facade/`, `backend/presentation/`, or `backend/tasks/`. Python 3.3+-# implicit namespace packages handle imports without them, and the convention-# under products/ is to keep package surfaces intentional — either populate-# `__init__.py` with explicit exports (rare) or omit it.-# `tests/__init__.py` is the one exception: pytest's default `prepend` import-# mode would collide on duplicate test filenames across products (11×-# `test_models.py`, 11× `test_api.py`, etc.) without it.+# `backend/`, `backend/facade/`, and `backend/presentation/` carry an empty+# `__init__.py`. `products/` is a regular package, and grimp stops descending at+# the first directory without a marker — without them import-linter cannot see+# the product's modules and every contract passes there vacuously.+# `tests/__init__.py` is separate: pytest's default `prepend` import mode would+# collide on duplicate test filenames across products (11× `test_models.py`,+# 11× `test_api.py`, etc.) without it.+# Everything else stays a namespace package: no contract targets it, and the+# convention under products/ is to keep package surfaces intentional.backend_files:+ __init__.py:+ required: true+ template: ''+apps.py:required: truetemplate: |@@ -190,6 +195,10 @@ backend_files:# Define periodic task schedules herefacade/:+ __init__.py:+ required: true+ template: ''+api.py:required: truetemplate: |@@ -281,6 +290,10 @@ backend_files:RETICULATED = "reticulated"presentation/:+ __init__.py:+ required: true+ template: ''+serializers.py:required: truetemplate: |diff --git a/tools/hogli-commands/hogli_commands/tests/test_checks.py b/tools/hogli-commands/hogli_commands/tests/test_checks.pyindex d358eb855a80..4b89f9c388d8 100644--- a/tools/hogli-commands/hogli_commands/tests/test_checks.py+++ b/tools/hogli-commands/hogli_commands/tests/test_checks.py@@ -9,6 +9,7 @@ import pytestfrom hogli_commands.product import gh as gh_modulefrom hogli_commands.product.checks import (+ BackendPackageMarkerCheck,CheckContext,FileFolderConflictsCheck,IsolationChainCheck,@@ -26,8 +27,10 @@ from hogli_commands.product.checks import (validate_tach_references,)from hogli_commands.product.isolation import (+ MODEL_SURFACE_PREFIXES,facade_carveout_modules,facade_class_imports,+ facade_model_crossings,has_narrowed_turbo_inputs,permanent_interface_modules,routes_in_turbo_inputs,@@ -35,6 +38,7 @@ from hogli_commands.product.isolation import (uncovered_permanent_modules,unqualified_permanent_modules,unwatched_garages,+ unwatched_model_surface,)# ---------------------------------------------------------------------------@@ -1604,6 +1608,142 @@ class TestFacadeClassImports:}+class TestWatchedModelsAllowance:+ _FACADE = {"models.py": "from ..models.table import DataWarehouseTable\n__all__ = ['DataWarehouseTable']\n"}+ _SOURCES = {"models/table.py": "class DataWarehouseTable:\n pass\n"}++ def test_model_reexport_is_a_tracked_crossing_not_a_leak_for_an_allowance_product(self, tmp_path: Path) -> None:+ # if this classification breaks, warehouse_sources' model re-exports re-arm the leak block+ # and the restored narrowing silently forfeits (skip inert).+ _, backend = _write_facade_product(+ tmp_path, name="warehouse_sources", facade_files=self._FACADE, sources=self._SOURCES+ )+ assert facade_class_imports(backend, "warehouse_sources") == []+ assert {c.class_name for c in facade_model_crossings(backend, "warehouse_sources")} == {"DataWarehouseTable"}++ def test_model_reexport_stays_a_violation_for_a_product_not_on_the_allowance_list(self, tmp_path: Path) -> None:+ _, backend = _write_facade_product(+ tmp_path, name="unrelated_product", facade_files=self._FACADE, sources=self._SOURCES+ )+ assert {f.class_name for f in facade_class_imports(backend, "unrelated_product")} == {"DataWarehouseTable"}+ assert facade_model_crossings(backend, "unrelated_product") == []++ def test_unlisted_class_stays_a_violation_on_an_allowance_product(self, tmp_path: Path) -> None:+ # the allowance is keyed per class, so a listed product cannot grow a new crossing without a+ # doctrine amendment — the rot vector a product-keyed list left wide open+ facade = {"models.py": "from ..models.table import BrandNewModel\n__all__ = ['BrandNewModel']\n"}+ sources = {"models/table.py": "class BrandNewModel:\n pass\n"}+ _, backend = _write_facade_product(tmp_path, name="warehouse_sources", facade_files=facade, sources=sources)+ assert {f.class_name for f in facade_class_imports(backend, "warehouse_sources")} == {"BrandNewModel"}+ assert facade_model_crossings(backend, "warehouse_sources") == []++ def test_allowance_is_scoped_to_the_model_package(self, tmp_path: Path) -> None:+ # a class defined outside backend/models/ gets no free pass even for an allowance product+ facade = {"models.py": "from ..logic.engine import Engine\n__all__ = ['Engine']\n"}+ sources = {"logic/engine.py": "class Engine:\n pass\n"}+ _, backend = _write_facade_product(tmp_path, name="warehouse_sources", facade_files=facade, sources=sources)+ assert {f.class_name for f in facade_class_imports(backend, "warehouse_sources")} == {"Engine"}++ @pytest.mark.parametrize(+ "turbo_inputs, expected",+ [+ # models + migrations watched -> covered+ (["backend/facade/**", "backend/models/**", "backend/migrations/**"], set()),+ # migrations forgotten -> a data migration would skip the suite+ (["backend/facade/**", "backend/models/**"], {"backend/migrations/"}),+ # models forgotten entirely -> the crossing classes' definitions are unwatched+ (["backend/facade/**"], {"backend/migrations/", "backend/models/"}),+ # a single model file is not the whole surface -> every other model file is unwatched+ (["backend/facade/**", "backend/models/table.py", "backend/migrations/**"], {"backend/models/"}),+ # a negation carving files out of the surface breaks whole-surface coverage+ (+ ["backend/facade/**", "backend/models/**", "backend/migrations/**", "!backend/models/secret.py"],+ {"backend/models/"},+ ),+ # ./-prefixed negations normalize the same way — no bypass+ (+ ["backend/facade/**", "backend/models/**", "backend/migrations/**", "!./backend/models/secret.py"],+ {"backend/models/"},+ ),+ # a wildcard negation that could match inside the surface is rejected conservatively+ (+ ["backend/facade/**", "backend/models/**", "backend/migrations/**", "!backend/**/secret.py"],+ {"backend/migrations/", "backend/models/"},+ ),+ # a wildcard negation provably outside the surface stays allowed+ (+ [+ "backend/facade/**",+ "backend/models/**",+ "backend/migrations/**",+ "!backend/temporal/data_imports/sources/mysql/tests/**",+ ],+ set(),+ ),+ ],+ )+ def test_model_surface_coverage(self, tmp_path: Path, turbo_inputs: list[str], expected: set[str]) -> None:+ sources = {**self._SOURCES, "migrations/0001_initial.py": ""}+ product_dir, _ = _write_facade_product(+ tmp_path, name="warehouse_sources", facade_files=self._FACADE, sources=sources, turbo_inputs=turbo_inputs+ )+ assert unwatched_model_surface(product_dir) == expected++ def test_migrations_are_required_before_the_directory_exists(self, tmp_path: Path) -> None:+ # a product with models but no migrations yet must still watch the glob, otherwise its first+ # migration lands in an unwatched location and a data migration skips the suite+ product_dir, _ = _write_facade_product(+ tmp_path,+ name="warehouse_sources",+ facade_files=self._FACADE,+ sources=self._SOURCES,+ turbo_inputs=["backend/facade/**", "backend/models/**"],+ )+ assert not (product_dir / "backend/migrations").exists()+ assert unwatched_model_surface(product_dir) == {"backend/migrations/"}++ def test_model_surface_inputs_count_as_narrowing_only_when_passed(self, tmp_path: Path) -> None:+ # the restored warehouse_sources turbo.json must register as narrowed — otherwise the skip+ # is silently inert forever — but only via the allowance, never for arbitrary products.+ inputs = ["backend/facade/**", "backend/models/**", "backend/migrations/**"]+ product_dir, _ = _write_facade_product(tmp_path, turbo_inputs=inputs)+ assert has_narrowed_turbo_inputs(product_dir) is False+ assert has_narrowed_turbo_inputs(product_dir, model_surface=MODEL_SURFACE_PREFIXES) is True++ def _allowance_ctx(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, turbo_inputs: list[str]) -> CheckContext:+ # end-to-end through IsolationChainCheck: guards the status wiring and the checks.py+ # branches, which the helper tests above cannot see+ import hogli_commands.product.isolation as isolation_module++ _seal_externally(monkeypatch)+ monkeypatch.setattr(isolation_module, "MODEL_CROSSINGS", frozenset({("my_product", "Table")}))+ ctx = _make_product(tmp_path, scripts=_WITH_SCRIPT, isolated=True)+ (ctx.backend_dir / "facade" / "models.py").write_text("from ..models.table import Table\n__all__ = ['Table']\n")+ (ctx.backend_dir / "models").mkdir()+ (ctx.backend_dir / "models" / "table.py").write_text("class Table:\n pass\n")+ (ctx.backend_dir / "migrations").mkdir()+ (ctx.product_dir / "turbo.json").write_text(+ json.dumps({"tasks": {"backend:contract-check": {"inputs": turbo_inputs}}})+ )+ return ctx++ def test_chain_check_narrows_with_standing_warning_when_surface_watched(+ self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch+ ) -> None:+ ctx = self._allowance_ctx(+ tmp_path, monkeypatch, ["backend/facade/**", "backend/models/**", "backend/migrations/**"]+ )+ result = chain_check.run(ctx)+ assert not result.issues+ assert any("watched-models allowance" in w for w in result.warnings)++ def test_chain_check_blocks_when_surface_omitted(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:+ ctx = self._allowance_ctx(tmp_path, monkeypatch, ["backend/facade/**", "backend/models/**"])+ result = chain_check.run(ctx)+ assert any("watched-models surface" in i and "backend/migrations/" in i for i in result.issues)+ assert result.file == "products/my_product/turbo.json"++class TestUnwatchedGarages:@pytest.mark.parametrize("garage_file, turbo_inputs, expected",@@ -1730,3 +1870,48 @@ class TestPackageJsonScriptsWiringWithheld:_add_facade_reexport(ctx)result = check.run(ctx)assert not any("must not have" in i or "remove 'backend:contract-check'" in i for i in result.issues)+++class TestBackendPackageMarker:+ check = BackendPackageMarkerCheck()++ def _product(self, tmp_path: Path, *, markers: list[str], trees: list[str]) -> CheckContext:+ ctx = _make_product(tmp_path, isolated=True)+ for tree in trees:+ (ctx.backend_dir / tree).mkdir(parents=True, exist_ok=True)+ (ctx.backend_dir / tree / "views.py").write_text("x = 1\n")+ for marker in markers:+ (ctx.backend_dir / marker / "__init__.py").write_text("")+ return ctx++ @pytest.mark.parametrize(+ "markers, expected",+ [+ # every level marked -> grimp reaches the whole contract surface+ ([".", "facade", "presentation", "presentation/views"], set()),+ # backend/ alone is not enough: grimp stops at the first unmarked level, so+ # everything below is dropped and the contract passes for code it never saw+ ([".", "facade", "presentation"], {"backend/presentation/views/"}),+ ([".", "facade"], {"backend/presentation/", "backend/presentation/views/"}),+ # missing at the root hides the entire backend+ (["facade", "presentation", "presentation/views"], {"backend/"}),+ ],+ )+ def test_missing_markers_on_contract_paths(self, tmp_path: Path, markers: list[str], expected: set[str]) -> None:+ ctx = self._product(tmp_path, markers=markers, trees=["presentation", "presentation/views"])+ assert set(self.check._missing_markers(ctx)) == expected++ def test_directories_outside_the_contract_trees_are_left_alone(self, tmp_path: Path) -> None:+ # test dirs and generated trees are namespace packages on purpose — flagging them would+ # mean thousands of pointless files, and no contract targets them+ ctx = self._product(tmp_path, markers=[".", "facade"], trees=[])+ (ctx.backend_dir / "temporal" / "sources" / "stripe").mkdir(parents=True)+ (ctx.backend_dir / "temporal" / "sources" / "stripe" / "source.py").write_text("x = 1\n")+ (ctx.backend_dir / "tests").mkdir()+ (ctx.backend_dir / "tests" / "test_thing.py").write_text("x = 1\n")+ assert self.check._missing_markers(ctx) == []++ def test_empty_directories_need_no_marker(self, tmp_path: Path) -> None:+ ctx = self._product(tmp_path, markers=[".", "facade"], trees=[])+ (ctx.backend_dir / "facade" / "empty").mkdir()+ assert self.check._missing_markers(ctx) == []