chore(codegen): daily schema refresh (2026-05-16)#7
Open
timgl wants to merge 1 commit into
Open
Conversation
Regenerate src/generated/api.d.ts from the live PostHog OpenAPI spec. Diff is documentation-only on TrendsFilter (aggregationAxisFormat, aggregationAxisPostfix, aggregationAxisPrefix, decimalPlaces): inline descriptions were added in the live spec and now flow through. No structural API changes. No new operationIds need adding to openapi-filter.yaml — every new operationId in the live spec is an auxiliary endpoint (activity logs, sharing, bulk tag updates, lifecycle actions outside the managed set, full-PUT variants the IaC client doesn't use) on a resource family we already manage with core CRUD. Generated-By: PostHog Code Task-Id: 85dfe592-51b9-41e4-bb15-9271a95dd2ce
Contributor
Author
|
Two required checks are failing, both on workflow files that are outside the scope of this schema-refresh PR and that my run is not allowed to modify:
Both findings are pre-existing on I'm leaving the workflow files alone and stopping here so a human can decide whether to fix them in a separate PR or carry them in this one. |
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.Spec diff size: 15 lines added, 1 line removed — all on the
TrendsFiltercomponent.The change is purely documentation: inline
descriptionstrings were added toaggregationAxisFormat,aggregationAxisPostfix,aggregationAxisPrefix, anddecimalPlaces. No structural change, no new fields, no removed fields.New operationIds added to
openapi-filter.yamlNone. The drift report lists ~1,400 operationIds in the live spec that are not in our filter, but these are all auxiliary endpoints on resources we already manage (or resources we deliberately do not manage). Concrete categories:
*_activity_retrieve,*_all_activity_retrieve)*_bulk_update_tags_create,*_bulk_delete_create)dashboards_sharing_*,dashboards_collaborators_*,insights_sharing_*)dashboards_copy_tile_create,dashboards_move_tile_partial_update)PUTvariants of resources where the IaC client only consumesPATCH(cohorts_update,experiments_update,event_definitions_update,schema_property_groups_update, etc.) — none of the resource clients callapi.PUT, so adding these would just inflate the generated surface.experiments_duplicate_create,experiments_reset_create,experiments_ship_variant_create,experiments_recalculate_timeseries_create, …)environments_endpoints_run_create,environments_endpoints_materialization_*)feature_flags_status_retrieve,feature_flags_my_flags_retrieve,feature_flags_dependent_flags_list, …)None of these are required by
src/resources/*/client.ts, which only uses the standardlist / retrieve / create / partial_update / destroysurface (plus the six experiment lifecycle actions and project-settings GET/PATCH that are already filtered in).Resources touched
src/generated/api.d.ts— regenerated viapnpm codegen.No resource clients, Zod schemas, or
pipeline.tsprojections required changes.pnpm typecheckis clean;pnpm testis 291/291 green.Unresolved drift
None. No operationIds disappeared from the live spec.
Provenance
posthog-code/schema-refresh-2026-05-1685dfe592-51b9-41e4-bb15-9271a95dd2ce