chore(codegen): daily schema refresh (2026-05-28)#20
Open
timgl wants to merge 1 commit into
Open
Conversation
Regenerate src/generated/api.d.ts from us.posthog.com/api/schema/. Schema-only drift: new fields (tags on Endpoint*, math/* on ExperimentMetricSource, resultCustomizations on Chart settings, denominator_outlier_handling/ignore_zeros on ExperimentMetric), new component schemas (CalendarHeatmapFilter, DataWarehouseSyncWarning, ExperimentMetricOutlierHandling, Response7, ParserMode), one rename (AggregationPropertyType1 → AggregationPropertyType). No path/operationId additions or removals affecting managed resources. Generated-By: PostHog Code Task-Id: 7ee22061-99f6-46b7-b5e3-a4c44c9e8f4b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Daily OpenAPI schema refresh from
https://us.posthog.com/api/schema/?format=json, filtered byopenapi-filter.yaml.src/generated/api.d.ts; schema-only (component additions, field additions, one rename). No path or operationId additions/removals affecting managed resources.openapi-filter.yaml: unchanged.New operationIds added to filter
None. The drift detector flagged ~1000 operationIds in the live spec that are not in the filter, but none belong to a managed resource family in a way that would extend declarative management:
api.d.ts(already ~13k LOC trimmed) without enabling new IaC capabilities.event_schemas_partial_update/event_schemas_update(event_schemas resource currently has list/create/destroy only),experiments_update,experiment_holdouts_update,experiment_saved_metrics_update,cohorts_update,event_definitions_update(PUT variants alongside the existing PATCH partial_update — none are needed today).Resources touched
None.
typecheckandvitestare clean against the regenerated types. Onlysrc/generated/api.d.tschanged.Notable schema-level additions consumed transitively by existing clients:
Endpoint*schemas gained atagsfield (writable on create/update, read-only on responses).ExperimentApiEventSourcegainedmath,math_property,math_hogql,math_group_type_index.ExperimentMetricgaineddenominator_outlier_handling,ignore_zeros, and winsorization controls.CalendarHeatmapFilter,DataWarehouseSyncWarning,ExperimentMetricOutlierHandling,ParserMode,Response7.AggregationPropertyType1→AggregationPropertyType(no consumer in this repo).Unresolved drift
None.
src/resources/*/client.tsorpipeline.ts.src/pull/run.test.tspasses on retry; unrelated to schema.Test plan
pnpm install --frozen-lockfilepnpm codegenpnpm typecheckpnpm test(re-ran a flaky timeout inpull/run.test.ts— passes in isolation, not schema-related)TaskRun: 7ee22061-99f6-46b7-b5e3-a4c44c9e8f4b