: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(warehouse-sources): import template dataclasses from products/cdp (1 of 2) (#115476)
Harley Alexander3541ecb69902
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/attentive/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/attentive/source.pyindex 456aea705925..4e3934b9f22b 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/attentive/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/attentive/source.py@@ -41,7 +41,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.generated_from products.warehouse_sources.backend.types import ExternalDataSourceTypeif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCdef _webhook_table_transformer(table: pa.Table) -> pa.Table:diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/attentive/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/attentive/webhook_template.pyindex 16116d9fa0fe..193c8cd757b9 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/attentive/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/attentive/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="alpha",diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/browse_ai/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/browse_ai/source.pyindex dc34f5e51f57..fffb11152a5f 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/browse_ai/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/browse_ai/source.py@@ -1,7 +1,6 @@from typing import cast-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC-+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCfrom products.warehouse_sources.backend.facade.source_config import (DataWarehouseSourceCategory,ReleaseStatus,diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/calendly/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/calendly/source.pyindex 8893c1e689c1..9a04dd804bcb 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/calendly/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/calendly/source.py@@ -51,7 +51,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.generated_from products.warehouse_sources.backend.types import ExternalDataSourceTypeif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC@SourceRegistry.registerdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/calendly/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/calendly/webhook_template.pyindex e2e76019f527..1b78f5a85b70 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/calendly/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/calendly/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="alpha",diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/chatwoot/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/chatwoot/source.pyindex 05c3174933b6..499f1cc3c4da 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/chatwoot/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/chatwoot/source.py@@ -3,7 +3,7 @@ from typing import TYPE_CHECKING, Optional, castimport structlogif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCfrom products.warehouse_sources.backend.facade.source_config import (DataWarehouseSourceCategory,diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/chatwoot/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/chatwoot/webhook_template.pyindex 6d8d0bda45f7..dfe3311b007b 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/chatwoot/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/chatwoot/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC# Chatwoot signs deliveries (recent versions) with X-Chatwoot-Signature: sha256=<hex hmac-sha256 of# "<X-Chatwoot-Timestamp>.<raw body>">. Older self-hosted installs have no per-webhook secret anddiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/common/base.py b/products/warehouse_sources/backend/temporal/data_imports/sources/common/base.pyindex 03b1d0bc1d3d..1f155097eb04 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/common/base.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/common/base.py@@ -11,8 +11,7 @@ from posthog.dataclasses import frozenfrom products.warehouse_sources.backend.temporal.data_imports.sources.common.webhook_s3 import WebhookSourceManagerif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC-+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCfrom products.warehouse_sources.backend.models.external_data_source import ExternalDataSourcefrom products.warehouse_sources.backend.temporal.data_imports.sources.common.sql.predicates import RowFilterColumndiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/common/default_webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/common/default_webhook_template.pyindex 38710444c90d..fe6c99b3462a 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/common/default_webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/common/default_webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="alpha",diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/source.pyindex 1beb06e7de49..95a80245e361 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/source.py@@ -43,7 +43,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.generated_from products.warehouse_sources.backend.types import ExternalDataSourceTypeif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCCIO_DOCS_WEBHOOKS_URL = "https://fly.customer.io/settings/webhooks/new/reporting_webhook"diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/webhook_template.pyindex 124388f580ca..653dcc38a784 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/customer_io/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="alpha",diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/source.pyindex 24ff8ad8511f..26a55ac4247f 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/source.py@@ -46,7 +46,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.generated_from products.warehouse_sources.backend.types import ExternalDataSourceTypeif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC@SourceRegistry.registerdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/webhook_template.pyindex 4a9731c811d5..f8ca2307c0e1 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/featurebase/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC# Featurebase signs webhooks with HMAC-SHA256 over "{timestamp}.{raw body}" using the# whsec_ signing secret, sent as X-Webhook-Signature with X-Webhook-Timestamp (5 minutediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/fintoc/fintoc.py b/products/warehouse_sources/backend/temporal/data_imports/sources/fintoc/fintoc.pyindex 4f50a30d7426..4edd12e2314c 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/fintoc/fintoc.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/fintoc/fintoc.py@@ -35,7 +35,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.fintoc.setif TYPE_CHECKING:import pyarrow as pa- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC@frozen@@ -285,7 +285,7 @@ def webhook_table(table: "pa.Table") -> "pa.Table":def webhook_template() -> "HogFunctionTemplateDC":- from posthog.cdp.templates.hog_function_template import ( # noqa: PLC0415 - keeps template dependencies off the source registry import path+ from products.cdp.backend.templates.hog_function_template import ( # noqa: PLC0415 - keeps template dependencies off the source registry import pathHogFunctionTemplateDC,)diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/fintoc/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/fintoc/source.pyindex 2ec27c0776ba..9f6d3305d50e 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/fintoc/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/fintoc/source.py@@ -43,7 +43,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.generated_from products.warehouse_sources.backend.types import ExternalDataSourceTypeif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC@SourceRegistry.registerdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/fourthwall/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/fourthwall/source.pyindex 0a92ef2a15cb..3a3b1e6aa5e0 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/fourthwall/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/fourthwall/source.py@@ -45,7 +45,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.generated_from products.warehouse_sources.backend.types import ExternalDataSourceTypeif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCDEVELOPER_SETTINGS_HELP = ("In your Fourthwall dashboard go to **Settings > For developers > Open API** and choose "diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/fourthwall/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/fourthwall/webhook_template.pyindex 4b0752a8c5a0..34d69fbae6e2 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/fourthwall/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/fourthwall/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="alpha",diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/gitea/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/gitea/source.pyindex dee47f0220a3..3d7e47bbda51 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/gitea/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/gitea/source.py@@ -2,7 +2,7 @@ import secretsfrom typing import TYPE_CHECKING, Optional, castif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCfrom products.warehouse_sources.backend.facade.source_config import (DataWarehouseSourceCategory,diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/gitea/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/gitea/webhook_template.pyindex 9695e48df0fc..b911ae6b6ad8 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/gitea/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/gitea/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="alpha",diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/github/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/github/source.pyindex 8081a7d52928..3bf03295baf1 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/github/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/github/source.py@@ -5,7 +5,7 @@ from concurrent.futures import ThreadPoolExecutorfrom typing import TYPE_CHECKING, Any, Optional, TypeVar, castif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCfrom posthog.models.integration import GitHubIntegration, GitHubIntegrationErrordiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/github/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/github/webhook_template.pyindex 6353f80dbc28..f0c99a97768f 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/github/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/github/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="alpha",diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/instantly/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/instantly/source.pyindex 0b1af7ab345a..16160012e9ca 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/instantly/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/instantly/source.py@@ -3,7 +3,7 @@ from typing import TYPE_CHECKING, Optional, castimport structlogif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCfrom products.warehouse_sources.backend.facade.source_config import (DataWarehouseSourceCategory,diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/instantly/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/instantly/webhook_template.pyindex e6917844f71e..6542fcfa4c21 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/instantly/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/instantly/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC# Instantly does not sign webhook deliveries, but it does send static custom headers configured# on the webhook. `create_webhook` attaches a generated secret in the x-posthog-webhook-secretdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/lemon_squeezy/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/lemon_squeezy/source.pyindex 500b7da62426..a35e71b047be 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/lemon_squeezy/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/lemon_squeezy/source.py@@ -45,7 +45,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.lemon_squefrom products.warehouse_sources.backend.types import ExternalDataSourceTypeif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCLEMON_SQUEEZY_API_SETTINGS_URL = "https://app.lemonsqueezy.com/settings/api"diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/lemon_squeezy/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/lemon_squeezy/webhook_template.pyindex 322b477f2a98..600e2351f42d 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/lemon_squeezy/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/lemon_squeezy/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="alpha",diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/mailerlite/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/mailerlite/source.pyindex b6ac4baa87c7..697faf8c8fba 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/mailerlite/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/mailerlite/source.py@@ -50,7 +50,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.mailerlitefrom products.warehouse_sources.backend.types import ExternalDataSourceTypeif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC@SourceRegistry.registerdiff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/mailerlite/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/mailerlite/webhook_template.pyindex 80fb692e8ab1..886a64909b1d 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/mailerlite/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/mailerlite/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDC# MailerLite signs every delivery with a `Signature` header holding the lowercase hex# HMAC-SHA256 of the raw request body, keyed by the `secret` MailerLite generates when thediff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/mailgun/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/mailgun/source.pyindex 9633027dca9a..35325bd4422e 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/mailgun/source.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/mailgun/source.py@@ -48,7 +48,7 @@ from products.warehouse_sources.backend.temporal.data_imports.sources.mailgun.sefrom products.warehouse_sources.backend.types import ExternalDataSourceTypeif TYPE_CHECKING:- from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+ from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCAPI_SECURITY_URL = "https://app.mailgun.com/settings/api_security"diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/mailgun/webhook_template.py b/products/warehouse_sources/backend/temporal/data_imports/sources/mailgun/webhook_template.pyindex 870d0c722382..24022071635f 100644--- a/products/warehouse_sources/backend/temporal/data_imports/sources/mailgun/webhook_template.py+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/mailgun/webhook_template.py@@ -1,4 +1,4 @@-from posthog.cdp.templates.hog_function_template import HogFunctionTemplateDC+from products.cdp.backend.templates.hog_function_template import HogFunctionTemplateDCtemplate: HogFunctionTemplateDC = HogFunctionTemplateDC(status="alpha",