: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(warehouse): add xmin replication foundation (#64415)
Daniel RCc662e9bc98d3
diff --git a/posthog/temporal/data_imports/pipelines/helpers.py b/posthog/temporal/data_imports/pipelines/helpers.pyindex 3dc7c325b478..1a6a1c814e1e 100644--- a/posthog/temporal/data_imports/pipelines/helpers.py+++ b/posthog/temporal/data_imports/pipelines/helpers.py@@ -33,7 +33,11 @@ def aupdate_job_count(job_id: str, team_id: int, count: int):def incremental_type_to_initial_value(field_type: IncrementalFieldType) -> int | datetime | date | str:- if field_type == IncrementalFieldType.Integer or field_type == IncrementalFieldType.Numeric:+ if (+ field_type == IncrementalFieldType.Integer+ or field_type == IncrementalFieldType.Numeric+ or field_type == IncrementalFieldType.XID+ ):return 0if field_type == IncrementalFieldType.DateTime or field_type == IncrementalFieldType.Timestamp:return initial_datetime@@ -51,7 +55,8 @@ def incremental_type_to_operator(field_type: IncrementalFieldType) -> str:# everything equal to that day. `>=` re-fetches the boundary day so primary-key dedup# (or append acceptance) can close the gap. Every other field type carries enough# resolution that `>` is safe and avoids re-shipping the boundary row on every sync.- if field_type == IncrementalFieldType.Date:+ # xmin's lower bound (the previous run's ceiling) is inclusive, so it also uses `>=`.+ if field_type == IncrementalFieldType.Date or field_type == IncrementalFieldType.XID:return ">="return ">"diff --git a/posthog/temporal/data_imports/pipelines/test_helpers.py b/posthog/temporal/data_imports/pipelines/test_helpers.pyindex cf3f572aefdd..8e20caef92d9 100644--- a/posthog/temporal/data_imports/pipelines/test_helpers.py+++ b/posthog/temporal/data_imports/pipelines/test_helpers.py@@ -1,10 +1,17 @@+from datetime import date+import pytestfrom posthog.test.base import BaseTestfrom unittest.mock import patchimport structlog-from posthog.temporal.data_imports.pipelines.helpers import incremental_type_to_operator, sync_revenue_analytics_views+from posthog.temporal.data_imports.pipelines.helpers import (+ incremental_type_to_initial_value,+ incremental_type_to_operator,+ initial_datetime,+ sync_revenue_analytics_views,+)from posthog.temporal.data_imports.sources.stripe.constants import CHARGE_RESOURCE_NAME as STRIPE_CHARGE_RESOURCE_NAMEfrom products.data_modeling.backend.models.datawarehouse_managed_viewset import DataWarehouseManagedViewSet@@ -23,9 +30,9 @@ PATH = "products.data_modeling.backend.models.datawarehouse_saved_query"@pytest.mark.parametrize("field_type,expected",[- # Date is the only inclusive case — day-granularity cursors otherwise lose any- # rows landed on the boundary day after the cursor is saved.+ # Date and XID are the inclusive (`>=`) cases.(IncrementalFieldType.Date, ">="),+ (IncrementalFieldType.XID, ">="),(IncrementalFieldType.DateTime, ">"),(IncrementalFieldType.Timestamp, ">"),(IncrementalFieldType.Integer, ">"),@@ -37,6 +44,22 @@ def test_incremental_type_to_operator(field_type: IncrementalFieldType, expectedassert incremental_type_to_operator(field_type) == expected+ "field_type,expected",+ [+ (IncrementalFieldType.XID, 0),+ (IncrementalFieldType.Integer, 0),+ (IncrementalFieldType.Numeric, 0),+ (IncrementalFieldType.ObjectID, "000000000000000000000000"),+ (IncrementalFieldType.DateTime, initial_datetime),+ (IncrementalFieldType.Timestamp, initial_datetime),+ (IncrementalFieldType.Date, date(1970, 1, 1)),+ ],+)+def test_incremental_type_to_initial_value(field_type: IncrementalFieldType, expected: object) -> None:+ assert incremental_type_to_initial_value(field_type) == expected++class TestSyncRevenueAnalyticsViews(BaseTest):"""Tests for the sync_revenue_analytics_views functionthat should be called after run_post_load_operations completes.diff --git a/posthog/temporal/data_imports/sources/common/schema.py b/posthog/temporal/data_imports/sources/common/schema.pyindex 465573b887c6..44770e206f24 100644--- a/posthog/temporal/data_imports/sources/common/schema.py+++ b/posthog/temporal/data_imports/sources/common/schema.py@@ -31,6 +31,9 @@ class SourceSchema:# (e.g. Stripe `Discount`). The UI should hide non-webhook sync methods for these.webhook_only: bool = Falsesupports_cdc: bool = False+ # Postgres-only: set by the Postgres source for heap tables / matviews (PG13+); all+ # other sources leave it False.+ supports_xmin: bool = Falsecolumns: list[tuple[str, str, bool]] = field(default_factory=list)foreign_keys: list[tuple[str, str, str]] = field(default_factory=list)description: str | None = Nonediff --git a/products/data_warehouse/backend/types.py b/products/data_warehouse/backend/types.pyindex 20a259a202db..5fa1ecd4c3f1 100644--- a/products/data_warehouse/backend/types.py+++ b/products/data_warehouse/backend/types.py@@ -12,6 +12,8 @@ class IncrementalFieldType(StrEnum):Timestamp = "timestamp"# MongoDB specificObjectID = "objectid"+ # Postgres xmin system column — synthetic cursor, never in information_schema+ XID = "xid"class IncrementalField(typing.TypedDict, total=False):diff --git a/products/warehouse_sources/backend/migrations/0024_alter_externaldataschema_sync_type.py b/products/warehouse_sources/backend/migrations/0024_alter_externaldataschema_sync_type.pynew file mode 100644index 000000000000..97daf382fcb1--- /dev/null+++ b/products/warehouse_sources/backend/migrations/0024_alter_externaldataschema_sync_type.py@@ -0,0 +1,27 @@+# Generated by Django 5.2.14 on 2026-06-17 21:06++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [("warehouse_sources", "0023_alter_externaldatasource_source_type_and_more")]++ operations = [+ migrations.AlterField(+ model_name="externaldataschema",+ name="sync_type",+ field=models.CharField(+ blank=True,+ choices=[+ ("full_refresh", "full_refresh"),+ ("incremental", "incremental"),+ ("append", "append"),+ ("webhook", "webhook"),+ ("cdc", "cdc"),+ ("xmin", "xmin"),+ ],+ max_length=128,+ null=True,+ ),+ ),+ ]diff --git a/products/warehouse_sources/backend/migrations/max_migration.txt b/products/warehouse_sources/backend/migrations/max_migration.txtindex fc3ba61ddde4..0bb84182227c 100644--- a/products/warehouse_sources/backend/migrations/max_migration.txt+++ b/products/warehouse_sources/backend/migrations/max_migration.txt@@ -1 +1 @@-0023_alter_externaldatasource_source_type_and_more+0024_alter_externaldataschema_sync_typediff --git a/products/warehouse_sources/backend/models/external_data_schema.py b/products/warehouse_sources/backend/models/external_data_schema.pyindex 7d9da235bda2..61a42cfd6a2d 100644--- a/products/warehouse_sources/backend/models/external_data_schema.py+++ b/products/warehouse_sources/backend/models/external_data_schema.py@@ -36,6 +36,7 @@ class ExternalDataSchema(ModelActivityMixin, CreatedMetaFields, UpdatedMetaFieldAPPEND = "append", "append"WEBHOOK = "webhook", "webhook"CDC = "cdc", "cdc"+ XMIN = "xmin", "xmin"class SyncFrequency(models.TextChoices):DAILY = "day", "Daily"@@ -59,7 +60,7 @@ class ExternalDataSchema(ModelActivityMixin, CreatedMetaFields, UpdatedMetaFieldstatus = models.CharField(max_length=400, null=True, blank=True)last_synced_at = models.DateTimeField(null=True, blank=True)sync_type = models.CharField(max_length=128, choices=SyncType, null=True, blank=True)- # { "incremental_field": string, "incremental_field_type": string, "incremental_field_last_value": any, "incremental_field_earliest_value": any, "reset_pipeline": bool, "partitioning_enabled": bool, "partition_count": int, "partition_size": int, "partition_mode": str, "partitioning_keys": list[str], "chunk_size_override": int | None, "primary_key_columns": list[str] | None }+ # { "incremental_field": string, "incremental_field_type": string, "incremental_field_last_value": any, "incremental_field_earliest_value": any, "reset_pipeline": bool, "partitioning_enabled": bool, "partition_count": int, "partition_size": int, "partition_mode": str, "partitioning_keys": list[str], "chunk_size_override": int | None, "primary_key_columns": list[str] | None, "xmin_last_value": int, "xmin_ceiling": int, "xmin_num_wraparound": int }sync_type_config = models.JSONField(default=dict,blank=True,@@ -122,6 +123,28 @@ class ExternalDataSchema(ModelActivityMixin, CreatedMetaFields, UpdatedMetaFielddef is_cdc(self):return self.sync_type == self.SyncType.CDC+ @property+ def is_xmin(self):+ return self.sync_type == self.SyncType.XMIN++ @property+ def xmin_last_value(self) -> int | None:+ if self.sync_type_config:+ return self.sync_type_config.get("xmin_last_value", None)+ return None++ @property+ def xmin_ceiling(self) -> int | None:+ if self.sync_type_config:+ return self.sync_type_config.get("xmin_ceiling", None)+ return None++ @property+ def xmin_num_wraparound(self) -> int | None:+ if self.sync_type_config:+ return self.sync_type_config.get("xmin_num_wraparound", None)+ return None+@propertydef cdc_mode(self) -> Literal["snapshot", "streaming"] | None:if self.sync_type_config:@@ -299,6 +322,9 @@ class ExternalDataSchema(ModelActivityMixin, CreatedMetaFields, UpdatedMetaFieldself.sync_type_config.pop("partitioning_keys", None)self.sync_type_config.pop("partition_mode", None)self.sync_type_config.pop("backfilled_partition_format", None)+ self.sync_type_config.pop("xmin_last_value", None)+ self.sync_type_config.pop("xmin_ceiling", None)+ self.sync_type_config.pop("xmin_num_wraparound", None)# We don't reset partition_format# We don't reset chunk_size_override@@ -355,6 +381,16 @@ class ExternalDataSchema(ModelActivityMixin, CreatedMetaFields, UpdatedMetaFieldif save:self.save()+ def update_xmin_state(self, ceiling_xid: int, ceiling_xid8: int, num_wraparound: int, save: bool = True) -> None:+ # Call at job completion, not per-batch: a mid-run crash then re-reads the window+ # instead of skipping it.+ self.sync_type_config["xmin_last_value"] = ceiling_xid+ self.sync_type_config["xmin_ceiling"] = ceiling_xid8+ self.sync_type_config["xmin_num_wraparound"] = num_wraparound++ if save:+ self.save()+def soft_delete(self):self.deleted = Trueself.deleted_at = datetime.now()@@ -386,7 +422,11 @@ def process_incremental_value(value: Any | None, field_type: IncrementalFieldTypif value is None or value == "None" or field_type is None:return None- if field_type == IncrementalFieldType.Integer or field_type == IncrementalFieldType.Numeric:+ if (+ field_type == IncrementalFieldType.Integer+ or field_type == IncrementalFieldType.Numeric+ or field_type == IncrementalFieldType.XID+ ):return valueif field_type == IncrementalFieldType.DateTime or field_type == IncrementalFieldType.Timestamp:diff --git a/products/warehouse_sources/backend/tests/test_models.py b/products/warehouse_sources/backend/tests/test_models.pyindex 6fc3bcbb0475..f5bae41b5d3c 100644--- a/products/warehouse_sources/backend/tests/test_models.py+++ b/products/warehouse_sources/backend/tests/test_models.py@@ -2,12 +2,14 @@ import uuidimport pytestfrom posthog.test.base import BaseTest+from unittest.mock import patchfrom django.db.models import Model+from products.data_warehouse.backend.types import IncrementalFieldTypefrom products.warehouse_sources.backend.models.credential import DataWarehouseCredentialfrom products.warehouse_sources.backend.models.external_data_job import ExternalDataJob-from products.warehouse_sources.backend.models.external_data_schema import ExternalDataSchema+from products.warehouse_sources.backend.models.external_data_schema import ExternalDataSchema, process_incremental_valuefrom products.warehouse_sources.backend.models.external_data_source import ExternalDataSourcefrom products.warehouse_sources.backend.models.table import DataWarehouseTablefrom products.warehouse_sources.backend.models.util import CLICKHOUSE_HOGQL_MAPPING, clean_type@@ -106,3 +108,54 @@ def test_clean_type_unwraps_low_cardinality(clickhouse_type: str, expected: str)cleaned = clean_type(clickhouse_type)assert cleaned == expectedassert cleaned in CLICKHOUSE_HOGQL_MAPPING+++ "sync_type,expected",+ [+ (ExternalDataSchema.SyncType.XMIN, True),+ (ExternalDataSchema.SyncType.INCREMENTAL, False),+ (ExternalDataSchema.SyncType.CDC, False),+ (None, False),+ ],+)+def test_is_xmin(sync_type: str | None, expected: bool) -> None:+ assert ExternalDataSchema(sync_type=sync_type).is_xmin is expected+++ "sync_type_config,expected",+ [+ ({"xmin_last_value": 42, "xmin_ceiling": (1 << 32) + 42, "xmin_num_wraparound": 1}, (42, (1 << 32) + 42, 1)),+ ({}, (None, None, None)),+ (None, (None, None, None)),+ ],+)+def test_xmin_accessors(sync_type_config: dict | None, expected: tuple) -> None:+ schema = ExternalDataSchema(sync_type_config=sync_type_config)+ assert (schema.xmin_last_value, schema.xmin_ceiling, schema.xmin_num_wraparound) == expected+++def test_update_xmin_state_writes_all_keys() -> None:+ schema = ExternalDataSchema(sync_type_config={})+ schema.update_xmin_state(ceiling_xid=100, ceiling_xid8=4294967396, num_wraparound=1, save=False)+ assert (schema.xmin_last_value, schema.xmin_ceiling, schema.xmin_num_wraparound) == (100, 4294967396, 1)+++def test_reset_pipeline_clears_xmin_state() -> None:+ schema = ExternalDataSchema(+ sync_type=ExternalDataSchema.SyncType.XMIN,+ sync_type_config={"xmin_last_value": 100, "xmin_ceiling": 4294967396, "xmin_num_wraparound": 1},+ initial_sync_complete=True,+ )+ with patch.object(schema, "save"):+ schema.update_sync_type_config_for_reset_pipeline()+ assert "xmin_last_value" not in schema.sync_type_config+ assert "xmin_ceiling" not in schema.sync_type_config+ assert "xmin_num_wraparound" not in schema.sync_type_config+ assert schema.initial_sync_complete is False+++def test_process_incremental_value_xid_returns_value_as_is() -> None:+ assert process_incremental_value(4294967396, IncrementalFieldType.XID) == 4294967396+ assert process_incremental_value(None, IncrementalFieldType.XID) is Nonediff --git a/products/warehouse_sources/frontend/generated/api.schemas.ts b/products/warehouse_sources/frontend/generated/api.schemas.tsindex 2375af7252c3..2fa96afc2cde 100644--- a/products/warehouse_sources/frontend/generated/api.schemas.ts+++ b/products/warehouse_sources/frontend/generated/api.schemas.ts@@ -13,6 +13,7 @@* * `append` - append* * `webhook` - webhook* * `cdc` - cdc+ * * `xmin` - xmin*/export type SyncTypeEnumApi = (typeof SyncTypeEnumApi)[keyof typeof SyncTypeEnumApi]@@ -22,6 +23,7 @@ export const SyncTypeEnumApi = {Append: 'append',Webhook: 'webhook',Cdc: 'cdc',+ Xmin: 'xmin',} as const/**@@ -31,6 +33,7 @@ export const SyncTypeEnumApi = {* * `date` - date* * `timestamp` - timestamp* * `objectid` - objectid+ * * `xid` - xid*/export type IncrementalFieldTypeEnumApi = (typeof IncrementalFieldTypeEnumApi)[keyof typeof IncrementalFieldTypeEnumApi]@@ -41,6 +44,7 @@ export const IncrementalFieldTypeEnumApi = {Date: 'date',Timestamp: 'timestamp',Objectid: 'objectid',+ Xid: 'xid',} as const/**@@ -140,7 +144,8 @@ export interface ExternalDataSchemaApi {* * `incremental` - incremental* * `append` - append* * `webhook` - webhook- * * `cdc` - cdc */+ * * `cdc` - cdc+ * * `xmin` - xmin */sync_type?: SyncTypeEnumApi | null/*** Column name used to track sync progress.@@ -154,7 +159,8 @@ export interface ExternalDataSchemaApi {* * `datetime` - datetime* * `date` - date* * `timestamp` - timestamp- * * `objectid` - objectid */+ * * `objectid` - objectid+ * * `xid` - xid */incremental_field_type?: IncrementalFieldTypeEnumApi | null/** How often to sync.*@@ -271,7 +277,8 @@ export interface PatchedExternalDataSchemaApi {* * `incremental` - incremental* * `append` - append* * `webhook` - webhook- * * `cdc` - cdc */+ * * `cdc` - cdc+ * * `xmin` - xmin */sync_type?: SyncTypeEnumApi | null/*** Column name used to track sync progress.@@ -285,7 +292,8 @@ export interface PatchedExternalDataSchemaApi {* * `datetime` - datetime* * `date` - date* * `timestamp` - timestamp- * * `objectid` - objectid */+ * * `objectid` - objectid+ * * `xid` - xid */incremental_field_type?: IncrementalFieldTypeEnumApi | null/** How often to sync.*@@ -2438,7 +2446,8 @@ export interface ExternalDataSourceBulkUpdateSchemaApi {* * `incremental` - incremental* * `append` - append* * `webhook` - webhook- * * `cdc` - cdc */+ * * `cdc` - cdc+ * * `xmin` - xmin */sync_type?: SyncTypeEnumApi | null/*** Incremental cursor field for incremental or append syncs.diff --git a/products/warehouse_sources/frontend/generated/api.zod.ts b/products/warehouse_sources/frontend/generated/api.zod.tsindex 75f6498269c2..c7e28ea95f28 100644--- a/products/warehouse_sources/frontend/generated/api.zod.ts+++ b/products/warehouse_sources/frontend/generated/api.zod.ts@@ -14,29 +14,29 @@ export const ExternalDataSchemasCreateBody = /* @__PURE__ */ zod.object({sync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),sync_frequency: zod.union([@@ -105,29 +105,29 @@ export const ExternalDataSchemasUpdateBody = /* @__PURE__ */ zod.object({sync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),sync_frequency: zod.union([@@ -196,29 +196,29 @@ export const ExternalDataSchemasPartialUpdateBody = /* @__PURE__ */ zod.object({sync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),sync_frequency: zod.union([@@ -287,29 +287,29 @@ export const ExternalDataSchemasCancelCreateBody = /* @__PURE__ */ zod.object({sync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),sync_frequency: zod.union([@@ -378,29 +378,29 @@ export const ExternalDataSchemasIncrementalFieldsCreateBody = /* @__PURE__ */ zosync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),sync_frequency: zod.union([@@ -469,29 +469,29 @@ export const ExternalDataSchemasReloadCreateBody = /* @__PURE__ */ zod.object({sync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),sync_frequency: zod.union([@@ -560,29 +560,29 @@ export const ExternalDataSchemasResyncCreateBody = /* @__PURE__ */ zod.object({sync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ '\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid'+ 'Data type of the incremental field.\n\n\* `integer` - integer\n\* `numeric` - numeric\n\* `datetime` - datetime\n\* `date` - date\n\* `timestamp` - timestamp\n\* `objectid` - objectid\n\* `xid` - xid'),sync_frequency: zod.union([@@ -1379,15 +1379,15 @@ export const ExternalDataSourcesBulkUpdateSchemasPartialUpdateBody = /* @__PURE_sync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ '\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Requested sync mode for the schema.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc'+ 'Requested sync mode for the schema.\n\n\* `full_refresh` - full_refresh\n\* `incremental` - incremental\n\* `append` - append\n\* `webhook` - webhook\n\* `cdc` - cdc\n\* `xmin` - xmin'),incremental_field: zod.string()diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex a83bd1fad2c3..7437503b1871 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -20785,6 +20785,7 @@ export namespace Schemas {* * `append` - append* * `webhook` - webhook* * `cdc` - cdc+ * * `xmin` - xmin*/export type SyncTypeEnum = typeof SyncTypeEnum[keyof typeof SyncTypeEnum];@@ -20795,6 +20796,7 @@ export namespace Schemas {Append: 'append',Webhook: 'webhook',Cdc: 'cdc',+ Xmin: 'xmin',} as const;/**@@ -20804,6 +20806,7 @@ export namespace Schemas {* * `date` - date* * `timestamp` - timestamp* * `objectid` - objectid+ * * `xid` - xid*/export type IncrementalFieldTypeEnum = typeof IncrementalFieldTypeEnum[keyof typeof IncrementalFieldTypeEnum];@@ -20815,6 +20818,7 @@ export namespace Schemas {Date: 'date',Timestamp: 'timestamp',Objectid: 'objectid',+ Xid: 'xid',} as const;/**@@ -20871,7 +20875,8 @@ export namespace Schemas {* * `incremental` - incremental* * `append` - append* * `webhook` - webhook- * * `cdc` - cdc */+ * * `cdc` - cdc+ * * `xmin` - xmin */sync_type?: SyncTypeEnum | null;/*** Column name used to track sync progress.@@ -20885,7 +20890,8 @@ export namespace Schemas {* * `datetime` - datetime* * `date` - date* * `timestamp` - timestamp- * * `objectid` - objectid */+ * * `objectid` - objectid+ * * `xid` - xid */incremental_field_type?: IncrementalFieldTypeEnum | null;/** How often to sync.*@@ -20957,7 +20963,8 @@ export namespace Schemas {* * `incremental` - incremental* * `append` - append* * `webhook` - webhook- * * `cdc` - cdc */+ * * `cdc` - cdc+ * * `xmin` - xmin */sync_type?: SyncTypeEnum | null;/*** Incremental cursor field for incremental or append syncs.@@ -35186,7 +35193,8 @@ export namespace Schemas {* * `incremental` - incremental* * `append` - append* * `webhook` - webhook- * * `cdc` - cdc */+ * * `cdc` - cdc+ * * `xmin` - xmin */sync_type?: SyncTypeEnum | null;/*** Column name used to track sync progress.@@ -35200,7 +35208,8 @@ export namespace Schemas {* * `datetime` - datetime* * `date` - date* * `timestamp` - timestamp- * * `objectid` - objectid */+ * * `objectid` - objectid+ * * `xid` - xid */incremental_field_type?: IncrementalFieldTypeEnum | null;/** How often to sync.*diff --git a/services/mcp/src/generated/warehouse_sources/api.ts b/services/mcp/src/generated/warehouse_sources/api.tsindex 0a0422a9b5a2..23437e2e56be 100644--- a/services/mcp/src/generated/warehouse_sources/api.ts+++ b/services/mcp/src/generated/warehouse_sources/api.ts@@ -45,29 +45,29 @@ export const ExternalDataSchemasPartialUpdateBody = /* @__PURE__ */ zod.object({sync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc'+ '* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid'+ '* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid'+ 'Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid'),sync_frequency: zod.union([@@ -145,29 +145,29 @@ export const ExternalDataSchemasCancelCreateBody = /* @__PURE__ */ zod.object({sync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc'+ '* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid'+ '* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid'+ 'Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid'),sync_frequency: zod.union([@@ -254,29 +254,29 @@ export const ExternalDataSchemasIncrementalFieldsCreateBody = /* @__PURE__ */ zosync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc'+ '* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid'+ '* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid'+ 'Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid'),sync_frequency: zod.union([@@ -354,29 +354,29 @@ export const ExternalDataSchemasReloadCreateBody = /* @__PURE__ */ zod.object({sync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc'+ '* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid'+ '* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid'+ 'Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid'),sync_frequency: zod.union([@@ -454,29 +454,29 @@ export const ExternalDataSchemasResyncCreateBody = /* @__PURE__ */ zod.object({sync_type: zod.union([zod- .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc'])+ .enum(['full_refresh', 'incremental', 'append', 'webhook', 'cdc', 'xmin']).describe(- '* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc'+ '* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin'),zod.null(),]).optional().describe(- 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc'+ 'Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin'),incremental_field: zod.string().nullish().describe('Column name used to track sync progress.'),incremental_field_type: zod.union([zod- .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid'])+ .enum(['integer', 'numeric', 'datetime', 'date', 'timestamp', 'objectid', 'xid']).describe(- '* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid'+ '* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid'),zod.null(),]).optional().describe(- 'Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid'+ 'Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid'),sync_frequency: zod.union([diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-cancel.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-cancel.jsonindex 9ed2f72b630f..4e71e345f00a 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-cancel.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-cancel.json@@ -46,15 +46,15 @@"incremental_field_type": {"anyOf": [{- "description": "* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid",- "enum": ["integer", "numeric", "datetime", "date", "timestamp", "objectid"],+ "description": "* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid",+ "enum": ["integer", "numeric", "datetime", "date", "timestamp", "objectid", "xid"],"type": "string"},{"type": "null"}],- "description": "Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid"+ "description": "Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid"},"primary_key_columns": {"anyOf": [@@ -140,15 +140,15 @@"sync_type": {"anyOf": [{- "description": "* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc",- "enum": ["full_refresh", "incremental", "append", "webhook", "cdc"],+ "description": "* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin",+ "enum": ["full_refresh", "incremental", "append", "webhook", "cdc", "xmin"],"type": "string"},{"type": "null"}],- "description": "Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc"+ "description": "Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin"}},"required": ["id"],diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-incremental-fields-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-incremental-fields-create.jsonindex 9ed2f72b630f..4e71e345f00a 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-incremental-fields-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-incremental-fields-create.json@@ -46,15 +46,15 @@"incremental_field_type": {"anyOf": [{- "description": "* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid",- "enum": ["integer", "numeric", "datetime", "date", "timestamp", "objectid"],+ "description": "* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid",+ "enum": ["integer", "numeric", "datetime", "date", "timestamp", "objectid", "xid"],"type": "string"},{"type": "null"}],- "description": "Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid"+ "description": "Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid"},"primary_key_columns": {"anyOf": [@@ -140,15 +140,15 @@"sync_type": {"anyOf": [{- "description": "* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc",- "enum": ["full_refresh", "incremental", "append", "webhook", "cdc"],+ "description": "* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin",+ "enum": ["full_refresh", "incremental", "append", "webhook", "cdc", "xmin"],"type": "string"},{"type": "null"}],- "description": "Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc"+ "description": "Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin"}},"required": ["id"],diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-partial-update.jsonindex 9ed2f72b630f..4e71e345f00a 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-partial-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-partial-update.json@@ -46,15 +46,15 @@"incremental_field_type": {"anyOf": [{- "description": "* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid",- "enum": ["integer", "numeric", "datetime", "date", "timestamp", "objectid"],+ "description": "* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid",+ "enum": ["integer", "numeric", "datetime", "date", "timestamp", "objectid", "xid"],"type": "string"},{"type": "null"}],- "description": "Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid"+ "description": "Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid"},"primary_key_columns": {"anyOf": [@@ -140,15 +140,15 @@"sync_type": {"anyOf": [{- "description": "* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc",- "enum": ["full_refresh", "incremental", "append", "webhook", "cdc"],+ "description": "* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin",+ "enum": ["full_refresh", "incremental", "append", "webhook", "cdc", "xmin"],"type": "string"},{"type": "null"}],- "description": "Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc"+ "description": "Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin"}},"required": ["id"],diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-reload.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-reload.jsonindex 9ed2f72b630f..4e71e345f00a 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-reload.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-reload.json@@ -46,15 +46,15 @@"incremental_field_type": {"anyOf": [{- "description": "* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid",- "enum": ["integer", "numeric", "datetime", "date", "timestamp", "objectid"],+ "description": "* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid",+ "enum": ["integer", "numeric", "datetime", "date", "timestamp", "objectid", "xid"],"type": "string"},{"type": "null"}],- "description": "Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid"+ "description": "Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid"},"primary_key_columns": {"anyOf": [@@ -140,15 +140,15 @@"sync_type": {"anyOf": [{- "description": "* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc",- "enum": ["full_refresh", "incremental", "append", "webhook", "cdc"],+ "description": "* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin",+ "enum": ["full_refresh", "incremental", "append", "webhook", "cdc", "xmin"],"type": "string"},{"type": "null"}],- "description": "Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc"+ "description": "Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin"}},"required": ["id"],diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-resync.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-resync.jsonindex 9ed2f72b630f..4e71e345f00a 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-resync.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-resync.json@@ -46,15 +46,15 @@"incremental_field_type": {"anyOf": [{- "description": "* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid",- "enum": ["integer", "numeric", "datetime", "date", "timestamp", "objectid"],+ "description": "* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid",+ "enum": ["integer", "numeric", "datetime", "date", "timestamp", "objectid", "xid"],"type": "string"},{"type": "null"}],- "description": "Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid"+ "description": "Data type of the incremental field.\n\n* `integer` - integer\n* `numeric` - numeric\n* `datetime` - datetime\n* `date` - date\n* `timestamp` - timestamp\n* `objectid` - objectid\n* `xid` - xid"},"primary_key_columns": {"anyOf": [@@ -140,15 +140,15 @@"sync_type": {"anyOf": [{- "description": "* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc",- "enum": ["full_refresh", "incremental", "append", "webhook", "cdc"],+ "description": "* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin",+ "enum": ["full_refresh", "incremental", "append", "webhook", "cdc", "xmin"],"type": "string"},{"type": "null"}],- "description": "Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc"+ "description": "Sync strategy: incremental, full_refresh, append, or cdc.\n\n* `full_refresh` - full_refresh\n* `incremental` - incremental\n* `append` - append\n* `webhook` - webhook\n* `cdc` - cdc\n* `xmin` - xmin"}},"required": ["id"],