chore(codegen): daily schema refresh (2026-05-20)#10
Open
timgl wants to merge 1 commit into
Open
Conversation
Regenerated src/generated/api.d.ts via pnpm codegen. Drift is schema annotations only — no new operationIds were added to openapi-filter.yaml. Generated-By: PostHog Code Task-Id: 9bac39f2-1e99-4821-9a70-0ff29a1f644e
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 refresh of
src/generated/api.d.tsfrom the live PostHog OpenAPI spec viapnpm codegen. 89 lines added, 2 removed inapi.d.ts— all schema-annotation drift, no operationId additions.Schema drift (annotations only)
Insightresults customization: newresultCustomizationsmap on the trends config object ({[key: string]: ResultCustomizationByValue}).ExperimentSavedMetric/PatchedExperimentSavedMetric: added inline descriptions forname,description, andquery.Team/PatchedTeam: new optionaltest_account_filtersfield with extensive doc comment covering person/event/cohort filter shapes.TeamCustomerAnalyticsConfig: previouslyRecord<string, never>, now an object withactivity_event,signup_pageview_event,signup_event,subscription_event,payment_event,account_group_type_index.TrendsFilter: new descriptions onaggregationAxisFormat,aggregationAxisPostfix,aggregationAxisPrefix,decimalPlaces.No type changes touch any managed resource client —
pnpm typecheckpasses clean.openapi-filter.yaml
Not modified. The "new operationIds in live spec, missing from openapi-filter.yaml" list surfaced by drift detection is the full universe of unmanaged PostHog API endpoints — they were intentionally excluded by the original allowlist, not newly added to the spec.
For families we already manage (
cohorts,event_definitions,experiments,experiment_holdouts,experiment_saved_metrics,schema_property_groups), the live spec exposes_update(PUT) variants in addition to the_partial_update(PATCH) ones we currently expose. Clients use PATCH exclusively, so PUT is not needed — adding it would only bloat the generated schema. Left as-is.For brand-new resource families surfaced in the live spec (
alerts,annotations,surveys,subscriptions,notebooks,error_tracking_*,data_warehouse_*, etc.), adding them is a larger change that belongs in dedicated PRs using theadd-resourceskill — not in a daily refresh.Test results
pnpm typecheck— passes ✅pnpm test— 290/291 pass. 1 preexisting flake insrc/pull/run.test.ts > runPull > "writes files and calls tagOnServer on a non-dry run"(500ms timeout, fails onmaintoo — unrelated to this PR).Unresolved drift
None. No operationIds disappeared from the live spec.
Test plan
api.d.tsdiff and confirm no client schema breakageTask:
9bac39f2-1e99-4821-9a70-0ff29a1f644e