chore(codegen): daily schema refresh (2026-05-14)#5
Open
timgl wants to merge 1 commit into
Open
Conversation
Cosmetic regeneration of src/generated/api.d.ts from the live spec —
openapi-typescript now annotates discriminator enum properties on
ExperimentMetric variants ("metric_type" on funnel/mean/ratio/retention)
with a clarifying description in place of the prior @default/@constant
annotations. No structural or operationId changes.
Generated-By: PostHog Code
Task-Id: 8fcee614-d1fa-4a24-b17b-28f3cd2a4b58
Contributor
Author
CI status — pre-existing workflow issues, not from this PRTwo required checks are failing:
Both workflow files were added in parent commit I'm not going to patch
Once |
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.
Daily OpenAPI schema refresh — 2026-05-14
Automated regeneration of
src/generated/api.d.tsfrom the live PostHog OpenAPI spec, filtered byopenapi-filter.yaml.Spec diff size
src/generated/api.d.ts: 9 insertions, 13 deletions (1 file)openapi-filter.yaml: unchangedWhat changed
Cosmetic only.
openapi-typescriptnow emits a generic description for discriminator enum properties onExperimentMetricvariants in place of the prior@default/@constantannotations:ExperimentFunnelMetric.metric_typeExperimentMeanMetric.metric_typeExperimentRatioMetric.metric_typeExperimentRetentionMetric.metric_typeOne additional change: parens added around the
metricunion type inExperimentSignificance(no behavioral effect).No structural changes to any operation, schema, parameter, or response.
New operationIds added to filter
None. No additions to
openapi-filter.yamlthis run.The live spec contains a large set of operationIds outside the filter — this is by design (the filter is an allowlist, not a denylist). Triaged the gaps relative to managed resource families:
PUT) variants of managed resources (cohorts_update,event_definitions_update,experiments_update,experiment_holdouts_update,experiment_saved_metrics_update,schema_property_groups_update,event_schemas_update,event_schemas_partial_update) — intentionally excluded: the pipeline usesPATCH(partial_update) for field-level diffs; fullPUTsemantics are not needed.experiments_stats_retrieve,experiments_timeseries_results_retrieve,experiments_ship_variant_create,experiments_reset_create,experiments_duplicate_create,experiments_recalculate_timeseries_create,experiments_eligible_feature_flags_retrieve,experiments_requires_flag_implementation_retrieve,experiments_copy_to_project_create,experiments_create_exposure_cohort_for_experiment_create) — not in scope for declarative IaC; these are read/action endpoints, not part of the create/diff/apply lifecycle.cohorts_activity_retrieve,cohorts_persons_retrieve,cohorts_calculation_history_retrieve,cohorts_*_static_cohort_partial_update,cohorts_all_activity_retrieve) — not in scope for declarative management.Resources touched
None. No
src/resources/*/client.tsZod schemas orpipeline.tsprojections required updates — the cosmetic change does not affect any field accessed by the typed client.Unresolved drift
None.
Removed operationIds
None observed.
Verification
pnpm install --frozen-lockfile✓pnpm codegen✓pnpm typecheck✓pnpm test✓ (173/173 across 20 suites)TaskRun
Task-Id:
8fcee614-d1fa-4a24-b17b-28f3cd2a4b58Generated-By: PostHog Code