chore(codegen): daily schema refresh (2026-05-21)#12
Conversation
Refreshed src/generated/api.d.ts from the live PostHog OpenAPI schema. No operationId additions or removals for managed resources — only schema field enrichment (new optional fields, descriptions, defaults) on existing components. Generated-By: PostHog Code Task-Id: 34405871-5e31-4616-8bf8-002fe6083aea
|
Re: failing Semgrep is flagging two pre-existing GitHub Actions shell-injection findings in
Neither finding is caused by this PR. The release workflow was last edited in #11 and is unmodified on this branch ( Per my hard-limits, I won't modify |
Summary
Daily OpenAPI schema refresh — regenerated
src/generated/api.d.tsfromhttps://us.posthog.com/api/schema/?format=jsonfiltered throughopenapi-filter.yaml.Spec diff size
src/generated/api.d.ts: +91 / -2 lines (1 file)openapi-filter.yaml: unchangedAll edits are schema-level enrichment on existing components — no new paths, no new operationIds for managed resources:
InsightVizNode: new optionalresultCustomizationsfield (per-breakdown color customizations)ExperimentSavedMetric+PatchedExperimentSavedMetric: addedquery(typedunknown) and field-level descriptionsProject+PatchedProject: addedtest_account_filters(typedunknown) with extended docstringTeamCustomerAnalyticsConfig: previouslyRecord<string, never>, now has typed fields (activity_event,signup_pageview_event,signup_event,subscription_event,payment_event,account_group_type_index)TrendsFilter: docstrings only —aggregationAxisFormat,aggregationAxisPostfix,aggregationAxisPrefix,decimalPlacesexperiments_list: newprompt_namequery parameterNew operationIds added to the filter
None. None of the operationIds new to the live spec correspond to core CRUD for managed resource families. The drift detector flagged a large list of operationIds that exist in the live spec but are absent from
openapi-filter.yaml— review confirms they were not previously filtered in either (e.g.*_activity_retrieve,*_bulk_update_tags_create, sharing/collaborators, environment-prefixed duplicates, internal admin endpoints). For managed families, only PUT update endpoints (cohorts_update,experiments_update,experiment_holdouts_update,experiment_saved_metrics_update,event_schemas_update,event_schemas_partial_update,schema_property_groups_update) are new — but the clients all use PATCH (partial_update), so adding them would be dead weight.Resources touched
None. No client
client.ts,pipeline.ts, or test edits — the schema additions are field-only and don't break any existing Zod schemas.pnpm typecheckandpnpm test(291 tests across 35 files) both pass cleanly.Unresolved drift
None. No operationIds disappeared from the live spec that we were previously managing — all 31 paths we filter in continue to exist.
TaskRun
Task-Id:
34405871-5e31-4616-8bf8-002fe6083aea