:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(customer-analytics): add feature request MCP tools (#85910)
Arthur Moreira de Deus146af47cd67f
diff --git a/posthog/hogql/database/schema/system.py b/posthog/hogql/database/schema/system.pyindex a85e9411a1e6..ec746e21f929 100644--- a/posthog/hogql/database/schema/system.py+++ b/posthog/hogql/database/schema/system.py@@ -41,6 +41,12 @@ from products.customer_analytics.backend.facade.hogql import (account_tagged_items,accounts,custom_property_definitions,+ feature_request_account_links,+ feature_request_evidence,+ feature_request_history,+ feature_request_product_area_links,+ feature_request_product_areas,+ feature_requests,)from products.warehouse_sources.backend.facade.types import DIRECT_ENGINE_BY_SOURCE_TYPE@@ -2859,6 +2865,18 @@ class SystemTables(TableNode):"experiments": TableNode(name="experiments", table=experiments),"exports": TableNode(name="exports", table=exports),"feature_flags": TableNode(name="feature_flags", table=feature_flags),+ "feature_request_account_links": TableNode(+ name="feature_request_account_links", table=feature_request_account_links+ ),+ "feature_request_evidence": TableNode(name="feature_request_evidence", table=feature_request_evidence),+ "feature_request_history": TableNode(name="feature_request_history", table=feature_request_history),+ "feature_request_product_area_links": TableNode(+ name="feature_request_product_area_links", table=feature_request_product_area_links+ ),+ "feature_request_product_areas": TableNode(+ name="feature_request_product_areas", table=feature_request_product_areas+ ),+ "feature_requests": TableNode(name="feature_requests", table=feature_requests),"file_system": TableNode(name="file_system", table=file_system),"groups": TableNode(name="groups", table=groups),"group_type_mappings": TableNode(name="group_type_mappings", table=group_type_mappings),diff --git a/posthog/hogql/database/schema/test/test_system_tables.py b/posthog/hogql/database/schema/test/test_system_tables.pyindex 8429217f0e3d..42a977ff7cff 100644--- a/posthog/hogql/database/schema/test/test_system_tables.py+++ b/posthog/hogql/database/schema/test/test_system_tables.py@@ -65,6 +65,14 @@ if TYPE_CHECKING:from products.customer_analytics.backend.models.account import Accountfrom products.customer_analytics.backend.models.custom_property_definition import CustomPropertyDefinitionfrom products.customer_analytics.backend.models.custom_property_value import CustomPropertyValue+ from products.customer_analytics.backend.models.feature_request import (+ FeatureRequest,+ FeatureRequestAccountLink,+ FeatureRequestEvidence,+ FeatureRequestHistory,+ FeatureRequestProductArea,+ FeatureRequestProductAreaLink,+ )from products.customer_analytics.backend.models.relationship import (AccountRelationship,AccountRelationshipDefinition,@@ -83,6 +91,12 @@ else:Account = apps.get_model("customer_analytics", "Account")CustomPropertyDefinition = apps.get_model("customer_analytics", "CustomPropertyDefinition")CustomPropertyValue = apps.get_model("customer_analytics", "CustomPropertyValue")+ FeatureRequest = apps.get_model("customer_analytics", "FeatureRequest")+ FeatureRequestAccountLink = apps.get_model("customer_analytics", "FeatureRequestAccountLink")+ FeatureRequestEvidence = apps.get_model("customer_analytics", "FeatureRequestEvidence")+ FeatureRequestHistory = apps.get_model("customer_analytics", "FeatureRequestHistory")+ FeatureRequestProductArea = apps.get_model("customer_analytics", "FeatureRequestProductArea")+ FeatureRequestProductAreaLink = apps.get_model("customer_analytics", "FeatureRequestProductAreaLink")AccountRelationship = apps.get_model("customer_analytics", "AccountRelationship")AccountRelationshipDefinition = apps.get_model("customer_analytics", "AccountRelationshipDefinition")ErrorTrackingIssue = apps.get_model("error_tracking", "ErrorTrackingIssue")@@ -252,6 +266,50 @@ def _create_account_relationship_definition(team: Team, label: str) -> "AccountRreturn AccountRelationshipDefinition.objects.unscoped().create(team=team, name=f"rel_def_{label}")+def _create_feature_request(team: Team, label: str) -> "FeatureRequest":+ account = Account.objects.unscoped().create(team=team, name=f"feature_request_account_{label}")+ feature_request = FeatureRequest.objects.unscoped().create(team=team, title=f"feature_request_{label}")+ FeatureRequestAccountLink.objects.unscoped().create(team=team, feature_request=feature_request, account=account)+ return feature_request+++def _create_feature_request_product_area(team: Team, label: str) -> "FeatureRequestProductArea":+ return FeatureRequestProductArea.objects.unscoped().create(team=team, name=f"product_area_{label}")+++def _create_feature_request_account_link(team: Team, label: str) -> "FeatureRequestAccountLink":+ account = Account.objects.unscoped().create(team=team, name=f"linked_account_{label}")+ feature_request = FeatureRequest.objects.unscoped().create(team=team, title=f"linked_request_{label}")+ return FeatureRequestAccountLink.objects.unscoped().create(+ team=team, feature_request=feature_request, account=account+ )+++def _create_feature_request_evidence(team: Team, label: str) -> "FeatureRequestEvidence":+ account_link = _create_feature_request_account_link(team, label)+ return FeatureRequestEvidence.objects.unscoped().create(+ team=team, account_link=account_link, source="conversation", summary=f"evidence_{label}"+ )+++def _create_feature_request_product_area_link(team: Team, label: str) -> "FeatureRequestProductAreaLink":+ feature_request = _create_feature_request(team, label)+ product_area = _create_feature_request_product_area(team, label)+ return FeatureRequestProductAreaLink.objects.unscoped().create(+ team=team, feature_request=feature_request, product_area=product_area+ )+++def _create_feature_request_history(team: Team, label: str) -> "FeatureRequestHistory":+ feature_request = _create_feature_request(team, label)+ return FeatureRequestHistory.objects.unscoped().create(+ team=team,+ feature_request=feature_request,+ changes=[],+ changed_at=timezone.now(),+ )++def _create_action(team: Team, label: str) -> Action:return Action.objects.create(team=team, name=f"action_{label}")@@ -845,6 +903,12 @@ SYSTEM_TABLE_FACTORIES = [("experiments", _create_experiment),("exports", _create_export),("feature_flags", _create_feature_flag),+ ("feature_request_account_links", _create_feature_request_account_link),+ ("feature_request_evidence", _create_feature_request_evidence),+ ("feature_request_history", _create_feature_request_history),+ ("feature_request_product_area_links", _create_feature_request_product_area_link),+ ("feature_request_product_areas", _create_feature_request_product_area),+ ("feature_requests", _create_feature_request),("file_system", _create_file_system),("groups", _create_group),("group_type_mappings", _create_group_type_mapping),diff --git a/posthog/hogql/database/test/__snapshots__/test_database.ambr b/posthog/hogql/database/test/__snapshots__/test_database.ambrindex 902340da2bce..b911dbdf1669 100644--- a/posthog/hogql/database/test/__snapshots__/test_database.ambr+++ b/posthog/hogql/database/test/__snapshots__/test_database.ambr@@ -7116,7 +7116,7 @@"row_count": null,"type": "system"},- "system.file_system": {+ "system.feature_request_account_links": {"certification": null,"fields": {"id": {@@ -7129,95 +7129,124 @@"table": null,"type": "string"},- "path": {+ "feature_request_id": {"chain": null,"fields": null,- "hogql_value": "path",+ "hogql_value": "feature_request_id","id": null,- "name": "path",+ "name": "feature_request_id","schema_valid": true,"table": null,"type": "string"},- "depth": {+ "account_id": {"chain": null,"fields": null,- "hogql_value": "depth",+ "hogql_value": "account_id","id": null,- "name": "depth",+ "name": "account_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "type": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "type",+ "hogql_value": "created_at","id": null,- "name": "type",+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.feature_request_account_links",+ "name": "system.feature_request_account_links",+ "row_count": null,+ "type": "system"+ },+ "system.feature_request_evidence": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "ref": {+ "account_link_id": {"chain": null,"fields": null,- "hogql_value": "ref",+ "hogql_value": "account_link_id","id": null,- "name": "ref",+ "name": "account_link_id","schema_valid": true,"table": null,"type": "string"},- "href": {+ "summary": {"chain": null,"fields": null,- "hogql_value": "href",+ "hogql_value": "summary","id": null,- "name": "href",+ "name": "summary","schema_valid": true,"table": null,"type": "string"},- "meta": {+ "customer_quote": {"chain": null,"fields": null,- "hogql_value": "meta",+ "hogql_value": "customer_quote","id": null,- "name": "meta",+ "name": "customer_quote","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "surface": {+ "source": {"chain": null,"fields": null,- "hogql_value": "surface",+ "hogql_value": "source","id": null,- "name": "surface",+ "name": "source","schema_valid": true,"table": null,"type": "string"},- "shortcut": {+ "source_url": {"chain": null,"fields": null,- "hogql_value": "shortcut",+ "hogql_value": "source_url","id": null,- "name": "shortcut",+ "name": "source_url","schema_valid": true,"table": null,- "type": "boolean"+ "type": "string"},- "created_at": {+ "requested_on": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "requested_on","id": null,- "name": "created_at",+ "name": "requested_on","schema_valid": true,"table": null,- "type": "datetime"+ "type": "date"},"created_by_id": {"chain": null,@@ -7228,14 +7257,44 @@"schema_valid": true,"table": null,"type": "integer"+ },+ "updated_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_by_id",+ "id": null,+ "name": "updated_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"}},- "id": "system.file_system",- "name": "system.file_system",+ "id": "system.feature_request_evidence",+ "name": "system.feature_request_evidence","row_count": null,"type": "system"},- "system.groups": {+ "system.feature_request_history": {"certification": null,"fields": {"id": {@@ -7246,55 +7305,75 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "group_key": {+ "feature_request_id": {"chain": null,"fields": null,- "hogql_value": "group_key",+ "hogql_value": "feature_request_id","id": null,- "name": "group_key",+ "name": "feature_request_id","schema_valid": true,"table": null,"type": "string"},- "group_type_index": {+ "changed_fields": {"chain": null,"fields": null,- "hogql_value": "group_type_index",+ "hogql_value": "changed_fields","id": null,- "name": "group_type_index",+ "name": "changed_fields",+ "schema_valid": true,+ "table": null,+ "type": "array"+ },+ "is_initial": {+ "chain": null,+ "fields": null,+ "hogql_value": "is_initial",+ "id": null,+ "name": "is_initial","schema_valid": true,"table": null,"type": "integer"},- "group_properties": {+ "source": {"chain": null,"fields": null,- "hogql_value": "group_properties",+ "hogql_value": "source","id": null,- "name": "group_properties",+ "name": "source","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "created_at": {+ "actor_id": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "actor_id","id": null,- "name": "created_at",+ "name": "actor_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "changed_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "changed_at",+ "id": null,+ "name": "changed_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.groups",- "name": "system.groups",+ "id": "system.feature_request_history",+ "name": "system.feature_request_history","row_count": null,"type": "system"},- "system.group_type_mappings": {+ "system.feature_request_product_area_links": {"certification": null,"fields": {"id": {@@ -7305,737 +7384,786 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "group_type": {+ "feature_request_id": {"chain": null,"fields": null,- "hogql_value": "group_type",+ "hogql_value": "feature_request_id","id": null,- "name": "group_type",+ "name": "feature_request_id","schema_valid": true,"table": null,"type": "string"},- "name_singular": {+ "product_area_id": {"chain": null,"fields": null,- "hogql_value": "name_singular",+ "hogql_value": "product_area_id","id": null,- "name": "name_singular",+ "name": "product_area_id","schema_valid": true,"table": null,"type": "string"},- "name_plural": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "name_plural",+ "hogql_value": "created_at","id": null,- "name": "name_plural",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"}},- "id": "system.group_type_mappings",- "name": "system.group_type_mappings",+ "id": "system.feature_request_product_area_links",+ "name": "system.feature_request_product_area_links","row_count": null,"type": "system"},- "system.information_schema.tables": {+ "system.feature_request_product_areas": {"certification": null,"fields": {- "table_catalog": {+ "id": {"chain": null,"fields": null,- "hogql_value": "table_catalog",+ "hogql_value": "id","id": null,- "name": "table_catalog",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "table_schema": {+ "name": {"chain": null,"fields": null,- "hogql_value": "table_schema",+ "hogql_value": "name","id": null,- "name": "table_schema",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "table_name": {+ "display_order": {"chain": null,"fields": null,- "hogql_value": "table_name",+ "hogql_value": "display_order","id": null,- "name": "table_name",+ "name": "display_order","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "table_type": {+ "is_active": {"chain": null,"fields": null,- "hogql_value": "table_type",+ "hogql_value": "is_active","id": null,- "name": "table_type",+ "name": "is_active","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "description": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "created_by_id","id": null,- "name": "description",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "row_count": {+ "updated_by_id": {"chain": null,"fields": null,- "hogql_value": "row_count",+ "hogql_value": "updated_by_id","id": null,- "name": "row_count",+ "name": "updated_by_id","schema_valid": true,"table": null,"type": "integer"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"}},- "id": "system.information_schema.tables",- "name": "system.information_schema.tables",+ "id": "system.feature_request_product_areas",+ "name": "system.feature_request_product_areas","row_count": null,"type": "system"},- "system.information_schema.columns": {+ "system.feature_requests": {"certification": null,"fields": {- "table_schema": {+ "id": {"chain": null,"fields": null,- "hogql_value": "table_schema",+ "hogql_value": "id","id": null,- "name": "table_schema",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "table_name": {+ "title": {"chain": null,"fields": null,- "hogql_value": "table_name",+ "hogql_value": "title","id": null,- "name": "table_name",+ "name": "title","schema_valid": true,"table": null,"type": "string"},- "column_name": {+ "description": {"chain": null,"fields": null,- "hogql_value": "column_name",+ "hogql_value": "description","id": null,- "name": "column_name",+ "name": "description","schema_valid": true,"table": null,"type": "string"},- "ordinal_position": {+ "status": {"chain": null,"fields": null,- "hogql_value": "ordinal_position",+ "hogql_value": "status","id": null,- "name": "ordinal_position",+ "name": "status","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "data_type": {+ "priority": {"chain": null,"fields": null,- "hogql_value": "data_type",+ "hogql_value": "priority","id": null,- "name": "data_type",+ "name": "priority","schema_valid": true,"table": null,"type": "string"},- "is_nullable": {+ "archived_at": {"chain": null,"fields": null,- "hogql_value": "is_nullable",+ "hogql_value": "archived_at","id": null,- "name": "is_nullable",+ "name": "archived_at","schema_valid": true,"table": null,- "type": "boolean"+ "type": "datetime"},- "is_array": {+ "archived_by_id": {"chain": null,"fields": null,- "hogql_value": "is_array",+ "hogql_value": "archived_by_id","id": null,- "name": "is_array",+ "name": "archived_by_id","schema_valid": true,"table": null,- "type": "boolean"+ "type": "integer"},- "field_kind": {+ "version": {"chain": null,"fields": null,- "hogql_value": "field_kind",+ "hogql_value": "version","id": null,- "name": "field_kind",+ "name": "version","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "description": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "created_by_id","id": null,- "name": "description",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "null_fraction": {+ "updated_by_id": {"chain": null,"fields": null,- "hogql_value": "null_fraction",+ "hogql_value": "updated_by_id","id": null,- "name": "null_fraction",+ "name": "updated_by_id","schema_valid": true,"table": null,- "type": "float"+ "type": "integer"},- "min_value": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "min_value",+ "hogql_value": "created_at","id": null,- "name": "min_value",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "max_value": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "max_value",+ "hogql_value": "updated_at","id": null,- "name": "max_value",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"}},- "id": "system.information_schema.columns",- "name": "system.information_schema.columns",+ "id": "system.feature_requests",+ "name": "system.feature_requests","row_count": null,"type": "system"},- "system.information_schema.relationships": {+ "system.file_system": {"certification": null,"fields": {- "source_table": {+ "id": {"chain": null,"fields": null,- "hogql_value": "source_table",+ "hogql_value": "id","id": null,- "name": "source_table",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "source_column": {+ "path": {"chain": null,"fields": null,- "hogql_value": "source_column",+ "hogql_value": "path","id": null,- "name": "source_column",+ "name": "path","schema_valid": true,"table": null,"type": "string"},- "target_table": {+ "depth": {"chain": null,"fields": null,- "hogql_value": "target_table",+ "hogql_value": "depth","id": null,- "name": "target_table",+ "name": "depth","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "target_column": {+ "type": {"chain": null,"fields": null,- "hogql_value": "target_column",+ "hogql_value": "type","id": null,- "name": "target_column",+ "name": "type","schema_valid": true,"table": null,"type": "string"},- "relationship_kind": {+ "ref": {"chain": null,"fields": null,- "hogql_value": "relationship_kind",+ "hogql_value": "ref","id": null,- "name": "relationship_kind",+ "name": "ref","schema_valid": true,"table": null,"type": "string"},- "via": {+ "href": {"chain": null,"fields": null,- "hogql_value": "via",+ "hogql_value": "href","id": null,- "name": "via",+ "name": "href","schema_valid": true,"table": null,"type": "string"- }- },- "id": "system.information_schema.relationships",- "name": "system.information_schema.relationships",- "row_count": null,- "type": "system"- },- "system.information_schema.data_types": {- "certification": null,- "fields": {- "type_name": {+ },+ "meta": {"chain": null,"fields": null,- "hogql_value": "type_name",+ "hogql_value": "meta","id": null,- "name": "type_name",+ "name": "meta","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "description": {+ "surface": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "surface","id": null,- "name": "description",+ "name": "surface","schema_valid": true,"table": null,"type": "string"- }- },- "id": "system.information_schema.data_types",- "name": "system.information_schema.data_types",- "row_count": null,- "type": "system"- },- "system.hog_flows": {- "certification": null,- "fields": {- "id": {+ },+ "shortcut": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "shortcut","id": null,- "name": "id",+ "name": "shortcut","schema_valid": true,"table": null,- "type": "string"+ "type": "boolean"},- "name": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "created_at","id": null,- "name": "name",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "description": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "created_by_id","id": null,- "name": "description",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"- },- "status": {+ "type": "integer"+ }+ },+ "id": "system.file_system",+ "name": "system.file_system",+ "row_count": null,+ "type": "system"+ },+ "system.groups": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "id","id": null,- "name": "status",+ "name": "id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "version": {+ "group_key": {"chain": null,"fields": null,- "hogql_value": "version",+ "hogql_value": "group_key","id": null,- "name": "version",+ "name": "group_key","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "exit_condition": {+ "group_type_index": {"chain": null,"fields": null,- "hogql_value": "exit_condition",+ "hogql_value": "group_type_index","id": null,- "name": "exit_condition",+ "name": "group_type_index","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "trigger": {+ "group_properties": {"chain": null,"fields": null,- "hogql_value": "trigger",+ "hogql_value": "group_properties","id": null,- "name": "trigger",+ "name": "group_properties","schema_valid": true,"table": null,"type": "json"},- "edges": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "edges",+ "hogql_value": "created_at","id": null,- "name": "edges",+ "name": "created_at","schema_valid": true,"table": null,- "type": "json"- },- "actions": {+ "type": "datetime"+ }+ },+ "id": "system.groups",+ "name": "system.groups",+ "row_count": null,+ "type": "system"+ },+ "system.group_type_mappings": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "actions",+ "hogql_value": "id","id": null,- "name": "actions",+ "name": "id","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "created_by_id": {+ "group_type": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "group_type","id": null,- "name": "created_by_id",+ "name": "group_type","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_at": {+ "name_singular": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "name_singular","id": null,- "name": "created_at",+ "name": "name_singular","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "updated_at": {+ "name_plural": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "name_plural","id": null,- "name": "updated_at",+ "name": "name_plural","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"}},- "id": "system.hog_flows",- "name": "system.hog_flows",+ "id": "system.group_type_mappings",+ "name": "system.group_type_mappings","row_count": null,"type": "system"},- "system.hog_functions": {+ "system.information_schema.tables": {"certification": null,"fields": {- "id": {+ "table_catalog": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "table_catalog","id": null,- "name": "id",+ "name": "table_catalog","schema_valid": true,"table": null,"type": "string"},- "name": {+ "table_schema": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "table_schema","id": null,- "name": "name",+ "name": "table_schema","schema_valid": true,"table": null,"type": "string"},- "description": {+ "table_name": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "table_name","id": null,- "name": "description",+ "name": "table_name","schema_valid": true,"table": null,"type": "string"},- "type": {+ "table_type": {"chain": null,"fields": null,- "hogql_value": "type",+ "hogql_value": "table_type","id": null,- "name": "type",+ "name": "table_type","schema_valid": true,"table": null,"type": "string"},- "enabled": {+ "description": {"chain": null,"fields": null,- "hogql_value": "enabled",+ "hogql_value": "description","id": null,- "name": "enabled",+ "name": "description","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "deleted": {+ "row_count": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "row_count","id": null,- "name": "deleted",+ "name": "row_count","schema_valid": true,"table": null,"type": "integer"+ }+ },+ "id": "system.information_schema.tables",+ "name": "system.information_schema.tables",+ "row_count": null,+ "type": "system"+ },+ "system.information_schema.columns": {+ "certification": null,+ "fields": {+ "table_schema": {+ "chain": null,+ "fields": null,+ "hogql_value": "table_schema",+ "id": null,+ "name": "table_schema",+ "schema_valid": true,+ "table": null,+ "type": "string"},- "icon_url": {+ "table_name": {"chain": null,"fields": null,- "hogql_value": "icon_url",+ "hogql_value": "table_name","id": null,- "name": "icon_url",+ "name": "table_name","schema_valid": true,"table": null,"type": "string"},- "template_id": {+ "column_name": {"chain": null,"fields": null,- "hogql_value": "template_id",+ "hogql_value": "column_name","id": null,- "name": "template_id",+ "name": "column_name","schema_valid": true,"table": null,"type": "string"},- "execution_order": {+ "ordinal_position": {"chain": null,"fields": null,- "hogql_value": "execution_order",+ "hogql_value": "ordinal_position","id": null,- "name": "execution_order",+ "name": "ordinal_position","schema_valid": true,"table": null,"type": "integer"},- "inputs_schema": {+ "data_type": {"chain": null,"fields": null,- "hogql_value": "inputs_schema",+ "hogql_value": "data_type","id": null,- "name": "inputs_schema",+ "name": "data_type","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "filters": {+ "is_nullable": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "is_nullable","id": null,- "name": "filters",+ "name": "is_nullable","schema_valid": true,"table": null,- "type": "json"+ "type": "boolean"},- "created_at": {+ "is_array": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "is_array","id": null,- "name": "created_at",+ "name": "is_array","schema_valid": true,"table": null,- "type": "datetime"+ "type": "boolean"},- "updated_at": {+ "field_kind": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "field_kind","id": null,- "name": "updated_at",+ "name": "field_kind","schema_valid": true,"table": null,- "type": "datetime"- }- },- "id": "system.hog_functions",- "name": "system.hog_functions",- "row_count": null,- "type": "system"- },- "system.ingestion_warnings": {- "certification": null,- "fields": {- "source": {+ "type": "string"+ },+ "description": {"chain": null,"fields": null,- "hogql_value": "source",+ "hogql_value": "description","id": null,- "name": "source",+ "name": "description","schema_valid": true,"table": null,"type": "string"},- "type": {+ "null_fraction": {"chain": null,"fields": null,- "hogql_value": "type",+ "hogql_value": "null_fraction","id": null,- "name": "type",+ "name": "null_fraction","schema_valid": true,"table": null,- "type": "string"+ "type": "float"},- "details": {+ "min_value": {"chain": null,"fields": null,- "hogql_value": "details",+ "hogql_value": "min_value","id": null,- "name": "details",+ "name": "min_value","schema_valid": true,"table": null,"type": "string"},- "timestamp": {+ "max_value": {"chain": null,"fields": null,- "hogql_value": "timestamp",+ "hogql_value": "max_value","id": null,- "name": "timestamp",+ "name": "max_value","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"}},- "id": "system.ingestion_warnings",- "name": "system.ingestion_warnings",+ "id": "system.information_schema.columns",+ "name": "system.information_schema.columns","row_count": null,"type": "system"},- "system.integrations": {+ "system.information_schema.relationships": {"certification": null,"fields": {- "id": {+ "source_table": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "source_table","id": null,- "name": "id",+ "name": "source_table","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "kind": {+ "source_column": {"chain": null,"fields": null,- "hogql_value": "kind",+ "hogql_value": "source_column","id": null,- "name": "kind",+ "name": "source_column","schema_valid": true,"table": null,"type": "string"},- "integration_id": {+ "target_table": {"chain": null,"fields": null,- "hogql_value": "integration_id",+ "hogql_value": "target_table","id": null,- "name": "integration_id",+ "name": "target_table","schema_valid": true,"table": null,"type": "string"},- "config": {+ "target_column": {"chain": null,"fields": null,- "hogql_value": "config",+ "hogql_value": "target_column","id": null,- "name": "config",+ "name": "target_column","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "errors": {+ "relationship_kind": {"chain": null,"fields": null,- "hogql_value": "errors",+ "hogql_value": "relationship_kind","id": null,- "name": "errors",+ "name": "relationship_kind","schema_valid": true,"table": null,"type": "string"},- "created_at": {+ "via": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "via","id": null,- "name": "created_at",+ "name": "via","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"+ }+ },+ "id": "system.information_schema.relationships",+ "name": "system.information_schema.relationships",+ "row_count": null,+ "type": "system"+ },+ "system.information_schema.data_types": {+ "certification": null,+ "fields": {+ "type_name": {+ "chain": null,+ "fields": null,+ "hogql_value": "type_name",+ "id": null,+ "name": "type_name",+ "schema_valid": true,+ "table": null,+ "type": "string"},- "created_by_id": {+ "description": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "description","id": null,- "name": "created_by_id",+ "name": "description","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"}},- "id": "system.integrations",- "name": "system.integrations",+ "id": "system.information_schema.data_types",+ "name": "system.information_schema.data_types","row_count": null,"type": "system"},- "system.message_categories": {+ "system.hog_flows": {"certification": null,"fields": {"id": {@@ -8048,16 +8176,6 @@"table": null,"type": "string"},- "key": {- "chain": null,- "fields": null,- "hogql_value": "key",- "id": null,- "name": "key",- "schema_valid": true,- "table": null,- "type": "string"- },"name": {"chain": null,"fields": null,@@ -8078,101 +8196,72 @@"table": null,"type": "string"},- "public_description": {+ "status": {"chain": null,"fields": null,- "hogql_value": "public_description",+ "hogql_value": "status","id": null,- "name": "public_description",+ "name": "status","schema_valid": true,"table": null,"type": "string"},- "category_type": {+ "version": {"chain": null,"fields": null,- "hogql_value": "category_type",+ "hogql_value": "version","id": null,- "name": "category_type",+ "name": "version","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "deleted": {+ "exit_condition": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "exit_condition","id": null,- "name": "deleted",+ "name": "exit_condition","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_at": {+ "trigger": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "trigger","id": null,- "name": "created_at",+ "name": "trigger","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "updated_at": {- "chain": null,- "fields": null,- "hogql_value": "updated_at",- "id": null,- "name": "updated_at",- "schema_valid": true,- "table": null,- "type": "datetime"- }- },- "id": "system.message_categories",- "name": "system.message_categories",- "row_count": null,- "type": "system"- },- "system.message_recipient_preferences": {- "certification": null,- "fields": {- "id": {- "chain": null,- "fields": null,- "hogql_value": "id",- "id": null,- "name": "id",- "schema_valid": true,- "table": null,- "type": "string"- },- "identifier": {+ "edges": {"chain": null,"fields": null,- "hogql_value": "identifier",+ "hogql_value": "edges","id": null,- "name": "identifier",+ "name": "edges","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "preferences": {+ "actions": {"chain": null,"fields": null,- "hogql_value": "preferences",+ "hogql_value": "actions","id": null,- "name": "preferences",+ "name": "actions","schema_valid": true,"table": null,"type": "json"},- "deleted": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "created_by_id","id": null,- "name": "deleted",+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"@@ -8198,12 +8287,12 @@"type": "datetime"}},- "id": "system.message_recipient_preferences",- "name": "system.message_recipient_preferences",+ "id": "system.hog_flows",+ "name": "system.hog_flows","row_count": null,"type": "system"},- "system.integration_repository_cache": {+ "system.hog_functions": {"certification": null,"fields": {"id": {@@ -8216,32 +8305,12 @@"table": null,"type": "string"},- "integration_id": {- "chain": null,- "fields": null,- "hogql_value": "integration_id",- "id": null,- "name": "integration_id",- "schema_valid": true,- "table": null,- "type": "integer"- },- "user_integration_id": {- "chain": null,- "fields": null,- "hogql_value": "user_integration_id",- "id": null,- "name": "user_integration_id",- "schema_valid": true,- "table": null,- "type": "integer"- },- "full_name": {+ "name": {"chain": null,"fields": null,- "hogql_value": "full_name",+ "hogql_value": "name","id": null,- "name": "full_name",+ "name": "name","schema_valid": true,"table": null,"type": "string"@@ -8256,95 +8325,95 @@"table": null,"type": "string"},- "topics": {+ "type": {"chain": null,"fields": null,- "hogql_value": "topics",+ "hogql_value": "type","id": null,- "name": "topics",+ "name": "type","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "archived": {+ "enabled": {"chain": null,"fields": null,- "hogql_value": "archived",+ "hogql_value": "enabled","id": null,- "name": "archived",+ "name": "enabled","schema_valid": true,"table": null,- "type": "boolean"+ "type": "integer"},- "fork": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "fork",+ "hogql_value": "deleted","id": null,- "name": "fork",+ "name": "deleted","schema_valid": true,"table": null,- "type": "boolean"+ "type": "integer"},- "primary_language": {+ "icon_url": {"chain": null,"fields": null,- "hogql_value": "primary_language",+ "hogql_value": "icon_url","id": null,- "name": "primary_language",+ "name": "icon_url","schema_valid": true,"table": null,"type": "string"},- "default_branch": {+ "template_id": {"chain": null,"fields": null,- "hogql_value": "default_branch",+ "hogql_value": "template_id","id": null,- "name": "default_branch",+ "name": "template_id","schema_valid": true,"table": null,"type": "string"},- "default_branch_sha": {+ "execution_order": {"chain": null,"fields": null,- "hogql_value": "default_branch_sha",+ "hogql_value": "execution_order","id": null,- "name": "default_branch_sha",+ "name": "execution_order","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "readme": {+ "inputs_schema": {"chain": null,"fields": null,- "hogql_value": "readme",+ "hogql_value": "inputs_schema","id": null,- "name": "readme",+ "name": "inputs_schema","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "tree_paths": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "tree_paths",+ "hogql_value": "filters","id": null,- "name": "tree_paths",+ "name": "filters","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "tree_truncated": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "tree_truncated",+ "hogql_value": "created_at","id": null,- "name": "tree_truncated",+ "name": "created_at","schema_valid": true,"table": null,- "type": "boolean"+ "type": "datetime"},"updated_at": {"chain": null,@@ -8357,30 +8426,20 @@"type": "datetime"}},- "id": "system.integration_repository_cache",- "name": "system.integration_repository_cache",+ "id": "system.hog_functions",+ "name": "system.hog_functions","row_count": null,"type": "system"},- "system.insight_variables": {+ "system.ingestion_warnings": {"certification": null,"fields": {- "id": {- "chain": null,- "fields": null,- "hogql_value": "id",- "id": null,- "name": "id",- "schema_valid": true,- "table": null,- "type": "string"- },- "name": {+ "source": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "source","id": null,- "name": "name",+ "name": "source","schema_valid": true,"table": null,"type": "string"@@ -8395,43 +8454,33 @@"table": null,"type": "string"},- "code_name": {+ "details": {"chain": null,"fields": null,- "hogql_value": "code_name",+ "hogql_value": "details","id": null,- "name": "code_name",+ "name": "details","schema_valid": true,"table": null,"type": "string"},- "values": {- "chain": null,- "fields": null,- "hogql_value": "values",- "id": null,- "name": "values",- "schema_valid": true,- "table": null,- "type": "json"- },- "default_value": {+ "timestamp": {"chain": null,"fields": null,- "hogql_value": "default_value",+ "hogql_value": "timestamp","id": null,- "name": "default_value",+ "name": "timestamp","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"}},- "id": "system.insight_variables",- "name": "system.insight_variables",+ "id": "system.ingestion_warnings",+ "name": "system.ingestion_warnings","row_count": null,"type": "system"},- "system.logs_alerts": {+ "system.integrations": {"certification": null,"fields": {"id": {@@ -8442,164 +8491,143 @@"name": "id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "name": {+ "kind": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "kind","id": null,- "name": "name",+ "name": "kind","schema_valid": true,"table": null,"type": "string"},- "enabled": {+ "integration_id": {"chain": null,"fields": null,- "hogql_value": "enabled",+ "hogql_value": "integration_id","id": null,- "name": "enabled",+ "name": "integration_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "filters": {+ "config": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "config","id": null,- "name": "filters",+ "name": "config","schema_valid": true,"table": null,"type": "json"},- "threshold_count": {- "chain": null,- "fields": null,- "hogql_value": "threshold_count",- "id": null,- "name": "threshold_count",- "schema_valid": true,- "table": null,- "type": "integer"- },- "threshold_operator": {+ "errors": {"chain": null,"fields": null,- "hogql_value": "threshold_operator",+ "hogql_value": "errors","id": null,- "name": "threshold_operator",+ "name": "errors","schema_valid": true,"table": null,"type": "string"},- "window_minutes": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "window_minutes",+ "hogql_value": "created_at","id": null,- "name": "window_minutes",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "check_interval_minutes": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "check_interval_minutes",+ "hogql_value": "created_by_id","id": null,- "name": "check_interval_minutes",+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"- },- "state": {- "chain": null,- "fields": null,- "hogql_value": "state",- "id": null,- "name": "state",- "schema_valid": true,- "table": null,- "type": "string"- },- "evaluation_periods": {- "chain": null,- "fields": null,- "hogql_value": "evaluation_periods",- "id": null,- "name": "evaluation_periods",- "schema_valid": true,- "table": null,- "type": "integer"- },- "datapoints_to_alarm": {+ }+ },+ "id": "system.integrations",+ "name": "system.integrations",+ "row_count": null,+ "type": "system"+ },+ "system.message_categories": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "datapoints_to_alarm",+ "hogql_value": "id","id": null,- "name": "datapoints_to_alarm",+ "name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "cooldown_minutes": {+ "key": {"chain": null,"fields": null,- "hogql_value": "cooldown_minutes",+ "hogql_value": "key","id": null,- "name": "cooldown_minutes",+ "name": "key","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "snooze_until": {+ "name": {"chain": null,"fields": null,- "hogql_value": "snooze_until",+ "hogql_value": "name","id": null,- "name": "snooze_until",+ "name": "name","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "next_check_at": {+ "description": {"chain": null,"fields": null,- "hogql_value": "next_check_at",+ "hogql_value": "description","id": null,- "name": "next_check_at",+ "name": "description","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "last_notified_at": {+ "public_description": {"chain": null,"fields": null,- "hogql_value": "last_notified_at",+ "hogql_value": "public_description","id": null,- "name": "last_notified_at",+ "name": "public_description","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "last_checked_at": {+ "category_type": {"chain": null,"fields": null,- "hogql_value": "last_checked_at",+ "hogql_value": "category_type","id": null,- "name": "last_checked_at",+ "name": "category_type","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "consecutive_failures": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "consecutive_failures",+ "hogql_value": "deleted","id": null,- "name": "consecutive_failures",+ "name": "deleted","schema_valid": true,"table": null,"type": "integer"@@ -8625,12 +8653,12 @@"type": "datetime"}},- "id": "system.logs_alerts",- "name": "system.logs_alerts",+ "id": "system.message_categories",+ "name": "system.message_categories","row_count": null,"type": "system"},- "system.logs_views": {+ "system.message_recipient_preferences": {"certification": null,"fields": {"id": {@@ -8643,42 +8671,32 @@"table": null,"type": "string"},- "short_id": {- "chain": null,- "fields": null,- "hogql_value": "short_id",- "id": null,- "name": "short_id",- "schema_valid": true,- "table": null,- "type": "string"- },- "name": {+ "identifier": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "identifier","id": null,- "name": "name",+ "name": "identifier","schema_valid": true,"table": null,"type": "string"},- "filters": {+ "preferences": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "preferences","id": null,- "name": "filters",+ "name": "preferences","schema_valid": true,"table": null,"type": "json"},- "pinned": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "pinned",+ "hogql_value": "deleted","id": null,- "name": "pinned",+ "name": "deleted","schema_valid": true,"table": null,"type": "integer"@@ -8704,12 +8722,12 @@"type": "datetime"}},- "id": "system.logs_views",- "name": "system.logs_views",+ "id": "system.message_recipient_preferences",+ "name": "system.message_recipient_preferences","row_count": null,"type": "system"},- "system.insights": {+ "system.integration_repository_cache": {"certification": null,"fields": {"id": {@@ -8720,137 +8738,137 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "short_id": {+ "integration_id": {"chain": null,"fields": null,- "hogql_value": "short_id",+ "hogql_value": "integration_id","id": null,- "name": "short_id",+ "name": "integration_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "name": {+ "user_integration_id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "user_integration_id","id": null,- "name": "name",+ "name": "user_integration_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "description": {+ "full_name": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "full_name","id": null,- "name": "description",+ "name": "full_name","schema_valid": true,"table": null,"type": "string"},- "filters": {+ "description": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "description","id": null,- "name": "filters",+ "name": "description","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "query": {+ "topics": {"chain": null,"fields": null,- "hogql_value": "query",+ "hogql_value": "topics","id": null,- "name": "query",+ "name": "topics","schema_valid": true,"table": null,"type": "json"},- "query_metadata": {+ "archived": {"chain": null,"fields": null,- "hogql_value": "query_metadata",+ "hogql_value": "archived","id": null,- "name": "query_metadata",+ "name": "archived","schema_valid": true,"table": null,- "type": "json"+ "type": "boolean"},- "deleted": {+ "fork": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "fork","id": null,- "name": "deleted",+ "name": "fork","schema_valid": true,"table": null,- "type": "integer"+ "type": "boolean"},- "saved": {+ "primary_language": {"chain": null,"fields": null,- "hogql_value": "saved",+ "hogql_value": "primary_language","id": null,- "name": "saved",+ "name": "primary_language","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "favorited": {+ "default_branch": {"chain": null,"fields": null,- "hogql_value": "favorited",+ "hogql_value": "default_branch","id": null,- "name": "favorited",+ "name": "default_branch","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_at": {+ "default_branch_sha": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "default_branch_sha","id": null,- "name": "created_at",+ "name": "default_branch_sha","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "created_by_id": {+ "readme": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "readme","id": null,- "name": "created_by_id",+ "name": "readme","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "last_modified_at": {+ "tree_paths": {"chain": null,"fields": null,- "hogql_value": "last_modified_at",+ "hogql_value": "tree_paths","id": null,- "name": "last_modified_at",+ "name": "tree_paths","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "last_modified_by_id": {+ "tree_truncated": {"chain": null,"fields": null,- "hogql_value": "last_modified_by_id",+ "hogql_value": "tree_truncated","id": null,- "name": "last_modified_by_id",+ "name": "tree_truncated","schema_valid": true,"table": null,- "type": "integer"+ "type": "boolean"},"updated_at": {"chain": null,@@ -8863,12 +8881,12 @@"type": "datetime"}},- "id": "system.insights",- "name": "system.insights",+ "id": "system.integration_repository_cache",+ "name": "system.integration_repository_cache","row_count": null,"type": "system"},- "system.notebooks": {+ "system.insight_variables": {"certification": null,"fields": {"id": {@@ -8881,211 +8899,231 @@"table": null,"type": "string"},- "short_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "short_id",+ "hogql_value": "name","id": null,- "name": "short_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "title": {+ "type": {"chain": null,"fields": null,- "hogql_value": "title",+ "hogql_value": "type","id": null,- "name": "title",+ "name": "type","schema_valid": true,"table": null,"type": "string"},- "content": {+ "code_name": {"chain": null,"fields": null,- "hogql_value": "content",+ "hogql_value": "code_name","id": null,- "name": "content",+ "name": "code_name","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "markdown": {+ "values": {"chain": null,"fields": null,- "hogql_value": "markdown",+ "hogql_value": "values","id": null,- "name": "markdown",+ "name": "values","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "text_content": {+ "default_value": {"chain": null,"fields": null,- "hogql_value": "text_content",+ "hogql_value": "default_value","id": null,- "name": "text_content",+ "name": "default_value",+ "schema_valid": true,+ "table": null,+ "type": "json"+ }+ },+ "id": "system.insight_variables",+ "name": "system.insight_variables",+ "row_count": null,+ "type": "system"+ },+ "system.logs_alerts": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "deleted": {+ "name": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "name","id": null,- "name": "deleted",+ "name": "name",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "enabled": {+ "chain": null,+ "fields": null,+ "hogql_value": "enabled",+ "id": null,+ "name": "enabled","schema_valid": true,"table": null,"type": "integer"},- "visibility": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "visibility",+ "hogql_value": "filters","id": null,- "name": "visibility",+ "name": "filters","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "version": {+ "threshold_count": {"chain": null,"fields": null,- "hogql_value": "version",+ "hogql_value": "threshold_count","id": null,- "name": "version",+ "name": "threshold_count","schema_valid": true,"table": null,"type": "integer"},- "created_by_id": {+ "threshold_operator": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "threshold_operator","id": null,- "name": "created_by_id",+ "name": "threshold_operator","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_at": {+ "window_minutes": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "window_minutes","id": null,- "name": "created_at",+ "name": "window_minutes","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "last_modified_at": {+ "check_interval_minutes": {"chain": null,"fields": null,- "hogql_value": "last_modified_at",+ "hogql_value": "check_interval_minutes","id": null,- "name": "last_modified_at",+ "name": "check_interval_minutes","schema_valid": true,"table": null,- "type": "datetime"- }- },- "id": "system.notebooks",- "name": "system.notebooks",- "row_count": null,- "type": "system"- },- "system.sandbox_environments": {- "certification": null,- "fields": {- "id": {+ "type": "integer"+ },+ "state": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "state","id": null,- "name": "id",+ "name": "state","schema_valid": true,"table": null,"type": "string"},- "created_by_id": {+ "evaluation_periods": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "evaluation_periods","id": null,- "name": "created_by_id",+ "name": "evaluation_periods","schema_valid": true,"table": null,"type": "integer"},- "name": {+ "datapoints_to_alarm": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "datapoints_to_alarm","id": null,- "name": "name",+ "name": "datapoints_to_alarm","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "network_access_level": {+ "cooldown_minutes": {"chain": null,"fields": null,- "hogql_value": "network_access_level",+ "hogql_value": "cooldown_minutes","id": null,- "name": "network_access_level",+ "name": "cooldown_minutes","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "allowed_domains": {+ "snooze_until": {"chain": null,"fields": null,- "hogql_value": "allowed_domains",+ "hogql_value": "snooze_until","id": null,- "name": "allowed_domains",+ "name": "snooze_until","schema_valid": true,"table": null,- "type": "array"+ "type": "datetime"},- "include_default_domains": {+ "next_check_at": {"chain": null,"fields": null,- "hogql_value": "include_default_domains",+ "hogql_value": "next_check_at","id": null,- "name": "include_default_domains",+ "name": "next_check_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "repositories": {+ "last_notified_at": {"chain": null,"fields": null,- "hogql_value": "repositories",+ "hogql_value": "last_notified_at","id": null,- "name": "repositories",+ "name": "last_notified_at","schema_valid": true,"table": null,- "type": "array"+ "type": "datetime"},- "private": {+ "last_checked_at": {"chain": null,"fields": null,- "hogql_value": "private",+ "hogql_value": "last_checked_at","id": null,- "name": "private",+ "name": "last_checked_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "internal": {+ "consecutive_failures": {"chain": null,"fields": null,- "hogql_value": "internal",+ "hogql_value": "consecutive_failures","id": null,- "name": "internal",+ "name": "consecutive_failures","schema_valid": true,"table": null,"type": "integer"@@ -9111,12 +9149,12 @@"type": "datetime"}},- "id": "system.sandbox_environments",- "name": "system.sandbox_environments",+ "id": "system.logs_alerts",+ "name": "system.logs_alerts","row_count": null,"type": "system"},- "system.review_queue_items": {+ "system.logs_views": {"certification": null,"fields": {"id": {@@ -9129,32 +9167,42 @@"table": null,"type": "string"},- "queue_id": {+ "short_id": {"chain": null,"fields": null,- "hogql_value": "queue_id",+ "hogql_value": "short_id","id": null,- "name": "queue_id",+ "name": "short_id","schema_valid": true,"table": null,"type": "string"},- "trace_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "trace_id",+ "hogql_value": "name","id": null,- "name": "trace_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "created_by_id": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "filters","id": null,- "name": "created_by_id",+ "name": "filters",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "pinned": {+ "chain": null,+ "fields": null,+ "hogql_value": "pinned",+ "id": null,+ "name": "pinned","schema_valid": true,"table": null,"type": "integer"@@ -9178,34 +9226,14 @@"schema_valid": true,"table": null,"type": "datetime"- },- "deleted": {- "chain": null,- "fields": null,- "hogql_value": "deleted",- "id": null,- "name": "deleted",- "schema_valid": true,- "table": null,- "type": "integer"- },- "deleted_at": {- "chain": null,- "fields": null,- "hogql_value": "deleted_at",- "id": null,- "name": "deleted_at",- "schema_valid": true,- "table": null,- "type": "datetime"}},- "id": "system.review_queue_items",- "name": "system.review_queue_items",+ "id": "system.logs_views",+ "name": "system.logs_views","row_count": null,"type": "system"},- "system.review_queues": {+ "system.insights": {"certification": null,"fields": {"id": {@@ -9216,6 +9244,16 @@"name": "id","schema_valid": true,"table": null,+ "type": "integer"+ },+ "short_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "short_id",+ "id": null,+ "name": "short_id",+ "schema_valid": true,+ "table": null,"type": "string"},"name": {@@ -9228,145 +9266,116 @@"table": null,"type": "string"},- "created_by_id": {+ "description": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "description","id": null,- "name": "created_by_id",+ "name": "description","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_at": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "filters","id": null,- "name": "created_at",+ "name": "filters","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "updated_at": {+ "query": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "query","id": null,- "name": "updated_at",+ "name": "query","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "deleted": {+ "query_metadata": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "query_metadata","id": null,- "name": "deleted",+ "name": "query_metadata","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "deleted_at": {- "chain": null,- "fields": null,- "hogql_value": "deleted_at",- "id": null,- "name": "deleted_at",- "schema_valid": true,- "table": null,- "type": "datetime"- }- },- "id": "system.review_queues",- "name": "system.review_queues",- "row_count": null,- "type": "system"- },- "system.score_definitions": {- "certification": null,- "fields": {- "id": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "deleted","id": null,- "name": "id",+ "name": "deleted","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "name": {+ "saved": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "saved","id": null,- "name": "name",+ "name": "saved","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "description": {+ "favorited": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "favorited","id": null,- "name": "description",+ "name": "favorited","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "kind": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "kind",+ "hogql_value": "created_at","id": null,- "name": "kind",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "archived": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "archived",+ "hogql_value": "created_by_id","id": null,- "name": "archived",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "boolean"+ "type": "integer"},- "current_version_id": {+ "last_modified_at": {"chain": null,"fields": null,- "hogql_value": "current_version_id",+ "hogql_value": "last_modified_at","id": null,- "name": "current_version_id",+ "name": "last_modified_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "created_by_id": {+ "last_modified_by_id": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "last_modified_by_id","id": null,- "name": "created_by_id",+ "name": "last_modified_by_id","schema_valid": true,"table": null,"type": "integer"},- "created_at": {- "chain": null,- "fields": null,- "hogql_value": "created_at",- "id": null,- "name": "created_at",- "schema_valid": true,- "table": null,- "type": "datetime"- },"updated_at": {"chain": null,"fields": null,@@ -9378,12 +9387,12 @@"type": "datetime"}},- "id": "system.score_definitions",- "name": "system.score_definitions",+ "id": "system.insights",+ "name": "system.insights","row_count": null,"type": "system"},- "system.session_recording_playlists": {+ "system.notebooks": {"certification": null,"fields": {"id": {@@ -9394,7 +9403,7 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},"short_id": {"chain": null,@@ -9406,45 +9415,45 @@"table": null,"type": "string"},- "name": {+ "title": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "title","id": null,- "name": "name",+ "name": "title","schema_valid": true,"table": null,"type": "string"},- "derived_name": {+ "content": {"chain": null,"fields": null,- "hogql_value": "derived_name",+ "hogql_value": "content","id": null,- "name": "derived_name",+ "name": "content","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "description": {+ "markdown": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "markdown","id": null,- "name": "description",+ "name": "markdown","schema_valid": true,"table": null,"type": "string"},- "pinned": {+ "text_content": {"chain": null,"fields": null,- "hogql_value": "pinned",+ "hogql_value": "text_content","id": null,- "name": "pinned",+ "name": "text_content","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},"deleted": {"chain": null,@@ -9456,35 +9465,25 @@"table": null,"type": "integer"},- "filters": {- "chain": null,- "fields": null,- "hogql_value": "filters",- "id": null,- "name": "filters",- "schema_valid": true,- "table": null,- "type": "json"- },- "type": {+ "visibility": {"chain": null,"fields": null,- "hogql_value": "type",+ "hogql_value": "visibility","id": null,- "name": "type",+ "name": "visibility","schema_valid": true,"table": null,"type": "string"},- "created_at": {+ "version": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "version","id": null,- "name": "created_at",+ "name": "version","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},"created_by_id": {"chain": null,@@ -9496,33 +9495,33 @@"table": null,"type": "integer"},- "last_modified_at": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "last_modified_at",+ "hogql_value": "created_at","id": null,- "name": "last_modified_at",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"},- "last_modified_by_id": {+ "last_modified_at": {"chain": null,"fields": null,- "hogql_value": "last_modified_by_id",+ "hogql_value": "last_modified_at","id": null,- "name": "last_modified_by_id",+ "name": "last_modified_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"}},- "id": "system.session_recording_playlists",- "name": "system.session_recording_playlists",+ "id": "system.notebooks",+ "name": "system.notebooks","row_count": null,"type": "system"},- "system.session_recordings": {+ "system.sandbox_environments": {"certification": null,"fields": {"id": {@@ -9535,193 +9534,202 @@"table": null,"type": "string"},- "session_id": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "session_id",+ "hogql_value": "created_by_id","id": null,- "name": "session_id",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "distinct_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "distinct_id",+ "hogql_value": "name","id": null,- "name": "distinct_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "duration": {+ "network_access_level": {"chain": null,"fields": null,- "hogql_value": "duration",+ "hogql_value": "network_access_level","id": null,- "name": "duration",+ "name": "network_access_level","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "active_seconds": {+ "allowed_domains": {"chain": null,"fields": null,- "hogql_value": "active_seconds",+ "hogql_value": "allowed_domains","id": null,- "name": "active_seconds",+ "name": "allowed_domains","schema_valid": true,"table": null,- "type": "integer"+ "type": "array"},- "inactive_seconds": {+ "include_default_domains": {"chain": null,"fields": null,- "hogql_value": "inactive_seconds",+ "hogql_value": "include_default_domains","id": null,- "name": "inactive_seconds",+ "name": "include_default_domains","schema_valid": true,"table": null,"type": "integer"},- "start_time": {+ "repositories": {"chain": null,"fields": null,- "hogql_value": "start_time",+ "hogql_value": "repositories","id": null,- "name": "start_time",+ "name": "repositories","schema_valid": true,"table": null,- "type": "datetime"+ "type": "array"},- "end_time": {+ "private": {"chain": null,"fields": null,- "hogql_value": "end_time",+ "hogql_value": "private","id": null,- "name": "end_time",+ "name": "private","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "click_count": {+ "internal": {"chain": null,"fields": null,- "hogql_value": "click_count",+ "hogql_value": "internal","id": null,- "name": "click_count",+ "name": "internal","schema_valid": true,"table": null,"type": "integer"},- "keypress_count": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "keypress_count",+ "hogql_value": "created_at","id": null,- "name": "keypress_count",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "mouse_activity_count": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "mouse_activity_count",+ "hogql_value": "updated_at","id": null,- "name": "mouse_activity_count",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "integer"- },- "console_log_count": {+ "type": "datetime"+ }+ },+ "id": "system.sandbox_environments",+ "name": "system.sandbox_environments",+ "row_count": null,+ "type": "system"+ },+ "system.review_queue_items": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "console_log_count",+ "hogql_value": "id","id": null,- "name": "console_log_count",+ "name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "console_warn_count": {+ "queue_id": {"chain": null,"fields": null,- "hogql_value": "console_warn_count",+ "hogql_value": "queue_id","id": null,- "name": "console_warn_count",+ "name": "queue_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "console_error_count": {+ "trace_id": {"chain": null,"fields": null,- "hogql_value": "console_error_count",+ "hogql_value": "trace_id","id": null,- "name": "console_error_count",+ "name": "trace_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "start_url": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "start_url",+ "hogql_value": "created_by_id","id": null,- "name": "start_url",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "deleted": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "created_at","id": null,- "name": "deleted",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "created_at": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "updated_at","id": null,- "name": "created_at",+ "name": "updated_at","schema_valid": true,"table": null,"type": "datetime"},- "retention_period_days": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "retention_period_days",+ "hogql_value": "deleted","id": null,- "name": "retention_period_days",+ "name": "deleted","schema_valid": true,"table": null,"type": "integer"},- "storage_version": {+ "deleted_at": {"chain": null,"fields": null,- "hogql_value": "storage_version",+ "hogql_value": "deleted_at","id": null,- "name": "storage_version",+ "name": "deleted_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"}},- "id": "system.session_recordings",- "name": "system.session_recordings",+ "id": "system.review_queue_items",+ "name": "system.review_queue_items","row_count": null,"type": "system"},- "system.source_schemas": {+ "system.review_queues": {"certification": null,"fields": {"id": {@@ -9744,75 +9752,15 @@"table": null,"type": "string"},- "source_id": {- "chain": null,- "fields": null,- "hogql_value": "source_id",- "id": null,- "name": "source_id",- "schema_valid": true,- "table": null,- "type": "string"- },- "table_id": {- "chain": null,- "fields": null,- "hogql_value": "table_id",- "id": null,- "name": "table_id",- "schema_valid": true,- "table": null,- "type": "string"- },- "should_sync": {- "chain": null,- "fields": null,- "hogql_value": "should_sync",- "id": null,- "name": "should_sync",- "schema_valid": true,- "table": null,- "type": "boolean"- },- "status": {- "chain": null,- "fields": null,- "hogql_value": "status",- "id": null,- "name": "status",- "schema_valid": true,- "table": null,- "type": "string"- },- "sync_type": {- "chain": null,- "fields": null,- "hogql_value": "sync_type",- "id": null,- "name": "sync_type",- "schema_valid": true,- "table": null,- "type": "string"- },- "last_synced_at": {- "chain": null,- "fields": null,- "hogql_value": "last_synced_at",- "id": null,- "name": "last_synced_at",- "schema_valid": true,- "table": null,- "type": "datetime"- },- "latest_error": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "latest_error",+ "hogql_value": "created_by_id","id": null,- "name": "latest_error",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},"created_at": {"chain": null,@@ -9855,12 +9803,12 @@"type": "datetime"}},- "id": "system.source_schemas",- "name": "system.source_schemas",+ "id": "system.review_queues",+ "name": "system.review_queues","row_count": null,"type": "system"},- "system.source_sync_jobs": {+ "system.score_definitions": {"certification": null,"fields": {"id": {@@ -9873,65 +9821,65 @@"table": null,"type": "string"},- "pipeline_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "pipeline_id",+ "hogql_value": "name","id": null,- "name": "pipeline_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "schema_id": {+ "description": {"chain": null,"fields": null,- "hogql_value": "schema_id",+ "hogql_value": "description","id": null,- "name": "schema_id",+ "name": "description","schema_valid": true,"table": null,"type": "string"},- "status": {+ "kind": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "kind","id": null,- "name": "status",+ "name": "kind","schema_valid": true,"table": null,"type": "string"},- "rows_synced": {+ "archived": {"chain": null,"fields": null,- "hogql_value": "rows_synced",+ "hogql_value": "archived","id": null,- "name": "rows_synced",+ "name": "archived","schema_valid": true,"table": null,- "type": "integer"+ "type": "boolean"},- "billable": {+ "current_version_id": {"chain": null,"fields": null,- "hogql_value": "billable",+ "hogql_value": "current_version_id","id": null,- "name": "billable",+ "name": "current_version_id","schema_valid": true,"table": null,- "type": "boolean"+ "type": "string"},- "latest_error": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "latest_error",+ "hogql_value": "created_by_id","id": null,- "name": "latest_error",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},"created_at": {"chain": null,@@ -9943,16 +9891,6 @@"table": null,"type": "datetime"},- "finished_at": {- "chain": null,- "fields": null,- "hogql_value": "finished_at",- "id": null,- "name": "finished_at",- "schema_valid": true,- "table": null,- "type": "datetime"- },"updated_at": {"chain": null,"fields": null,@@ -9964,12 +9902,12 @@"type": "datetime"}},- "id": "system.source_sync_jobs",- "name": "system.source_sync_jobs",+ "id": "system.score_definitions",+ "name": "system.score_definitions","row_count": null,"type": "system"},- "system.support_tickets": {+ "system.session_recording_playlists": {"certification": null,"fields": {"id": {@@ -9980,352 +9918,334 @@"name": "id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "ticket_number": {+ "short_id": {"chain": null,"fields": null,- "hogql_value": "ticket_number",+ "hogql_value": "short_id","id": null,- "name": "ticket_number",+ "name": "short_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "channel_source": {+ "name": {"chain": null,"fields": null,- "hogql_value": "channel_source",+ "hogql_value": "name","id": null,- "name": "channel_source",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "channel_detail": {+ "derived_name": {"chain": null,"fields": null,- "hogql_value": "channel_detail",+ "hogql_value": "derived_name","id": null,- "name": "channel_detail",+ "name": "derived_name","schema_valid": true,"table": null,"type": "string"},- "distinct_id": {+ "description": {"chain": null,"fields": null,- "hogql_value": "distinct_id",+ "hogql_value": "description","id": null,- "name": "distinct_id",+ "name": "description","schema_valid": true,"table": null,"type": "string"},- "status": {+ "pinned": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "pinned","id": null,- "name": "status",+ "name": "pinned","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "priority": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "priority",+ "hogql_value": "deleted","id": null,- "name": "priority",+ "name": "deleted","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "anonymous_traits": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "anonymous_traits",+ "hogql_value": "filters","id": null,- "name": "anonymous_traits",+ "name": "filters","schema_valid": true,"table": null,"type": "json"},- "ai_resolved": {+ "type": {"chain": null,"fields": null,- "hogql_value": "ai_resolved",+ "hogql_value": "type","id": null,- "name": "ai_resolved",+ "name": "type","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "escalation_reason": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "escalation_reason",+ "hogql_value": "created_at","id": null,- "name": "escalation_reason",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "message_count": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "message_count",+ "hogql_value": "created_by_id","id": null,- "name": "message_count",+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"},- "unread_customer_count": {+ "last_modified_at": {"chain": null,"fields": null,- "hogql_value": "unread_customer_count",+ "hogql_value": "last_modified_at","id": null,- "name": "unread_customer_count",+ "name": "last_modified_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "unread_team_count": {+ "last_modified_by_id": {"chain": null,"fields": null,- "hogql_value": "unread_team_count",+ "hogql_value": "last_modified_by_id","id": null,- "name": "unread_team_count",+ "name": "last_modified_by_id","schema_valid": true,"table": null,"type": "integer"- },- "last_message_at": {+ }+ },+ "id": "system.session_recording_playlists",+ "name": "system.session_recording_playlists",+ "row_count": null,+ "type": "system"+ },+ "system.session_recordings": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "last_message_at",+ "hogql_value": "id","id": null,- "name": "last_message_at",+ "name": "id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "last_message_text": {+ "session_id": {"chain": null,"fields": null,- "hogql_value": "last_message_text",+ "hogql_value": "session_id","id": null,- "name": "last_message_text",+ "name": "session_id","schema_valid": true,"table": null,"type": "string"},- "email_subject": {+ "distinct_id": {"chain": null,"fields": null,- "hogql_value": "email_subject",+ "hogql_value": "distinct_id","id": null,- "name": "email_subject",+ "name": "distinct_id","schema_valid": true,"table": null,"type": "string"},- "email_from": {+ "duration": {"chain": null,"fields": null,- "hogql_value": "email_from",+ "hogql_value": "duration","id": null,- "name": "email_from",+ "name": "duration","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "session_id": {+ "active_seconds": {"chain": null,"fields": null,- "hogql_value": "session_id",+ "hogql_value": "active_seconds","id": null,- "name": "session_id",+ "name": "active_seconds","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "session_context": {+ "inactive_seconds": {"chain": null,"fields": null,- "hogql_value": "session_context",+ "hogql_value": "inactive_seconds","id": null,- "name": "session_context",+ "name": "inactive_seconds","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "sla_due_at": {+ "start_time": {"chain": null,"fields": null,- "hogql_value": "sla_due_at",+ "hogql_value": "start_time","id": null,- "name": "sla_due_at",+ "name": "start_time","schema_valid": true,"table": null,"type": "datetime"},- "created_at": {+ "end_time": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "end_time","id": null,- "name": "created_at",+ "name": "end_time","schema_valid": true,"table": null,"type": "datetime"},- "updated_at": {+ "click_count": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "click_count","id": null,- "name": "updated_at",+ "name": "click_count","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "tags": {+ "keypress_count": {"chain": null,- "fields": [- "ticket_id",- "names"- ],- "hogql_value": "tags",- "id": "tags",- "name": "tags",+ "fields": null,+ "hogql_value": "keypress_count",+ "id": null,+ "name": "keypress_count","schema_valid": true,- "table": "ticket_tags",- "type": "lazy_table"+ "table": null,+ "type": "integer"},- "assignee": {- "chain": null,- "fields": [- "ticket_id",- "user_id",- "role_id",- "role_name"- ],- "hogql_value": "assignee",- "id": "assignee",- "name": "assignee",- "schema_valid": true,- "table": "ticket_assignment",- "type": "lazy_table"- }- },- "id": "system.support_tickets",- "name": "system.support_tickets",- "row_count": null,- "type": "system"- },- "system.surveys": {- "certification": null,- "fields": {- "id": {+ "mouse_activity_count": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "mouse_activity_count","id": null,- "name": "id",+ "name": "mouse_activity_count","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "name": {+ "console_log_count": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "console_log_count","id": null,- "name": "name",+ "name": "console_log_count","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "type": {+ "console_warn_count": {"chain": null,"fields": null,- "hogql_value": "type",+ "hogql_value": "console_warn_count","id": null,- "name": "type",+ "name": "console_warn_count","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "questions": {+ "console_error_count": {"chain": null,"fields": null,- "hogql_value": "questions",+ "hogql_value": "console_error_count","id": null,- "name": "questions",+ "name": "console_error_count","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "appearance": {+ "start_url": {"chain": null,"fields": null,- "hogql_value": "appearance",+ "hogql_value": "start_url","id": null,- "name": "appearance",+ "name": "start_url","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "start_date": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "start_date",+ "hogql_value": "deleted","id": null,- "name": "start_date",+ "name": "deleted","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "end_date": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "end_date",+ "hogql_value": "created_at","id": null,- "name": "end_date",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"},- "created_by_id": {+ "retention_period_days": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "retention_period_days","id": null,- "name": "created_by_id",+ "name": "retention_period_days","schema_valid": true,"table": null,"type": "integer"},- "created_at": {+ "storage_version": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "storage_version","id": null,- "name": "created_at",+ "name": "storage_version","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"}},- "id": "system.surveys",- "name": "system.surveys",+ "id": "system.session_recordings",+ "name": "system.session_recordings","row_count": null,"type": "system"},- "system.survey_response_archives": {+ "system.source_schemas": {"certification": null,"fields": {"id": {@@ -10338,201 +10258,242 @@"table": null,"type": "string"},- "survey_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "survey_id",+ "hogql_value": "name","id": null,- "name": "survey_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "response_uuid": {+ "source_id": {"chain": null,"fields": null,- "hogql_value": "response_uuid",+ "hogql_value": "source_id","id": null,- "name": "response_uuid",+ "name": "source_id","schema_valid": true,"table": null,"type": "string"},- "archived_at": {+ "table_id": {"chain": null,"fields": null,- "hogql_value": "archived_at",+ "hogql_value": "table_id","id": null,- "name": "archived_at",+ "name": "table_id","schema_valid": true,"table": null,- "type": "datetime"- }- },- "id": "system.survey_response_archives",- "name": "system.survey_response_archives",- "row_count": null,- "type": "system"- },- "system.task_runs": {- "certification": null,- "fields": {- "id": {+ "type": "string"+ },+ "should_sync": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "should_sync","id": null,- "name": "id",+ "name": "should_sync","schema_valid": true,"table": null,- "type": "string"+ "type": "boolean"},- "task_id": {+ "status": {"chain": null,"fields": null,- "hogql_value": "task_id",+ "hogql_value": "status","id": null,- "name": "task_id",+ "name": "status","schema_valid": true,"table": null,"type": "string"},- "branch": {+ "sync_type": {"chain": null,"fields": null,- "hogql_value": "branch",+ "hogql_value": "sync_type","id": null,- "name": "branch",+ "name": "sync_type","schema_valid": true,"table": null,"type": "string"},- "environment": {+ "last_synced_at": {"chain": null,"fields": null,- "hogql_value": "environment",+ "hogql_value": "last_synced_at","id": null,- "name": "environment",+ "name": "last_synced_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "latest_error": {+ "chain": null,+ "fields": null,+ "hogql_value": "latest_error",+ "id": null,+ "name": "latest_error","schema_valid": true,"table": null,"type": "string"},- "stage": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "stage",+ "hogql_value": "created_at","id": null,- "name": "stage",+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "deleted_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted_at",+ "id": null,+ "name": "deleted_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.source_schemas",+ "name": "system.source_schemas",+ "row_count": null,+ "type": "system"+ },+ "system.source_sync_jobs": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "status": {+ "pipeline_id": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "pipeline_id","id": null,- "name": "status",+ "name": "pipeline_id","schema_valid": true,"table": null,"type": "string"},- "error_message": {+ "schema_id": {"chain": null,"fields": null,- "hogql_value": "error_message",+ "hogql_value": "schema_id","id": null,- "name": "error_message",+ "name": "schema_id","schema_valid": true,"table": null,"type": "string"},- "output": {+ "status": {"chain": null,"fields": null,- "hogql_value": "output",+ "hogql_value": "status","id": null,- "name": "output",+ "name": "status","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "artifacts": {+ "rows_synced": {"chain": null,"fields": null,- "hogql_value": "artifacts",+ "hogql_value": "rows_synced","id": null,- "name": "artifacts",+ "name": "rows_synced","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "created_at": {+ "billable": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "billable","id": null,- "name": "created_at",+ "name": "billable","schema_valid": true,"table": null,- "type": "datetime"+ "type": "boolean"},- "updated_at": {+ "latest_error": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "latest_error","id": null,- "name": "updated_at",+ "name": "latest_error","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "completed_at": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "completed_at",+ "hogql_value": "created_at","id": null,- "name": "completed_at",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"- }- },- "id": "system.task_runs",- "name": "system.task_runs",- "row_count": null,- "type": "system"- },- "system.tags": {- "certification": null,- "fields": {- "id": {+ },+ "finished_at": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "finished_at","id": null,- "name": "id",+ "name": "finished_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "name": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "updated_at","id": null,- "name": "name",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"}},- "id": "system.tags",- "name": "system.tags",+ "id": "system.source_sync_jobs",+ "name": "system.source_sync_jobs","row_count": null,"type": "system"},- "system.tasks": {+ "system.support_tickets": {"certification": null,"fields": {"id": {@@ -10545,195 +10506,196 @@"table": null,"type": "string"},- "created_by_id": {+ "ticket_number": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "ticket_number","id": null,- "name": "created_by_id",+ "name": "ticket_number","schema_valid": true,"table": null,"type": "integer"},- "github_integration_id": {+ "channel_source": {"chain": null,"fields": null,- "hogql_value": "github_integration_id",+ "hogql_value": "channel_source","id": null,- "name": "github_integration_id",+ "name": "channel_source","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "task_number": {+ "channel_detail": {"chain": null,"fields": null,- "hogql_value": "task_number",+ "hogql_value": "channel_detail","id": null,- "name": "task_number",+ "name": "channel_detail","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "title": {+ "distinct_id": {"chain": null,"fields": null,- "hogql_value": "title",+ "hogql_value": "distinct_id","id": null,- "name": "title",+ "name": "distinct_id","schema_valid": true,"table": null,"type": "string"},- "title_manually_set": {+ "status": {"chain": null,"fields": null,- "hogql_value": "title_manually_set",+ "hogql_value": "status","id": null,- "name": "title_manually_set",+ "name": "status","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "description": {+ "priority": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "priority","id": null,- "name": "description",+ "name": "priority","schema_valid": true,"table": null,"type": "string"},- "origin_product": {+ "anonymous_traits": {"chain": null,"fields": null,- "hogql_value": "origin_product",+ "hogql_value": "anonymous_traits","id": null,- "name": "origin_product",+ "name": "anonymous_traits","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "repository": {+ "ai_resolved": {"chain": null,"fields": null,- "hogql_value": "repository",+ "hogql_value": "ai_resolved","id": null,- "name": "repository",+ "name": "ai_resolved","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "json_schema": {+ "escalation_reason": {"chain": null,"fields": null,- "hogql_value": "json_schema",+ "hogql_value": "escalation_reason","id": null,- "name": "json_schema",+ "name": "escalation_reason","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "internal": {+ "message_count": {"chain": null,"fields": null,- "hogql_value": "internal",+ "hogql_value": "message_count","id": null,- "name": "internal",+ "name": "message_count","schema_valid": true,"table": null,"type": "integer"},- "deleted": {+ "unread_customer_count": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "unread_customer_count","id": null,- "name": "deleted",+ "name": "unread_customer_count","schema_valid": true,"table": null,"type": "integer"},- "deleted_at": {+ "unread_team_count": {"chain": null,"fields": null,- "hogql_value": "deleted_at",+ "hogql_value": "unread_team_count","id": null,- "name": "deleted_at",+ "name": "unread_team_count","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "created_at": {+ "last_message_at": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "last_message_at","id": null,- "name": "created_at",+ "name": "last_message_at","schema_valid": true,"table": null,"type": "datetime"},- "updated_at": {+ "last_message_text": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "last_message_text","id": null,- "name": "updated_at",+ "name": "last_message_text","schema_valid": true,"table": null,- "type": "datetime"- }- },- "id": "system.tasks",- "name": "system.tasks",- "row_count": null,- "type": "system"- },- "system.teams": {- "certification": null,- "fields": {- "id": {+ "type": "string"+ },+ "email_subject": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "email_subject","id": null,- "name": "id",+ "name": "email_subject","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "name": {+ "email_from": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "email_from","id": null,- "name": "name",+ "name": "email_from","schema_valid": true,"table": null,"type": "string"},- "timezone": {+ "session_id": {"chain": null,"fields": null,- "hogql_value": "timezone",+ "hogql_value": "session_id","id": null,- "name": "timezone",+ "name": "session_id","schema_valid": true,"table": null,"type": "string"},- "test_account_filters": {+ "session_context": {"chain": null,"fields": null,- "hogql_value": "test_account_filters",+ "hogql_value": "session_context","id": null,- "name": "test_account_filters",+ "name": "session_context","schema_valid": true,"table": null,"type": "json"},+ "sla_due_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "sla_due_at",+ "id": null,+ "name": "sla_due_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },"created_at": {"chain": null,"fields": null,@@ -10753,14 +10715,42 @@"schema_valid": true,"table": null,"type": "datetime"+ },+ "tags": {+ "chain": null,+ "fields": [+ "ticket_id",+ "names"+ ],+ "hogql_value": "tags",+ "id": "tags",+ "name": "tags",+ "schema_valid": true,+ "table": "ticket_tags",+ "type": "lazy_table"+ },+ "assignee": {+ "chain": null,+ "fields": [+ "ticket_id",+ "user_id",+ "role_id",+ "role_name"+ ],+ "hogql_value": "assignee",+ "id": "assignee",+ "name": "assignee",+ "schema_valid": true,+ "table": "ticket_assignment",+ "type": "lazy_table"}},- "id": "system.teams",- "name": "system.teams",+ "id": "system.support_tickets",+ "name": "system.support_tickets","row_count": null,"type": "system"},- "system.trace_review_scores": {+ "system.surveys": {"certification": null,"fields": {"id": {@@ -10773,123 +10763,142 @@"table": null,"type": "string"},- "review_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "review_id",+ "hogql_value": "name","id": null,- "name": "review_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "definition_id": {+ "type": {"chain": null,"fields": null,- "hogql_value": "definition_id",+ "hogql_value": "type","id": null,- "name": "definition_id",+ "name": "type","schema_valid": true,"table": null,"type": "string"},- "definition_version": {+ "questions": {"chain": null,"fields": null,- "hogql_value": "definition_version",+ "hogql_value": "questions","id": null,- "name": "definition_version",+ "name": "questions","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "definition_version_number": {+ "appearance": {"chain": null,"fields": null,- "hogql_value": "definition_version_number",+ "hogql_value": "appearance","id": null,- "name": "definition_version_number",+ "name": "appearance","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "definition_config": {+ "start_date": {"chain": null,"fields": null,- "hogql_value": "definition_config",+ "hogql_value": "start_date","id": null,- "name": "definition_config",+ "name": "start_date","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"},- "categorical_values": {+ "end_date": {"chain": null,"fields": null,- "hogql_value": "categorical_values",+ "hogql_value": "end_date","id": null,- "name": "categorical_values",+ "name": "end_date","schema_valid": true,"table": null,- "type": "array"+ "type": "datetime"},- "numeric_value": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "numeric_value",+ "hogql_value": "created_by_id","id": null,- "name": "numeric_value",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "decimal"+ "type": "integer"},- "boolean_value": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "boolean_value",+ "hogql_value": "created_at","id": null,- "name": "boolean_value",+ "name": "created_at","schema_valid": true,"table": null,- "type": "boolean"+ "type": "datetime"+ }+ },+ "id": "system.surveys",+ "name": "system.surveys",+ "row_count": null,+ "type": "system"+ },+ "system.survey_response_archives": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"},- "created_by_id": {+ "survey_id": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "survey_id","id": null,- "name": "created_by_id",+ "name": "survey_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_at": {+ "response_uuid": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "response_uuid","id": null,- "name": "created_at",+ "name": "response_uuid","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "updated_at": {+ "archived_at": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "archived_at","id": null,- "name": "updated_at",+ "name": "archived_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.trace_review_scores",- "name": "system.trace_review_scores",+ "id": "system.survey_response_archives",+ "name": "system.survey_response_archives","row_count": null,"type": "system"},- "system.trace_reviews": {+ "system.task_runs": {"certification": null,"fields": {"id": {@@ -10902,93 +10911,123 @@"table": null,"type": "string"},- "trace_id": {+ "task_id": {"chain": null,"fields": null,- "hogql_value": "trace_id",+ "hogql_value": "task_id","id": null,- "name": "trace_id",+ "name": "task_id","schema_valid": true,"table": null,"type": "string"},- "created_by_id": {+ "branch": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "branch","id": null,- "name": "created_by_id",+ "name": "branch","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "reviewed_by_id": {+ "environment": {"chain": null,"fields": null,- "hogql_value": "reviewed_by_id",+ "hogql_value": "environment","id": null,- "name": "reviewed_by_id",+ "name": "environment","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "comment": {+ "stage": {"chain": null,"fields": null,- "hogql_value": "comment",+ "hogql_value": "stage","id": null,- "name": "comment",+ "name": "stage","schema_valid": true,"table": null,"type": "string"},- "created_at": {+ "status": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "status","id": null,- "name": "created_at",+ "name": "status","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "updated_at": {+ "error_message": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "error_message","id": null,- "name": "updated_at",+ "name": "error_message","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "deleted": {+ "output": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "output","id": null,- "name": "deleted",+ "name": "output","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "deleted_at": {+ "artifacts": {"chain": null,"fields": null,- "hogql_value": "deleted_at",+ "hogql_value": "artifacts","id": null,- "name": "deleted_at",+ "name": "artifacts","schema_valid": true,"table": null,- "type": "datetime"- }- },- "id": "system.trace_reviews",- "name": "system.trace_reviews",+ "type": "json"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "completed_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "completed_at",+ "id": null,+ "name": "completed_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.task_runs",+ "name": "system.task_runs","row_count": null,"type": "system"},- "system.usage_metrics": {+ "system.tags": {"certification": null,"fields": {"id": {@@ -11001,160 +11040,154 @@"table": null,"type": "string"},- "group_type_index": {+ "name": {"chain": null,"fields": null,- "hogql_value": "group_type_index",+ "hogql_value": "name","id": null,- "name": "group_type_index",+ "name": "name","schema_valid": true,"table": null,- "type": "integer"- },- "name": {+ "type": "string"+ }+ },+ "id": "system.tags",+ "name": "system.tags",+ "row_count": null,+ "type": "system"+ },+ "system.tasks": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "id","id": null,- "name": "name",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "format": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "format",+ "hogql_value": "created_by_id","id": null,- "name": "format",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "interval": {+ "github_integration_id": {"chain": null,"fields": null,- "hogql_value": "interval",+ "hogql_value": "github_integration_id","id": null,- "name": "interval",+ "name": "github_integration_id","schema_valid": true,"table": null,"type": "integer"},- "display": {+ "task_number": {"chain": null,"fields": null,- "hogql_value": "display",+ "hogql_value": "task_number","id": null,- "name": "display",+ "name": "task_number","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "filters": {+ "title": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "title","id": null,- "name": "filters",+ "name": "title","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "math": {+ "title_manually_set": {"chain": null,"fields": null,- "hogql_value": "math",+ "hogql_value": "title_manually_set","id": null,- "name": "math",+ "name": "title_manually_set","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "math_property": {+ "description": {"chain": null,"fields": null,- "hogql_value": "math_property",+ "hogql_value": "description","id": null,- "name": "math_property",+ "name": "description","schema_valid": true,"table": null,"type": "string"- }- },- "id": "system.usage_metrics",- "name": "system.usage_metrics",- "row_count": null,- "type": "system"- }- }- '''-# ----# name: TestDatabase.test_serialize_database_with_person_on_events_enabled- '''- {- "events": {- "certification": null,- "fields": {- "uuid": {+ },+ "origin_product": {"chain": null,"fields": null,- "hogql_value": "uuid",+ "hogql_value": "origin_product","id": null,- "name": "uuid",+ "name": "origin_product","schema_valid": true,"table": null,"type": "string"},- "event": {+ "repository": {"chain": null,"fields": null,- "hogql_value": "event",+ "hogql_value": "repository","id": null,- "name": "event",+ "name": "repository","schema_valid": true,"table": null,"type": "string"},- "properties": {+ "json_schema": {"chain": null,"fields": null,- "hogql_value": "properties",+ "hogql_value": "json_schema","id": null,- "name": "properties",+ "name": "json_schema","schema_valid": true,"table": null,"type": "json"},- "timestamp": {+ "internal": {"chain": null,"fields": null,- "hogql_value": "timestamp",+ "hogql_value": "internal","id": null,- "name": "timestamp",+ "name": "internal","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "distinct_id": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "distinct_id",+ "hogql_value": "deleted","id": null,- "name": "distinct_id",+ "name": "deleted","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "elements_chain": {+ "deleted_at": {"chain": null,"fields": null,- "hogql_value": "elements_chain",+ "hogql_value": "deleted_at","id": null,- "name": "elements_chain",+ "name": "deleted_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},"created_at": {"chain": null,@@ -11166,1765 +11199,2796 @@"table": null,"type": "datetime"},- "$session_id": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "`$session_id`",+ "hogql_value": "updated_at","id": null,- "name": "$session_id",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "string"- },- "$window_id": {+ "type": "datetime"+ }+ },+ "id": "system.tasks",+ "name": "system.tasks",+ "row_count": null,+ "type": "system"+ },+ "system.teams": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "`$window_id`",+ "hogql_value": "id","id": null,- "name": "$window_id",+ "name": "id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "person_mode": {+ "name": {"chain": null,"fields": null,- "hogql_value": "person_mode",+ "hogql_value": "name","id": null,- "name": "person_mode",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "pdi": {+ "timezone": {"chain": null,- "fields": [- "team_id",- "distinct_id",- "person_id",- "person"- ],- "hogql_value": "pdi",- "id": "pdi",- "name": "pdi",+ "fields": null,+ "hogql_value": "timezone",+ "id": null,+ "name": "timezone","schema_valid": true,- "table": "person_distinct_ids",- "type": "lazy_table"+ "table": null,+ "type": "string"},- "poe": {+ "test_account_filters": {"chain": null,- "fields": [- "id",- "created_at",- "properties",- "revenue_analytics",- "$virt_initial_referring_domain_type",- "$virt_initial_channel_type",- "$virt_revenue",- "$virt_mrr"- ],- "hogql_value": "poe",+ "fields": null,+ "hogql_value": "test_account_filters","id": null,- "name": "poe",+ "name": "test_account_filters","schema_valid": true,- "table": "events",- "type": "virtual_table"+ "table": null,+ "type": "json"},- "goe_0": {+ "created_at": {"chain": null,- "fields": [- "key",- "created_at",- "properties"- ],- "hogql_value": "goe_0",+ "fields": null,+ "hogql_value": "created_at","id": null,- "name": "goe_0",+ "name": "created_at","schema_valid": true,- "table": "events",- "type": "virtual_table"+ "table": null,+ "type": "datetime"},- "goe_1": {+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.teams",+ "name": "system.teams",+ "row_count": null,+ "type": "system"+ },+ "system.trace_review_scores": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "review_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "review_id",+ "id": null,+ "name": "review_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "definition_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "definition_id",+ "id": null,+ "name": "definition_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "definition_version": {+ "chain": null,+ "fields": null,+ "hogql_value": "definition_version",+ "id": null,+ "name": "definition_version",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "definition_version_number": {+ "chain": null,+ "fields": null,+ "hogql_value": "definition_version_number",+ "id": null,+ "name": "definition_version_number",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "definition_config": {+ "chain": null,+ "fields": null,+ "hogql_value": "definition_config",+ "id": null,+ "name": "definition_config",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "categorical_values": {+ "chain": null,+ "fields": null,+ "hogql_value": "categorical_values",+ "id": null,+ "name": "categorical_values",+ "schema_valid": true,+ "table": null,+ "type": "array"+ },+ "numeric_value": {+ "chain": null,+ "fields": null,+ "hogql_value": "numeric_value",+ "id": null,+ "name": "numeric_value",+ "schema_valid": true,+ "table": null,+ "type": "decimal"+ },+ "boolean_value": {+ "chain": null,+ "fields": null,+ "hogql_value": "boolean_value",+ "id": null,+ "name": "boolean_value",+ "schema_valid": true,+ "table": null,+ "type": "boolean"+ },+ "created_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_by_id",+ "id": null,+ "name": "created_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.trace_review_scores",+ "name": "system.trace_review_scores",+ "row_count": null,+ "type": "system"+ },+ "system.trace_reviews": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "trace_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "trace_id",+ "id": null,+ "name": "trace_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "created_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_by_id",+ "id": null,+ "name": "created_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "reviewed_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "reviewed_by_id",+ "id": null,+ "name": "reviewed_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "comment": {+ "chain": null,+ "fields": null,+ "hogql_value": "comment",+ "id": null,+ "name": "comment",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "deleted_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted_at",+ "id": null,+ "name": "deleted_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ }+ },+ "id": "system.trace_reviews",+ "name": "system.trace_reviews",+ "row_count": null,+ "type": "system"+ },+ "system.usage_metrics": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "group_type_index": {+ "chain": null,+ "fields": null,+ "hogql_value": "group_type_index",+ "id": null,+ "name": "group_type_index",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "name": {+ "chain": null,+ "fields": null,+ "hogql_value": "name",+ "id": null,+ "name": "name",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "format": {+ "chain": null,+ "fields": null,+ "hogql_value": "format",+ "id": null,+ "name": "format",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "interval": {+ "chain": null,+ "fields": null,+ "hogql_value": "interval",+ "id": null,+ "name": "interval",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "display": {+ "chain": null,+ "fields": null,+ "hogql_value": "display",+ "id": null,+ "name": "display",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "filters": {+ "chain": null,+ "fields": null,+ "hogql_value": "filters",+ "id": null,+ "name": "filters",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "math": {+ "chain": null,+ "fields": null,+ "hogql_value": "math",+ "id": null,+ "name": "math",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "math_property": {+ "chain": null,+ "fields": null,+ "hogql_value": "math_property",+ "id": null,+ "name": "math_property",+ "schema_valid": true,+ "table": null,+ "type": "string"+ }+ },+ "id": "system.usage_metrics",+ "name": "system.usage_metrics",+ "row_count": null,+ "type": "system"+ }+ }+ '''+# ---+# name: TestDatabase.test_serialize_database_with_person_on_events_enabled+ '''+ {+ "events": {+ "certification": null,+ "fields": {+ "uuid": {+ "chain": null,+ "fields": null,+ "hogql_value": "uuid",+ "id": null,+ "name": "uuid",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "event": {+ "chain": null,+ "fields": null,+ "hogql_value": "event",+ "id": null,+ "name": "event",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "properties": {+ "chain": null,+ "fields": null,+ "hogql_value": "properties",+ "id": null,+ "name": "properties",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "timestamp": {+ "chain": null,+ "fields": null,+ "hogql_value": "timestamp",+ "id": null,+ "name": "timestamp",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "distinct_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "distinct_id",+ "id": null,+ "name": "distinct_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "elements_chain": {+ "chain": null,+ "fields": null,+ "hogql_value": "elements_chain",+ "id": null,+ "name": "elements_chain",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "$session_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$session_id`",+ "id": null,+ "name": "$session_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "$window_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$window_id`",+ "id": null,+ "name": "$window_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "person_mode": {+ "chain": null,+ "fields": null,+ "hogql_value": "person_mode",+ "id": null,+ "name": "person_mode",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "pdi": {+ "chain": null,+ "fields": [+ "team_id",+ "distinct_id",+ "person_id",+ "person"+ ],+ "hogql_value": "pdi",+ "id": "pdi",+ "name": "pdi",+ "schema_valid": true,+ "table": "person_distinct_ids",+ "type": "lazy_table"+ },+ "poe": {+ "chain": null,+ "fields": [+ "id",+ "created_at",+ "properties",+ "revenue_analytics",+ "$virt_initial_referring_domain_type",+ "$virt_initial_channel_type",+ "$virt_revenue",+ "$virt_mrr"+ ],+ "hogql_value": "poe",+ "id": null,+ "name": "poe",+ "schema_valid": true,+ "table": "events",+ "type": "virtual_table"+ },+ "goe_0": {+ "chain": null,+ "fields": [+ "key",+ "created_at",+ "properties"+ ],+ "hogql_value": "goe_0",+ "id": null,+ "name": "goe_0",+ "schema_valid": true,+ "table": "events",+ "type": "virtual_table"+ },+ "goe_1": {+ "chain": null,+ "fields": [+ "key",+ "created_at",+ "properties"+ ],+ "hogql_value": "goe_1",+ "id": null,+ "name": "goe_1",+ "schema_valid": true,+ "table": "events",+ "type": "virtual_table"+ },+ "goe_2": {+ "chain": null,+ "fields": [+ "key",+ "created_at",+ "properties"+ ],+ "hogql_value": "goe_2",+ "id": null,+ "name": "goe_2",+ "schema_valid": true,+ "table": "events",+ "type": "virtual_table"+ },+ "goe_3": {+ "chain": null,+ "fields": [+ "key",+ "created_at",+ "properties"+ ],+ "hogql_value": "goe_3",+ "id": null,+ "name": "goe_3",+ "schema_valid": true,+ "table": "events",+ "type": "virtual_table"+ },+ "goe_4": {+ "chain": null,+ "fields": [+ "key",+ "created_at",+ "properties"+ ],+ "hogql_value": "goe_4",+ "id": null,+ "name": "goe_4",+ "schema_valid": true,+ "table": "events",+ "type": "virtual_table"+ },+ "person": {+ "chain": [+ "poe"+ ],+ "fields": null,+ "hogql_value": "person",+ "id": null,+ "name": "person",+ "schema_valid": true,+ "table": null,+ "type": "field_traverser"+ },+ "person_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "person_id",+ "id": null,+ "name": "person_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "$group_0": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$group_0`",+ "id": null,+ "name": "$group_0",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "group_0": {+ "chain": null,+ "fields": [+ "index",+ "team_id",+ "key",+ "created_at",+ "updated_at",+ "properties",+ "revenue_analytics"+ ],+ "hogql_value": "group_0",+ "id": "group_0",+ "name": "group_0",+ "schema_valid": true,+ "table": "groups",+ "type": "lazy_table"+ },+ "$group_1": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$group_1`",+ "id": null,+ "name": "$group_1",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "group_1": {+ "chain": null,+ "fields": [+ "index",+ "team_id",+ "key",+ "created_at",+ "updated_at",+ "properties",+ "revenue_analytics"+ ],+ "hogql_value": "group_1",+ "id": "group_1",+ "name": "group_1",+ "schema_valid": true,+ "table": "groups",+ "type": "lazy_table"+ },+ "$group_2": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$group_2`",+ "id": null,+ "name": "$group_2",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "group_2": {+ "chain": null,+ "fields": [+ "index",+ "team_id",+ "key",+ "created_at",+ "updated_at",+ "properties",+ "revenue_analytics"+ ],+ "hogql_value": "group_2",+ "id": "group_2",+ "name": "group_2",+ "schema_valid": true,+ "table": "groups",+ "type": "lazy_table"+ },+ "$group_3": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$group_3`",+ "id": null,+ "name": "$group_3",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "group_3": {+ "chain": null,+ "fields": [+ "index",+ "team_id",+ "key",+ "created_at",+ "updated_at",+ "properties",+ "revenue_analytics"+ ],+ "hogql_value": "group_3",+ "id": "group_3",+ "name": "group_3",+ "schema_valid": true,+ "table": "groups",+ "type": "lazy_table"+ },+ "$group_4": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$group_4`",+ "id": null,+ "name": "$group_4",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "group_4": {+ "chain": null,+ "fields": [+ "index",+ "team_id",+ "key",+ "created_at",+ "updated_at",+ "properties",+ "revenue_analytics"+ ],+ "hogql_value": "group_4",+ "id": "group_4",+ "name": "group_4",+ "schema_valid": true,+ "table": "groups",+ "type": "lazy_table"+ },+ "session": {+ "chain": null,+ "fields": [+ "id",+ "session_id",+ "session_id_v7",+ "team_id",+ "distinct_id",+ "$start_timestamp",+ "$end_timestamp",+ "max_inserted_at",+ "$urls",+ "$num_uniq_urls",+ "$entry_current_url",+ "$entry_pathname",+ "$entry_hostname",+ "$end_current_url",+ "$end_pathname",+ "$end_hostname",+ "$entry_referring_domain",+ "$entry_utm_source",+ "$entry_utm_campaign",+ "$entry_utm_medium",+ "$entry_utm_term",+ "$entry_utm_content",+ "$entry_gclid",+ "$entry_gad_source",+ "$entry_gclsrc",+ "$entry_dclid",+ "$entry_gbraid",+ "$entry_wbraid",+ "$entry_fbclid",+ "$entry_msclkid",+ "$entry_twclid",+ "$entry_li_fat_id",+ "$entry_mc_cid",+ "$entry_igshid",+ "$entry_ttclid",+ "$entry__kx",+ "$entry_irclid",+ "$pageview_count",+ "$autocapture_count",+ "$screen_count",+ "$channel_type",+ "$session_duration",+ "duration",+ "$is_bounce",+ "$last_external_click_url",+ "$page_screen_autocapture_count_up_to",+ "$exit_current_url",+ "$exit_pathname",+ "$vitals_lcp"+ ],+ "hogql_value": "session",+ "id": "session",+ "name": "session",+ "schema_valid": true,+ "table": "sessions",+ "type": "lazy_table"+ },+ "elements_chain_href": {+ "chain": null,+ "fields": null,+ "hogql_value": "elements_chain_href",+ "id": null,+ "name": "elements_chain_href",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "elements_chain_texts": {+ "chain": null,+ "fields": null,+ "hogql_value": "elements_chain_texts",+ "id": null,+ "name": "elements_chain_texts",+ "schema_valid": true,+ "table": null,+ "type": "array"+ },+ "elements_chain_ids": {+ "chain": null,+ "fields": null,+ "hogql_value": "elements_chain_ids",+ "id": null,+ "name": "elements_chain_ids",+ "schema_valid": true,+ "table": null,+ "type": "array"+ },+ "elements_chain_elements": {+ "chain": null,+ "fields": null,+ "hogql_value": "elements_chain_elements",+ "id": null,+ "name": "elements_chain_elements",+ "schema_valid": true,+ "table": null,+ "type": "array"+ },+ "event_issue_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "event_issue_id",+ "id": null,+ "name": "event_issue_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "exception_issue_override": {"chain": null,"fields": [- "key",- "created_at",- "properties"+ "team_id",+ "fingerprint",+ "issue_id"+ ],+ "hogql_value": "exception_issue_override",+ "id": "exception_issue_override",+ "name": "exception_issue_override",+ "schema_valid": true,+ "table": "error_tracking_issue_fingerprint_overrides",+ "type": "lazy_table"+ },+ "issue_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "issue_id",+ "id": null,+ "name": "issue_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "fingerprint_issue_state": {+ "chain": null,+ "fields": [+ "team_id",+ "fingerprint",+ "issue_id",+ "issue_name",+ "issue_description",+ "issue_status",+ "assigned_user_id",+ "assigned_role_id",+ "first_seen",+ "fp_hash"+ ],+ "hogql_value": "fingerprint_issue_state",+ "id": "fingerprint_issue_state",+ "name": "fingerprint_issue_state",+ "schema_valid": true,+ "table": "error_tracking_fingerprint_issue_state",+ "type": "lazy_table"+ },+ "issue_id_v2": {+ "chain": null,+ "fields": null,+ "hogql_value": "issue_id_v2",+ "id": null,+ "name": "issue_id_v2",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "issue_name": {+ "chain": null,+ "fields": null,+ "hogql_value": "issue_name",+ "id": null,+ "name": "issue_name",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "issue_description": {+ "chain": null,+ "fields": null,+ "hogql_value": "issue_description",+ "id": null,+ "name": "issue_description",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "issue_status": {+ "chain": null,+ "fields": null,+ "hogql_value": "issue_status",+ "id": null,+ "name": "issue_status",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "issue_assigned_user_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "issue_assigned_user_id",+ "id": null,+ "name": "issue_assigned_user_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "issue_assigned_role_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "issue_assigned_role_id",+ "id": null,+ "name": "issue_assigned_role_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "issue_first_seen": {+ "chain": null,+ "fields": null,+ "hogql_value": "issue_first_seen",+ "id": null,+ "name": "issue_first_seen",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "$virt_is_bot": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$virt_is_bot`",+ "id": null,+ "name": "$virt_is_bot",+ "schema_valid": true,+ "table": null,+ "type": "boolean"+ },+ "$virt_traffic_type": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$virt_traffic_type`",+ "id": null,+ "name": "$virt_traffic_type",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "$virt_traffic_category": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$virt_traffic_category`",+ "id": null,+ "name": "$virt_traffic_category",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "$virt_bot_name": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$virt_bot_name`",+ "id": null,+ "name": "$virt_bot_name",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "$virt_bot_operator": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$virt_bot_operator`",+ "id": null,+ "name": "$virt_bot_operator",+ "schema_valid": true,+ "table": null,+ "type": "string"+ }+ },+ "id": "events",+ "name": "events",+ "row_count": null,+ "type": "posthog"+ },+ "groups": {+ "certification": null,+ "fields": {+ "index": {+ "chain": null,+ "fields": null,+ "hogql_value": "index",+ "id": null,+ "name": "index",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "key": {+ "chain": null,+ "fields": null,+ "hogql_value": "key",+ "id": null,+ "name": "key",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "properties": {+ "chain": null,+ "fields": null,+ "hogql_value": "properties",+ "id": null,+ "name": "properties",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "revenue_analytics": {+ "chain": null,+ "fields": [+ "team_id",+ "group_key",+ "revenue",+ "mrr"],- "hogql_value": "goe_1",+ "hogql_value": "revenue_analytics",+ "id": "revenue_analytics",+ "name": "revenue_analytics",+ "schema_valid": true,+ "table": "groups_revenue_analytics",+ "type": "lazy_table"+ },+ "$virt_revenue": {+ "chain": [+ "revenue_analytics",+ "revenue"+ ],+ "fields": null,+ "hogql_value": "`$virt_revenue`","id": null,- "name": "goe_1",+ "name": "$virt_revenue","schema_valid": true,- "table": "events",- "type": "virtual_table"+ "table": null,+ "type": "field_traverser"},- "goe_2": {- "chain": null,- "fields": [- "key",- "created_at",- "properties"+ "$virt_mrr": {+ "chain": [+ "revenue_analytics",+ "mrr"],- "hogql_value": "goe_2",+ "fields": null,+ "hogql_value": "`$virt_mrr`","id": null,- "name": "goe_2",+ "name": "$virt_mrr","schema_valid": true,- "table": "events",- "type": "virtual_table"+ "table": null,+ "type": "field_traverser"+ }+ },+ "id": "groups",+ "name": "groups",+ "row_count": null,+ "type": "posthog"+ },+ "persons": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"},- "goe_3": {+ "created_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_at",+ "id": null,+ "name": "created_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "properties": {+ "chain": null,+ "fields": null,+ "hogql_value": "properties",+ "id": null,+ "name": "properties",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "is_identified": {+ "chain": null,+ "fields": null,+ "hogql_value": "is_identified",+ "id": null,+ "name": "is_identified",+ "schema_valid": true,+ "table": null,+ "type": "boolean"+ },+ "last_seen_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "last_seen_at",+ "id": null,+ "name": "last_seen_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "pdi": {"chain": null,"fields": [- "key",- "created_at",- "properties"+ "team_id",+ "distinct_id",+ "person_id"],- "hogql_value": "goe_3",- "id": null,- "name": "goe_3",+ "hogql_value": "pdi",+ "id": "pdi",+ "name": "pdi","schema_valid": true,- "table": "events",- "type": "virtual_table"+ "table": "person_distinct_ids",+ "type": "lazy_table"},- "goe_4": {+ "revenue_analytics": {"chain": null,"fields": [- "key",- "created_at",- "properties"+ "team_id",+ "person_id",+ "revenue",+ "mrr"],- "hogql_value": "goe_4",+ "hogql_value": "revenue_analytics",+ "id": "revenue_analytics",+ "name": "revenue_analytics",+ "schema_valid": true,+ "table": "persons_revenue_analytics",+ "type": "lazy_table"+ },+ "$virt_initial_referring_domain_type": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$virt_initial_referring_domain_type`","id": null,- "name": "goe_4",+ "name": "$virt_initial_referring_domain_type","schema_valid": true,- "table": "events",- "type": "virtual_table"+ "table": null,+ "type": "expression"},- "person": {+ "$virt_initial_channel_type": {+ "chain": null,+ "fields": null,+ "hogql_value": "`$virt_initial_channel_type`",+ "id": null,+ "name": "$virt_initial_channel_type",+ "schema_valid": true,+ "table": null,+ "type": "expression"+ },+ "$virt_revenue": {"chain": [- "poe"+ "revenue_analytics",+ "revenue"],"fields": null,- "hogql_value": "person",+ "hogql_value": "`$virt_revenue`","id": null,- "name": "person",+ "name": "$virt_revenue","schema_valid": true,"table": null,"type": "field_traverser"},- "person_id": {+ "$virt_mrr": {+ "chain": [+ "revenue_analytics",+ "mrr"+ ],+ "fields": null,+ "hogql_value": "`$virt_mrr`",+ "id": null,+ "name": "$virt_mrr",+ "schema_valid": true,+ "table": null,+ "type": "field_traverser"+ }+ },+ "id": "persons",+ "name": "persons",+ "row_count": null,+ "type": "posthog"+ },+ "sessions": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "person_id",+ "hogql_value": "id","id": null,- "name": "person_id",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "$group_0": {+ "session_id": {"chain": null,"fields": null,- "hogql_value": "`$group_0`",+ "hogql_value": "session_id","id": null,- "name": "$group_0",+ "name": "session_id","schema_valid": true,"table": null,"type": "string"},- "group_0": {+ "session_id_v7": {"chain": null,- "fields": [- "index",- "team_id",- "key",- "created_at",- "updated_at",- "properties",- "revenue_analytics"- ],- "hogql_value": "group_0",- "id": "group_0",- "name": "group_0",+ "fields": null,+ "hogql_value": "session_id_v7",+ "id": null,+ "name": "session_id_v7","schema_valid": true,- "table": "groups",- "type": "lazy_table"+ "table": null,+ "type": "integer"},- "$group_1": {+ "distinct_id": {"chain": null,"fields": null,- "hogql_value": "`$group_1`",+ "hogql_value": "distinct_id","id": null,- "name": "$group_1",+ "name": "distinct_id","schema_valid": true,"table": null,"type": "string"},- "group_1": {+ "$start_timestamp": {"chain": null,- "fields": [- "index",- "team_id",- "key",- "created_at",- "updated_at",- "properties",- "revenue_analytics"- ],- "hogql_value": "group_1",- "id": "group_1",- "name": "group_1",+ "fields": null,+ "hogql_value": "`$start_timestamp`",+ "id": null,+ "name": "$start_timestamp","schema_valid": true,- "table": "groups",- "type": "lazy_table"+ "table": null,+ "type": "datetime"},- "$group_2": {+ "$end_timestamp": {"chain": null,"fields": null,- "hogql_value": "`$group_2`",+ "hogql_value": "`$end_timestamp`","id": null,- "name": "$group_2",+ "name": "$end_timestamp","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "group_2": {+ "max_inserted_at": {"chain": null,- "fields": [- "index",- "team_id",- "key",- "created_at",- "updated_at",- "properties",- "revenue_analytics"- ],- "hogql_value": "group_2",- "id": "group_2",- "name": "group_2",+ "fields": null,+ "hogql_value": "max_inserted_at",+ "id": null,+ "name": "max_inserted_at","schema_valid": true,- "table": "groups",- "type": "lazy_table"+ "table": null,+ "type": "datetime"},- "$group_3": {+ "$urls": {"chain": null,"fields": null,- "hogql_value": "`$group_3`",+ "hogql_value": "`$urls`","id": null,- "name": "$group_3",+ "name": "$urls","schema_valid": true,"table": null,- "type": "string"+ "type": "array"},- "group_3": {+ "$num_uniq_urls": {"chain": null,- "fields": [- "index",- "team_id",- "key",- "created_at",- "updated_at",- "properties",- "revenue_analytics"- ],- "hogql_value": "group_3",- "id": "group_3",- "name": "group_3",+ "fields": null,+ "hogql_value": "`$num_uniq_urls`",+ "id": null,+ "name": "$num_uniq_urls","schema_valid": true,- "table": "groups",- "type": "lazy_table"+ "table": null,+ "type": "integer"},- "$group_4": {+ "$entry_current_url": {"chain": null,"fields": null,- "hogql_value": "`$group_4`",+ "hogql_value": "`$entry_current_url`","id": null,- "name": "$group_4",+ "name": "$entry_current_url","schema_valid": true,"table": null,"type": "string"},- "group_4": {+ "$entry_pathname": {"chain": null,- "fields": [- "index",- "team_id",- "key",- "created_at",- "updated_at",- "properties",- "revenue_analytics"- ],- "hogql_value": "group_4",- "id": "group_4",- "name": "group_4",+ "fields": null,+ "hogql_value": "`$entry_pathname`",+ "id": null,+ "name": "$entry_pathname","schema_valid": true,- "table": "groups",- "type": "lazy_table"+ "table": null,+ "type": "string"},- "session": {+ "$entry_hostname": {"chain": null,- "fields": [- "id",- "session_id",- "session_id_v7",- "team_id",- "distinct_id",- "$start_timestamp",- "$end_timestamp",- "max_inserted_at",- "$urls",- "$num_uniq_urls",- "$entry_current_url",- "$entry_pathname",- "$entry_hostname",- "$end_current_url",- "$end_pathname",- "$end_hostname",- "$entry_referring_domain",- "$entry_utm_source",- "$entry_utm_campaign",- "$entry_utm_medium",- "$entry_utm_term",- "$entry_utm_content",- "$entry_gclid",- "$entry_gad_source",- "$entry_gclsrc",- "$entry_dclid",- "$entry_gbraid",- "$entry_wbraid",- "$entry_fbclid",- "$entry_msclkid",- "$entry_twclid",- "$entry_li_fat_id",- "$entry_mc_cid",- "$entry_igshid",- "$entry_ttclid",- "$entry__kx",- "$entry_irclid",- "$pageview_count",- "$autocapture_count",- "$screen_count",- "$channel_type",- "$session_duration",- "duration",- "$is_bounce",- "$last_external_click_url",- "$page_screen_autocapture_count_up_to",- "$exit_current_url",- "$exit_pathname",- "$vitals_lcp"- ],- "hogql_value": "session",- "id": "session",- "name": "session",+ "fields": null,+ "hogql_value": "`$entry_hostname`",+ "id": null,+ "name": "$entry_hostname","schema_valid": true,- "table": "sessions",- "type": "lazy_table"+ "table": null,+ "type": "string"},- "elements_chain_href": {+ "$end_current_url": {"chain": null,"fields": null,- "hogql_value": "elements_chain_href",+ "hogql_value": "`$end_current_url`","id": null,- "name": "elements_chain_href",+ "name": "$end_current_url","schema_valid": true,"table": null,"type": "string"},- "elements_chain_texts": {+ "$end_pathname": {"chain": null,"fields": null,- "hogql_value": "elements_chain_texts",+ "hogql_value": "`$end_pathname`","id": null,- "name": "elements_chain_texts",+ "name": "$end_pathname","schema_valid": true,"table": null,- "type": "array"+ "type": "string"},- "elements_chain_ids": {+ "$end_hostname": {"chain": null,"fields": null,- "hogql_value": "elements_chain_ids",+ "hogql_value": "`$end_hostname`","id": null,- "name": "elements_chain_ids",+ "name": "$end_hostname","schema_valid": true,"table": null,- "type": "array"+ "type": "string"},- "elements_chain_elements": {+ "$entry_referring_domain": {"chain": null,"fields": null,- "hogql_value": "elements_chain_elements",+ "hogql_value": "`$entry_referring_domain`","id": null,- "name": "elements_chain_elements",+ "name": "$entry_referring_domain","schema_valid": true,"table": null,- "type": "array"+ "type": "string"},- "event_issue_id": {+ "$entry_utm_source": {"chain": null,"fields": null,- "hogql_value": "event_issue_id",+ "hogql_value": "`$entry_utm_source`","id": null,- "name": "event_issue_id",+ "name": "$entry_utm_source","schema_valid": true,"table": null,"type": "string"},- "exception_issue_override": {+ "$entry_utm_campaign": {"chain": null,- "fields": [- "team_id",- "fingerprint",- "issue_id"- ],- "hogql_value": "exception_issue_override",- "id": "exception_issue_override",- "name": "exception_issue_override",+ "fields": null,+ "hogql_value": "`$entry_utm_campaign`",+ "id": null,+ "name": "$entry_utm_campaign","schema_valid": true,- "table": "error_tracking_issue_fingerprint_overrides",- "type": "lazy_table"+ "table": null,+ "type": "string"},- "issue_id": {+ "$entry_utm_medium": {"chain": null,"fields": null,- "hogql_value": "issue_id",+ "hogql_value": "`$entry_utm_medium`","id": null,- "name": "issue_id",+ "name": "$entry_utm_medium","schema_valid": true,"table": null,"type": "string"},- "fingerprint_issue_state": {+ "$entry_utm_term": {"chain": null,- "fields": [- "team_id",- "fingerprint",- "issue_id",- "issue_name",- "issue_description",- "issue_status",- "assigned_user_id",- "assigned_role_id",- "first_seen",- "fp_hash"- ],- "hogql_value": "fingerprint_issue_state",- "id": "fingerprint_issue_state",- "name": "fingerprint_issue_state",+ "fields": null,+ "hogql_value": "`$entry_utm_term`",+ "id": null,+ "name": "$entry_utm_term","schema_valid": true,- "table": "error_tracking_fingerprint_issue_state",- "type": "lazy_table"+ "table": null,+ "type": "string"},- "issue_id_v2": {+ "$entry_utm_content": {"chain": null,"fields": null,- "hogql_value": "issue_id_v2",+ "hogql_value": "`$entry_utm_content`","id": null,- "name": "issue_id_v2",+ "name": "$entry_utm_content","schema_valid": true,"table": null,"type": "string"},- "issue_name": {+ "$entry_gclid": {"chain": null,"fields": null,- "hogql_value": "issue_name",+ "hogql_value": "`$entry_gclid`","id": null,- "name": "issue_name",+ "name": "$entry_gclid","schema_valid": true,"table": null,"type": "string"},- "issue_description": {+ "$entry_gad_source": {"chain": null,"fields": null,- "hogql_value": "issue_description",+ "hogql_value": "`$entry_gad_source`","id": null,- "name": "issue_description",+ "name": "$entry_gad_source","schema_valid": true,"table": null,"type": "string"},- "issue_status": {+ "$entry_gclsrc": {"chain": null,"fields": null,- "hogql_value": "issue_status",+ "hogql_value": "`$entry_gclsrc`","id": null,- "name": "issue_status",+ "name": "$entry_gclsrc","schema_valid": true,"table": null,"type": "string"},- "issue_assigned_user_id": {+ "$entry_dclid": {"chain": null,"fields": null,- "hogql_value": "issue_assigned_user_id",+ "hogql_value": "`$entry_dclid`","id": null,- "name": "issue_assigned_user_id",+ "name": "$entry_dclid","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "issue_assigned_role_id": {+ "$entry_gbraid": {"chain": null,"fields": null,- "hogql_value": "issue_assigned_role_id",+ "hogql_value": "`$entry_gbraid`","id": null,- "name": "issue_assigned_role_id",+ "name": "$entry_gbraid","schema_valid": true,"table": null,"type": "string"},- "issue_first_seen": {+ "$entry_wbraid": {"chain": null,"fields": null,- "hogql_value": "issue_first_seen",+ "hogql_value": "`$entry_wbraid`","id": null,- "name": "issue_first_seen",+ "name": "$entry_wbraid","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "$virt_is_bot": {+ "$entry_fbclid": {"chain": null,"fields": null,- "hogql_value": "`$virt_is_bot`",+ "hogql_value": "`$entry_fbclid`","id": null,- "name": "$virt_is_bot",+ "name": "$entry_fbclid","schema_valid": true,"table": null,- "type": "boolean"+ "type": "string"},- "$virt_traffic_type": {+ "$entry_msclkid": {"chain": null,"fields": null,- "hogql_value": "`$virt_traffic_type`",+ "hogql_value": "`$entry_msclkid`","id": null,- "name": "$virt_traffic_type",+ "name": "$entry_msclkid","schema_valid": true,"table": null,"type": "string"},- "$virt_traffic_category": {+ "$entry_twclid": {"chain": null,"fields": null,- "hogql_value": "`$virt_traffic_category`",+ "hogql_value": "`$entry_twclid`","id": null,- "name": "$virt_traffic_category",+ "name": "$entry_twclid","schema_valid": true,"table": null,"type": "string"},- "$virt_bot_name": {+ "$entry_li_fat_id": {"chain": null,"fields": null,- "hogql_value": "`$virt_bot_name`",+ "hogql_value": "`$entry_li_fat_id`","id": null,- "name": "$virt_bot_name",+ "name": "$entry_li_fat_id","schema_valid": true,"table": null,"type": "string"},- "$virt_bot_operator": {+ "$entry_mc_cid": {"chain": null,"fields": null,- "hogql_value": "`$virt_bot_operator`",+ "hogql_value": "`$entry_mc_cid`","id": null,- "name": "$virt_bot_operator",+ "name": "$entry_mc_cid","schema_valid": true,"table": null,"type": "string"- }- },- "id": "events",- "name": "events",- "row_count": null,- "type": "posthog"- },- "groups": {- "certification": null,- "fields": {- "index": {+ },+ "$entry_igshid": {"chain": null,"fields": null,- "hogql_value": "index",+ "hogql_value": "`$entry_igshid`","id": null,- "name": "index",+ "name": "$entry_igshid","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "key": {+ "$entry_ttclid": {"chain": null,"fields": null,- "hogql_value": "key",+ "hogql_value": "`$entry_ttclid`","id": null,- "name": "key",+ "name": "$entry_ttclid","schema_valid": true,"table": null,"type": "string"},- "created_at": {+ "$entry__kx": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "`$entry__kx`","id": null,- "name": "created_at",+ "name": "$entry__kx","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "updated_at": {+ "$entry_irclid": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "`$entry_irclid`","id": null,- "name": "updated_at",+ "name": "$entry_irclid","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "properties": {+ "$pageview_count": {"chain": null,"fields": null,- "hogql_value": "properties",+ "hogql_value": "`$pageview_count`","id": null,- "name": "properties",+ "name": "$pageview_count","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "revenue_analytics": {+ "$autocapture_count": {"chain": null,- "fields": [- "team_id",- "group_key",- "revenue",- "mrr"- ],- "hogql_value": "revenue_analytics",- "id": "revenue_analytics",- "name": "revenue_analytics",- "schema_valid": true,- "table": "groups_revenue_analytics",- "type": "lazy_table"- },- "$virt_revenue": {- "chain": [- "revenue_analytics",- "revenue"- ],"fields": null,- "hogql_value": "`$virt_revenue`",+ "hogql_value": "`$autocapture_count`","id": null,- "name": "$virt_revenue",+ "name": "$autocapture_count","schema_valid": true,"table": null,- "type": "field_traverser"+ "type": "integer"},- "$virt_mrr": {- "chain": [- "revenue_analytics",- "mrr"- ],+ "$screen_count": {+ "chain": null,"fields": null,- "hogql_value": "`$virt_mrr`",+ "hogql_value": "`$screen_count`","id": null,- "name": "$virt_mrr",+ "name": "$screen_count","schema_valid": true,"table": null,- "type": "field_traverser"- }- },- "id": "groups",- "name": "groups",- "row_count": null,- "type": "posthog"- },- "persons": {- "certification": null,- "fields": {- "id": {+ "type": "integer"+ },+ "$channel_type": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "`$channel_type`","id": null,- "name": "id",+ "name": "$channel_type","schema_valid": true,"table": null,"type": "string"},- "created_at": {+ "$session_duration": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "`$session_duration`","id": null,- "name": "created_at",+ "name": "$session_duration","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "properties": {+ "duration": {"chain": null,"fields": null,- "hogql_value": "properties",+ "hogql_value": "duration","id": null,- "name": "properties",+ "name": "duration","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "is_identified": {+ "$is_bounce": {"chain": null,"fields": null,- "hogql_value": "is_identified",+ "hogql_value": "`$is_bounce`","id": null,- "name": "is_identified",+ "name": "$is_bounce","schema_valid": true,"table": null,"type": "boolean"},- "last_seen_at": {+ "$last_external_click_url": {"chain": null,"fields": null,- "hogql_value": "last_seen_at",+ "hogql_value": "`$last_external_click_url`","id": null,- "name": "last_seen_at",+ "name": "$last_external_click_url","schema_valid": true,"table": null,- "type": "datetime"- },- "pdi": {- "chain": null,- "fields": [- "team_id",- "distinct_id",- "person_id"- ],- "hogql_value": "pdi",- "id": "pdi",- "name": "pdi",- "schema_valid": true,- "table": "person_distinct_ids",- "type": "lazy_table"- },- "revenue_analytics": {- "chain": null,- "fields": [- "team_id",- "person_id",- "revenue",- "mrr"- ],- "hogql_value": "revenue_analytics",- "id": "revenue_analytics",- "name": "revenue_analytics",- "schema_valid": true,- "table": "persons_revenue_analytics",- "type": "lazy_table"+ "type": "string"},- "$virt_initial_referring_domain_type": {+ "$exit_current_url": {"chain": null,"fields": null,- "hogql_value": "`$virt_initial_referring_domain_type`",+ "hogql_value": "`$exit_current_url`","id": null,- "name": "$virt_initial_referring_domain_type",+ "name": "$exit_current_url","schema_valid": true,"table": null,- "type": "expression"+ "type": "string"},- "$virt_initial_channel_type": {+ "$exit_pathname": {"chain": null,"fields": null,- "hogql_value": "`$virt_initial_channel_type`",- "id": null,- "name": "$virt_initial_channel_type",- "schema_valid": true,- "table": null,- "type": "expression"- },- "$virt_revenue": {- "chain": [- "revenue_analytics",- "revenue"- ],- "fields": null,- "hogql_value": "`$virt_revenue`",+ "hogql_value": "`$exit_pathname`","id": null,- "name": "$virt_revenue",+ "name": "$exit_pathname","schema_valid": true,"table": null,- "type": "field_traverser"+ "type": "string"},- "$virt_mrr": {- "chain": [- "revenue_analytics",- "mrr"- ],+ "$vitals_lcp": {+ "chain": null,"fields": null,- "hogql_value": "`$virt_mrr`",+ "hogql_value": "`$vitals_lcp`","id": null,- "name": "$virt_mrr",+ "name": "$vitals_lcp","schema_valid": true,"table": null,- "type": "field_traverser"+ "type": "float"}},- "id": "persons",- "name": "persons",+ "id": "sessions",+ "name": "sessions","row_count": null,"type": "posthog"},- "sessions": {+ "logs": {"certification": null,"fields": {- "id": {+ "uuid": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "uuid","id": null,- "name": "id",+ "name": "uuid","schema_valid": true,"table": null,"type": "string"},- "session_id": {+ "trace_id": {"chain": null,"fields": null,- "hogql_value": "session_id",+ "hogql_value": "trace_id","id": null,- "name": "session_id",+ "name": "trace_id","schema_valid": true,"table": null,"type": "string"},- "session_id_v7": {+ "span_id": {"chain": null,"fields": null,- "hogql_value": "session_id_v7",+ "hogql_value": "span_id","id": null,- "name": "session_id_v7",+ "name": "span_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "distinct_id": {+ "message": {"chain": null,"fields": null,- "hogql_value": "distinct_id",+ "hogql_value": "message","id": null,- "name": "distinct_id",+ "name": "message","schema_valid": true,"table": null,"type": "string"},- "$start_timestamp": {+ "body": {"chain": null,"fields": null,- "hogql_value": "`$start_timestamp`",+ "hogql_value": "body","id": null,- "name": "$start_timestamp",+ "name": "body","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "$end_timestamp": {+ "attributes": {"chain": null,"fields": null,- "hogql_value": "`$end_timestamp`",+ "hogql_value": "attributes","id": null,- "name": "$end_timestamp",+ "name": "attributes","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "max_inserted_at": {+ "time_bucket": {"chain": null,"fields": null,- "hogql_value": "max_inserted_at",+ "hogql_value": "time_bucket","id": null,- "name": "max_inserted_at",+ "name": "time_bucket","schema_valid": true,"table": null,"type": "datetime"},- "$urls": {- "chain": null,- "fields": null,- "hogql_value": "`$urls`",- "id": null,- "name": "$urls",- "schema_valid": true,- "table": null,- "type": "array"- },- "$num_uniq_urls": {- "chain": null,- "fields": null,- "hogql_value": "`$num_uniq_urls`",- "id": null,- "name": "$num_uniq_urls",- "schema_valid": true,- "table": null,- "type": "integer"- },- "$entry_current_url": {+ "timestamp": {"chain": null,"fields": null,- "hogql_value": "`$entry_current_url`",+ "hogql_value": "timestamp","id": null,- "name": "$entry_current_url",+ "name": "timestamp","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "$entry_pathname": {+ "observed_timestamp": {"chain": null,"fields": null,- "hogql_value": "`$entry_pathname`",+ "hogql_value": "observed_timestamp","id": null,- "name": "$entry_pathname",+ "name": "observed_timestamp","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "$entry_hostname": {+ "severity_text": {"chain": null,"fields": null,- "hogql_value": "`$entry_hostname`",+ "hogql_value": "severity_text","id": null,- "name": "$entry_hostname",+ "name": "severity_text","schema_valid": true,"table": null,"type": "string"},- "$end_current_url": {+ "severity_number": {"chain": null,"fields": null,- "hogql_value": "`$end_current_url`",+ "hogql_value": "severity_number","id": null,- "name": "$end_current_url",+ "name": "severity_number","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$end_pathname": {+ "level": {"chain": null,"fields": null,- "hogql_value": "`$end_pathname`",+ "hogql_value": "level","id": null,- "name": "$end_pathname",+ "name": "level","schema_valid": true,"table": null,"type": "string"},- "$end_hostname": {+ "resource_attributes": {"chain": null,"fields": null,- "hogql_value": "`$end_hostname`",+ "hogql_value": "resource_attributes","id": null,- "name": "$end_hostname",+ "name": "resource_attributes","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "$entry_referring_domain": {+ "resource_fingerprint": {"chain": null,"fields": null,- "hogql_value": "`$entry_referring_domain`",+ "hogql_value": "resource_fingerprint","id": null,- "name": "$entry_referring_domain",+ "name": "resource_fingerprint","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$entry_utm_source": {+ "instrumentation_scope": {"chain": null,"fields": null,- "hogql_value": "`$entry_utm_source`",+ "hogql_value": "instrumentation_scope","id": null,- "name": "$entry_utm_source",+ "name": "instrumentation_scope","schema_valid": true,"table": null,"type": "string"},- "$entry_utm_campaign": {+ "event_name": {"chain": null,"fields": null,- "hogql_value": "`$entry_utm_campaign`",+ "hogql_value": "event_name","id": null,- "name": "$entry_utm_campaign",+ "name": "event_name","schema_valid": true,"table": null,"type": "string"},- "$entry_utm_medium": {+ "service_name": {"chain": null,"fields": null,- "hogql_value": "`$entry_utm_medium`",+ "hogql_value": "service_name","id": null,- "name": "$entry_utm_medium",+ "name": "service_name","schema_valid": true,"table": null,"type": "string"- },- "$entry_utm_term": {+ }+ },+ "id": "logs",+ "name": "logs",+ "row_count": null,+ "type": "posthog"+ },+ "query_log": {+ "certification": null,+ "fields": {+ "event_date": {"chain": null,"fields": null,- "hogql_value": "`$entry_utm_term`",+ "hogql_value": "event_date","id": null,- "name": "$entry_utm_term",+ "name": "event_date","schema_valid": true,"table": null,- "type": "string"+ "type": "date"},- "$entry_utm_content": {+ "event_time": {"chain": null,"fields": null,- "hogql_value": "`$entry_utm_content`",+ "hogql_value": "event_time","id": null,- "name": "$entry_utm_content",+ "name": "event_time","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "$entry_gclid": {+ "query_id": {"chain": null,"fields": null,- "hogql_value": "`$entry_gclid`",+ "hogql_value": "query_id","id": null,- "name": "$entry_gclid",+ "name": "query_id","schema_valid": true,"table": null,"type": "string"},- "$entry_gad_source": {+ "endpoint": {"chain": null,"fields": null,- "hogql_value": "`$entry_gad_source`",+ "hogql_value": "endpoint","id": null,- "name": "$entry_gad_source",+ "name": "endpoint","schema_valid": true,"table": null,"type": "string"},- "$entry_gclsrc": {+ "query": {"chain": null,"fields": null,- "hogql_value": "`$entry_gclsrc`",+ "hogql_value": "query","id": null,- "name": "$entry_gclsrc",+ "name": "query","schema_valid": true,"table": null,"type": "string"},- "$entry_dclid": {+ "query_start_time": {"chain": null,"fields": null,- "hogql_value": "`$entry_dclid`",+ "hogql_value": "query_start_time","id": null,- "name": "$entry_dclid",+ "name": "query_start_time","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "$entry_gbraid": {+ "query_duration_ms": {"chain": null,"fields": null,- "hogql_value": "`$entry_gbraid`",+ "hogql_value": "query_duration_ms","id": null,- "name": "$entry_gbraid",+ "name": "query_duration_ms","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$entry_wbraid": {+ "name": {"chain": null,"fields": null,- "hogql_value": "`$entry_wbraid`",+ "hogql_value": "name","id": null,- "name": "$entry_wbraid",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "$entry_fbclid": {+ "created_by": {"chain": null,"fields": null,- "hogql_value": "`$entry_fbclid`",+ "hogql_value": "created_by","id": null,- "name": "$entry_fbclid",+ "name": "created_by","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$entry_msclkid": {+ "product": {"chain": null,"fields": null,- "hogql_value": "`$entry_msclkid`",+ "hogql_value": "product","id": null,- "name": "$entry_msclkid",+ "name": "product","schema_valid": true,"table": null,"type": "string"},- "$entry_twclid": {+ "read_rows": {"chain": null,"fields": null,- "hogql_value": "`$entry_twclid`",+ "hogql_value": "read_rows","id": null,- "name": "$entry_twclid",+ "name": "read_rows","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$entry_li_fat_id": {+ "read_bytes": {"chain": null,"fields": null,- "hogql_value": "`$entry_li_fat_id`",+ "hogql_value": "read_bytes","id": null,- "name": "$entry_li_fat_id",+ "name": "read_bytes","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$entry_mc_cid": {+ "result_rows": {"chain": null,"fields": null,- "hogql_value": "`$entry_mc_cid`",+ "hogql_value": "result_rows","id": null,- "name": "$entry_mc_cid",+ "name": "result_rows","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$entry_igshid": {+ "result_bytes": {"chain": null,"fields": null,- "hogql_value": "`$entry_igshid`",+ "hogql_value": "result_bytes","id": null,- "name": "$entry_igshid",+ "name": "result_bytes","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$entry_ttclid": {+ "memory_usage": {"chain": null,"fields": null,- "hogql_value": "`$entry_ttclid`",+ "hogql_value": "memory_usage","id": null,- "name": "$entry_ttclid",+ "name": "memory_usage","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$entry__kx": {+ "status": {"chain": null,"fields": null,- "hogql_value": "`$entry__kx`",+ "hogql_value": "status","id": null,- "name": "$entry__kx",+ "name": "status","schema_valid": true,"table": null,"type": "string"},- "$entry_irclid": {+ "exception_code": {"chain": null,"fields": null,- "hogql_value": "`$entry_irclid`",+ "hogql_value": "exception_code","id": null,- "name": "$entry_irclid",+ "name": "exception_code","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$pageview_count": {+ "exception_name": {"chain": null,"fields": null,- "hogql_value": "`$pageview_count`",+ "hogql_value": "exception_name","id": null,- "name": "$pageview_count",+ "name": "exception_name","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "$autocapture_count": {+ "is_personal_api_key_request": {"chain": null,"fields": null,- "hogql_value": "`$autocapture_count`",+ "hogql_value": "is_personal_api_key_request","id": null,- "name": "$autocapture_count",+ "name": "is_personal_api_key_request","schema_valid": true,"table": null,- "type": "integer"+ "type": "boolean"},- "$screen_count": {+ "api_key_label": {"chain": null,"fields": null,- "hogql_value": "`$screen_count`",+ "hogql_value": "api_key_label","id": null,- "name": "$screen_count",+ "name": "api_key_label","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "$channel_type": {+ "api_key_mask": {"chain": null,"fields": null,- "hogql_value": "`$channel_type`",+ "hogql_value": "api_key_mask","id": null,- "name": "$channel_type",+ "name": "api_key_mask","schema_valid": true,"table": null,"type": "string"},- "$session_duration": {+ "cpu_microseconds": {"chain": null,"fields": null,- "hogql_value": "`$session_duration`",+ "hogql_value": "cpu_microseconds","id": null,- "name": "$session_duration",+ "name": "cpu_microseconds","schema_valid": true,"table": null,"type": "integer"},- "duration": {+ "RealTimeMicroseconds": {"chain": null,"fields": null,- "hogql_value": "duration",+ "hogql_value": "RealTimeMicroseconds","id": null,- "name": "duration",+ "name": "RealTimeMicroseconds","schema_valid": true,"table": null,"type": "integer"},- "$is_bounce": {+ "S3ListObjects": {"chain": null,"fields": null,- "hogql_value": "`$is_bounce`",+ "hogql_value": "S3ListObjects","id": null,- "name": "$is_bounce",+ "name": "S3ListObjects","schema_valid": true,"table": null,- "type": "boolean"+ "type": "integer"},- "$last_external_click_url": {+ "S3HeadObject": {"chain": null,"fields": null,- "hogql_value": "`$last_external_click_url`",+ "hogql_value": "S3HeadObject","id": null,- "name": "$last_external_click_url",+ "name": "S3HeadObject","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$exit_current_url": {+ "S3GetObjectAttributes": {"chain": null,"fields": null,- "hogql_value": "`$exit_current_url`",+ "hogql_value": "S3GetObjectAttributes","id": null,- "name": "$exit_current_url",+ "name": "S3GetObjectAttributes","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$exit_pathname": {+ "S3GetObject": {"chain": null,"fields": null,- "hogql_value": "`$exit_pathname`",+ "hogql_value": "S3GetObject","id": null,- "name": "$exit_pathname",+ "name": "S3GetObject","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "$vitals_lcp": {+ "ReadBufferFromS3Bytes": {"chain": null,"fields": null,- "hogql_value": "`$vitals_lcp`",+ "hogql_value": "ReadBufferFromS3Bytes","id": null,- "name": "$vitals_lcp",+ "name": "ReadBufferFromS3Bytes","schema_valid": true,"table": null,- "type": "float"+ "type": "integer"}},- "id": "sessions",- "name": "sessions",+ "id": "query_log",+ "name": "query_log","row_count": null,- "type": "posthog"+ "type": "system"},- "logs": {+ "system.accounts": {"certification": null,"fields": {- "uuid": {+ "id": {"chain": null,"fields": null,- "hogql_value": "uuid",+ "hogql_value": "id","id": null,- "name": "uuid",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "trace_id": {+ "external_id": {"chain": null,"fields": null,- "hogql_value": "trace_id",+ "hogql_value": "external_id","id": null,- "name": "trace_id",+ "name": "external_id","schema_valid": true,"table": null,"type": "string"},- "span_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "span_id",+ "hogql_value": "name","id": null,- "name": "span_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "message": {+ "properties": {"chain": null,"fields": null,- "hogql_value": "message",+ "hogql_value": "properties","id": null,- "name": "message",+ "name": "properties","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "body": {+ "stripe_customer_id": {"chain": null,"fields": null,- "hogql_value": "body",+ "hogql_value": "stripe_customer_id","id": null,- "name": "body",+ "name": "stripe_customer_id","schema_valid": true,"table": null,"type": "string"},- "attributes": {+ "hubspot_deal_id": {"chain": null,"fields": null,- "hogql_value": "attributes",+ "hogql_value": "hubspot_deal_id","id": null,- "name": "attributes",+ "name": "hubspot_deal_id","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "time_bucket": {+ "billing_id": {"chain": null,"fields": null,- "hogql_value": "time_bucket",+ "hogql_value": "billing_id","id": null,- "name": "time_bucket",+ "name": "billing_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "timestamp": {+ "sfdc_id": {"chain": null,"fields": null,- "hogql_value": "timestamp",+ "hogql_value": "sfdc_id","id": null,- "name": "timestamp",+ "name": "sfdc_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "observed_timestamp": {+ "zendesk_id": {"chain": null,"fields": null,- "hogql_value": "observed_timestamp",+ "hogql_value": "zendesk_id","id": null,- "name": "observed_timestamp",+ "name": "zendesk_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "severity_text": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "severity_text",+ "hogql_value": "created_by_id","id": null,- "name": "severity_text",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "severity_number": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "severity_number",+ "hogql_value": "created_at","id": null,- "name": "severity_number",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "level": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "level",+ "hogql_value": "updated_at","id": null,- "name": "level",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "resource_attributes": {+ "churned_at": {"chain": null,"fields": null,- "hogql_value": "resource_attributes",+ "hogql_value": "churned_at","id": null,- "name": "resource_attributes",+ "name": "churned_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"},- "resource_fingerprint": {+ "ignored_at": {"chain": null,"fields": null,- "hogql_value": "resource_fingerprint",+ "hogql_value": "ignored_at","id": null,- "name": "resource_fingerprint",+ "name": "ignored_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "instrumentation_scope": {+ "tags": {"chain": null,- "fields": null,- "hogql_value": "instrumentation_scope",- "id": null,- "name": "instrumentation_scope",+ "fields": [+ "account_id",+ "names"+ ],+ "hogql_value": "tags",+ "id": "tags",+ "name": "tags",+ "schema_valid": true,+ "table": "account_tags",+ "type": "lazy_table"+ },+ "notebooks": {+ "chain": null,+ "fields": [+ "account_id",+ "count"+ ],+ "hogql_value": "notebooks",+ "id": "notebooks",+ "name": "notebooks",+ "schema_valid": true,+ "table": "account_notebooks",+ "type": "lazy_table"+ },+ "custom_properties": {+ "chain": null,+ "fields": [+ "account_id",+ "values"+ ],+ "hogql_value": "custom_properties",+ "id": "custom_properties",+ "name": "custom_properties","schema_valid": true,- "table": null,- "type": "string"+ "table": "account_custom_properties",+ "type": "lazy_table"},- "event_name": {+ "custom_properties_history": {"chain": null,- "fields": null,- "hogql_value": "event_name",- "id": null,- "name": "event_name",+ "fields": [+ "account_id",+ "values"+ ],+ "hogql_value": "custom_properties_history",+ "id": "custom_properties_history",+ "name": "custom_properties_history","schema_valid": true,- "table": null,- "type": "string"+ "table": "account_custom_properties_history",+ "type": "lazy_table"},- "service_name": {+ "relationships": {"chain": null,- "fields": null,- "hogql_value": "service_name",- "id": null,- "name": "service_name",+ "fields": [+ "account_id",+ "values"+ ],+ "hogql_value": "relationships",+ "id": "relationships",+ "name": "relationships","schema_valid": true,- "table": null,- "type": "string"+ "table": "account_relationships",+ "type": "lazy_table"}},- "id": "logs",- "name": "logs",+ "id": "system.accounts",+ "name": "system.accounts","row_count": null,- "type": "posthog"+ "type": "system"},- "query_log": {+ "system.account_relationship_definitions": {"certification": null,"fields": {- "event_date": {+ "id": {"chain": null,"fields": null,- "hogql_value": "event_date",+ "hogql_value": "id","id": null,- "name": "event_date",+ "name": "id","schema_valid": true,"table": null,- "type": "date"+ "type": "string"},- "event_time": {+ "name": {"chain": null,"fields": null,- "hogql_value": "event_time",+ "hogql_value": "name","id": null,- "name": "event_time",+ "name": "name","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "query_id": {+ "description": {"chain": null,"fields": null,- "hogql_value": "query_id",+ "hogql_value": "description","id": null,- "name": "query_id",+ "name": "description","schema_valid": true,"table": null,"type": "string"},- "endpoint": {+ "is_single_holder": {"chain": null,"fields": null,- "hogql_value": "endpoint",+ "hogql_value": "is_single_holder","id": null,- "name": "endpoint",+ "name": "is_single_holder","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "query": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "query",+ "hogql_value": "created_by_id","id": null,- "name": "query",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "query_start_time": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "query_start_time",+ "hogql_value": "created_at","id": null,- "name": "query_start_time",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"},- "query_duration_ms": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "query_duration_ms",+ "hogql_value": "updated_at","id": null,- "name": "query_duration_ms",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "integer"- },- "name": {+ "type": "datetime"+ }+ },+ "id": "system.account_relationship_definitions",+ "name": "system.account_relationship_definitions",+ "row_count": null,+ "type": "system"+ },+ "system.account_relationships": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "id","id": null,- "name": "name",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "created_by": {+ "definition_id": {"chain": null,"fields": null,- "hogql_value": "created_by",+ "hogql_value": "definition_id","id": null,- "name": "created_by",+ "name": "definition_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "product": {+ "account_id": {"chain": null,"fields": null,- "hogql_value": "product",+ "hogql_value": "account_id","id": null,- "name": "product",+ "name": "account_id","schema_valid": true,"table": null,"type": "string"},- "read_rows": {+ "user_id": {"chain": null,"fields": null,- "hogql_value": "read_rows",+ "hogql_value": "user_id","id": null,- "name": "read_rows",+ "name": "user_id","schema_valid": true,"table": null,"type": "integer"},- "read_bytes": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "read_bytes",+ "hogql_value": "created_by_id","id": null,- "name": "read_bytes",+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"},- "result_rows": {+ "started_at": {"chain": null,"fields": null,- "hogql_value": "result_rows",+ "hogql_value": "started_at","id": null,- "name": "result_rows",+ "name": "started_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "result_bytes": {+ "ended_at": {"chain": null,"fields": null,- "hogql_value": "result_bytes",+ "hogql_value": "ended_at","id": null,- "name": "result_bytes",+ "name": "ended_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "memory_usage": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "memory_usage",+ "hogql_value": "created_at","id": null,- "name": "memory_usage",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"- },- "status": {+ "type": "datetime"+ }+ },+ "id": "system.account_relationships",+ "name": "system.account_relationships",+ "row_count": null,+ "type": "system"+ },+ "system.activity_logs": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "id","id": null,- "name": "status",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "exception_code": {+ "activity": {"chain": null,"fields": null,- "hogql_value": "exception_code",+ "hogql_value": "activity","id": null,- "name": "exception_code",+ "name": "activity","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "exception_name": {+ "item_id": {"chain": null,"fields": null,- "hogql_value": "exception_name",+ "hogql_value": "item_id","id": null,- "name": "exception_name",+ "name": "item_id","schema_valid": true,"table": null,"type": "string"},- "is_personal_api_key_request": {+ "scope": {"chain": null,"fields": null,- "hogql_value": "is_personal_api_key_request",+ "hogql_value": "scope","id": null,- "name": "is_personal_api_key_request",+ "name": "scope","schema_valid": true,"table": null,- "type": "boolean"+ "type": "string"},- "api_key_label": {+ "detail": {"chain": null,"fields": null,- "hogql_value": "api_key_label",+ "hogql_value": "detail","id": null,- "name": "api_key_label",+ "name": "detail","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "api_key_mask": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "api_key_mask",+ "hogql_value": "created_at","id": null,- "name": "api_key_mask",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"- },- "cpu_microseconds": {+ "type": "datetime"+ }+ },+ "id": "system.activity_logs",+ "name": "system.activity_logs",+ "row_count": null,+ "type": "system"+ },+ "system.actions": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "cpu_microseconds",+ "hogql_value": "id","id": null,- "name": "cpu_microseconds",+ "name": "id","schema_valid": true,"table": null,"type": "integer"},- "RealTimeMicroseconds": {+ "name": {"chain": null,"fields": null,- "hogql_value": "RealTimeMicroseconds",+ "hogql_value": "name",+ "id": null,+ "name": "name",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "description": {+ "chain": null,+ "fields": null,+ "hogql_value": "description","id": null,- "name": "RealTimeMicroseconds",+ "name": "description","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "S3ListObjects": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "S3ListObjects",+ "hogql_value": "deleted","id": null,- "name": "S3ListObjects",+ "name": "deleted","schema_valid": true,"table": null,"type": "integer"},- "S3HeadObject": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "S3HeadObject",+ "hogql_value": "created_by_id","id": null,- "name": "S3HeadObject",+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"},- "S3GetObjectAttributes": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "S3GetObjectAttributes",+ "hogql_value": "created_at","id": null,- "name": "S3GetObjectAttributes",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "S3GetObject": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "S3GetObject",+ "hogql_value": "updated_at","id": null,- "name": "S3GetObject",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "ReadBufferFromS3Bytes": {+ "steps_json": {"chain": null,"fields": null,- "hogql_value": "ReadBufferFromS3Bytes",+ "hogql_value": "steps_json","id": null,- "name": "ReadBufferFromS3Bytes",+ "name": "steps_json","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"}},- "id": "query_log",- "name": "query_log",+ "id": "system.actions",+ "name": "system.actions","row_count": null,"type": "system"},- "system.accounts": {+ "system.alerts": {"certification": null,"fields": {"id": {@@ -12937,16 +14001,6 @@"table": null,"type": "string"},- "external_id": {- "chain": null,- "fields": null,- "hogql_value": "external_id",- "id": null,- "name": "external_id",- "schema_valid": true,- "table": null,- "type": "string"- },"name": {"chain": null,"fields": null,@@ -12957,75 +14011,65 @@"table": null,"type": "string"},- "properties": {- "chain": null,- "fields": null,- "hogql_value": "properties",- "id": null,- "name": "properties",- "schema_valid": true,- "table": null,- "type": "json"- },- "stripe_customer_id": {+ "insight_id": {"chain": null,"fields": null,- "hogql_value": "stripe_customer_id",+ "hogql_value": "insight_id","id": null,- "name": "stripe_customer_id",+ "name": "insight_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "hubspot_deal_id": {+ "enabled": {"chain": null,"fields": null,- "hogql_value": "hubspot_deal_id",+ "hogql_value": "enabled","id": null,- "name": "hubspot_deal_id",+ "name": "enabled","schema_valid": true,"table": null,- "type": "string"+ "type": "boolean"},- "billing_id": {+ "state": {"chain": null,"fields": null,- "hogql_value": "billing_id",+ "hogql_value": "state","id": null,- "name": "billing_id",+ "name": "state","schema_valid": true,"table": null,"type": "string"},- "sfdc_id": {+ "calculation_interval": {"chain": null,"fields": null,- "hogql_value": "sfdc_id",+ "hogql_value": "calculation_interval","id": null,- "name": "sfdc_id",+ "name": "calculation_interval","schema_valid": true,"table": null,"type": "string"},- "zendesk_id": {+ "condition": {"chain": null,"fields": null,- "hogql_value": "zendesk_id",+ "hogql_value": "condition","id": null,- "name": "zendesk_id",+ "name": "condition","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "created_by_id": {+ "config": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "config","id": null,- "name": "created_by_id",+ "name": "config","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},"created_at": {"chain": null,@@ -13037,108 +14081,73 @@"table": null,"type": "datetime"},- "updated_at": {+ "last_notified_at": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "last_notified_at","id": null,- "name": "updated_at",+ "name": "last_notified_at","schema_valid": true,"table": null,"type": "datetime"},- "churned_at": {+ "last_checked_at": {"chain": null,"fields": null,- "hogql_value": "churned_at",+ "hogql_value": "last_checked_at","id": null,- "name": "churned_at",+ "name": "last_checked_at","schema_valid": true,"table": null,"type": "datetime"},- "ignored_at": {+ "next_check_at": {"chain": null,"fields": null,- "hogql_value": "ignored_at",+ "hogql_value": "next_check_at","id": null,- "name": "ignored_at",+ "name": "next_check_at","schema_valid": true,"table": null,"type": "datetime"},- "tags": {- "chain": null,- "fields": [- "account_id",- "names"- ],- "hogql_value": "tags",- "id": "tags",- "name": "tags",- "schema_valid": true,- "table": "account_tags",- "type": "lazy_table"- },- "notebooks": {- "chain": null,- "fields": [- "account_id",- "count"- ],- "hogql_value": "notebooks",- "id": "notebooks",- "name": "notebooks",- "schema_valid": true,- "table": "account_notebooks",- "type": "lazy_table"- },- "custom_properties": {+ "snoozed_until": {"chain": null,- "fields": [- "account_id",- "values"- ],- "hogql_value": "custom_properties",- "id": "custom_properties",- "name": "custom_properties",+ "fields": null,+ "hogql_value": "snoozed_until",+ "id": null,+ "name": "snoozed_until","schema_valid": true,- "table": "account_custom_properties",- "type": "lazy_table"+ "table": null,+ "type": "datetime"},- "custom_properties_history": {+ "skip_weekend": {"chain": null,- "fields": [- "account_id",- "values"- ],- "hogql_value": "custom_properties_history",- "id": "custom_properties_history",- "name": "custom_properties_history",+ "fields": null,+ "hogql_value": "skip_weekend",+ "id": null,+ "name": "skip_weekend","schema_valid": true,- "table": "account_custom_properties_history",- "type": "lazy_table"+ "table": null,+ "type": "boolean"},- "relationships": {+ "schedule_restriction": {"chain": null,- "fields": [- "account_id",- "values"- ],- "hogql_value": "relationships",- "id": "relationships",- "name": "relationships",+ "fields": null,+ "hogql_value": "schedule_restriction",+ "id": null,+ "name": "schedule_restriction","schema_valid": true,- "table": "account_relationships",- "type": "lazy_table"+ "table": null,+ "type": "json"}},- "id": "system.accounts",- "name": "system.accounts",+ "id": "system.alerts",+ "name": "system.alerts","row_count": null,"type": "system"},- "system.account_relationship_definitions": {+ "system.annotations": {"certification": null,"fields": {"id": {@@ -13149,34 +14158,74 @@"name": "id","schema_valid": true,"table": null,+ "type": "integer"+ },+ "content": {+ "chain": null,+ "fields": null,+ "hogql_value": "content",+ "id": null,+ "name": "content",+ "schema_valid": true,+ "table": null,"type": "string"},- "name": {+ "scope": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "scope",+ "id": null,+ "name": "scope",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "creation_type": {+ "chain": null,+ "fields": null,+ "hogql_value": "creation_type",+ "id": null,+ "name": "creation_type",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "date_marker": {+ "chain": null,+ "fields": null,+ "hogql_value": "date_marker",+ "id": null,+ "name": "date_marker",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted","id": null,- "name": "name",+ "name": "deleted","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "description": {+ "dashboard_item_id": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "dashboard_item_id","id": null,- "name": "description",+ "name": "dashboard_item_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "is_single_holder": {+ "dashboard_id": {"chain": null,"fields": null,- "hogql_value": "is_single_holder",+ "hogql_value": "dashboard_id","id": null,- "name": "is_single_holder",+ "name": "dashboard_id","schema_valid": true,"table": null,"type": "integer"@@ -13212,12 +14261,12 @@"type": "datetime"}},- "id": "system.account_relationship_definitions",- "name": "system.account_relationship_definitions",+ "id": "system.annotations",+ "name": "system.annotations","row_count": null,"type": "system"},- "system.account_relationships": {+ "system.batch_export_backfills": {"certification": null,"fields": {"id": {@@ -13230,83 +14279,93 @@"table": null,"type": "string"},- "definition_id": {+ "batch_export_id": {"chain": null,"fields": null,- "hogql_value": "definition_id",+ "hogql_value": "batch_export_id","id": null,- "name": "definition_id",+ "name": "batch_export_id","schema_valid": true,"table": null,"type": "string"},- "account_id": {+ "start_at": {"chain": null,"fields": null,- "hogql_value": "account_id",+ "hogql_value": "start_at","id": null,- "name": "account_id",+ "name": "start_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "user_id": {+ "end_at": {"chain": null,"fields": null,- "hogql_value": "user_id",+ "hogql_value": "end_at","id": null,- "name": "user_id",+ "name": "end_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "created_by_id": {+ "status": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "status","id": null,- "name": "created_by_id",+ "name": "status","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "started_at": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "started_at",+ "hogql_value": "created_at","id": null,- "name": "started_at",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"},- "ended_at": {+ "finished_at": {"chain": null,"fields": null,- "hogql_value": "ended_at",+ "hogql_value": "finished_at","id": null,- "name": "ended_at",+ "name": "finished_at","schema_valid": true,"table": null,"type": "datetime"},- "created_at": {+ "last_updated_at": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "last_updated_at","id": null,- "name": "created_at",+ "name": "last_updated_at","schema_valid": true,"table": null,"type": "datetime"+ },+ "total_records_count": {+ "chain": null,+ "fields": null,+ "hogql_value": "total_records_count",+ "id": null,+ "name": "total_records_count",+ "schema_valid": true,+ "table": null,+ "type": "integer"}},- "id": "system.account_relationships",- "name": "system.account_relationships",+ "id": "system.batch_export_backfills",+ "name": "system.batch_export_backfills","row_count": null,"type": "system"},- "system.activity_logs": {+ "system.batch_export_on_demands": {"certification": null,"fields": {"id": {@@ -13319,46 +14378,56 @@"table": null,"type": "string"},- "activity": {+ "destination_id": {"chain": null,"fields": null,- "hogql_value": "activity",+ "hogql_value": "destination_id","id": null,- "name": "activity",+ "name": "destination_id","schema_valid": true,"table": null,"type": "string"},- "item_id": {+ "source_id": {"chain": null,"fields": null,- "hogql_value": "item_id",+ "hogql_value": "source_id","id": null,- "name": "item_id",+ "name": "source_id","schema_valid": true,"table": null,"type": "string"},- "scope": {+ "model": {"chain": null,"fields": null,- "hogql_value": "scope",+ "hogql_value": "model","id": null,- "name": "scope",+ "name": "model","schema_valid": true,"table": null,"type": "string"},- "detail": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "detail",+ "hogql_value": "filters","id": null,- "name": "detail",+ "name": "filters","schema_valid": true,"table": null,"type": "json"},+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },"created_at": {"chain": null,"fields": null,@@ -13368,14 +14437,24 @@"schema_valid": true,"table": null,"type": "datetime"+ },+ "last_updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "last_updated_at",+ "id": null,+ "name": "last_updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"}},- "id": "system.activity_logs",- "name": "system.activity_logs",+ "id": "system.batch_export_on_demands",+ "name": "system.batch_export_on_demands","row_count": null,"type": "system"},- "system.actions": {+ "system.batch_export_runs": {"certification": null,"fields": {"id": {@@ -13386,47 +14465,67 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "name": {+ "batch_export_id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "batch_export_id","id": null,- "name": "name",+ "name": "batch_export_id","schema_valid": true,"table": null,"type": "string"},- "description": {+ "batch_export_on_demand_id": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "batch_export_on_demand_id","id": null,- "name": "description",+ "name": "batch_export_on_demand_id","schema_valid": true,"table": null,"type": "string"},- "deleted": {+ "backfill_id": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "backfill_id","id": null,- "name": "deleted",+ "name": "backfill_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_by_id": {+ "data_interval_start": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "data_interval_start","id": null,- "name": "created_by_id",+ "name": "data_interval_start","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"+ },+ "data_interval_end": {+ "chain": null,+ "fields": null,+ "hogql_value": "data_interval_end",+ "id": null,+ "name": "data_interval_end",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "status": {+ "chain": null,+ "fields": null,+ "hogql_value": "status",+ "id": null,+ "name": "status",+ "schema_valid": true,+ "table": null,+ "type": "string"},"created_at": {"chain": null,@@ -13438,33 +14537,53 @@"table": null,"type": "datetime"},- "updated_at": {+ "finished_at": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "finished_at","id": null,- "name": "updated_at",+ "name": "finished_at","schema_valid": true,"table": null,"type": "datetime"},- "steps_json": {+ "last_updated_at": {"chain": null,"fields": null,- "hogql_value": "steps_json",+ "hogql_value": "last_updated_at","id": null,- "name": "steps_json",+ "name": "last_updated_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"+ },+ "records_completed": {+ "chain": null,+ "fields": null,+ "hogql_value": "records_completed",+ "id": null,+ "name": "records_completed",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "bytes_exported": {+ "chain": null,+ "fields": null,+ "hogql_value": "bytes_exported",+ "id": null,+ "name": "bytes_exported",+ "schema_valid": true,+ "table": null,+ "type": "integer"}},- "id": "system.actions",- "name": "system.actions",+ "id": "system.batch_export_runs",+ "name": "system.batch_export_runs","row_count": null,"type": "system"},- "system.alerts": {+ "system.batch_exports": {"certification": null,"fields": {"id": {@@ -13487,143 +14606,133 @@"table": null,"type": "string"},- "insight_id": {- "chain": null,- "fields": null,- "hogql_value": "insight_id",- "id": null,- "name": "insight_id",- "schema_valid": true,- "table": null,- "type": "integer"- },- "enabled": {+ "model": {"chain": null,"fields": null,- "hogql_value": "enabled",+ "hogql_value": "model","id": null,- "name": "enabled",+ "name": "model","schema_valid": true,"table": null,- "type": "boolean"+ "type": "string"},- "state": {+ "interval": {"chain": null,"fields": null,- "hogql_value": "state",+ "hogql_value": "interval","id": null,- "name": "state",+ "name": "interval","schema_valid": true,"table": null,"type": "string"},- "calculation_interval": {+ "paused": {"chain": null,"fields": null,- "hogql_value": "calculation_interval",+ "hogql_value": "paused","id": null,- "name": "calculation_interval",+ "name": "paused","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "condition": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "condition",+ "hogql_value": "deleted","id": null,- "name": "condition",+ "name": "deleted","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "config": {+ "destination_id": {"chain": null,"fields": null,- "hogql_value": "config",+ "hogql_value": "destination_id","id": null,- "name": "config",+ "name": "destination_id","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "created_at": {+ "timezone": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "timezone","id": null,- "name": "created_at",+ "name": "timezone","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "last_notified_at": {+ "interval_offset": {"chain": null,"fields": null,- "hogql_value": "last_notified_at",+ "hogql_value": "interval_offset","id": null,- "name": "last_notified_at",+ "name": "interval_offset","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "last_checked_at": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "last_checked_at",+ "hogql_value": "created_at","id": null,- "name": "last_checked_at",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"},- "next_check_at": {+ "last_updated_at": {"chain": null,"fields": null,- "hogql_value": "next_check_at",+ "hogql_value": "last_updated_at","id": null,- "name": "next_check_at",+ "name": "last_updated_at","schema_valid": true,"table": null,"type": "datetime"},- "snoozed_until": {+ "last_paused_at": {"chain": null,"fields": null,- "hogql_value": "snoozed_until",+ "hogql_value": "last_paused_at","id": null,- "name": "snoozed_until",+ "name": "last_paused_at","schema_valid": true,"table": null,"type": "datetime"},- "skip_weekend": {+ "start_at": {"chain": null,"fields": null,- "hogql_value": "skip_weekend",+ "hogql_value": "start_at","id": null,- "name": "skip_weekend",+ "name": "start_at","schema_valid": true,"table": null,- "type": "boolean"+ "type": "datetime"},- "schedule_restriction": {+ "end_at": {"chain": null,"fields": null,- "hogql_value": "schedule_restriction",+ "hogql_value": "end_at","id": null,- "name": "schedule_restriction",+ "name": "end_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"}},- "id": "system.alerts",- "name": "system.alerts",+ "id": "system.batch_exports",+ "name": "system.batch_exports","row_count": null,"type": "system"},- "system.annotations": {+ "system.business_knowledge_chunks": {"certification": null,"fields": {"id": {@@ -13634,84 +14743,64 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"- },- "content": {- "chain": null,- "fields": null,- "hogql_value": "content",- "id": null,- "name": "content",- "schema_valid": true,- "table": null,"type": "string"},- "scope": {+ "source_id": {"chain": null,"fields": null,- "hogql_value": "scope",+ "hogql_value": "source_id","id": null,- "name": "scope",+ "name": "source_id","schema_valid": true,"table": null,"type": "string"},- "creation_type": {+ "document_id": {"chain": null,"fields": null,- "hogql_value": "creation_type",+ "hogql_value": "document_id","id": null,- "name": "creation_type",+ "name": "document_id","schema_valid": true,"table": null,"type": "string"},- "date_marker": {- "chain": null,- "fields": null,- "hogql_value": "date_marker",- "id": null,- "name": "date_marker",- "schema_valid": true,- "table": null,- "type": "datetime"- },- "deleted": {+ "heading_path": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "heading_path","id": null,- "name": "deleted",+ "name": "heading_path","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "dashboard_item_id": {+ "ordinal": {"chain": null,"fields": null,- "hogql_value": "dashboard_item_id",+ "hogql_value": "ordinal","id": null,- "name": "dashboard_item_id",+ "name": "ordinal","schema_valid": true,"table": null,"type": "integer"},- "dashboard_id": {+ "content": {"chain": null,"fields": null,- "hogql_value": "dashboard_id",+ "hogql_value": "content","id": null,- "name": "dashboard_id",+ "name": "content","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "created_by_id": {+ "char_count": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "char_count","id": null,- "name": "created_by_id",+ "name": "char_count","schema_valid": true,"table": null,"type": "integer"@@ -13725,24 +14814,14 @@"schema_valid": true,"table": null,"type": "datetime"- },- "updated_at": {- "chain": null,- "fields": null,- "hogql_value": "updated_at",- "id": null,- "name": "updated_at",- "schema_valid": true,- "table": null,- "type": "datetime"}},- "id": "system.annotations",- "name": "system.annotations",+ "id": "system.business_knowledge_chunks",+ "name": "system.business_knowledge_chunks","row_count": null,"type": "system"},- "system.batch_export_backfills": {+ "system.business_knowledge_documents": {"certification": null,"fields": {"id": {@@ -13755,93 +14834,93 @@"table": null,"type": "string"},- "batch_export_id": {+ "source_id": {"chain": null,"fields": null,- "hogql_value": "batch_export_id",+ "hogql_value": "source_id","id": null,- "name": "batch_export_id",+ "name": "source_id","schema_valid": true,"table": null,"type": "string"},- "start_at": {+ "stable_id": {"chain": null,"fields": null,- "hogql_value": "start_at",+ "hogql_value": "stable_id","id": null,- "name": "start_at",+ "name": "stable_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "end_at": {+ "title": {"chain": null,"fields": null,- "hogql_value": "end_at",+ "hogql_value": "title","id": null,- "name": "end_at",+ "name": "title","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "status": {+ "url": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "url","id": null,- "name": "status",+ "name": "url","schema_valid": true,"table": null,"type": "string"},- "created_at": {+ "content_hash": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "content_hash","id": null,- "name": "created_at",+ "name": "content_hash","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "finished_at": {+ "tombstoned_at": {"chain": null,"fields": null,- "hogql_value": "finished_at",+ "hogql_value": "tombstoned_at","id": null,- "name": "finished_at",+ "name": "tombstoned_at","schema_valid": true,"table": null,"type": "datetime"},- "last_updated_at": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "last_updated_at",+ "hogql_value": "created_at","id": null,- "name": "last_updated_at",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"},- "total_records_count": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "total_records_count",+ "hogql_value": "updated_at","id": null,- "name": "total_records_count",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"}},- "id": "system.batch_export_backfills",- "name": "system.batch_export_backfills",+ "id": "system.business_knowledge_documents",+ "name": "system.business_knowledge_documents","row_count": null,"type": "system"},- "system.batch_export_on_demands": {+ "system.business_knowledge_sources": {"certification": null,"fields": {"id": {@@ -13854,55 +14933,85 @@"table": null,"type": "string"},- "destination_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "destination_id",+ "hogql_value": "name","id": null,- "name": "destination_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "source_id": {+ "source_type": {"chain": null,"fields": null,- "hogql_value": "source_id",+ "hogql_value": "source_type","id": null,- "name": "source_id",+ "name": "source_type",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "status": {+ "chain": null,+ "fields": null,+ "hogql_value": "status",+ "id": null,+ "name": "status",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "error_message": {+ "chain": null,+ "fields": null,+ "hogql_value": "error_message",+ "id": null,+ "name": "error_message",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "source_url": {+ "chain": null,+ "fields": null,+ "hogql_value": "source_url",+ "id": null,+ "name": "source_url","schema_valid": true,"table": null,"type": "string"},- "model": {+ "crawl_mode": {"chain": null,"fields": null,- "hogql_value": "model",+ "hogql_value": "crawl_mode","id": null,- "name": "model",+ "name": "crawl_mode","schema_valid": true,"table": null,"type": "string"},- "filters": {+ "original_filename": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "original_filename","id": null,- "name": "filters",+ "name": "original_filename","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "deleted": {+ "file_content_type": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "file_content_type","id": null,- "name": "deleted",+ "name": "file_content_type","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},"created_at": {"chain": null,@@ -13914,23 +15023,23 @@"table": null,"type": "datetime"},- "last_updated_at": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "last_updated_at",+ "hogql_value": "updated_at","id": null,- "name": "last_updated_at",+ "name": "updated_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.batch_export_on_demands",- "name": "system.batch_export_on_demands",+ "id": "system.business_knowledge_sources",+ "name": "system.business_knowledge_sources","row_count": null,"type": "system"},- "system.batch_export_runs": {+ "system.canvases": {"certification": null,"fields": {"id": {@@ -13943,123 +15052,133 @@"table": null,"type": "string"},- "batch_export_id": {+ "channel_id": {"chain": null,"fields": null,- "hogql_value": "batch_export_id",+ "hogql_value": "channel_id","id": null,- "name": "batch_export_id",+ "name": "channel_id","schema_valid": true,"table": null,"type": "string"},- "batch_export_on_demand_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "batch_export_on_demand_id",+ "hogql_value": "name","id": null,- "name": "batch_export_on_demand_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "backfill_id": {+ "template_id": {"chain": null,"fields": null,- "hogql_value": "backfill_id",+ "hogql_value": "template_id","id": null,- "name": "backfill_id",+ "name": "template_id","schema_valid": true,"table": null,"type": "string"},- "data_interval_start": {+ "context": {"chain": null,"fields": null,- "hogql_value": "data_interval_start",+ "hogql_value": "context","id": null,- "name": "data_interval_start",+ "name": "context","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "data_interval_end": {+ "generation_task_id": {"chain": null,"fields": null,- "hogql_value": "data_interval_end",+ "hogql_value": "generation_task_id","id": null,- "name": "data_interval_end",+ "name": "generation_task_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "pinned_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "pinned_at",+ "id": null,+ "name": "pinned_at","schema_valid": true,"table": null,"type": "datetime"},- "status": {+ "current_source_version_id": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "current_source_version_id","id": null,- "name": "status",+ "name": "current_source_version_id","schema_valid": true,"table": null,"type": "string"},- "created_at": {+ "published_build_id": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "published_build_id","id": null,- "name": "created_at",+ "name": "published_build_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "finished_at": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "finished_at",+ "hogql_value": "created_by_id","id": null,- "name": "finished_at",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "last_updated_at": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "last_updated_at",+ "hogql_value": "deleted","id": null,- "name": "last_updated_at",+ "name": "deleted","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "records_completed": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "records_completed",+ "hogql_value": "created_at","id": null,- "name": "records_completed",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "bytes_exported": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "bytes_exported",+ "hogql_value": "updated_at","id": null,- "name": "bytes_exported",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"}},- "id": "system.batch_export_runs",- "name": "system.batch_export_runs",+ "id": "system.canvases",+ "name": "system.canvases","row_count": null,"type": "system"},- "system.batch_exports": {+ "system.cohort_calculation_history": {"certification": null,"fields": {"id": {@@ -14072,232 +15191,192 @@"table": null,"type": "string"},- "name": {- "chain": null,- "fields": null,- "hogql_value": "name",- "id": null,- "name": "name",- "schema_valid": true,- "table": null,- "type": "string"- },- "model": {- "chain": null,- "fields": null,- "hogql_value": "model",- "id": null,- "name": "model",- "schema_valid": true,- "table": null,- "type": "string"- },- "interval": {+ "cohort_id": {"chain": null,"fields": null,- "hogql_value": "interval",+ "hogql_value": "cohort_id","id": null,- "name": "interval",+ "name": "cohort_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "paused": {+ "count": {"chain": null,"fields": null,- "hogql_value": "paused",+ "hogql_value": "count","id": null,- "name": "paused",+ "name": "count","schema_valid": true,"table": null,"type": "integer"},- "deleted": {+ "started_at": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "started_at","id": null,- "name": "deleted",+ "name": "started_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "destination_id": {+ "finished_at": {"chain": null,"fields": null,- "hogql_value": "destination_id",+ "hogql_value": "finished_at","id": null,- "name": "destination_id",+ "name": "finished_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "timezone": {+ "error_code": {"chain": null,"fields": null,- "hogql_value": "timezone",+ "hogql_value": "error_code","id": null,- "name": "timezone",+ "name": "error_code","schema_valid": true,"table": null,"type": "string"- },- "interval_offset": {+ }+ },+ "id": "system.cohort_calculation_history",+ "name": "system.cohort_calculation_history",+ "row_count": null,+ "type": "system"+ },+ "system.cohorts": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "interval_offset",+ "hogql_value": "id","id": null,- "name": "interval_offset",+ "name": "id","schema_valid": true,"table": null,"type": "integer"},- "created_at": {- "chain": null,- "fields": null,- "hogql_value": "created_at",- "id": null,- "name": "created_at",- "schema_valid": true,- "table": null,- "type": "datetime"- },- "last_updated_at": {- "chain": null,- "fields": null,- "hogql_value": "last_updated_at",- "id": null,- "name": "last_updated_at",- "schema_valid": true,- "table": null,- "type": "datetime"- },- "last_paused_at": {+ "name": {"chain": null,"fields": null,- "hogql_value": "last_paused_at",+ "hogql_value": "name","id": null,- "name": "last_paused_at",+ "name": "name","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "start_at": {+ "description": {"chain": null,"fields": null,- "hogql_value": "start_at",+ "hogql_value": "description","id": null,- "name": "start_at",+ "name": "description","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "end_at": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "end_at",+ "hogql_value": "deleted","id": null,- "name": "end_at",+ "name": "deleted","schema_valid": true,- "table": null,- "type": "datetime"- }- },- "id": "system.batch_exports",- "name": "system.batch_exports",- "row_count": null,- "type": "system"- },- "system.business_knowledge_chunks": {- "certification": null,- "fields": {- "id": {+ "table": null,+ "type": "integer"+ },+ "filters": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "filters","id": null,- "name": "id",+ "name": "filters","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "source_id": {+ "groups": {"chain": null,"fields": null,- "hogql_value": "source_id",+ "hogql_value": "groups","id": null,- "name": "source_id",+ "name": "groups","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "document_id": {+ "query": {"chain": null,"fields": null,- "hogql_value": "document_id",+ "hogql_value": "query","id": null,- "name": "document_id",+ "name": "query","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "heading_path": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "heading_path",+ "hogql_value": "created_at","id": null,- "name": "heading_path",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "ordinal": {+ "last_calculation": {"chain": null,"fields": null,- "hogql_value": "ordinal",+ "hogql_value": "last_calculation","id": null,- "name": "ordinal",+ "name": "last_calculation","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "content": {+ "version": {"chain": null,"fields": null,- "hogql_value": "content",+ "hogql_value": "version","id": null,- "name": "content",+ "name": "version","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "char_count": {+ "count": {"chain": null,"fields": null,- "hogql_value": "char_count",+ "hogql_value": "count","id": null,- "name": "char_count",+ "name": "count","schema_valid": true,"table": null,"type": "integer"},- "created_at": {+ "is_static": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "is_static","id": null,- "name": "created_at",+ "name": "is_static","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"}},- "id": "system.business_knowledge_chunks",- "name": "system.business_knowledge_chunks",+ "id": "system.cohorts",+ "name": "system.cohorts","row_count": null,"type": "system"},- "system.business_knowledge_documents": {+ "system.custom_property_definitions": {"certification": null,"fields": {"id": {@@ -14310,65 +15389,55 @@"table": null,"type": "string"},- "source_id": {- "chain": null,- "fields": null,- "hogql_value": "source_id",- "id": null,- "name": "source_id",- "schema_valid": true,- "table": null,- "type": "string"- },- "stable_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "stable_id",+ "hogql_value": "name","id": null,- "name": "stable_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "title": {+ "description": {"chain": null,"fields": null,- "hogql_value": "title",+ "hogql_value": "description","id": null,- "name": "title",+ "name": "description","schema_valid": true,"table": null,"type": "string"},- "url": {+ "display_type": {"chain": null,"fields": null,- "hogql_value": "url",+ "hogql_value": "display_type","id": null,- "name": "url",+ "name": "display_type","schema_valid": true,"table": null,"type": "string"},- "content_hash": {+ "is_big_number": {"chain": null,"fields": null,- "hogql_value": "content_hash",+ "hogql_value": "is_big_number","id": null,- "name": "content_hash",+ "name": "is_big_number","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "tombstoned_at": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "tombstoned_at",+ "hogql_value": "created_by_id","id": null,- "name": "tombstoned_at",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},"created_at": {"chain": null,@@ -14391,12 +15460,12 @@"type": "datetime"}},- "id": "system.business_knowledge_documents",- "name": "system.business_knowledge_documents",+ "id": "system.custom_property_definitions",+ "name": "system.custom_property_definitions","row_count": null,"type": "system"},- "system.business_knowledge_sources": {+ "system.dashboards": {"certification": null,"fields": {"id": {@@ -14407,7 +15476,7 @@"name": "id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},"name": {"chain": null,@@ -14419,103 +15488,73 @@"table": null,"type": "string"},- "source_type": {- "chain": null,- "fields": null,- "hogql_value": "source_type",- "id": null,- "name": "source_type",- "schema_valid": true,- "table": null,- "type": "string"- },- "status": {- "chain": null,- "fields": null,- "hogql_value": "status",- "id": null,- "name": "status",- "schema_valid": true,- "table": null,- "type": "string"- },- "error_message": {- "chain": null,- "fields": null,- "hogql_value": "error_message",- "id": null,- "name": "error_message",- "schema_valid": true,- "table": null,- "type": "string"- },- "source_url": {+ "description": {"chain": null,"fields": null,- "hogql_value": "source_url",+ "hogql_value": "description","id": null,- "name": "source_url",+ "name": "description","schema_valid": true,"table": null,"type": "string"},- "crawl_mode": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "crawl_mode",+ "hogql_value": "created_by_id","id": null,- "name": "crawl_mode",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "original_filename": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "original_filename",+ "hogql_value": "created_at","id": null,- "name": "original_filename",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "file_content_type": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "file_content_type",+ "hogql_value": "deleted","id": null,- "name": "file_content_type",+ "name": "deleted","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "created_at": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "filters","id": null,- "name": "created_at",+ "name": "filters","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "updated_at": {+ "variables": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "variables","id": null,- "name": "updated_at",+ "name": "variables","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"}},- "id": "system.business_knowledge_sources",- "name": "system.business_knowledge_sources",+ "id": "system.dashboards",+ "name": "system.dashboards","row_count": null,"type": "system"},- "system.canvases": {+ "system.dashboard_tiles": {"certification": null,"fields": {"id": {@@ -14526,135 +15565,115 @@"name": "id","schema_valid": true,"table": null,- "type": "string"- },- "channel_id": {- "chain": null,- "fields": null,- "hogql_value": "channel_id",- "id": null,- "name": "channel_id",- "schema_valid": true,- "table": null,- "type": "string"+ "type": "integer"},- "name": {+ "dashboard_id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "dashboard_id","id": null,- "name": "name",+ "name": "dashboard_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "template_id": {+ "insight_id": {"chain": null,"fields": null,- "hogql_value": "template_id",+ "hogql_value": "insight_id","id": null,- "name": "template_id",+ "name": "insight_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "context": {+ "text_id": {"chain": null,"fields": null,- "hogql_value": "context",+ "hogql_value": "text_id","id": null,- "name": "context",+ "name": "text_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "generation_task_id": {+ "button_tile_id": {"chain": null,"fields": null,- "hogql_value": "generation_task_id",+ "hogql_value": "button_tile_id","id": null,- "name": "generation_task_id",+ "name": "button_tile_id","schema_valid": true,"table": null,"type": "string"},- "pinned_at": {- "chain": null,- "fields": null,- "hogql_value": "pinned_at",- "id": null,- "name": "pinned_at",- "schema_valid": true,- "table": null,- "type": "datetime"- },- "current_source_version_id": {+ "layouts": {"chain": null,"fields": null,- "hogql_value": "current_source_version_id",+ "hogql_value": "layouts","id": null,- "name": "current_source_version_id",+ "name": "layouts","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "published_build_id": {+ "color": {"chain": null,"fields": null,- "hogql_value": "published_build_id",+ "hogql_value": "color","id": null,- "name": "published_build_id",+ "name": "color","schema_valid": true,"table": null,"type": "string"},- "created_by_id": {+ "show_description": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "show_description","id": null,- "name": "created_by_id",+ "name": "show_description","schema_valid": true,"table": null,- "type": "integer"+ "type": "boolean"},- "deleted": {+ "transparent_background": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "transparent_background","id": null,- "name": "deleted",+ "name": "transparent_background","schema_valid": true,"table": null,- "type": "integer"+ "type": "boolean"},- "created_at": {+ "filters_overrides": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "filters_overrides","id": null,- "name": "created_at",+ "name": "filters_overrides","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "updated_at": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "deleted","id": null,- "name": "updated_at",+ "name": "deleted","schema_valid": true,"table": null,- "type": "datetime"+ "type": "boolean"}},- "id": "system.canvases",- "name": "system.canvases",+ "id": "system.dashboard_tiles",+ "name": "system.dashboard_tiles","row_count": null,"type": "system"},- "system.cohort_calculation_history": {+ "system.dataset_item_versions": {"certification": null,"fields": {"id": {@@ -14667,134 +15686,135 @@"table": null,"type": "string"},- "cohort_id": {+ "dataset_id": {"chain": null,"fields": null,- "hogql_value": "cohort_id",+ "hogql_value": "dataset_id","id": null,- "name": "cohort_id",+ "name": "dataset_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "count": {+ "dataset_item_id": {"chain": null,"fields": null,- "hogql_value": "count",+ "hogql_value": "dataset_item_id","id": null,- "name": "count",+ "name": "dataset_item_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "started_at": {+ "dataset_revision_id": {"chain": null,"fields": null,- "hogql_value": "started_at",+ "hogql_value": "dataset_revision_id","id": null,- "name": "started_at",+ "name": "dataset_revision_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "finished_at": {+ "version": {"chain": null,"fields": null,- "hogql_value": "finished_at",+ "hogql_value": "version","id": null,- "name": "finished_at",+ "name": "version","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "error_code": {+ "archived": {"chain": null,"fields": null,- "hogql_value": "error_code",+ "hogql_value": "archived","id": null,- "name": "error_code",+ "name": "archived","schema_valid": true,"table": null,- "type": "string"- }- },- "id": "system.cohort_calculation_history",- "name": "system.cohort_calculation_history",- "row_count": null,- "type": "system"- },- "system.cohorts": {- "certification": null,- "fields": {- "id": {+ "type": "boolean"+ },+ "input": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "input","id": null,- "name": "id",+ "name": "input","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "name": {+ "expected_output": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "expected_output","id": null,- "name": "name",+ "name": "expected_output","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "description": {+ "source_output": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "source_output","id": null,- "name": "description",+ "name": "source_output","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "deleted": {+ "metadata": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "metadata","id": null,- "name": "deleted",+ "name": "metadata","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "filters": {+ "source_trace_id": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "source_trace_id","id": null,- "name": "filters",+ "name": "source_trace_id","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "groups": {+ "source_event_id": {"chain": null,"fields": null,- "hogql_value": "groups",+ "hogql_value": "source_event_id","id": null,- "name": "groups",+ "name": "source_event_id","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "query": {+ "source_timestamp": {"chain": null,"fields": null,- "hogql_value": "query",+ "hogql_value": "source_timestamp","id": null,- "name": "query",+ "name": "source_timestamp","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"+ },+ "created_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_by_id",+ "id": null,+ "name": "created_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"},"created_at": {"chain": null,@@ -14805,102 +15825,121 @@"schema_valid": true,"table": null,"type": "datetime"+ }+ },+ "id": "system.dataset_item_versions",+ "name": "system.dataset_item_versions",+ "row_count": null,+ "type": "system"+ },+ "system.dataset_items": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"},- "last_calculation": {+ "dataset_id": {"chain": null,"fields": null,- "hogql_value": "last_calculation",+ "hogql_value": "dataset_id","id": null,- "name": "last_calculation",+ "name": "dataset_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "version": {+ "client_item_id": {"chain": null,"fields": null,- "hogql_value": "version",+ "hogql_value": "client_item_id","id": null,- "name": "version",+ "name": "client_item_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "count": {+ "current_version_id": {"chain": null,"fields": null,- "hogql_value": "count",+ "hogql_value": "current_version_id","id": null,- "name": "count",+ "name": "current_version_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "is_static": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "is_static",+ "hogql_value": "created_by_id","id": null,- "name": "is_static",+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"- }- },- "id": "system.cohorts",- "name": "system.cohorts",- "row_count": null,- "type": "system"- },- "system.custom_property_definitions": {- "certification": null,- "fields": {- "id": {+ },+ "created_at": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "created_at","id": null,- "name": "id",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "name": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "updated_at","id": null,- "name": "name",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "string"- },- "description": {+ "type": "datetime"+ }+ },+ "id": "system.dataset_items",+ "name": "system.dataset_items",+ "row_count": null,+ "type": "system"+ },+ "system.dataset_revisions": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "id","id": null,- "name": "description",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "display_type": {+ "dataset_id": {"chain": null,"fields": null,- "hogql_value": "display_type",+ "hogql_value": "dataset_id","id": null,- "name": "display_type",+ "name": "dataset_id","schema_valid": true,"table": null,"type": "string"},- "is_big_number": {+ "revision": {"chain": null,"fields": null,- "hogql_value": "is_big_number",+ "hogql_value": "revision","id": null,- "name": "is_big_number",+ "name": "revision","schema_valid": true,"table": null,"type": "integer"@@ -14924,24 +15963,14 @@"schema_valid": true,"table": null,"type": "datetime"- },- "updated_at": {- "chain": null,- "fields": null,- "hogql_value": "updated_at",- "id": null,- "name": "updated_at",- "schema_valid": true,- "table": null,- "type": "datetime"}},- "id": "system.custom_property_definitions",- "name": "system.custom_property_definitions",+ "id": "system.dataset_revisions",+ "name": "system.dataset_revisions","row_count": null,"type": "system"},- "system.dashboards": {+ "system.datasets": {"certification": null,"fields": {"id": {@@ -14952,7 +15981,7 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},"name": {"chain": null,@@ -14974,63 +16003,73 @@"table": null,"type": "string"},- "created_by_id": {+ "metadata": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "metadata","id": null,- "name": "created_by_id",+ "name": "metadata","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "created_at": {+ "archived": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "archived","id": null,- "name": "created_at",+ "name": "archived","schema_valid": true,"table": null,- "type": "datetime"+ "type": "boolean"},- "deleted": {+ "current_revision_id": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "current_revision_id","id": null,- "name": "deleted",+ "name": "current_revision_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "created_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "created_by_id",+ "id": null,+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"},- "filters": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "created_at","id": null,- "name": "filters",+ "name": "created_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"},- "variables": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "variables",+ "hogql_value": "updated_at","id": null,- "name": "variables",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"}},- "id": "system.dashboards",- "name": "system.dashboards",+ "id": "system.datasets",+ "name": "system.datasets","row_count": null,"type": "system"},- "system.dashboard_tiles": {+ "system.data_modeling_jobs": {"certification": null,"fields": {"id": {@@ -15041,115 +16080,105 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "dashboard_id": {+ "data_modeling_view_id": {"chain": null,"fields": null,- "hogql_value": "dashboard_id",+ "hogql_value": "data_modeling_view_id","id": null,- "name": "dashboard_id",+ "name": "data_modeling_view_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "insight_id": {+ "status": {"chain": null,"fields": null,- "hogql_value": "insight_id",+ "hogql_value": "status","id": null,- "name": "insight_id",+ "name": "status","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "text_id": {+ "rows_materialized": {"chain": null,"fields": null,- "hogql_value": "text_id",+ "hogql_value": "rows_materialized","id": null,- "name": "text_id",+ "name": "rows_materialized","schema_valid": true,"table": null,"type": "integer"},- "button_tile_id": {- "chain": null,- "fields": null,- "hogql_value": "button_tile_id",- "id": null,- "name": "button_tile_id",- "schema_valid": true,- "table": null,- "type": "string"- },- "layouts": {+ "rows_expected": {"chain": null,"fields": null,- "hogql_value": "layouts",+ "hogql_value": "rows_expected","id": null,- "name": "layouts",+ "name": "rows_expected","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "color": {+ "error": {"chain": null,"fields": null,- "hogql_value": "color",+ "hogql_value": "error","id": null,- "name": "color",+ "name": "error","schema_valid": true,"table": null,"type": "string"},- "show_description": {+ "storage_delta_mib": {"chain": null,"fields": null,- "hogql_value": "show_description",+ "hogql_value": "storage_delta_mib","id": null,- "name": "show_description",+ "name": "storage_delta_mib","schema_valid": true,"table": null,- "type": "boolean"+ "type": "float"},- "transparent_background": {+ "last_run_at": {"chain": null,"fields": null,- "hogql_value": "transparent_background",+ "hogql_value": "last_run_at","id": null,- "name": "transparent_background",+ "name": "last_run_at","schema_valid": true,"table": null,- "type": "boolean"+ "type": "datetime"},- "filters_overrides": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "filters_overrides",+ "hogql_value": "created_at","id": null,- "name": "filters_overrides",+ "name": "created_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"},- "deleted": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "updated_at","id": null,- "name": "deleted",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "boolean"+ "type": "datetime"}},- "id": "system.dashboard_tiles",- "name": "system.dashboard_tiles",+ "id": "system.data_modeling_jobs",+ "name": "system.data_modeling_jobs","row_count": null,"type": "system"},- "system.dataset_item_versions": {+ "system.data_modeling_views": {"certification": null,"fields": {"id": {@@ -15162,153 +16191,113 @@"table": null,"type": "string"},- "dataset_id": {- "chain": null,- "fields": null,- "hogql_value": "dataset_id",- "id": null,- "name": "dataset_id",- "schema_valid": true,- "table": null,- "type": "string"- },- "dataset_item_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "dataset_item_id",+ "hogql_value": "name","id": null,- "name": "dataset_item_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "dataset_revision_id": {+ "status": {"chain": null,"fields": null,- "hogql_value": "dataset_revision_id",+ "hogql_value": "status","id": null,- "name": "dataset_revision_id",+ "name": "status","schema_valid": true,"table": null,"type": "string"},- "version": {- "chain": null,- "fields": null,- "hogql_value": "version",- "id": null,- "name": "version",- "schema_valid": true,- "table": null,- "type": "integer"- },- "archived": {- "chain": null,- "fields": null,- "hogql_value": "archived",- "id": null,- "name": "archived",- "schema_valid": true,- "table": null,- "type": "boolean"- },- "input": {- "chain": null,- "fields": null,- "hogql_value": "input",- "id": null,- "name": "input",- "schema_valid": true,- "table": null,- "type": "json"- },- "expected_output": {+ "columns": {"chain": null,"fields": null,- "hogql_value": "expected_output",+ "hogql_value": "columns","id": null,- "name": "expected_output",+ "name": "columns","schema_valid": true,"table": null,"type": "json"},- "source_output": {+ "query": {"chain": null,"fields": null,- "hogql_value": "source_output",+ "hogql_value": "query","id": null,- "name": "source_output",+ "name": "query","schema_valid": true,"table": null,"type": "json"},- "metadata": {+ "last_run_at": {"chain": null,"fields": null,- "hogql_value": "metadata",+ "hogql_value": "last_run_at","id": null,- "name": "metadata",+ "name": "last_run_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"},- "source_trace_id": {+ "is_materialized": {"chain": null,"fields": null,- "hogql_value": "source_trace_id",+ "hogql_value": "is_materialized","id": null,- "name": "source_trace_id",+ "name": "is_materialized","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "source_event_id": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "source_event_id",+ "hogql_value": "deleted","id": null,- "name": "source_event_id",+ "name": "deleted","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "source_timestamp": {+ "deleted_at": {"chain": null,"fields": null,- "hogql_value": "source_timestamp",+ "hogql_value": "deleted_at","id": null,- "name": "source_timestamp",+ "name": "deleted_at","schema_valid": true,"table": null,"type": "datetime"},- "created_by_id": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "created_at","id": null,- "name": "created_by_id",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "created_at": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "updated_at","id": null,- "name": "created_at",+ "name": "updated_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.dataset_item_versions",- "name": "system.dataset_item_versions",+ "id": "system.data_modeling_views",+ "name": "system.data_modeling_views","row_count": null,"type": "system"},- "system.dataset_items": {+ "system.data_modeling_endpoint_versions": {"certification": null,"fields": {"id": {@@ -15321,42 +16310,52 @@"table": null,"type": "string"},- "dataset_id": {+ "endpoint_id": {"chain": null,"fields": null,- "hogql_value": "dataset_id",+ "hogql_value": "endpoint_id","id": null,- "name": "dataset_id",+ "name": "endpoint_id","schema_valid": true,"table": null,"type": "string"},- "client_item_id": {+ "version": {"chain": null,"fields": null,- "hogql_value": "client_item_id",+ "hogql_value": "version","id": null,- "name": "client_item_id",+ "name": "version","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "current_version_id": {+ "description": {"chain": null,"fields": null,- "hogql_value": "current_version_id",+ "hogql_value": "description","id": null,- "name": "current_version_id",+ "name": "description","schema_valid": true,"table": null,"type": "string"},- "created_by_id": {+ "query": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "query","id": null,- "name": "created_by_id",+ "name": "query",+ "schema_valid": true,+ "table": null,+ "type": "json"+ },+ "data_freshness_seconds": {+ "chain": null,+ "fields": null,+ "hogql_value": "data_freshness_seconds",+ "id": null,+ "name": "data_freshness_seconds","schema_valid": true,"table": null,"type": "integer"@@ -15371,23 +16370,33 @@"table": null,"type": "datetime"},- "updated_at": {+ "is_active": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "is_active","id": null,- "name": "updated_at",+ "name": "is_active","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"+ },+ "columns": {+ "chain": null,+ "fields": null,+ "hogql_value": "columns",+ "id": null,+ "name": "columns",+ "schema_valid": true,+ "table": null,+ "type": "json"}},- "id": "system.dataset_items",- "name": "system.dataset_items",+ "id": "system.data_modeling_endpoint_versions",+ "name": "system.data_modeling_endpoint_versions","row_count": null,"type": "system"},- "system.dataset_revisions": {+ "system.data_modeling_endpoints": {"certification": null,"fields": {"id": {@@ -15400,26 +16409,46 @@"table": null,"type": "string"},- "dataset_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "dataset_id",+ "hogql_value": "name","id": null,- "name": "dataset_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "revision": {+ "is_active": {"chain": null,"fields": null,- "hogql_value": "revision",+ "hogql_value": "is_active","id": null,- "name": "revision",+ "name": "is_active",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "current_version": {+ "chain": null,+ "fields": null,+ "hogql_value": "current_version",+ "id": null,+ "name": "current_version","schema_valid": true,"table": null,"type": "integer"},+ "derived_from_insight": {+ "chain": null,+ "fields": null,+ "hogql_value": "derived_from_insight",+ "id": null,+ "name": "derived_from_insight",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },"created_by_id": {"chain": null,"fields": null,@@ -15439,14 +16468,44 @@"schema_valid": true,"table": null,"type": "datetime"+ },+ "updated_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_at",+ "id": null,+ "name": "updated_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "last_executed_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "last_executed_at",+ "id": null,+ "name": "last_executed_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted",+ "schema_valid": true,+ "table": null,+ "type": "integer"}},- "id": "system.dataset_revisions",- "name": "system.dataset_revisions",+ "id": "system.data_modeling_endpoints",+ "name": "system.data_modeling_endpoints","row_count": null,"type": "system"},- "system.datasets": {+ "system.data_warehouse_sources": {"certification": null,"fields": {"id": {@@ -15459,52 +16518,72 @@"table": null,"type": "string"},- "name": {+ "source_type": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "source_type","id": null,- "name": "name",+ "name": "source_type","schema_valid": true,"table": null,"type": "string"},- "description": {+ "status": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "status","id": null,- "name": "description",+ "name": "status","schema_valid": true,"table": null,"type": "string"},- "metadata": {+ "access_method": {"chain": null,"fields": null,- "hogql_value": "metadata",+ "hogql_value": "access_method","id": null,- "name": "metadata",+ "name": "access_method","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "archived": {+ "direct_query_enabled": {"chain": null,"fields": null,- "hogql_value": "archived",+ "hogql_value": "direct_query_enabled","id": null,- "name": "archived",+ "name": "direct_query_enabled","schema_valid": true,"table": null,- "type": "boolean"+ "type": "integer"},- "current_revision_id": {+ "is_live_queryable": {"chain": null,"fields": null,- "hogql_value": "current_revision_id",+ "hogql_value": "is_live_queryable","id": null,- "name": "current_revision_id",+ "name": "is_live_queryable",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "api_version": {+ "chain": null,+ "fields": null,+ "hogql_value": "api_version",+ "id": null,+ "name": "api_version",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "prefix": {+ "chain": null,+ "fields": null,+ "hogql_value": "prefix",+ "id": null,+ "name": "prefix","schema_valid": true,"table": null,"type": "string"@@ -15538,14 +16617,34 @@"schema_valid": true,"table": null,"type": "datetime"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "deleted_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted_at",+ "id": null,+ "name": "deleted_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"}},- "id": "system.datasets",- "name": "system.datasets",+ "id": "system.data_warehouse_sources",+ "name": "system.data_warehouse_sources","row_count": null,"type": "system"},- "system.data_modeling_jobs": {+ "system.data_warehouse_tables": {"certification": null,"fields": {"id": {@@ -15558,103 +16657,93 @@"table": null,"type": "string"},- "data_modeling_view_id": {- "chain": null,- "fields": null,- "hogql_value": "data_modeling_view_id",- "id": null,- "name": "data_modeling_view_id",- "schema_valid": true,- "table": null,- "type": "string"- },- "status": {+ "name": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "name","id": null,- "name": "status",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "rows_materialized": {+ "columns": {"chain": null,"fields": null,- "hogql_value": "rows_materialized",+ "hogql_value": "columns","id": null,- "name": "rows_materialized",+ "name": "columns","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "rows_expected": {+ "row_count": {"chain": null,"fields": null,- "hogql_value": "rows_expected",+ "hogql_value": "row_count","id": null,- "name": "rows_expected",+ "name": "row_count","schema_valid": true,"table": null,"type": "integer"},- "error": {+ "external_data_source_id": {"chain": null,"fields": null,- "hogql_value": "error",+ "hogql_value": "external_data_source_id","id": null,- "name": "error",+ "name": "external_data_source_id","schema_valid": true,"table": null,"type": "string"},- "storage_delta_mib": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "storage_delta_mib",+ "hogql_value": "created_at","id": null,- "name": "storage_delta_mib",+ "name": "created_at","schema_valid": true,"table": null,- "type": "float"+ "type": "datetime"},- "last_run_at": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "last_run_at",+ "hogql_value": "updated_at","id": null,- "name": "last_run_at",+ "name": "updated_at","schema_valid": true,"table": null,"type": "datetime"},- "created_at": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "deleted","id": null,- "name": "created_at",+ "name": "deleted","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "updated_at": {+ "deleted_at": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "deleted_at","id": null,- "name": "updated_at",+ "name": "deleted_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.data_modeling_jobs",- "name": "system.data_modeling_jobs",+ "id": "system.data_warehouse_tables",+ "name": "system.data_warehouse_tables","row_count": null,"type": "system"},- "system.data_modeling_views": {+ "system.error_tracking_assignment_rules": {"certification": null,"fields": {"id": {@@ -15667,85 +16756,65 @@"table": null,"type": "string"},- "name": {+ "user_id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "user_id","id": null,- "name": "name",+ "name": "user_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "status": {+ "role_id": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "role_id","id": null,- "name": "status",+ "name": "role_id","schema_valid": true,"table": null,"type": "string"},- "columns": {+ "order_key": {"chain": null,"fields": null,- "hogql_value": "columns",+ "hogql_value": "order_key","id": null,- "name": "columns",+ "name": "order_key","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "query": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "query",+ "hogql_value": "filters","id": null,- "name": "query",+ "name": "filters","schema_valid": true,"table": null,"type": "json"},- "last_run_at": {- "chain": null,- "fields": null,- "hogql_value": "last_run_at",- "id": null,- "name": "last_run_at",- "schema_valid": true,- "table": null,- "type": "datetime"- },- "is_materialized": {- "chain": null,- "fields": null,- "hogql_value": "is_materialized",- "id": null,- "name": "is_materialized",- "schema_valid": true,- "table": null,- "type": "integer"- },- "deleted": {+ "bytecode": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "bytecode","id": null,- "name": "deleted",+ "name": "bytecode","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "deleted_at": {+ "disabled_data": {"chain": null,"fields": null,- "hogql_value": "deleted_at",+ "hogql_value": "disabled_data","id": null,- "name": "deleted_at",+ "name": "disabled_data","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},"created_at": {"chain": null,@@ -15768,12 +16837,12 @@"type": "datetime"}},- "id": "system.data_modeling_views",- "name": "system.data_modeling_views",+ "id": "system.error_tracking_assignment_rules",+ "name": "system.error_tracking_assignment_rules","row_count": null,"type": "system"},- "system.data_modeling_endpoint_versions": {+ "system.error_tracking_bypass_rules": {"certification": null,"fields": {"id": {@@ -15786,93 +16855,122 @@"table": null,"type": "string"},- "endpoint_id": {+ "order_key": {"chain": null,"fields": null,- "hogql_value": "endpoint_id",+ "hogql_value": "order_key","id": null,- "name": "endpoint_id",+ "name": "order_key","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "version": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "version",+ "hogql_value": "filters","id": null,- "name": "version",+ "name": "filters","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "description": {+ "bytecode": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "bytecode","id": null,- "name": "description",+ "name": "bytecode","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "query": {+ "disabled_data": {"chain": null,"fields": null,- "hogql_value": "query",+ "hogql_value": "disabled_data","id": null,- "name": "query",+ "name": "disabled_data","schema_valid": true,"table": null,"type": "json"},- "data_freshness_seconds": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "data_freshness_seconds",+ "hogql_value": "created_at","id": null,- "name": "data_freshness_seconds",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "created_at": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "updated_at","id": null,- "name": "created_at",+ "name": "updated_at","schema_valid": true,"table": null,"type": "datetime"+ }+ },+ "id": "system.error_tracking_bypass_rules",+ "name": "system.error_tracking_bypass_rules",+ "row_count": null,+ "type": "system"+ },+ "system.error_tracking_issue_assignments": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"},- "is_active": {+ "issue_id": {"chain": null,"fields": null,- "hogql_value": "is_active",+ "hogql_value": "issue_id","id": null,- "name": "is_active",+ "name": "issue_id",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "user_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "user_id",+ "id": null,+ "name": "user_id","schema_valid": true,"table": null,"type": "integer"},- "columns": {+ "role_id": {"chain": null,"fields": null,- "hogql_value": "columns",+ "hogql_value": "role_id","id": null,- "name": "columns",+ "name": "role_id","schema_valid": true,"table": null,- "type": "json"+ "type": "string"}},- "id": "system.data_modeling_endpoint_versions",- "name": "system.data_modeling_endpoint_versions",+ "id": "system.error_tracking_issue_assignments",+ "name": "system.error_tracking_issue_assignments","row_count": null,"type": "system"},- "system.data_modeling_endpoints": {+ "system.error_tracking_issue_fingerprints": {"certification": null,"fields": {"id": {@@ -15885,103 +16983,112 @@"table": null,"type": "string"},- "name": {+ "issue_id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "issue_id","id": null,- "name": "name",+ "name": "issue_id","schema_valid": true,"table": null,"type": "string"},- "is_active": {+ "fingerprint": {"chain": null,"fields": null,- "hogql_value": "is_active",+ "hogql_value": "fingerprint","id": null,- "name": "is_active",+ "name": "fingerprint","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "current_version": {+ "first_seen": {"chain": null,"fields": null,- "hogql_value": "current_version",+ "hogql_value": "first_seen","id": null,- "name": "current_version",+ "name": "first_seen","schema_valid": true,"table": null,- "type": "integer"- },- "derived_from_insight": {+ "type": "datetime"+ }+ },+ "id": "system.error_tracking_issue_fingerprints",+ "name": "system.error_tracking_issue_fingerprints",+ "row_count": null,+ "type": "system"+ },+ "system.error_tracking_issues": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "derived_from_insight",+ "hogql_value": "id","id": null,- "name": "derived_from_insight",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "created_by_id": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "created_at","id": null,- "name": "created_by_id",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "created_at": {+ "status": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "status","id": null,- "name": "created_at",+ "name": "status","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "updated_at": {+ "severity": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "severity","id": null,- "name": "updated_at",+ "name": "severity","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "last_executed_at": {+ "name": {"chain": null,"fields": null,- "hogql_value": "last_executed_at",+ "hogql_value": "name","id": null,- "name": "last_executed_at",+ "name": "name","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "deleted": {+ "description": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "description","id": null,- "name": "deleted",+ "name": "description","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"}},- "id": "system.data_modeling_endpoints",- "name": "system.data_modeling_endpoints",+ "id": "system.error_tracking_issues",+ "name": "system.error_tracking_issues","row_count": null,"type": "system"},- "system.data_warehouse_sources": {+ "system.error_tracking_releases": {"certification": null,"fields": {"id": {@@ -15994,85 +17101,94 @@"table": null,"type": "string"},- "source_type": {+ "hash_id": {"chain": null,"fields": null,- "hogql_value": "source_type",+ "hogql_value": "hash_id","id": null,- "name": "source_type",+ "name": "hash_id","schema_valid": true,"table": null,"type": "string"},- "status": {+ "version": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "version","id": null,- "name": "status",+ "name": "version","schema_valid": true,"table": null,"type": "string"},- "access_method": {+ "project": {"chain": null,"fields": null,- "hogql_value": "access_method",+ "hogql_value": "project","id": null,- "name": "access_method",+ "name": "project","schema_valid": true,"table": null,"type": "string"},- "direct_query_enabled": {+ "metadata": {"chain": null,"fields": null,- "hogql_value": "direct_query_enabled",+ "hogql_value": "metadata","id": null,- "name": "direct_query_enabled",+ "name": "metadata","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "is_live_queryable": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "is_live_queryable",+ "hogql_value": "created_at","id": null,- "name": "is_live_queryable",+ "name": "created_at","schema_valid": true,"table": null,- "type": "integer"- },- "api_version": {+ "type": "datetime"+ }+ },+ "id": "system.error_tracking_releases",+ "name": "system.error_tracking_releases",+ "row_count": null,+ "type": "system"+ },+ "system.error_tracking_symbol_sets": {+ "certification": null,+ "fields": {+ "id": {"chain": null,"fields": null,- "hogql_value": "api_version",+ "hogql_value": "id","id": null,- "name": "api_version",+ "name": "id","schema_valid": true,"table": null,"type": "string"},- "prefix": {+ "ref": {"chain": null,"fields": null,- "hogql_value": "prefix",+ "hogql_value": "ref","id": null,- "name": "prefix",+ "name": "ref","schema_valid": true,"table": null,"type": "string"},- "created_by_id": {+ "release_id": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "release_id","id": null,- "name": "created_by_id",+ "name": "release_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},"created_at": {"chain": null,@@ -16084,43 +17200,33 @@"table": null,"type": "datetime"},- "updated_at": {+ "last_used": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "last_used","id": null,- "name": "updated_at",+ "name": "last_used","schema_valid": true,"table": null,"type": "datetime"},- "deleted": {- "chain": null,- "fields": null,- "hogql_value": "deleted",- "id": null,- "name": "deleted",- "schema_valid": true,- "table": null,- "type": "integer"- },- "deleted_at": {+ "failure_reason": {"chain": null,"fields": null,- "hogql_value": "deleted_at",+ "hogql_value": "failure_reason","id": null,- "name": "deleted_at",+ "name": "failure_reason","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"}},- "id": "system.data_warehouse_sources",- "name": "system.data_warehouse_sources",+ "id": "system.error_tracking_symbol_sets",+ "name": "system.error_tracking_symbol_sets","row_count": null,"type": "system"},- "system.data_warehouse_tables": {+ "system.error_tracking_suppression_rules": {"certification": null,"fields": {"id": {@@ -16133,45 +17239,55 @@"table": null,"type": "string"},- "name": {+ "order_key": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "order_key","id": null,- "name": "name",+ "name": "order_key","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "columns": {+ "sampling_rate": {"chain": null,"fields": null,- "hogql_value": "columns",+ "hogql_value": "sampling_rate","id": null,- "name": "columns",+ "name": "sampling_rate",+ "schema_valid": true,+ "table": null,+ "type": "float"+ },+ "filters": {+ "chain": null,+ "fields": null,+ "hogql_value": "filters",+ "id": null,+ "name": "filters","schema_valid": true,"table": null,"type": "json"},- "row_count": {+ "bytecode": {"chain": null,"fields": null,- "hogql_value": "row_count",+ "hogql_value": "bytecode","id": null,- "name": "row_count",+ "name": "bytecode","schema_valid": true,"table": null,- "type": "integer"+ "type": "json"},- "external_data_source_id": {+ "disabled_data": {"chain": null,"fields": null,- "hogql_value": "external_data_source_id",+ "hogql_value": "disabled_data","id": null,- "name": "external_data_source_id",+ "name": "disabled_data","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},"created_at": {"chain": null,@@ -16192,34 +17308,14 @@"schema_valid": true,"table": null,"type": "datetime"- },- "deleted": {- "chain": null,- "fields": null,- "hogql_value": "deleted",- "id": null,- "name": "deleted",- "schema_valid": true,- "table": null,- "type": "integer"- },- "deleted_at": {- "chain": null,- "fields": null,- "hogql_value": "deleted_at",- "id": null,- "name": "deleted_at",- "schema_valid": true,- "table": null,- "type": "datetime"}},- "id": "system.data_warehouse_tables",- "name": "system.data_warehouse_tables",+ "id": "system.error_tracking_suppression_rules",+ "name": "system.error_tracking_suppression_rules","row_count": null,"type": "system"},- "system.error_tracking_assignment_rules": {+ "system.early_access_features": {"certification": null,"fields": {"id": {@@ -16232,93 +17328,83 @@"table": null,"type": "string"},- "user_id": {+ "feature_flag_id": {"chain": null,"fields": null,- "hogql_value": "user_id",+ "hogql_value": "feature_flag_id","id": null,- "name": "user_id",+ "name": "feature_flag_id","schema_valid": true,"table": null,"type": "integer"},- "role_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "role_id",+ "hogql_value": "name","id": null,- "name": "role_id",+ "name": "name","schema_valid": true,"table": null,"type": "string"},- "order_key": {- "chain": null,- "fields": null,- "hogql_value": "order_key",- "id": null,- "name": "order_key",- "schema_valid": true,- "table": null,- "type": "integer"- },- "filters": {+ "description": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "description","id": null,- "name": "filters",+ "name": "description","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "bytecode": {+ "stage": {"chain": null,"fields": null,- "hogql_value": "bytecode",+ "hogql_value": "stage","id": null,- "name": "bytecode",+ "name": "stage","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "disabled_data": {+ "documentation_url": {"chain": null,"fields": null,- "hogql_value": "disabled_data",+ "hogql_value": "documentation_url","id": null,- "name": "disabled_data",+ "name": "documentation_url","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "created_at": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "created_by_id","id": null,- "name": "created_at",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "datetime"+ "type": "integer"},- "updated_at": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "created_at","id": null,- "name": "updated_at",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"}},- "id": "system.error_tracking_assignment_rules",- "name": "system.error_tracking_assignment_rules",+ "id": "system.early_access_features",+ "name": "system.early_access_features","row_count": null,"type": "system"},- "system.error_tracking_bypass_rules": {+ "system.evaluation_directories": {"certification": null,"fields": {"id": {@@ -16331,45 +17417,25 @@"table": null,"type": "string"},- "order_key": {- "chain": null,- "fields": null,- "hogql_value": "order_key",- "id": null,- "name": "order_key",- "schema_valid": true,- "table": null,- "type": "integer"- },- "filters": {- "chain": null,- "fields": null,- "hogql_value": "filters",- "id": null,- "name": "filters",- "schema_valid": true,- "table": null,- "type": "json"- },- "bytecode": {+ "name": {"chain": null,"fields": null,- "hogql_value": "bytecode",+ "hogql_value": "name","id": null,- "name": "bytecode",+ "name": "name","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "disabled_data": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "disabled_data",+ "hogql_value": "created_by_id","id": null,- "name": "disabled_data",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},"created_at": {"chain": null,@@ -16392,12 +17458,12 @@"type": "datetime"}},- "id": "system.error_tracking_bypass_rules",- "name": "system.error_tracking_bypass_rules",+ "id": "system.evaluation_directories",+ "name": "system.evaluation_directories","row_count": null,"type": "system"},- "system.error_tracking_issue_assignments": {+ "system.evaluations": {"certification": null,"fields": {"id": {@@ -16410,230 +17476,193 @@"table": null,"type": "string"},- "issue_id": {+ "directory_id": {"chain": null,"fields": null,- "hogql_value": "issue_id",+ "hogql_value": "directory_id","id": null,- "name": "issue_id",+ "name": "directory_id","schema_valid": true,"table": null,"type": "string"},- "user_id": {+ "name": {"chain": null,"fields": null,- "hogql_value": "user_id",+ "hogql_value": "name","id": null,- "name": "user_id",+ "name": "name","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "role_id": {+ "description": {"chain": null,"fields": null,- "hogql_value": "role_id",+ "hogql_value": "description","id": null,- "name": "role_id",+ "name": "description","schema_valid": true,"table": null,"type": "string"- }- },- "id": "system.error_tracking_issue_assignments",- "name": "system.error_tracking_issue_assignments",- "row_count": null,- "type": "system"- },- "system.error_tracking_issue_fingerprints": {- "certification": null,- "fields": {- "id": {+ },+ "enabled": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "enabled","id": null,- "name": "id",+ "name": "enabled","schema_valid": true,"table": null,- "type": "string"+ "type": "boolean"},- "issue_id": {+ "status": {"chain": null,"fields": null,- "hogql_value": "issue_id",+ "hogql_value": "status","id": null,- "name": "issue_id",+ "name": "status","schema_valid": true,"table": null,"type": "string"},- "fingerprint": {+ "status_reason": {"chain": null,"fields": null,- "hogql_value": "fingerprint",+ "hogql_value": "status_reason","id": null,- "name": "fingerprint",+ "name": "status_reason","schema_valid": true,"table": null,"type": "string"},- "first_seen": {- "chain": null,- "fields": null,- "hogql_value": "first_seen",- "id": null,- "name": "first_seen",- "schema_valid": true,- "table": null,- "type": "datetime"- }- },- "id": "system.error_tracking_issue_fingerprints",- "name": "system.error_tracking_issue_fingerprints",- "row_count": null,- "type": "system"- },- "system.error_tracking_issues": {- "certification": null,- "fields": {- "id": {+ "evaluation_type": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "evaluation_type","id": null,- "name": "id",+ "name": "evaluation_type","schema_valid": true,"table": null,"type": "string"},- "created_at": {+ "evaluation_config": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "evaluation_config","id": null,- "name": "created_at",+ "name": "evaluation_config","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"},- "status": {+ "output_type": {"chain": null,"fields": null,- "hogql_value": "status",+ "hogql_value": "output_type","id": null,- "name": "status",+ "name": "output_type","schema_valid": true,"table": null,"type": "string"},- "severity": {+ "output_config": {"chain": null,"fields": null,- "hogql_value": "severity",+ "hogql_value": "output_config","id": null,- "name": "severity",+ "name": "output_config","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "name": {+ "conditions": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "conditions","id": null,- "name": "name",+ "name": "conditions","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "description": {+ "target": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "target","id": null,- "name": "description",+ "name": "target","schema_valid": true,"table": null,"type": "string"- }- },- "id": "system.error_tracking_issues",- "name": "system.error_tracking_issues",- "row_count": null,- "type": "system"- },- "system.error_tracking_releases": {- "certification": null,- "fields": {- "id": {+ },+ "target_config": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "target_config","id": null,- "name": "id",+ "name": "target_config","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "hash_id": {+ "model_configuration_id": {"chain": null,"fields": null,- "hogql_value": "hash_id",+ "hogql_value": "model_configuration_id","id": null,- "name": "hash_id",+ "name": "model_configuration_id","schema_valid": true,"table": null,"type": "string"},- "version": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "version",+ "hogql_value": "created_by_id","id": null,- "name": "version",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "project": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "project",+ "hogql_value": "created_at","id": null,- "name": "project",+ "name": "created_at","schema_valid": true,"table": null,- "type": "string"+ "type": "datetime"},- "metadata": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "metadata",+ "hogql_value": "updated_at","id": null,- "name": "metadata",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"},- "created_at": {+ "deleted": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "deleted","id": null,- "name": "created_at",+ "name": "deleted","schema_valid": true,"table": null,- "type": "datetime"+ "type": "boolean"}},- "id": "system.error_tracking_releases",- "name": "system.error_tracking_releases",+ "id": "system.evaluations",+ "name": "system.evaluations","row_count": null,"type": "system"},- "system.error_tracking_symbol_sets": {+ "system.experiments": {"certification": null,"fields": {"id": {@@ -16644,27 +17673,37 @@"name": "id","schema_valid": true,"table": null,+ "type": "integer"+ },+ "name": {+ "chain": null,+ "fields": null,+ "hogql_value": "name",+ "id": null,+ "name": "name",+ "schema_valid": true,+ "table": null,"type": "string"},- "ref": {+ "description": {"chain": null,"fields": null,- "hogql_value": "ref",+ "hogql_value": "description","id": null,- "name": "ref",+ "name": "description","schema_valid": true,"table": null,"type": "string"},- "release_id": {+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "release_id",+ "hogql_value": "created_by_id","id": null,- "name": "release_id",+ "name": "created_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},"created_at": {"chain": null,@@ -16676,94 +17715,104 @@"table": null,"type": "datetime"},- "last_used": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "last_used",+ "hogql_value": "updated_at","id": null,- "name": "last_used",+ "name": "updated_at","schema_valid": true,"table": null,"type": "datetime"},- "failure_reason": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "failure_reason",+ "hogql_value": "filters","id": null,- "name": "failure_reason",+ "name": "filters","schema_valid": true,"table": null,- "type": "string"- }- },- "id": "system.error_tracking_symbol_sets",- "name": "system.error_tracking_symbol_sets",- "row_count": null,- "type": "system"- },- "system.error_tracking_suppression_rules": {- "certification": null,- "fields": {- "id": {+ "type": "json"+ },+ "parameters": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "parameters","id": null,- "name": "id",+ "name": "parameters","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "order_key": {+ "start_date": {"chain": null,"fields": null,- "hogql_value": "order_key",+ "hogql_value": "start_date","id": null,- "name": "order_key",+ "name": "start_date","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"},- "sampling_rate": {+ "end_date": {"chain": null,"fields": null,- "hogql_value": "sampling_rate",+ "hogql_value": "end_date","id": null,- "name": "sampling_rate",+ "name": "end_date","schema_valid": true,"table": null,- "type": "float"+ "type": "datetime"},- "filters": {+ "archived": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "archived","id": null,- "name": "filters",+ "name": "archived","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"},- "bytecode": {+ "feature_flag_id": {"chain": null,"fields": null,- "hogql_value": "bytecode",+ "hogql_value": "feature_flag_id","id": null,- "name": "bytecode",+ "name": "feature_flag_id","schema_valid": true,"table": null,- "type": "json"+ "type": "integer"+ }+ },+ "id": "system.experiments",+ "name": "system.experiments",+ "row_count": null,+ "type": "system"+ },+ "system.exports": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "integer"},- "disabled_data": {+ "export_format": {"chain": null,"fields": null,- "hogql_value": "disabled_data",+ "hogql_value": "export_format","id": null,- "name": "disabled_data",+ "name": "export_format","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},"created_at": {"chain": null,@@ -16775,23 +17824,23 @@"table": null,"type": "datetime"},- "updated_at": {+ "export_context": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "export_context","id": null,- "name": "updated_at",+ "name": "export_context","schema_valid": true,"table": null,- "type": "datetime"+ "type": "json"}},- "id": "system.error_tracking_suppression_rules",- "name": "system.error_tracking_suppression_rules",+ "id": "system.exports",+ "name": "system.exports","row_count": null,"type": "system"},- "system.early_access_features": {+ "system.feature_flags": {"certification": null,"fields": {"id": {@@ -16802,17 +17851,17 @@"name": "id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},- "feature_flag_id": {+ "key": {"chain": null,"fields": null,- "hogql_value": "feature_flag_id",+ "hogql_value": "key","id": null,- "name": "feature_flag_id",+ "name": "key","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},"name": {"chain": null,@@ -16824,35 +17873,25 @@"table": null,"type": "string"},- "description": {- "chain": null,- "fields": null,- "hogql_value": "description",- "id": null,- "name": "description",- "schema_valid": true,- "table": null,- "type": "string"- },- "stage": {+ "filters": {"chain": null,"fields": null,- "hogql_value": "stage",+ "hogql_value": "filters","id": null,- "name": "stage",+ "name": "filters","schema_valid": true,"table": null,- "type": "string"+ "type": "json"},- "documentation_url": {+ "rollout_percentage": {"chain": null,"fields": null,- "hogql_value": "documentation_url",+ "hogql_value": "rollout_percentage","id": null,- "name": "documentation_url",+ "name": "rollout_percentage","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},"created_by_id": {"chain": null,@@ -16873,14 +17912,24 @@"schema_valid": true,"table": null,"type": "datetime"+ },+ "deleted": {+ "chain": null,+ "fields": null,+ "hogql_value": "deleted",+ "id": null,+ "name": "deleted",+ "schema_valid": true,+ "table": null,+ "type": "integer"}},- "id": "system.early_access_features",- "name": "system.early_access_features",+ "id": "system.feature_flags",+ "name": "system.feature_flags","row_count": null,"type": "system"},- "system.evaluation_directories": {+ "system.feature_request_account_links": {"certification": null,"fields": {"id": {@@ -16893,25 +17942,25 @@"table": null,"type": "string"},- "name": {+ "feature_request_id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "feature_request_id","id": null,- "name": "name",+ "name": "feature_request_id","schema_valid": true,"table": null,"type": "string"},- "created_by_id": {+ "account_id": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "account_id","id": null,- "name": "created_by_id",+ "name": "account_id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},"created_at": {"chain": null,@@ -16934,12 +17983,12 @@"type": "datetime"}},- "id": "system.evaluation_directories",- "name": "system.evaluation_directories",+ "id": "system.feature_request_account_links",+ "name": "system.feature_request_account_links","row_count": null,"type": "system"},- "system.evaluations": {+ "system.feature_request_evidence": {"certification": null,"fields": {"id": {@@ -16947,150 +17996,70 @@"fields": null,"hogql_value": "id","id": null,- "name": "id",- "schema_valid": true,- "table": null,- "type": "string"- },- "directory_id": {- "chain": null,- "fields": null,- "hogql_value": "directory_id",- "id": null,- "name": "directory_id",- "schema_valid": true,- "table": null,- "type": "string"- },- "name": {- "chain": null,- "fields": null,- "hogql_value": "name",- "id": null,- "name": "name",- "schema_valid": true,- "table": null,- "type": "string"- },- "description": {- "chain": null,- "fields": null,- "hogql_value": "description",- "id": null,- "name": "description",- "schema_valid": true,- "table": null,- "type": "string"- },- "enabled": {- "chain": null,- "fields": null,- "hogql_value": "enabled",- "id": null,- "name": "enabled",- "schema_valid": true,- "table": null,- "type": "boolean"- },- "status": {- "chain": null,- "fields": null,- "hogql_value": "status",- "id": null,- "name": "status",- "schema_valid": true,- "table": null,- "type": "string"- },- "status_reason": {- "chain": null,- "fields": null,- "hogql_value": "status_reason",- "id": null,- "name": "status_reason",- "schema_valid": true,- "table": null,- "type": "string"- },- "evaluation_type": {- "chain": null,- "fields": null,- "hogql_value": "evaluation_type",- "id": null,- "name": "evaluation_type",- "schema_valid": true,- "table": null,- "type": "string"- },- "evaluation_config": {- "chain": null,- "fields": null,- "hogql_value": "evaluation_config",- "id": null,- "name": "evaluation_config",+ "name": "id","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "output_type": {+ "account_link_id": {"chain": null,"fields": null,- "hogql_value": "output_type",+ "hogql_value": "account_link_id","id": null,- "name": "output_type",+ "name": "account_link_id","schema_valid": true,"table": null,"type": "string"},- "output_config": {+ "summary": {"chain": null,"fields": null,- "hogql_value": "output_config",+ "hogql_value": "summary","id": null,- "name": "output_config",+ "name": "summary","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "conditions": {+ "customer_quote": {"chain": null,"fields": null,- "hogql_value": "conditions",+ "hogql_value": "customer_quote","id": null,- "name": "conditions",+ "name": "customer_quote","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "target": {+ "source": {"chain": null,"fields": null,- "hogql_value": "target",+ "hogql_value": "source","id": null,- "name": "target",+ "name": "source","schema_valid": true,"table": null,"type": "string"},- "target_config": {+ "source_url": {"chain": null,"fields": null,- "hogql_value": "target_config",+ "hogql_value": "source_url","id": null,- "name": "target_config",+ "name": "source_url","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "model_configuration_id": {+ "requested_on": {"chain": null,"fields": null,- "hogql_value": "model_configuration_id",+ "hogql_value": "requested_on","id": null,- "name": "model_configuration_id",+ "name": "requested_on","schema_valid": true,"table": null,- "type": "string"+ "type": "date"},"created_by_id": {"chain": null,@@ -17102,6 +18071,16 @@"table": null,"type": "integer"},+ "updated_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_by_id",+ "id": null,+ "name": "updated_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },"created_at": {"chain": null,"fields": null,@@ -17121,24 +18100,14 @@"schema_valid": true,"table": null,"type": "datetime"- },- "deleted": {- "chain": null,- "fields": null,- "hogql_value": "deleted",- "id": null,- "name": "deleted",- "schema_valid": true,- "table": null,- "type": "boolean"}},- "id": "system.evaluations",- "name": "system.evaluations",+ "id": "system.feature_request_evidence",+ "name": "system.feature_request_evidence","row_count": null,"type": "system"},- "system.experiments": {+ "system.feature_request_history": {"certification": null,"fields": {"id": {@@ -17149,146 +18118,185 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "name": {+ "feature_request_id": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "feature_request_id","id": null,- "name": "name",+ "name": "feature_request_id","schema_valid": true,"table": null,"type": "string"},- "description": {+ "changed_fields": {"chain": null,"fields": null,- "hogql_value": "description",+ "hogql_value": "changed_fields","id": null,- "name": "description",+ "name": "changed_fields","schema_valid": true,"table": null,- "type": "string"+ "type": "array"},- "created_by_id": {+ "is_initial": {"chain": null,"fields": null,- "hogql_value": "created_by_id",+ "hogql_value": "is_initial","id": null,- "name": "created_by_id",+ "name": "is_initial","schema_valid": true,"table": null,"type": "integer"},- "created_at": {+ "source": {"chain": null,"fields": null,- "hogql_value": "created_at",+ "hogql_value": "source","id": null,- "name": "created_at",+ "name": "source","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "updated_at": {+ "actor_id": {"chain": null,"fields": null,- "hogql_value": "updated_at",+ "hogql_value": "actor_id","id": null,- "name": "updated_at",+ "name": "actor_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "changed_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "changed_at",+ "id": null,+ "name": "changed_at","schema_valid": true,"table": null,"type": "datetime"+ }+ },+ "id": "system.feature_request_history",+ "name": "system.feature_request_history",+ "row_count": null,+ "type": "system"+ },+ "system.feature_request_product_area_links": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"},- "filters": {+ "feature_request_id": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "feature_request_id","id": null,- "name": "filters",+ "name": "feature_request_id","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "parameters": {+ "product_area_id": {"chain": null,"fields": null,- "hogql_value": "parameters",+ "hogql_value": "product_area_id","id": null,- "name": "parameters",+ "name": "product_area_id","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "start_date": {+ "created_at": {"chain": null,"fields": null,- "hogql_value": "start_date",+ "hogql_value": "created_at","id": null,- "name": "start_date",+ "name": "created_at","schema_valid": true,"table": null,"type": "datetime"+ }+ },+ "id": "system.feature_request_product_area_links",+ "name": "system.feature_request_product_area_links",+ "row_count": null,+ "type": "system"+ },+ "system.feature_request_product_areas": {+ "certification": null,+ "fields": {+ "id": {+ "chain": null,+ "fields": null,+ "hogql_value": "id",+ "id": null,+ "name": "id",+ "schema_valid": true,+ "table": null,+ "type": "string"},- "end_date": {+ "name": {"chain": null,"fields": null,- "hogql_value": "end_date",+ "hogql_value": "name","id": null,- "name": "end_date",+ "name": "name","schema_valid": true,"table": null,- "type": "datetime"+ "type": "string"},- "archived": {+ "display_order": {"chain": null,"fields": null,- "hogql_value": "archived",+ "hogql_value": "display_order","id": null,- "name": "archived",+ "name": "display_order","schema_valid": true,"table": null,"type": "integer"},- "feature_flag_id": {+ "is_active": {"chain": null,"fields": null,- "hogql_value": "feature_flag_id",+ "hogql_value": "is_active","id": null,- "name": "feature_flag_id",+ "name": "is_active","schema_valid": true,"table": null,"type": "integer"- }- },- "id": "system.experiments",- "name": "system.experiments",- "row_count": null,- "type": "system"- },- "system.exports": {- "certification": null,- "fields": {- "id": {+ },+ "created_by_id": {"chain": null,"fields": null,- "hogql_value": "id",+ "hogql_value": "created_by_id","id": null,- "name": "id",+ "name": "created_by_id","schema_valid": true,"table": null,"type": "integer"},- "export_format": {+ "updated_by_id": {"chain": null,"fields": null,- "hogql_value": "export_format",+ "hogql_value": "updated_by_id","id": null,- "name": "export_format",+ "name": "updated_by_id","schema_valid": true,"table": null,- "type": "string"+ "type": "integer"},"created_at": {"chain": null,@@ -17300,23 +18308,23 @@"table": null,"type": "datetime"},- "export_context": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "export_context",+ "hogql_value": "updated_at","id": null,- "name": "export_context",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "json"+ "type": "datetime"}},- "id": "system.exports",- "name": "system.exports",+ "id": "system.feature_request_product_areas",+ "name": "system.feature_request_product_areas","row_count": null,"type": "system"},- "system.feature_flags": {+ "system.feature_requests": {"certification": null,"fields": {"id": {@@ -17327,44 +18335,74 @@"name": "id","schema_valid": true,"table": null,- "type": "integer"+ "type": "string"},- "key": {+ "title": {"chain": null,"fields": null,- "hogql_value": "key",+ "hogql_value": "title","id": null,- "name": "key",+ "name": "title","schema_valid": true,"table": null,"type": "string"},- "name": {+ "description": {"chain": null,"fields": null,- "hogql_value": "name",+ "hogql_value": "description","id": null,- "name": "name",+ "name": "description","schema_valid": true,"table": null,"type": "string"},- "filters": {+ "status": {"chain": null,"fields": null,- "hogql_value": "filters",+ "hogql_value": "status","id": null,- "name": "filters",+ "name": "status","schema_valid": true,"table": null,- "type": "json"+ "type": "string"},- "rollout_percentage": {+ "priority": {"chain": null,"fields": null,- "hogql_value": "rollout_percentage",+ "hogql_value": "priority","id": null,- "name": "rollout_percentage",+ "name": "priority",+ "schema_valid": true,+ "table": null,+ "type": "string"+ },+ "archived_at": {+ "chain": null,+ "fields": null,+ "hogql_value": "archived_at",+ "id": null,+ "name": "archived_at",+ "schema_valid": true,+ "table": null,+ "type": "datetime"+ },+ "archived_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "archived_by_id",+ "id": null,+ "name": "archived_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },+ "version": {+ "chain": null,+ "fields": null,+ "hogql_value": "version",+ "id": null,+ "name": "version","schema_valid": true,"table": null,"type": "integer"@@ -17379,6 +18417,16 @@"table": null,"type": "integer"},+ "updated_by_id": {+ "chain": null,+ "fields": null,+ "hogql_value": "updated_by_id",+ "id": null,+ "name": "updated_by_id",+ "schema_valid": true,+ "table": null,+ "type": "integer"+ },"created_at": {"chain": null,"fields": null,@@ -17389,19 +18437,19 @@"table": null,"type": "datetime"},- "deleted": {+ "updated_at": {"chain": null,"fields": null,- "hogql_value": "deleted",+ "hogql_value": "updated_at","id": null,- "name": "deleted",+ "name": "updated_at","schema_valid": true,"table": null,- "type": "integer"+ "type": "datetime"}},- "id": "system.feature_flags",- "name": "system.feature_flags",+ "id": "system.feature_requests",+ "name": "system.feature_requests","row_count": null,"type": "system"},diff --git a/products/customer_analytics/backend/facade/hogql.py b/products/customer_analytics/backend/facade/hogql.pyindex ff57ea5a6b2f..c0cf94e526d8 100644--- a/products/customer_analytics/backend/facade/hogql.py+++ b/products/customer_analytics/backend/facade/hogql.py@@ -1,7 +1,7 @@-"""Customer analytics' federated HogQL system tables (`system.accounts`,-`system.custom_property_definitions`) and the aggregating tables plus lazy joins that-power `system.accounts.tags`, `system.accounts.notebooks`, and-`system.accounts.custom_properties`.+"""Customer analytics' federated HogQL system tables for accounts, custom+properties, relationships, and feature requests. This module also owns the aggregating+tables and lazy joins that power `system.accounts.tags`, `system.accounts.notebooks`,+and `system.accounts.custom_properties`.Owned here rather than in core so the coupling between core's HogQL schema and thisproduct's Postgres tables is import-visible (tach) and facade-gated (CI): core@@ -27,6 +27,7 @@ from posthog.hogql.database.lazy_join_tags import (from posthog.hogql.database.models import (BooleanDatabaseField,DANGEROUS_NoTeamIdCheckTable,+ DateDatabaseField,DateTimeDatabaseField,ExpressionField,FieldOrTable,@@ -686,6 +687,190 @@ accounts: PostgresTable = PostgresTable()+feature_request_product_areas: PostgresTable = PostgresTable(+ name="feature_request_product_areas",+ postgres_table_name="customer_analytics_featurerequestproductarea",+ access_scope="customer_analytics",+ description="Product areas used to categorize Customer analytics feature requests, one row per team-defined area.",+ fields={+ "id": UUIDDatabaseField(name="id", description="Product area UUID."),+ "team_id": IntegerDatabaseField(name="team_id"),+ "name": StringDatabaseField(name="name", description="Team-maintained product area name."),+ "display_order": IntegerDatabaseField(+ name="display_order", description="Position in product area selectors. Lower values appear first."+ ),+ "_is_active": BooleanDatabaseField(name="is_active", hidden=True),+ "is_active": ExpressionField(+ name="is_active",+ expr=ast.Call(name="toInt", args=[ast.Field(chain=["_is_active"])]),+ description="1 if editors can select this area for new requests, 0 otherwise.",+ ),+ "created_by_id": IntegerDatabaseField(+ name="created_by_id", nullable=True, description="PostHog user who created the product area."+ ),+ "updated_by_id": IntegerDatabaseField(+ name="updated_by_id", nullable=True, description="PostHog user who last updated the product area."+ ),+ "created_at": DateTimeDatabaseField(name="created_at", description="When the product area was created."),+ "updated_at": DateTimeDatabaseField(name="updated_at", description="When the product area was last updated."),+ },+)+++feature_request_account_links: PostgresTable = PostgresTable(+ name="feature_request_account_links",+ postgres_table_name="customer_analytics_featurerequestaccountlink",+ access_scope="account",+ access_control_id_field="account_id",+ predicates=[parse_expr("unlinked_at IS NULL")],+ description="Active links between Customer analytics feature requests and affected accounts, one row per request and account pair.",+ fields={+ "id": UUIDDatabaseField(name="id", description="Feature request account link UUID."),+ "team_id": IntegerDatabaseField(name="team_id"),+ "feature_request_id": UUIDDatabaseField(+ name="feature_request_id",+ description="Feature request this link belongs to. Join to `system.feature_requests.id`.",+ ),+ "account_id": UUIDDatabaseField(+ name="account_id", description="Affected account. Join to `system.accounts.id`."+ ),+ "unlinked_at": DateTimeDatabaseField(name="unlinked_at", nullable=True, hidden=True),+ "created_at": DateTimeDatabaseField(name="created_at", description="When the account was first linked."),+ "updated_at": DateTimeDatabaseField(+ name="updated_at", nullable=True, description="When the account link was last changed."+ ),+ },+)+++feature_requests: PostgresTable = PostgresTable(+ name="feature_requests",+ postgres_table_name="customer_analytics_featurerequest",+ access_scope="customer_analytics",+ predicates=[parse_expr("id IN (SELECT feature_request_id FROM system.feature_request_account_links)")],+ description="Customer analytics feature requests linked to at least one account the caller can access, one row per request.",+ fields={+ "id": UUIDDatabaseField(name="id", description="Feature request UUID."),+ "team_id": IntegerDatabaseField(name="team_id"),+ "title": StringDatabaseField(name="title", description="Customer-facing request title."),+ "description": StringDatabaseField(name="description", description="Customer-facing description in Markdown."),+ "status": StringDatabaseField(+ name="status",+ description="Current lifecycle status: 'requested', 'planned', 'completed', 'wont_fix', or 'duplicate'.",+ ),+ "priority": StringDatabaseField(+ name="priority", nullable=True, description="Manual priority: 'high', 'medium', 'low', or NULL."+ ),+ "archived_at": DateTimeDatabaseField(+ name="archived_at", nullable=True, description="When the request was archived. NULL while active."+ ),+ "archived_by_id": IntegerDatabaseField(+ name="archived_by_id", nullable=True, description="PostHog user who archived the request."+ ),+ "version": IntegerDatabaseField(+ name="version", description="Version required for optimistic concurrency on mutations."+ ),+ "created_by_id": IntegerDatabaseField(+ name="created_by_id", nullable=True, description="PostHog user who created the request."+ ),+ "updated_by_id": IntegerDatabaseField(+ name="updated_by_id", nullable=True, description="PostHog user who last updated the request."+ ),+ "created_at": DateTimeDatabaseField(name="created_at", description="When the request was created."),+ "updated_at": DateTimeDatabaseField(name="updated_at", description="When the request was last updated."),+ },+)+++feature_request_evidence: PostgresTable = PostgresTable(+ name="feature_request_evidence",+ postgres_table_name="customer_analytics_featurerequestevidence",+ access_scope="customer_analytics",+ predicates=[parse_expr("account_link_id IN (SELECT id FROM system.feature_request_account_links)")],+ description="Evidence recorded for active feature request account links, one row per evidence item.",+ fields={+ "id": UUIDDatabaseField(name="id", description="Evidence UUID."),+ "team_id": IntegerDatabaseField(name="team_id"),+ "account_link_id": UUIDDatabaseField(+ name="account_link_id",+ description="Request and account pair this evidence supports. Join to `system.feature_request_account_links.id`.",+ ),+ "summary": StringDatabaseField(name="summary", description="Internal summary of the request evidence."),+ "customer_quote": StringDatabaseField(+ name="customer_quote", description="Customer quote kept with this evidence item."+ ),+ "source": StringDatabaseField(name="source", description="Free-form name of the evidence source."),+ "source_url": StringDatabaseField(+ name="source_url", description="HTTP or HTTPS link to the source, or an empty string."+ ),+ "requested_on": DateDatabaseField(+ name="requested_on", nullable=True, description="Date the account made the request, or NULL when unknown."+ ),+ "created_by_id": IntegerDatabaseField(+ name="created_by_id", nullable=True, description="PostHog user who added the evidence."+ ),+ "updated_by_id": IntegerDatabaseField(+ name="updated_by_id", nullable=True, description="PostHog user who last updated the evidence."+ ),+ "created_at": DateTimeDatabaseField(name="created_at", description="When the evidence was added."),+ "updated_at": DateTimeDatabaseField(name="updated_at", description="When the evidence was last updated."),+ },+)+++feature_request_product_area_links: PostgresTable = PostgresTable(+ name="feature_request_product_area_links",+ postgres_table_name="customer_analytics_featurerequestproductarealink",+ access_scope="customer_analytics",+ predicates=[parse_expr("feature_request_id IN (SELECT id FROM system.feature_requests)")],+ description="Links between visible feature requests and product areas, one row per request and area pair.",+ fields={+ "id": UUIDDatabaseField(name="id", description="Feature request product area link UUID."),+ "team_id": IntegerDatabaseField(name="team_id"),+ "feature_request_id": UUIDDatabaseField(+ name="feature_request_id", description="Feature request. Join to `system.feature_requests.id`."+ ),+ "product_area_id": UUIDDatabaseField(+ name="product_area_id", description="Product area. Join to `system.feature_request_product_areas.id`."+ ),+ "created_at": DateTimeDatabaseField(name="created_at", description="When the product area was linked."),+ },+)+++feature_request_history: PostgresTable = PostgresTable(+ name="feature_request_history",+ postgres_table_name="customer_analytics_featurerequesthistory",+ access_scope="customer_analytics",+ predicates=[parse_expr("feature_request_id IN (SELECT id FROM system.feature_requests)")],+ description="Change history for visible Customer analytics feature requests, one row per successful save.",+ fields={+ "id": UUIDDatabaseField(name="id", description="Feature request history entry UUID."),+ "team_id": IntegerDatabaseField(name="team_id"),+ "feature_request_id": UUIDDatabaseField(+ name="feature_request_id", description="Feature request that changed. Join to `system.feature_requests.id`."+ ),+ "_changes": StringJSONDatabaseField(name="changes", hidden=True),+ "changed_fields": ExpressionField(+ name="changed_fields",+ expr=parse_expr("arrayMap(change -> JSONExtractString(change, 'field'), JSONExtractArrayRaw(_changes))"),+ description="Names of the fields changed in this save. Before and after values are not exposed.",+ ),+ "_is_initial": BooleanDatabaseField(name="is_initial", hidden=True),+ "is_initial": ExpressionField(+ name="is_initial",+ expr=ast.Call(name="toInt", args=[ast.Field(chain=["_is_initial"])]),+ description="1 if this entry records the request's initial values, 0 otherwise.",+ ),+ "source": StringDatabaseField(name="source", description="System that recorded the change."),+ "actor_id": IntegerDatabaseField(+ name="actor_id", nullable=True, description="PostHog user who changed the request."+ ),+ "changed_at": DateTimeDatabaseField(name="changed_at", description="When the request changed."),+ },+)++custom_property_definitions: PostgresTable = PostgresTable(name="custom_property_definitions",postgres_table_name="customer_analytics_custompropertydefinition",diff --git a/products/customer_analytics/backend/test/test_facade_hogql.py b/products/customer_analytics/backend/test/test_facade_hogql.pyindex 6e23e275fe8d..b0d6eef10ffd 100644--- a/products/customer_analytics/backend/test/test_facade_hogql.py+++ b/products/customer_analytics/backend/test/test_facade_hogql.py@@ -1,17 +1,22 @@-# The facade owns the PostgresTable defs that core exposes as `system.accounts`,-# `system.custom_property_definitions`, `system.accounts.custom_properties`, and the hidden-# junction tables behind `system.accounts.tags`/`.notebooks`. Core's own system-table suite+# The facade owns the PostgresTable defs that core exposes for Customer analytics accounts,+# custom properties, relationships, and feature requests. Core's own system-table suite# is skipped on this product's CI shard by the isolation contract-check, so this guard lives# in-product: it fails here if a backing table is renamed or a model column is renamed/dropped# without updating facade/hogql.py, catching the drift on the shard that actually runs for# model changes.+from posthog.test.base import NonAtomicBaseTest+from django.test import SimpleTestCase+from django.utils import timezonefrom parameterized import parameterizedfrom posthog.hogql.database.models import ExpressionField, LazyJoin, Table+from posthog.hogql.errors import QueryError+from posthog.hogql.query import execute_hogql_query-from posthog.models import TaggedItem+from posthog.models import OrganizationMembership, TaggedItem, User+from posthog.models.organization import AvailableFeaturefrom products.customer_analytics.backend.facade.hogql import (account_custom_property_values,@@ -20,10 +25,28 @@ from products.customer_analytics.backend.facade.hogql import (account_tagged_items,accounts,custom_property_definitions,+ feature_request_account_links,+ feature_request_evidence,+ feature_request_history,+ feature_request_product_area_links,+ feature_request_product_areas,+ feature_requests,+)+from products.customer_analytics.backend.models import (+ Account,+ CustomPropertyDefinition,+ CustomPropertyValue,+ FeatureRequest,+ FeatureRequestAccountLink,+ FeatureRequestEvidence,+ FeatureRequestHistory,+ FeatureRequestProductArea,+ FeatureRequestProductAreaLink,)-from products.customer_analytics.backend.models import Account, CustomPropertyDefinition, CustomPropertyValuefrom products.notebooks.backend.models import ResourceNotebook+from ee.models.rbac.access_control import AccessControl+class TestFacadeHogqlSystemTables(SimpleTestCase):@parameterized.expand(@@ -34,6 +57,12 @@ class TestFacadeHogqlSystemTables(SimpleTestCase):("account_custom_property_values_history", account_custom_property_values_history, CustomPropertyValue),("account_tagged_items", account_tagged_items, TaggedItem),("account_resource_notebooks", account_resource_notebooks, ResourceNotebook),+ ("feature_requests", feature_requests, FeatureRequest),+ ("feature_request_product_areas", feature_request_product_areas, FeatureRequestProductArea),+ ("feature_request_account_links", feature_request_account_links, FeatureRequestAccountLink),+ ("feature_request_evidence", feature_request_evidence, FeatureRequestEvidence),+ ("feature_request_product_area_links", feature_request_product_area_links, FeatureRequestProductAreaLink),+ ("feature_request_history", feature_request_history, FeatureRequestHistory),])def test_federated_table_matches_model(self, _name, table, model):@@ -51,3 +80,75 @@ class TestFacadeHogqlSystemTables(SimpleTestCase):f"system.{table.name} exposes {sorted(missing)}, which no longer exist as columns on "f"{model.__name__}. Update the PostgresTable def in facade/hogql.py to match the model.")+++class TestFeatureRequestHogqlAccess(NonAtomicBaseTest):+ CLASS_DATA_LEVEL_SETUP = False++ def test_account_access_filters_requests_links_and_evidence(self) -> None:+ self.organization.available_product_features = [+ {"key": AvailableFeature.ACCESS_CONTROL, "name": AvailableFeature.ACCESS_CONTROL},+ {"key": AvailableFeature.ROLE_BASED_ACCESS, "name": AvailableFeature.ROLE_BASED_ACCESS},+ ]+ self.organization.save()+ viewer = User.objects.create_and_join(self.organization, "[email protected]", "testtest")+ membership = OrganizationMembership.objects.get(user=viewer, organization=self.organization)+ visible_account = Account.objects.unscoped().create(team=self.team, name="Visible account")+ denied_account = Account.objects.unscoped().create(team=self.team, name="Denied account")+ visible_request = FeatureRequest.objects.unscoped().create(team=self.team, title="Partly visible request")+ visible_link = FeatureRequestAccountLink.objects.unscoped().create(+ team=self.team, feature_request=visible_request, account=visible_account+ )+ denied_link = FeatureRequestAccountLink.objects.unscoped().create(+ team=self.team, feature_request=visible_request, account=denied_account+ )+ FeatureRequestEvidence.objects.unscoped().create(+ team=self.team, account_link=visible_link, source="conversation", summary="Visible evidence"+ )+ FeatureRequestEvidence.objects.unscoped().create(+ team=self.team, account_link=denied_link, source="conversation", summary="Denied evidence"+ )+ FeatureRequestHistory.objects.unscoped().create(+ team=self.team,+ feature_request=visible_request,+ changes=[+ {+ "field": "evidence",+ "before": None,+ "after": {+ "account": {"id": str(denied_account.id), "name": denied_account.name},+ "summary": "Denied evidence",+ },+ }+ ],+ changed_at=timezone.now(),+ )+ denied_request = FeatureRequest.objects.unscoped().create(team=self.team, title="Denied request")+ FeatureRequestAccountLink.objects.unscoped().create(+ team=self.team, feature_request=denied_request, account=denied_account+ )+ AccessControl.objects.create(+ team=self.team,+ resource="account",+ resource_id=str(denied_account.id),+ access_level="none",+ organization_member=membership,+ )++ requests = execute_hogql_query("SELECT id FROM system.feature_requests", team=self.team, user=viewer).results+ links = execute_hogql_query(+ "SELECT id FROM system.feature_request_account_links", team=self.team, user=viewer+ ).results+ evidence = execute_hogql_query(+ "SELECT summary FROM system.feature_request_evidence", team=self.team, user=viewer+ ).results+ history = execute_hogql_query(+ "SELECT changed_fields FROM system.feature_request_history", team=self.team, user=viewer+ ).results++ assert {str(row[0]) for row in requests} == {str(visible_request.id)}+ assert {str(row[0]) for row in links} == {str(visible_link.id)}+ assert evidence == [("Visible evidence",)]+ assert history == [(["evidence"],)]+ with self.assertRaises(QueryError):+ execute_hogql_query("SELECT changes FROM system.feature_request_history", team=self.team, user=viewer)diff --git a/products/customer_analytics/mcp/tools.yaml b/products/customer_analytics/mcp/tools.yamlindex 6b1c69ecb29e..ba2726b9d7ff 100644--- a/products/customer_analytics/mcp/tools.yaml+++ b/products/customer_analytics/mcp/tools.yaml@@ -894,55 +894,257 @@ tools:enabled: falsefeature-request-product-areas-create:operation: feature_request_product_areas_create- enabled: false+ enabled: true+ scopes:+ - customer_analytics:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: false+ title: Create feature request product area+ description: >+ Create a product area for categorizing Customer analytics feature requests. Manager access to Customer+ analytics is required. Provide a unique `name` and optional `display_order`. Lower display orders appear+ first. New areas are active by default.+ feature_flag: customer-analytics-feature-requestsfeature-request-product-areas-list:operation: feature_request_product_areas_list- enabled: false+ enabled: true+ scopes:+ - customer_analytics:read+ annotations:+ readOnly: true+ destructive: false+ idempotent: true+ list: true+ title: List feature request product areas+ description: >+ List active product areas used to categorize Customer analytics feature requests. Each area includes its+ `id`, `name`, `display_order`, and active state. Set `include_inactive` to true when editing an existing+ request or managing areas. The same data is queryable through `system.feature_request_product_areas`.+ feature_flag: customer-analytics-feature-requestsfeature-request-product-areas-partial-update:operation: feature_request_product_areas_partial_update- enabled: false+ enabled: true+ scopes:+ - customer_analytics:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: true+ title: Update feature request product area+ description: >+ Update a feature request product area by id. Manager access to Customer analytics is required. Accepts any+ subset of `name`, `display_order`, and `is_active`. Inactive areas remain on requests that already use them,+ but editors cannot add them to new requests.+ feature_flag: customer-analytics-feature-requestsfeature-request-product-areas-update:operation: feature_request_product_areas_updateenabled: falsefeature-requests-add-account-create:operation: feature_requests_add_account_create- enabled: false+ enabled: true+ scopes:+ - customer_analytics:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: false+ enrich_url: feature-requests/{id}+ title: Link account to feature request+ description: >+ Link another accessible account to a Customer analytics feature request. Pass the request `id`, its current+ `expected_version`, and the account id. You can also provide the account's first evidence item in the same+ atomic change. Relinking an account restores its preserved evidence. The response contains the updated+ request and its next version.+ feature_flag: customer-analytics-feature-requestsfeature-requests-add-evidence-create:operation: feature_requests_add_evidence_create- enabled: false+ enabled: true+ scopes:+ - customer_analytics:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: false+ enrich_url: feature-requests/{id}+ title: Add feature request evidence+ description: >+ Add evidence to an active account link on a Customer analytics feature request. Pass the request `id`, its+ current `expected_version`, the `account_link_id`, a free-form `evidence_source`, and at least one of+ `summary`, `customer_quote`, or `source_url`. The response contains the updated request and its next+ version.+ feature_flag: customer-analytics-feature-requestsfeature-requests-archive-create:operation: feature_requests_archive_create- enabled: false+ enabled: true+ scopes:+ - customer_analytics:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: true+ enrich_url: feature-requests/{id}+ title: Archive feature request+ description: >+ Archive a Customer analytics feature request without deleting its account links, evidence, product areas, or+ history. Pass the request `id` and its current `expected_version`. Archived requests cannot be edited until+ restored.+ feature_flag: customer-analytics-feature-requestsfeature-requests-create:operation: feature_requests_create- enabled: false+ enabled: true+ scopes:+ - customer_analytics:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: true+ enrich_url: feature-requests/{id}+ title: Create feature request+ description: >+ Create a Customer analytics feature request linked to one accessible account and one or more active product+ areas. Provide a client-generated UUID as `idempotency_key`. Retrying with the same key returns the original+ request. Use `accounts-list` and `feature-request-product-areas-list` to resolve the required IDs.+ feature_flag: customer-analytics-feature-requestsfeature-requests-history-list:operation: feature_requests_history_list- enabled: false+ enabled: true+ scopes:+ - customer_analytics:read+ annotations:+ readOnly: true+ destructive: false+ idempotent: true+ list: true+ title: List feature request history+ description: >+ List the complete change history for a Customer analytics feature request, newest first. Entries group the+ status, priority, account, evidence, and product area changes from one successful save. Account snapshots+ the caller cannot access are removed or redacted. HogQL `system.feature_request_history` exposes entry+ metadata and changed field names, but not before and after values.+ feature_flag: customer-analytics-feature-requestsfeature-requests-list:operation: feature_requests_list- enabled: false+ enabled: true+ scopes:+ - customer_analytics:read+ annotations:+ readOnly: true+ destructive: false+ idempotent: true+ enrich_url: feature-requests/{id}+ list: true+ title: List feature requests+ description: >+ List Customer analytics feature requests linked to accounts the caller can access. Filter by search text,+ lifecycle status, priority, product area, account, or archive state. Active requests are returned by+ default. Each request includes its active visible account links, account-specific evidence, product areas,+ and version. For bulk reads and aggregations, query `system.feature_requests` and its related system tables.+ feature_flag: customer-analytics-feature-requestsfeature-requests-partial-update:operation: feature_requests_partial_update- enabled: false+ enabled: true+ scopes:+ - customer_analytics:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: true+ enrich_url: feature-requests/{id}+ title: Update feature request+ description: >+ Update a Customer analytics feature request by id. Pass its current `expected_version` and any subset of+ `title`, `description`, `account_ids`, `product_area_ids`, `request_status`, and `request_priority`. Pass+ null as `request_priority` to remove the priority. Removing an account unlinks it but preserves its evidence+ for a later relink. The response contains the next version.+ param_overrides:+ expected_version:+ required: true+ feature_flag: customer-analytics-feature-requestsfeature-requests-remove-evidence-create:operation: feature_requests_remove_evidence_create- enabled: false+ enabled: true+ scopes:+ - customer_analytics:write+ annotations:+ readOnly: false+ destructive: true+ idempotent: true+ enrich_url: feature-requests/{id}+ title: Delete feature request evidence+ description: >+ Permanently delete one evidence item from a Customer analytics feature request. Pass the request `id`, its+ current `expected_version`, and the `evidence_id`. The request, account link, and other evidence remain. The+ response contains the updated request and its next version.+ feature_flag: customer-analytics-feature-requestsfeature-requests-restore-create:operation: feature_requests_restore_create- enabled: false+ enabled: true+ scopes:+ - customer_analytics:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: true+ enrich_url: feature-requests/{id}+ title: Restore feature request+ description: >+ Restore an archived Customer analytics feature request so editors can change it again. Pass the request `id`+ and its current `expected_version`. Account links, evidence, product areas, and history remain attached.+ feature_flag: customer-analytics-feature-requestsfeature-requests-retrieve:operation: feature_requests_retrieve- enabled: false+ enabled: true+ scopes:+ - customer_analytics:read+ annotations:+ readOnly: true+ destructive: false+ idempotent: true+ enrich_url: feature-requests/{id}+ title: Get feature request+ description: >+ Fetch one Customer analytics feature request by id. The response includes its lifecycle status, priority,+ archive state, version, active account links visible to the caller, account-specific evidence, and product+ areas. Use the returned `version` as `expected_version` for the next mutation.+ feature_flag: customer-analytics-feature-requestsfeature-requests-status-history-list:operation: feature_requests_status_history_list- enabled: false+ enabled: true+ scopes:+ - customer_analytics:read+ annotations:+ readOnly: true+ destructive: false+ idempotent: true+ list: true+ title: List feature request status history+ description: >+ List status changes for one Customer analytics feature request, newest first. Each entry includes the+ previous status, resulting status, actor, source, and change time. HogQL `system.feature_request_history`+ exposes when changes occurred and which fields changed, but not status values.+ feature_flag: customer-analytics-feature-requestsfeature-requests-update:operation: feature_requests_updateenabled: falsefeature-requests-update-evidence-create:operation: feature_requests_update_evidence_create- enabled: false+ enabled: true+ scopes:+ - customer_analytics:write+ annotations:+ readOnly: false+ destructive: false+ idempotent: true+ enrich_url: feature-requests/{id}+ title: Update feature request evidence+ description: >+ Replace the editable fields of one feature request evidence item. Pass the request `id`, its current+ `expected_version`, the `evidence_id`, a free-form `evidence_source`, and the complete values for `summary`,+ `customer_quote`, `source_url`, and `requested_on`. The response contains the updated request and its next+ version.+ feature_flag: customer-analytics-feature-requestsusage-metrics-create:operation: groups_types_metrics_createenabled: truediff --git a/products/posthog_ai/frontend/policy/toolPolicy.test.ts b/products/posthog_ai/frontend/policy/toolPolicy.test.tsindex 50514b759466..d8300277df7a 100644--- a/products/posthog_ai/frontend/policy/toolPolicy.test.ts+++ b/products/posthog_ai/frontend/policy/toolPolicy.test.ts@@ -66,6 +66,7 @@ describe('toolPolicy', () => {// Destructive-annotated names with no verb segment come from the exact-name set.'workflows-publish','experiment-ship-variant',+ 'feature-requests-remove-evidence-create','skill-archive','error-tracking-issues-merge-create',])('%s is destructive', (sub) => expect(isPostHogDestructiveSubTool(sub)).toBe(true))diff --git a/products/posthog_ai/frontend/policy/toolPolicy.ts b/products/posthog_ai/frontend/policy/toolPolicy.tsindex d43895dd4c77..6d4b545af47d 100644--- a/products/posthog_ai/frontend/policy/toolPolicy.ts+++ b/products/posthog_ai/frontend/policy/toolPolicy.ts@@ -47,6 +47,7 @@ const POSTHOG_DESTRUCTIVE_SUB_TOOLS = new Set(['experiment-ship-variant','external-data-schemas-resync','external-data-sources-repair-cdc-create',+ 'feature-requests-remove-evidence-create','heatmaps-saved-regenerate','inbox-reports-bulk-set-state','inbox-reports-set-state',diff --git a/products/posthog_ai/skills/querying-posthog-data/SKILL.md b/products/posthog_ai/skills/querying-posthog-data/SKILL.mdindex d660b063ffbf..a6767c644618 100644--- a/products/posthog_ai/skills/querying-posthog-data/SKILL.md+++ b/products/posthog_ai/skills/querying-posthog-data/SKILL.md@@ -56,7 +56,7 @@ Schema reference for PostHog's core system models, organized by domain:- [Batch exports](./references/models-batch-exports.md)- [Early Access Features](./references/models-early-access-features.md)- [Cohorts & Persons](./references/models-cohorts.md)-- [Customer analytics accounts, relationships (CSM, account owner) & custom properties (`system.accounts`, `system.account_relationships`)](./references/models-customer-analytics.md)+- [Customer analytics accounts, relationships, custom properties & feature requests (`system.accounts`, `system.feature_requests`)](./references/models-customer-analytics.md)- [Dashboards, Tiles & Insights](./references/models-dashboards-insights.md)- [Data Warehouse](./references/models-data-warehouse.md)- [Data Modeling Endpoints](./references/models-endpoints.md)diff --git a/products/posthog_ai/skills/querying-posthog-data/references/models-customer-analytics.md b/products/posthog_ai/skills/querying-posthog-data/references/models-customer-analytics.mdindex 9008629c907d..73a4e5e7d2dd 100644--- a/products/posthog_ai/skills/querying-posthog-data/references/models-customer-analytics.md+++ b/products/posthog_ai/skills/querying-posthog-data/references/models-customer-analytics.md@@ -1,10 +1,10 @@-# Customer analytics accounts+# Customer analytics accounts and feature requests-Customer analytics tracks **accounts** — the companies/organizations a team does business with — plus who owns them (relationships such as CSM or Account executive) and typed custom attributes.+Customer analytics tracks **accounts**, their owners and custom properties, and the feature requests linked to those accounts.**Source of truth for account ownership questions** ("who is the CSM of X?", "which accounts does Y own?"): answer them from these tables, not from warehouse CRM columns (`salesforce.*`, `hubspot.*`, ...). Warehouse copies of ownership fields can lag behind reassignments made in PostHog.-Prefer the typed `posthog:accounts-*`, `posthog:account-relationship-definitions-*`, and `posthog:custom-property-definitions-*` MCP tools for writes; use HogQL for reads and aggregations.+Prefer the typed `posthog:accounts-*`, `posthog:account-relationship-definitions-*`, `posthog:custom-property-definitions-*`, and `posthog:feature-request*` MCP tools for writes. Use HogQL for reads and aggregations.## Account (`system.accounts`)@@ -63,6 +63,127 @@ Column | Type | Nullable | Description- Active assignments are `ended_at IS NULL`; ended rows are kept as history.- The role keys in `system.accounts.properties` (`csm`, `account_executive`, `account_owner`) mirror the active assignments and include the user's email; the relationships table has only `user_id`.+## Feature requests++A feature request records a customer need across one or more accounts. Evidence belongs to a specific request and account pair. Product areas categorize requests, and history records each successful save.++The tables apply account access rules. `system.feature_requests` includes a request when the caller can access at least one active linked account. The account links and evidence tables exclude inaccessible and unlinked accounts.++### `system.feature_requests` columns++Column | Type | Nullable | Description+`id` | uuid | NOT NULL | Primary key+`team_id` | integer | NOT NULL | Team this request belongs to+`title` | varchar(400) | NOT NULL | Customer-facing request title+`description` | text | NOT NULL | Customer-facing description in Markdown+`status` | varchar(32) | NOT NULL | `requested`, `planned`, `completed`, `wont_fix`, or `duplicate`+`priority` | varchar(16) | NULL | `high`, `medium`, `low`, or NULL+`archived_at` | timestamptz | NULL | When the request was archived. NULL means active+`archived_by_id` | integer | NULL | User who archived the request+`version` | integer | NOT NULL | Version used for optimistic concurrency+`created_by_id` | integer | NULL | User who created the request+`updated_by_id` | integer | NULL | User who last updated the request+`created_at` | timestamptz | NOT NULL | When the request was created+`updated_at` | timestamptz | NOT NULL | When the request was last updated++### `system.feature_request_account_links` columns++One row per active request and account pair visible to the caller.++Column | Type | Nullable | Description+`id` | uuid | NOT NULL | Primary key and parent key for evidence+`team_id` | integer | NOT NULL | Team this link belongs to+`feature_request_id` | uuid | NOT NULL | Join to `system.feature_requests.id`+`account_id` | uuid | NOT NULL | Join to `system.accounts.id`+`created_at` | timestamptz | NOT NULL | When the account was first linked+`updated_at` | timestamptz | NULL | When the link last changed++### `system.feature_request_evidence` columns++Column | Type | Nullable | Description+`id` | uuid | NOT NULL | Primary key+`team_id` | integer | NOT NULL | Team this evidence belongs to+`account_link_id` | uuid | NOT NULL | Join to `system.feature_request_account_links.id`+`summary` | text | NOT NULL | Internal evidence summary+`customer_quote` | text | NOT NULL | Customer quote+`source` | varchar(200) | NOT NULL | Free-form source name+`source_url` | varchar(2000) | NOT NULL | Source URL or an empty string+`requested_on` | date | NULL | Date the account made the request+`created_by_id` | integer | NULL | User who added the evidence+`updated_by_id` | integer | NULL | User who last updated the evidence+`created_at` | timestamptz | NOT NULL | When the evidence was added+`updated_at` | timestamptz | NOT NULL | When the evidence was last updated++### Product area tables++`system.feature_request_product_areas` defines the available areas. `system.feature_request_product_area_links` joins visible requests to those areas.++`system.feature_request_product_areas` column | Type | Nullable | Description+`id` | uuid | NOT NULL | Primary key+`team_id` | integer | NOT NULL | Team this area belongs to+`name` | varchar(200) | NOT NULL | Product area name+`display_order` | integer | NOT NULL | Selector position. Lower values appear first+`is_active` | integer | NOT NULL | `1` if editors can select the area, `0` otherwise+`created_by_id` | integer | NULL | User who created the area+`updated_by_id` | integer | NULL | User who last updated the area+`created_at` | timestamptz | NOT NULL | When the area was created+`updated_at` | timestamptz | NOT NULL | When the area was last updated++`system.feature_request_product_area_links` column | Type | Nullable | Description+`id` | uuid | NOT NULL | Primary key+`team_id` | integer | NOT NULL | Team this link belongs to+`feature_request_id` | uuid | NOT NULL | Join to `system.feature_requests.id`+`product_area_id` | uuid | NOT NULL | Join to `system.feature_request_product_areas.id`+`created_at` | timestamptz | NOT NULL | When the area was linked++### `system.feature_request_history` columns++Column | Type | Nullable | Description+`id` | uuid | NOT NULL | Primary key+`team_id` | integer | NOT NULL | Team this history entry belongs to+`feature_request_id` | uuid | NOT NULL | Join to `system.feature_requests.id`+`changed_fields` | array(varchar) | NOT NULL | Names of the fields changed in this save. Before and after values are not exposed+`is_initial` | integer | NOT NULL | `1` for the initial snapshot, `0` otherwise+`source` | varchar(32) | NOT NULL | System that recorded the change+`actor_id` | integer | NULL | User who changed the request+`changed_at` | timestamptz | NOT NULL | When the request changed++### Feature request query patterns++**List active requests and their affected accounts:**++```sql+SELECT r.id, r.title, r.status, r.priority, a.id AS account_id, a.name AS account_name+FROM system.feature_requests r+JOIN system.feature_request_account_links l ON l.feature_request_id = r.id+JOIN system.accounts a ON a.id = l.account_id+WHERE r.archived_at IS NULL+ORDER BY r.updated_at DESC+```++**Count evidence items by request and account:**++```sql+SELECT r.title, a.name AS account_name, count(e.id) AS evidence_count+FROM system.feature_requests r+JOIN system.feature_request_account_links l ON l.feature_request_id = r.id+JOIN system.accounts a ON a.id = l.account_id+LEFT JOIN system.feature_request_evidence e ON e.account_link_id = l.id+GROUP BY r.id, r.title, a.id, a.name+ORDER BY evidence_count DESC+```++**List requests for one product area:**++```sql+SELECT r.id, r.title, r.status, p.name AS product_area+FROM system.feature_requests r+JOIN system.feature_request_product_area_links l ON l.feature_request_id = r.id+JOIN system.feature_request_product_areas p ON p.id = l.product_area_id+WHERE p.name ILIKE '%analytics%'+ORDER BY r.updated_at DESC+```+## Custom properties (`system.custom_property_definitions`)Custom properties let a team attach typed attributes to accounts. A **definition** is the attribute's shape (its name and how it is typed and rendered); the per-account **values** are queried through `system.accounts` (see below). Definitions are team-scoped — one set per team, shared across all accounts.diff --git a/products/tasks/backend/constants.py b/products/tasks/backend/constants.pyindex ee1ca0d17523..5ca2b0f8cc0b 100644--- a/products/tasks/backend/constants.py+++ b/products/tasks/backend/constants.py@@ -217,6 +217,7 @@ POSTHOG_EXEC_DESTRUCTIVE_SUB_TOOLS: tuple[str, ...] = ("experiment-ship-variant","external-data-schemas-resync","external-data-sources-repair-cdc-create",+ "feature-requests-remove-evidence-create","heatmaps-saved-regenerate","inbox-reports-bulk-set-state","inbox-reports-set-state",diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex e505ed4b1a84..f4eaee618174 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -4754,6 +4754,231 @@"readOnlyHint": true}},+ "feature-request-product-areas-create": {+ "description": "Create a product area for categorizing Customer analytics feature requests. Manager access to Customer analytics is required. Provide a unique `name` and optional `display_order`. Lower display orders appear first. New areas are active by default.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Create feature request product area",+ "title": "Create feature request product area",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-request-product-areas-list": {+ "description": "List active product areas used to categorize Customer analytics feature requests. Each area includes its `id`, `name`, `display_order`, and active state. Set `include_inactive` to true when editing an existing request or managing areas. The same data is queryable through `system.feature_request_product_areas`.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "List feature request product areas",+ "title": "List feature request product areas",+ "required_scopes": ["customer_analytics:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-request-product-areas-partial-update": {+ "description": "Update a feature request product area by id. Manager access to Customer analytics is required. Accepts any subset of `name`, `display_order`, and `is_active`. Inactive areas remain on requests that already use them, but editors cannot add them to new requests.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Update feature request product area",+ "title": "Update feature request product area",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-add-account-create": {+ "description": "Link another accessible account to a Customer analytics feature request. Pass the request `id`, its current `expected_version`, and the account id. You can also provide the account's first evidence item in the same atomic change. Relinking an account restores its preserved evidence. The response contains the updated request and its next version.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Link account to feature request",+ "title": "Link account to feature request",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-add-evidence-create": {+ "description": "Add evidence to an active account link on a Customer analytics feature request. Pass the request `id`, its current `expected_version`, the `account_link_id`, a free-form `evidence_source`, and at least one of `summary`, `customer_quote`, or `source_url`. The response contains the updated request and its next version.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Add feature request evidence",+ "title": "Add feature request evidence",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-archive-create": {+ "description": "Archive a Customer analytics feature request without deleting its account links, evidence, product areas, or history. Pass the request `id` and its current `expected_version`. Archived requests cannot be edited until restored.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Archive feature request",+ "title": "Archive feature request",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-create": {+ "description": "Create a Customer analytics feature request linked to one accessible account and one or more active product areas. Provide a client-generated UUID as `idempotency_key`. Retrying with the same key returns the original request. Use `accounts-list` and `feature-request-product-areas-list` to resolve the required IDs.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Create feature request",+ "title": "Create feature request",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-history-list": {+ "description": "List the complete change history for a Customer analytics feature request, newest first. Entries group the status, priority, account, evidence, and product area changes from one successful save. Account snapshots the caller cannot access are removed or redacted. HogQL `system.feature_request_history` exposes entry metadata and changed field names, but not before and after values.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "List feature request history",+ "title": "List feature request history",+ "required_scopes": ["customer_analytics:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-list": {+ "description": "List Customer analytics feature requests linked to accounts the caller can access. Filter by search text, lifecycle status, priority, product area, account, or archive state. Active requests are returned by default. Each request includes its active visible account links, account-specific evidence, product areas, and version. For bulk reads and aggregations, query `system.feature_requests` and its related system tables.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "List feature requests",+ "title": "List feature requests",+ "required_scopes": ["customer_analytics:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-partial-update": {+ "description": "Update a Customer analytics feature request by id. Pass its current `expected_version` and any subset of `title`, `description`, `account_ids`, `product_area_ids`, `request_status`, and `request_priority`. Pass null as `request_priority` to remove the priority. Removing an account unlinks it but preserves its evidence for a later relink. The response contains the next version.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Update feature request",+ "title": "Update feature request",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-remove-evidence-create": {+ "description": "Permanently delete one evidence item from a Customer analytics feature request. Pass the request `id`, its current `expected_version`, and the `evidence_id`. The request, account link, and other evidence remain. The response contains the updated request and its next version.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Delete feature request evidence",+ "title": "Delete feature request evidence",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-restore-create": {+ "description": "Restore an archived Customer analytics feature request so editors can change it again. Pass the request `id` and its current `expected_version`. Account links, evidence, product areas, and history remain attached.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Restore feature request",+ "title": "Restore feature request",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-retrieve": {+ "description": "Fetch one Customer analytics feature request by id. The response includes its lifecycle status, priority, archive state, version, active account links visible to the caller, account-specific evidence, and product areas. Use the returned `version` as `expected_version` for the next mutation.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Get feature request",+ "title": "Get feature request",+ "required_scopes": ["customer_analytics:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-status-history-list": {+ "description": "List status changes for one Customer analytics feature request, newest first. Each entry includes the previous status, resulting status, actor, source, and change time. HogQL `system.feature_request_history` exposes when changes occurred and which fields changed, but not status values.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "List feature request status history",+ "title": "List feature request status history",+ "required_scopes": ["customer_analytics:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-update-evidence-create": {+ "description": "Replace the editable fields of one feature request evidence item. Pass the request `id`, its current `expected_version`, the `evidence_id`, a free-form `evidence_source`, and the complete values for `summary`, `customer_quote`, `source_url`, and `requested_on`. The response contains the updated request and its next version.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Update feature request evidence",+ "title": "Update feature request evidence",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },"field-notes-get": {"description": "Get a single field note by id, including the full element context (selector, element chain, inferred selectors, attributes) needed to locate the element in code.","category": "Field notes",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 31e781f67dce..0f25713fabee 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -4909,6 +4909,231 @@"readOnlyHint": true}},+ "feature-request-product-areas-create": {+ "description": "Create a product area for categorizing Customer analytics feature requests. Manager access to Customer analytics is required. Provide a unique `name` and optional `display_order`. Lower display orders appear first. New areas are active by default.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Create feature request product area",+ "title": "Create feature request product area",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-request-product-areas-list": {+ "description": "List active product areas used to categorize Customer analytics feature requests. Each area includes its `id`, `name`, `display_order`, and active state. Set `include_inactive` to true when editing an existing request or managing areas. The same data is queryable through `system.feature_request_product_areas`.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "List feature request product areas",+ "title": "List feature request product areas",+ "required_scopes": ["customer_analytics:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-request-product-areas-partial-update": {+ "description": "Update a feature request product area by id. Manager access to Customer analytics is required. Accepts any subset of `name`, `display_order`, and `is_active`. Inactive areas remain on requests that already use them, but editors cannot add them to new requests.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Update feature request product area",+ "title": "Update feature request product area",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-add-account-create": {+ "description": "Link another accessible account to a Customer analytics feature request. Pass the request `id`, its current `expected_version`, and the account id. You can also provide the account's first evidence item in the same atomic change. Relinking an account restores its preserved evidence. The response contains the updated request and its next version.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Link account to feature request",+ "title": "Link account to feature request",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-add-evidence-create": {+ "description": "Add evidence to an active account link on a Customer analytics feature request. Pass the request `id`, its current `expected_version`, the `account_link_id`, a free-form `evidence_source`, and at least one of `summary`, `customer_quote`, or `source_url`. The response contains the updated request and its next version.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Add feature request evidence",+ "title": "Add feature request evidence",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-archive-create": {+ "description": "Archive a Customer analytics feature request without deleting its account links, evidence, product areas, or history. Pass the request `id` and its current `expected_version`. Archived requests cannot be edited until restored.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Archive feature request",+ "title": "Archive feature request",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-create": {+ "description": "Create a Customer analytics feature request linked to one accessible account and one or more active product areas. Provide a client-generated UUID as `idempotency_key`. Retrying with the same key returns the original request. Use `accounts-list` and `feature-request-product-areas-list` to resolve the required IDs.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Create feature request",+ "title": "Create feature request",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-history-list": {+ "description": "List the complete change history for a Customer analytics feature request, newest first. Entries group the status, priority, account, evidence, and product area changes from one successful save. Account snapshots the caller cannot access are removed or redacted. HogQL `system.feature_request_history` exposes entry metadata and changed field names, but not before and after values.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "List feature request history",+ "title": "List feature request history",+ "required_scopes": ["customer_analytics:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-list": {+ "description": "List Customer analytics feature requests linked to accounts the caller can access. Filter by search text, lifecycle status, priority, product area, account, or archive state. Active requests are returned by default. Each request includes its active visible account links, account-specific evidence, product areas, and version. For bulk reads and aggregations, query `system.feature_requests` and its related system tables.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "List feature requests",+ "title": "List feature requests",+ "required_scopes": ["customer_analytics:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-partial-update": {+ "description": "Update a Customer analytics feature request by id. Pass its current `expected_version` and any subset of `title`, `description`, `account_ids`, `product_area_ids`, `request_status`, and `request_priority`. Pass null as `request_priority` to remove the priority. Removing an account unlinks it but preserves its evidence for a later relink. The response contains the next version.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Update feature request",+ "title": "Update feature request",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-remove-evidence-create": {+ "description": "Permanently delete one evidence item from a Customer analytics feature request. Pass the request `id`, its current `expected_version`, and the `evidence_id`. The request, account link, and other evidence remain. The response contains the updated request and its next version.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Delete feature request evidence",+ "title": "Delete feature request evidence",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-restore-create": {+ "description": "Restore an archived Customer analytics feature request so editors can change it again. Pass the request `id` and its current `expected_version`. Account links, evidence, product areas, and history remain attached.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Restore feature request",+ "title": "Restore feature request",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-retrieve": {+ "description": "Fetch one Customer analytics feature request by id. The response includes its lifecycle status, priority, archive state, version, active account links visible to the caller, account-specific evidence, and product areas. Use the returned `version` as `expected_version` for the next mutation.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Get feature request",+ "title": "Get feature request",+ "required_scopes": ["customer_analytics:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-status-history-list": {+ "description": "List status changes for one Customer analytics feature request, newest first. Each entry includes the previous status, resulting status, actor, source, and change time. HogQL `system.feature_request_history` exposes when changes occurred and which fields changed, but not status values.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "List feature request status history",+ "title": "List feature request status history",+ "required_scopes": ["customer_analytics:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ },+ "feature_flag": "customer-analytics-feature-requests"+ },+ "feature-requests-update-evidence-create": {+ "description": "Replace the editable fields of one feature request evidence item. Pass the request `id`, its current `expected_version`, the `evidence_id`, a free-form `evidence_source`, and the complete values for `summary`, `customer_quote`, `source_url`, and `requested_on`. The response contains the updated request and its next version.",+ "category": "Customer analytics",+ "feature": "customer_analytics",+ "summary": "Update feature request evidence",+ "title": "Update feature request evidence",+ "required_scopes": ["customer_analytics:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ },+ "feature_flag": "customer-analytics-feature-requests"+ },"field-notes-get": {"description": "Get a single field note by id, including the full element context (selector, element chain, inferred selectors, attributes) needed to locate the element in code.","category": "Field notes",diff --git a/services/mcp/src/generated/customer_analytics/api.ts b/services/mcp/src/generated/customer_analytics/api.tsindex f43881c69fb5..3ffe31b6f8a1 100644--- a/services/mcp/src/generated/customer_analytics/api.ts+++ b/services/mcp/src/generated/customer_analytics/api.ts@@ -3,7 +3,7 @@* MCP service uses these Zod schemas for generated tool handlers.* To regenerate: hogli build:openapi*- * PostHog API - MCP 49 enabled ops+ * PostHog API - MCP 64 enabled ops* OpenAPI spec version: 1.0.0*/import * as zod from 'zod'@@ -1092,6 +1092,428 @@ export const EventStreamsSendTestMessageCreateParams = /* @__PURE__ */ zod.objec),})+export const FeatureRequestProductAreasListParams = /* @__PURE__ */ zod.object({+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const featureRequestProductAreasListQueryIncludeInactiveDefault = false++export const FeatureRequestProductAreasListQueryParams = /* @__PURE__ */ zod.object({+ include_inactive: zod+ .boolean()+ .default(featureRequestProductAreasListQueryIncludeInactiveDefault)+ .describe('Include inactive product areas. Defaults to false.'),+})++export const FeatureRequestProductAreasCreateParams = /* @__PURE__ */ zod.object({+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const featureRequestProductAreasCreateBodyNameMax = 200++export const featureRequestProductAreasCreateBodyDisplayOrderDefault = 0+export const featureRequestProductAreasCreateBodyDisplayOrderMin = 0++export const featureRequestProductAreasCreateBodyIsActiveDefault = true++export const FeatureRequestProductAreasCreateBody = /* @__PURE__ */ zod.object({+ name: zod.string().max(featureRequestProductAreasCreateBodyNameMax).describe('Team-maintained product area name.'),+ display_order: zod+ .number()+ .min(featureRequestProductAreasCreateBodyDisplayOrderMin)+ .default(featureRequestProductAreasCreateBodyDisplayOrderDefault)+ .describe('Position in product area selectors. Lower values appear first.'),+ is_active: zod+ .boolean()+ .default(featureRequestProductAreasCreateBodyIsActiveDefault)+ .describe('Whether editors can select this product area for new requests.'),+})++export const FeatureRequestProductAreasPartialUpdateParams = /* @__PURE__ */ zod.object({+ id: zod.string(),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const featureRequestProductAreasPartialUpdateBodyNameMax = 200++export const featureRequestProductAreasPartialUpdateBodyDisplayOrderMin = 0++export const FeatureRequestProductAreasPartialUpdateBody = /* @__PURE__ */ zod.object({+ name: zod+ .string()+ .max(featureRequestProductAreasPartialUpdateBodyNameMax)+ .optional()+ .describe('Team-maintained product area name.'),+ display_order: zod+ .number()+ .min(featureRequestProductAreasPartialUpdateBodyDisplayOrderMin)+ .optional()+ .describe('Position in product area selectors. Lower values appear first.'),+ is_active: zod.boolean().optional().describe('Whether editors can select this product area for new requests.'),+})++export const FeatureRequestsListParams = /* @__PURE__ */ zod.object({+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const featureRequestsListQueryArchiveStateDefault = `active`+export const featureRequestsListQueryRequestOrderingDefault = `-updated_at`++export const FeatureRequestsListQueryParams = /* @__PURE__ */ zod.object({+ account_ids: zod+ .array(zod.string())+ .optional()+ .describe('Accessible account IDs to include. Multiple values use OR semantics.'),+ archive_state: zod+ .enum(['active', 'archived', 'all'])+ .default(featureRequestsListQueryArchiveStateDefault)+ .describe(+ 'Whether to return active requests, archived requests, or all requests.\n\n\* `active` - Active\n\* `archived` - Archived\n\* `all` - All'+ ),+ limit: zod.number().optional().describe('Number of results to return per page.'),+ offset: zod.number().optional().describe('The initial index from which to return the results.'),+ priorities: zod+ .array(+ zod+ .enum(['high', 'medium', 'low', 'none'])+ .describe('\* `high` - High\n\* `medium` - Medium\n\* `low` - Low\n\* `none` - No priority')+ )+ .optional()+ .describe('Priorities to include. Use none for requests without a priority.'),+ product_area_ids: zod+ .array(zod.string())+ .optional()+ .describe('Product area IDs to include. Multiple values use OR semantics.'),+ request_ordering: zod+ .string()+ .min(1)+ .default(featureRequestsListQueryRequestOrderingDefault)+ .describe(+ 'Stable ordering for the result list.\n\n\* `-updated_at` - Last updated: newest\n\* `updated_at` - Last updated: oldest\n\* `-created_at` - Date created: newest\n\* `created_at` - Date created: oldest\n\* `-priority` - Priority: high to low\n\* `priority` - Priority: low to high\n\* `title` - Title: A to Z\n\* `-title` - Title: Z to A'+ ),+ search: zod.string().optional().describe('Case-insensitive text to find in request titles and descriptions.'),+ statuses: zod+ .array(+ zod+ .enum(['requested', 'planned', 'completed', 'wont_fix', 'duplicate'])+ .describe(+ "\* `requested` - Requested\n\* `planned` - Planned\n\* `completed` - Completed\n\* `wont_fix` - Won't fix\n\* `duplicate` - Duplicate"+ )+ )+ .optional()+ .describe('Lifecycle statuses to include. Multiple values use OR semantics.'),+})++export const FeatureRequestsCreateParams = /* @__PURE__ */ zod.object({+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const featureRequestsCreateBodyTitleMax = 400++export const featureRequestsCreateBodyDescriptionDefault = ``++export const FeatureRequestsCreateBody = /* @__PURE__ */ zod.object({+ title: zod.string().max(featureRequestsCreateBodyTitleMax).describe('Required customer-facing request title.'),+ description: zod+ .string()+ .default(featureRequestsCreateBodyDescriptionDefault)+ .describe('Optional customer-facing request description in Markdown.'),+ account_id: zod.string().describe('ID of the affected Customer Analytics account.'),+ product_area_ids: zod+ .array(zod.string())+ .describe('One or more active product area IDs. Duplicate IDs are ignored.'),+ idempotency_key: zod+ .string()+ .describe(+ 'Client-generated key that makes retries return the original request instead of creating a duplicate.'+ ),+})++export const FeatureRequestsRetrieveParams = /* @__PURE__ */ zod.object({+ id: zod.string(),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const FeatureRequestsPartialUpdateParams = /* @__PURE__ */ zod.object({+ id: zod.string(),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const featureRequestsPartialUpdateBodyTitleMax = 400++export const FeatureRequestsPartialUpdateBody = /* @__PURE__ */ zod.object({+ expected_version: zod+ .number()+ .min(1)+ .optional()+ .describe('Request version loaded by the editor. Stale versions return 409 Conflict.'),+ title: zod+ .string()+ .max(featureRequestsPartialUpdateBodyTitleMax)+ .optional()+ .describe('Updated customer-facing request title.'),+ description: zod.string().optional().describe('Updated optional customer-facing request description in Markdown.'),+ account_id: zod.string().optional().describe('Deprecated single affected account ID. Use account_ids.'),+ account_ids: zod+ .array(zod.string())+ .optional()+ .describe('One or more affected account IDs. Removed accounts are unlinked without deleting their evidence.'),+ product_area_ids: zod+ .array(zod.string())+ .optional()+ .describe('One or more product area IDs. Existing inactive areas can remain linked.'),+ request_status: zod+ .enum(['requested', 'planned', 'completed', 'wont_fix', 'duplicate'])+ .describe(+ "\* `requested` - Requested\n\* `planned` - Planned\n\* `completed` - Completed\n\* `wont_fix` - Won't fix\n\* `duplicate` - Duplicate"+ )+ .optional()+ .describe(+ "Updated customer-facing lifecycle status.\n\n\* `requested` - Requested\n\* `planned` - Planned\n\* `completed` - Completed\n\* `wont_fix` - Won't fix\n\* `duplicate` - Duplicate"+ ),+ request_priority: zod+ .union([+ zod.enum(['high', 'medium', 'low']).describe('\* `high` - High\n\* `medium` - Medium\n\* `low` - Low'),+ zod.null(),+ ])+ .optional()+ .describe(+ 'Updated manual priority. Pass null to remove the priority.\n\n\* `high` - High\n\* `medium` - Medium\n\* `low` - Low'+ ),+})++export const FeatureRequestsAddAccountCreateParams = /* @__PURE__ */ zod.object({+ id: zod.string(),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const featureRequestsAddAccountCreateBodyEvidenceOneSummaryDefault = ``+export const featureRequestsAddAccountCreateBodyEvidenceOneCustomerQuoteDefault = ``+export const featureRequestsAddAccountCreateBodyEvidenceOneEvidenceSourceMax = 200++export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlDefault = ``+export const featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlMax = 2000++export const FeatureRequestsAddAccountCreateBody = /* @__PURE__ */ zod.object({+ expected_version: zod+ .number()+ .min(1)+ .describe('Request version loaded by the editor. Stale versions return 409 Conflict.'),+ account_id: zod.string().describe('Accessible account to link to this feature request.'),+ evidence: zod+ .union([+ zod.object({+ summary: zod+ .string()+ .default(featureRequestsAddAccountCreateBodyEvidenceOneSummaryDefault)+ .describe("Internal summary of this account's request evidence."),+ customer_quote: zod+ .string()+ .default(featureRequestsAddAccountCreateBodyEvidenceOneCustomerQuoteDefault)+ .describe('Customer quote kept with this evidence item.'),+ evidence_source: zod+ .string()+ .max(featureRequestsAddAccountCreateBodyEvidenceOneEvidenceSourceMax)+ .describe('Free-form name of the source where this evidence was recorded.'),+ source_url: zod+ .url()+ .max(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlMax)+ .default(featureRequestsAddAccountCreateBodyEvidenceOneSourceUrlDefault)+ .describe('Optional HTTP or HTTPS link to the source.'),+ requested_on: zod.iso+ .date()+ .nullish()+ .describe('Date the account made the request, or null when unknown.'),+ }),+ zod.null(),+ ])+ .optional()+ .describe('Optional first evidence item to create for the account in the same change.'),+})++export const FeatureRequestsAddEvidenceCreateParams = /* @__PURE__ */ zod.object({+ id: zod.string(),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const featureRequestsAddEvidenceCreateBodySummaryDefault = ``+export const featureRequestsAddEvidenceCreateBodyCustomerQuoteDefault = ``+export const featureRequestsAddEvidenceCreateBodyEvidenceSourceMax = 200++export const featureRequestsAddEvidenceCreateBodySourceUrlDefault = ``+export const featureRequestsAddEvidenceCreateBodySourceUrlMax = 2000++export const FeatureRequestsAddEvidenceCreateBody = /* @__PURE__ */ zod.object({+ summary: zod+ .string()+ .default(featureRequestsAddEvidenceCreateBodySummaryDefault)+ .describe("Internal summary of this account's request evidence."),+ customer_quote: zod+ .string()+ .default(featureRequestsAddEvidenceCreateBodyCustomerQuoteDefault)+ .describe('Customer quote kept with this evidence item.'),+ evidence_source: zod+ .string()+ .max(featureRequestsAddEvidenceCreateBodyEvidenceSourceMax)+ .describe('Free-form name of the source where this evidence was recorded.'),+ source_url: zod+ .url()+ .max(featureRequestsAddEvidenceCreateBodySourceUrlMax)+ .default(featureRequestsAddEvidenceCreateBodySourceUrlDefault)+ .describe('Optional HTTP or HTTPS link to the source.'),+ requested_on: zod.iso.date().nullish().describe('Date the account made the request, or null when unknown.'),+ expected_version: zod+ .number()+ .min(1)+ .describe('Request version loaded by the editor. Stale versions return 409 Conflict.'),+ account_link_id: zod.string().describe('Active account link that owns this evidence.'),+})++export const FeatureRequestsArchiveCreateParams = /* @__PURE__ */ zod.object({+ id: zod.string(),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const FeatureRequestsArchiveCreateBody = /* @__PURE__ */ zod.object({+ expected_version: zod+ .number()+ .min(1)+ .describe('Request version loaded by the editor. Stale versions return 409 Conflict.'),+})++export const FeatureRequestsHistoryListParams = /* @__PURE__ */ zod.object({+ id: zod.string(),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const FeatureRequestsRemoveEvidenceCreateParams = /* @__PURE__ */ zod.object({+ id: zod.string(),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const FeatureRequestsRemoveEvidenceCreateBody = /* @__PURE__ */ zod.object({+ expected_version: zod+ .number()+ .min(1)+ .describe('Request version loaded by the editor. Stale versions return 409 Conflict.'),+ evidence_id: zod.string().describe('Evidence item to delete.'),+})++export const FeatureRequestsRestoreCreateParams = /* @__PURE__ */ zod.object({+ id: zod.string(),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const FeatureRequestsRestoreCreateBody = /* @__PURE__ */ zod.object({+ expected_version: zod+ .number()+ .min(1)+ .describe('Request version loaded by the editor. Stale versions return 409 Conflict.'),+})++export const FeatureRequestsStatusHistoryListParams = /* @__PURE__ */ zod.object({+ id: zod.string(),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const FeatureRequestsUpdateEvidenceCreateParams = /* @__PURE__ */ zod.object({+ id: zod.string(),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."+ ),+})++export const featureRequestsUpdateEvidenceCreateBodySummaryDefault = ``+export const featureRequestsUpdateEvidenceCreateBodyCustomerQuoteDefault = ``+export const featureRequestsUpdateEvidenceCreateBodyEvidenceSourceMax = 200++export const featureRequestsUpdateEvidenceCreateBodySourceUrlDefault = ``+export const featureRequestsUpdateEvidenceCreateBodySourceUrlMax = 2000++export const FeatureRequestsUpdateEvidenceCreateBody = /* @__PURE__ */ zod.object({+ summary: zod+ .string()+ .default(featureRequestsUpdateEvidenceCreateBodySummaryDefault)+ .describe("Internal summary of this account's request evidence."),+ customer_quote: zod+ .string()+ .default(featureRequestsUpdateEvidenceCreateBodyCustomerQuoteDefault)+ .describe('Customer quote kept with this evidence item.'),+ evidence_source: zod+ .string()+ .max(featureRequestsUpdateEvidenceCreateBodyEvidenceSourceMax)+ .describe('Free-form name of the source where this evidence was recorded.'),+ source_url: zod+ .url()+ .max(featureRequestsUpdateEvidenceCreateBodySourceUrlMax)+ .default(featureRequestsUpdateEvidenceCreateBodySourceUrlDefault)+ .describe('Optional HTTP or HTTPS link to the source.'),+ requested_on: zod.iso.date().nullish().describe('Date the account made the request, or null when unknown.'),+ expected_version: zod+ .number()+ .min(1)+ .describe('Request version loaded by the editor. Stale versions return 409 Conflict.'),+ evidence_id: zod.string().describe('Evidence item to replace.'),+})+export const groupsTypesMetricsListPathGroupTypeIndexMin = -2147483648export const groupsTypesMetricsListPathGroupTypeIndexMax = 2147483647diff --git a/services/mcp/src/tools/generated/customer_analytics.ts b/services/mcp/src/tools/generated/customer_analytics.tsindex 1f09d693c3af..e2e75a510fbd 100644--- a/services/mcp/src/tools/generated/customer_analytics.ts+++ b/services/mcp/src/tools/generated/customer_analytics.ts@@ -59,6 +59,29 @@ import {EventStreamsRemoveAccountCreateBody,EventStreamsRemoveAccountCreateParams,EventStreamsSendTestMessageCreateParams,+ FeatureRequestProductAreasCreateBody,+ FeatureRequestProductAreasListQueryParams,+ FeatureRequestProductAreasPartialUpdateBody,+ FeatureRequestProductAreasPartialUpdateParams,+ FeatureRequestsAddAccountCreateBody,+ FeatureRequestsAddAccountCreateParams,+ FeatureRequestsAddEvidenceCreateBody,+ FeatureRequestsAddEvidenceCreateParams,+ FeatureRequestsArchiveCreateBody,+ FeatureRequestsArchiveCreateParams,+ FeatureRequestsCreateBody,+ FeatureRequestsHistoryListParams,+ FeatureRequestsListQueryParams,+ FeatureRequestsPartialUpdateBody,+ FeatureRequestsPartialUpdateParams,+ FeatureRequestsRemoveEvidenceCreateBody,+ FeatureRequestsRemoveEvidenceCreateParams,+ FeatureRequestsRestoreCreateBody,+ FeatureRequestsRestoreCreateParams,+ FeatureRequestsRetrieveParams,+ FeatureRequestsStatusHistoryListParams,+ FeatureRequestsUpdateEvidenceCreateBody,+ FeatureRequestsUpdateEvidenceCreateParams,GroupsTypesMetricsCreateBody,GroupsTypesMetricsCreateParams,GroupsTypesMetricsDestroyParams,@@ -1179,6 +1202,457 @@ const eventStreamsSendTestMessage = (): ToolBase<},})+const FeatureRequestProductAreasCreateSchema = FeatureRequestProductAreasCreateBody++const featureRequestProductAreasCreate = (): ToolBase<+ typeof FeatureRequestProductAreasCreateSchema,+ Schemas.FeatureRequestProductArea+> => ({+ name: 'feature-request-product-areas-create',+ schema: FeatureRequestProductAreasCreateSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestProductAreasCreateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.name !== undefined) {+ body['name'] = params.name+ }+ if (params.display_order !== undefined) {+ body['display_order'] = params.display_order+ }+ if (params.is_active !== undefined) {+ body['is_active'] = params.is_active+ }+ const result = await context.api.request<Schemas.FeatureRequestProductArea>({+ method: 'POST',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_request_product_areas/`,+ body,+ })+ return result+ },+})++const FeatureRequestProductAreasListSchema = FeatureRequestProductAreasListQueryParams++const featureRequestProductAreasList = (): ToolBase<+ typeof FeatureRequestProductAreasListSchema,+ WithPostHogUrl<Schemas.FeatureRequestProductArea[]>+> => ({+ name: 'feature-request-product-areas-list',+ schema: FeatureRequestProductAreasListSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestProductAreasListSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const result = await context.api.request<Schemas.FeatureRequestProductArea[]>({+ method: 'GET',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_request_product_areas/`,+ query: {+ include_inactive: params.include_inactive,+ },+ })+ return await withPostHogUrl(context, result, '/customer_analytics')+ },+})++const FeatureRequestProductAreasPartialUpdateSchema = FeatureRequestProductAreasPartialUpdateParams.omit({+ project_id: true,+}).extend(FeatureRequestProductAreasPartialUpdateBody.shape)++const featureRequestProductAreasPartialUpdate = (): ToolBase<+ typeof FeatureRequestProductAreasPartialUpdateSchema,+ Schemas.FeatureRequestProductArea+> => ({+ name: 'feature-request-product-areas-partial-update',+ schema: FeatureRequestProductAreasPartialUpdateSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestProductAreasPartialUpdateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.name !== undefined) {+ body['name'] = params.name+ }+ if (params.display_order !== undefined) {+ body['display_order'] = params.display_order+ }+ if (params.is_active !== undefined) {+ body['is_active'] = params.is_active+ }+ const result = await context.api.request<Schemas.FeatureRequestProductArea>({+ method: 'PATCH',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_request_product_areas/${encodeURIComponent(String(params.id))}/`,+ body,+ })+ return result+ },+})++const FeatureRequestsAddAccountCreateSchema = FeatureRequestsAddAccountCreateParams.omit({ project_id: true }).extend(+ FeatureRequestsAddAccountCreateBody.shape+)++const featureRequestsAddAccountCreate = (): ToolBase<+ typeof FeatureRequestsAddAccountCreateSchema,+ WithPostHogUrl<Schemas.FeatureRequest>+> => ({+ name: 'feature-requests-add-account-create',+ schema: FeatureRequestsAddAccountCreateSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsAddAccountCreateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.expected_version !== undefined) {+ body['expected_version'] = params.expected_version+ }+ if (params.account_id !== undefined) {+ body['account_id'] = params.account_id+ }+ if (params.evidence !== undefined) {+ body['evidence'] = params.evidence+ }+ const result = await context.api.request<Schemas.FeatureRequest>({+ method: 'POST',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/${encodeURIComponent(String(params.id))}/add_account/`,+ body,+ })+ return await withPostHogUrl(context, result, `/customer_analytics/feature-requests/${result.id}`)+ },+})++const FeatureRequestsAddEvidenceCreateSchema = FeatureRequestsAddEvidenceCreateParams.omit({ project_id: true }).extend(+ FeatureRequestsAddEvidenceCreateBody.shape+)++const featureRequestsAddEvidenceCreate = (): ToolBase<+ typeof FeatureRequestsAddEvidenceCreateSchema,+ WithPostHogUrl<Schemas.FeatureRequest>+> => ({+ name: 'feature-requests-add-evidence-create',+ schema: FeatureRequestsAddEvidenceCreateSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsAddEvidenceCreateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.summary !== undefined) {+ body['summary'] = params.summary+ }+ if (params.customer_quote !== undefined) {+ body['customer_quote'] = params.customer_quote+ }+ if (params.evidence_source !== undefined) {+ body['evidence_source'] = params.evidence_source+ }+ if (params.source_url !== undefined) {+ body['source_url'] = params.source_url+ }+ if (params.requested_on !== undefined) {+ body['requested_on'] = params.requested_on+ }+ if (params.expected_version !== undefined) {+ body['expected_version'] = params.expected_version+ }+ if (params.account_link_id !== undefined) {+ body['account_link_id'] = params.account_link_id+ }+ const result = await context.api.request<Schemas.FeatureRequest>({+ method: 'POST',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/${encodeURIComponent(String(params.id))}/add_evidence/`,+ body,+ })+ return await withPostHogUrl(context, result, `/customer_analytics/feature-requests/${result.id}`)+ },+})++const FeatureRequestsArchiveCreateSchema = FeatureRequestsArchiveCreateParams.omit({ project_id: true }).extend(+ FeatureRequestsArchiveCreateBody.shape+)++const featureRequestsArchiveCreate = (): ToolBase<+ typeof FeatureRequestsArchiveCreateSchema,+ WithPostHogUrl<Schemas.FeatureRequest>+> => ({+ name: 'feature-requests-archive-create',+ schema: FeatureRequestsArchiveCreateSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsArchiveCreateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.expected_version !== undefined) {+ body['expected_version'] = params.expected_version+ }+ const result = await context.api.request<Schemas.FeatureRequest>({+ method: 'POST',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/${encodeURIComponent(String(params.id))}/archive/`,+ body,+ })+ return await withPostHogUrl(context, result, `/customer_analytics/feature-requests/${result.id}`)+ },+})++const FeatureRequestsCreateSchema = FeatureRequestsCreateBody++const featureRequestsCreate = (): ToolBase<+ typeof FeatureRequestsCreateSchema,+ WithPostHogUrl<Schemas.FeatureRequest>+> => ({+ name: 'feature-requests-create',+ schema: FeatureRequestsCreateSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsCreateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.title !== undefined) {+ body['title'] = params.title+ }+ if (params.description !== undefined) {+ body['description'] = params.description+ }+ if (params.account_id !== undefined) {+ body['account_id'] = params.account_id+ }+ if (params.product_area_ids !== undefined) {+ body['product_area_ids'] = params.product_area_ids+ }+ if (params.idempotency_key !== undefined) {+ body['idempotency_key'] = params.idempotency_key+ }+ const result = await context.api.request<Schemas.FeatureRequest>({+ method: 'POST',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/`,+ body,+ })+ return await withPostHogUrl(context, result, `/customer_analytics/feature-requests/${result.id}`)+ },+})++const FeatureRequestsHistoryListSchema = FeatureRequestsHistoryListParams.omit({ project_id: true })++const featureRequestsHistoryList = (): ToolBase<+ typeof FeatureRequestsHistoryListSchema,+ WithPostHogUrl<Schemas.FeatureRequestHistory[]>+> => ({+ name: 'feature-requests-history-list',+ schema: FeatureRequestsHistoryListSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsHistoryListSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const result = await context.api.request<Schemas.FeatureRequestHistory[]>({+ method: 'GET',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/${encodeURIComponent(String(params.id))}/history/`,+ })+ return await withPostHogUrl(context, result, '/customer_analytics')+ },+})++const FeatureRequestsListSchema = FeatureRequestsListQueryParams++const featureRequestsList = (): ToolBase<+ typeof FeatureRequestsListSchema,+ WithPostHogUrl<Schemas.PaginatedFeatureRequestList>+> => ({+ name: 'feature-requests-list',+ schema: FeatureRequestsListSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsListSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const result = await context.api.request<Schemas.PaginatedFeatureRequestList>({+ method: 'GET',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/`,+ query: {+ account_ids: params.account_ids,+ archive_state: params.archive_state,+ limit: params.limit,+ offset: params.offset,+ priorities: params.priorities,+ product_area_ids: params.product_area_ids,+ request_ordering: params.request_ordering,+ search: params.search,+ statuses: params.statuses,+ },+ })+ return await withPostHogUrl(+ context,+ {+ ...result,+ results: await Promise.all(+ (result.results ?? []).map((item) =>+ withPostHogUrl(context, item, `/customer_analytics/feature-requests/${item.id}`)+ )+ ),+ },+ '/customer_analytics'+ )+ },+})++const FeatureRequestsPartialUpdateSchema = FeatureRequestsPartialUpdateParams.omit({ project_id: true })+ .extend(FeatureRequestsPartialUpdateBody.shape)+ .extend({ expected_version: FeatureRequestsPartialUpdateBody.shape['expected_version'].unwrap() })++const featureRequestsPartialUpdate = (): ToolBase<+ typeof FeatureRequestsPartialUpdateSchema,+ WithPostHogUrl<Schemas.FeatureRequest>+> => ({+ name: 'feature-requests-partial-update',+ schema: FeatureRequestsPartialUpdateSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsPartialUpdateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.expected_version !== undefined) {+ body['expected_version'] = params.expected_version+ }+ if (params.title !== undefined) {+ body['title'] = params.title+ }+ if (params.description !== undefined) {+ body['description'] = params.description+ }+ if (params.account_id !== undefined) {+ body['account_id'] = params.account_id+ }+ if (params.account_ids !== undefined) {+ body['account_ids'] = params.account_ids+ }+ if (params.product_area_ids !== undefined) {+ body['product_area_ids'] = params.product_area_ids+ }+ if (params.request_status !== undefined) {+ body['request_status'] = params.request_status+ }+ if (params.request_priority !== undefined) {+ body['request_priority'] = params.request_priority+ }+ const result = await context.api.request<Schemas.FeatureRequest>({+ method: 'PATCH',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/${encodeURIComponent(String(params.id))}/`,+ body,+ })+ return await withPostHogUrl(context, result, `/customer_analytics/feature-requests/${result.id}`)+ },+})++const FeatureRequestsRemoveEvidenceCreateSchema = FeatureRequestsRemoveEvidenceCreateParams.omit({+ project_id: true,+}).extend(FeatureRequestsRemoveEvidenceCreateBody.shape)++const featureRequestsRemoveEvidenceCreate = (): ToolBase<+ typeof FeatureRequestsRemoveEvidenceCreateSchema,+ WithPostHogUrl<Schemas.FeatureRequest>+> => ({+ name: 'feature-requests-remove-evidence-create',+ schema: FeatureRequestsRemoveEvidenceCreateSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsRemoveEvidenceCreateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.expected_version !== undefined) {+ body['expected_version'] = params.expected_version+ }+ if (params.evidence_id !== undefined) {+ body['evidence_id'] = params.evidence_id+ }+ const result = await context.api.request<Schemas.FeatureRequest>({+ method: 'POST',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/${encodeURIComponent(String(params.id))}/remove_evidence/`,+ body,+ })+ return await withPostHogUrl(context, result, `/customer_analytics/feature-requests/${result.id}`)+ },+})++const FeatureRequestsRestoreCreateSchema = FeatureRequestsRestoreCreateParams.omit({ project_id: true }).extend(+ FeatureRequestsRestoreCreateBody.shape+)++const featureRequestsRestoreCreate = (): ToolBase<+ typeof FeatureRequestsRestoreCreateSchema,+ WithPostHogUrl<Schemas.FeatureRequest>+> => ({+ name: 'feature-requests-restore-create',+ schema: FeatureRequestsRestoreCreateSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsRestoreCreateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.expected_version !== undefined) {+ body['expected_version'] = params.expected_version+ }+ const result = await context.api.request<Schemas.FeatureRequest>({+ method: 'POST',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/${encodeURIComponent(String(params.id))}/restore/`,+ body,+ })+ return await withPostHogUrl(context, result, `/customer_analytics/feature-requests/${result.id}`)+ },+})++const FeatureRequestsRetrieveSchema = FeatureRequestsRetrieveParams.omit({ project_id: true })++const featureRequestsRetrieve = (): ToolBase<+ typeof FeatureRequestsRetrieveSchema,+ WithPostHogUrl<Schemas.FeatureRequest>+> => ({+ name: 'feature-requests-retrieve',+ schema: FeatureRequestsRetrieveSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsRetrieveSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const result = await context.api.request<Schemas.FeatureRequest>({+ method: 'GET',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/${encodeURIComponent(String(params.id))}/`,+ })+ return await withPostHogUrl(context, result, `/customer_analytics/feature-requests/${result.id}`)+ },+})++const FeatureRequestsStatusHistoryListSchema = FeatureRequestsStatusHistoryListParams.omit({ project_id: true })++const featureRequestsStatusHistoryList = (): ToolBase<+ typeof FeatureRequestsStatusHistoryListSchema,+ WithPostHogUrl<Schemas.FeatureRequestStatusHistory[]>+> => ({+ name: 'feature-requests-status-history-list',+ schema: FeatureRequestsStatusHistoryListSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsStatusHistoryListSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const result = await context.api.request<Schemas.FeatureRequestStatusHistory[]>({+ method: 'GET',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/${encodeURIComponent(String(params.id))}/status_history/`,+ })+ return await withPostHogUrl(context, result, '/customer_analytics')+ },+})++const FeatureRequestsUpdateEvidenceCreateSchema = FeatureRequestsUpdateEvidenceCreateParams.omit({+ project_id: true,+}).extend(FeatureRequestsUpdateEvidenceCreateBody.shape)++const featureRequestsUpdateEvidenceCreate = (): ToolBase<+ typeof FeatureRequestsUpdateEvidenceCreateSchema,+ WithPostHogUrl<Schemas.FeatureRequest>+> => ({+ name: 'feature-requests-update-evidence-create',+ schema: FeatureRequestsUpdateEvidenceCreateSchema,+ handler: async (context: Context, params: z.infer<typeof FeatureRequestsUpdateEvidenceCreateSchema>) => {+ const projectId = await context.stateManager.getProjectId()+ const body: Record<string, unknown> = {}+ if (params.summary !== undefined) {+ body['summary'] = params.summary+ }+ if (params.customer_quote !== undefined) {+ body['customer_quote'] = params.customer_quote+ }+ if (params.evidence_source !== undefined) {+ body['evidence_source'] = params.evidence_source+ }+ if (params.source_url !== undefined) {+ body['source_url'] = params.source_url+ }+ if (params.requested_on !== undefined) {+ body['requested_on'] = params.requested_on+ }+ if (params.expected_version !== undefined) {+ body['expected_version'] = params.expected_version+ }+ if (params.evidence_id !== undefined) {+ body['evidence_id'] = params.evidence_id+ }+ const result = await context.api.request<Schemas.FeatureRequest>({+ method: 'POST',+ path: `/api/projects/${encodeURIComponent(String(projectId))}/feature_requests/${encodeURIComponent(String(params.id))}/update_evidence/`,+ body,+ })+ return await withPostHogUrl(context, result, `/customer_analytics/feature-requests/${result.id}`)+ },+})+const UsageMetricsCreateSchema = GroupsTypesMetricsCreateParams.omit({ project_id: true }).extend(GroupsTypesMetricsCreateBody.shape).extend({@@ -1387,6 +1861,21 @@ export const GENERATED_TOOLS: Record<string, () => ToolBase<ZodObjectAny>> = {'event-streams-partial-update': eventStreamsPartialUpdate,'event-streams-remove-account': eventStreamsRemoveAccount,'event-streams-send-test-message': eventStreamsSendTestMessage,+ 'feature-request-product-areas-create': featureRequestProductAreasCreate,+ 'feature-request-product-areas-list': featureRequestProductAreasList,+ 'feature-request-product-areas-partial-update': featureRequestProductAreasPartialUpdate,+ 'feature-requests-add-account-create': featureRequestsAddAccountCreate,+ 'feature-requests-add-evidence-create': featureRequestsAddEvidenceCreate,+ 'feature-requests-archive-create': featureRequestsArchiveCreate,+ 'feature-requests-create': featureRequestsCreate,+ 'feature-requests-history-list': featureRequestsHistoryList,+ 'feature-requests-list': featureRequestsList,+ 'feature-requests-partial-update': featureRequestsPartialUpdate,+ 'feature-requests-remove-evidence-create': featureRequestsRemoveEvidenceCreate,+ 'feature-requests-restore-create': featureRequestsRestoreCreate,+ 'feature-requests-retrieve': featureRequestsRetrieve,+ 'feature-requests-status-history-list': featureRequestsStatusHistoryList,+ 'feature-requests-update-evidence-create': featureRequestsUpdateEvidenceCreate,'usage-metrics-create': usageMetricsCreate,'usage-metrics-destroy': usageMetricsDestroy,'usage-metrics-list': usageMetricsList,diff --git a/services/mcp/tests/unit/tool-filtering.test.ts b/services/mcp/tests/unit/tool-filtering.test.tsindex c152ed7d7a95..76ae75b04e97 100644--- a/services/mcp/tests/unit/tool-filtering.test.ts+++ b/services/mcp/tests/unit/tool-filtering.test.ts@@ -855,6 +855,7 @@ describe('Tool Filtering - Feature Flags', () => {'visual-review','user-interviews','customer-analytics-csp',+ 'customer-analytics-feature-requests','notebooks-collaboration','revamped-py-notebooks','tasks',@@ -882,7 +883,7 @@ describe('Tool Filtering - Feature Flags', () => {'data-quality-checks',]))- expect(flags).toHaveLength(31)+ expect(flags).toHaveLength(32)})it('every loops tool is gated on the loops flag', () => {