chore(codegen): daily schema refresh (2026-05-26)#18
Open
timgl wants to merge 1 commit into
Open
Conversation
Regenerate src/generated/api.d.ts from the live PostHog OpenAPI spec. No path/operationId changes — only schema property/description updates within already-managed operations. Generated-By: PostHog Code Task-Id: ec47f3e4-4ce8-4ab8-aa13-e58e4f97a9ac
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.src/generated/api.d.ts(+149 / -11).openapi-filter.yamlis still present, none added or removed.aggregationAxisFormat,aggregationAxisPrefix/Postfix,decimalPlaces,queryonExperimentSavedMetric,test_account_filters, etc.) plus a handful of new optional fields on already-projected response shapes:ParserModeenum +parserModeon HogQL query schemasusedLazyPrecomputeon cached query response shapes (CachedHogQLQueryResponse,CachedWebOverviewQueryResponse,CachedWebStatsTableQueryResponse)useWebAnalyticsPrecomputeonWebOverviewQueryandWebStatsTableQuerycohortLabelStartIndexonRetentionFilterresultCustomizationsonTrendsFilterTeamCustomerAnalyticsConfigexpanded fromRecord<string, never>to a typed objectexclude_hidden/exclude_stalequery params onevent_definitions_listprompt_namequery param onexperiments_listNew operationIds added to the filter
None. The codegen output's path set is byte-for-byte identical at the operations level — only schema details changed. No filter edits required.
Resources touched
None. Zod schemas in
src/resources/**/client.tsand projections inpipeline.tsdo not reference any of the new fields. Typecheck and full vitest suite pass unchanged (291 tests).Unresolved drift
openapi-filter.yaml. These are not new today — they are the long-standing out-of-scope surface (signals, llm_analytics, error_tracking, hog_flows, mcp_*, integrations, sandbox, tasks, vision_scanners, web_experiments, …). They are intentionally excluded from the managed client and remain so. Adding any of them would require either a new resource family (useadd-resourceskill) or a deliberate scope extension to an existing family — both out of scope for an automated refresh.Test plan
pnpm install --frozen-lockfilepnpm codegenpnpm typecheckpnpm test— 291/291 passingTaskRun: ec47f3e4-4ce8-4ab8-aa13-e58e4f97a9ac