Adopting generated API types Overview PostHog generates TypeScript API client functions and types from Django serializers via the OpenAPI pipeline: Generated files live in: - Core: , , and - Products: , , and Generated types use the suffix ( , ). Handwritten types never do. This skill guides replacing manual API calls and handwritten types with generated equivalents. The three manual patterns to migrate The legacy ( 6000 lines) has three layers, all migration targets: 1. High-level object API (most common) Domain-specific convenience methods on the object: These are the most widely used patte…