chore(codegen): daily schema refresh (2026-06-06)#28
Open
timgl wants to merge 1 commit into
Open
Conversation
Regenerate src/generated/api.d.ts from the live PostHog OpenAPI schema (https://us.posthog.com/api/schema/?format=json), filtered by openapi-filter.yaml. Additive schema drift only — all 71 allowlisted operationIds remain present. The openapi-filter.yaml allowlist is unchanged. typecheck and full test suite pass. Generated-By: PostHog Code Task-Id: 14289890-8baa-4fe4-aedf-28aac14ca00c
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-06-06
Regenerated
src/generated/api.d.tsfrom the live PostHog OpenAPI spec(
https://us.posthog.com/api/schema/?format=json), filtered through the curatedopenapi-filter.yamlallowlist. Generated file only — not hand-edited.Spec diff size
src/generated/api.d.ts: +1384 / −49 lines (1 file changed)openapi-filter.yaml: unchangedNew operationIds added to the filter
None. The drift report's "new operationIds" list is the entire unmanaged API
surface (every live operationId minus the allowlist), not net-new endpoints since
the last run. They fall into two buckets, neither of which warrants an automated
filter change:
insights_sharing_*,insights_activity_retrieve,dashboards_collaborators_*,feature_flags_status_retrieve,actions_bulk_update_tags_create,cohorts_activity_retrieve. These are read/sideoperations outside the CRUD surface this IaC tool manages.
warehouse, vision scanners, tasks, signals, logs, etc. Managing any of these is a
deliberate product decision (new resource family +
add-resourcewiring + tests),not a routine schema-drift refresh. Left for human direction.
Resources touched
Only the regenerated types. The schema drift flows into these managed families
(their hand-maintained Zod projections in
client.tsstill hold — typecheck + tests pass,so no client edits were needed):
ExperimentMetricTypegained"retention";new
ExperimentMetricOutlierHandling, reshapedExperimentParameters.AccountsQueryadded to the query-source union.TeamCustomerAnalyticsConfig,TeamWorkflowsConfig,DataWarehouseSyncWarning;CalendarHeatmapFilter.Response*types renumbered.Verification
pnpm typecheck✅pnpm test✅ (290/291; the one miss,pull/run.test.ts, is a 500ms timeout underparallel load — passes in 221ms in isolation, unrelated to schema drift)
no managed operation disappeared.
Unresolved drift / for human review
_updatevariants exist but remain intentionally excluded. The live specexposes
cohorts_update,experiments_update,event_definitions_update,experiment_holdouts_update, andexperiment_saved_metrics_update(full PUT) forfamilies the filter currently covers with
_partial_updateonly. The apply pipelinesupdate (and even soft-delete) exclusively via
PATCH, so adding these would be deadtype surface. Left out by design — flag for a maintainer if PUT semantics are ever wanted.
TaskRun:
14289890-8baa-4fe4-aedf-28aac14ca00c🤖 Generated with Claude Code