:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(devex): register canonical /api/projects/ route for env-only endpoints (#60407)
Julian Bez7ce43b8f9dac
diff --git a/.semgrep/devex-rules/no-environments-api-urls-frontend.yaml b/.semgrep/devex-rules/no-environments-api-urls-frontend.yamlnew file mode 100644index 000000000000..f587e40f4245--- /dev/null+++ b/.semgrep/devex-rules/no-environments-api-urls-frontend.yaml@@ -0,0 +1,136 @@+rules:+ - id: no-environments-api-urls-frontend+ message: |+ Hand-coded `/api/environments/...` URL in product frontend code. The+ canonical path is `/api/projects/:team_id/...`; `/api/environments/`+ is a backward-compat alias that's auto-marked `deprecated: true` in+ the OpenAPI schema and skipped by Orval's TypeScript codegen.++ Prefer one of:+ • the generated client function — see `/products/<product>/frontend/generated/api.ts`+ (run `hogli product:maturity --codegen <product>` for the suggested function)+ • a literal `/api/projects/${teamId}/...` URL with one of the+ `currentTeamIdStrict` / `currentProjectIdStrict` selectors++ A handful of legacy files are listed under `paths.exclude` below as the+ existing migration backlog — when you migrate one of them, remove it+ from the list so the rule gates regressions there too. The list should+ only shrink over time.++ If a specific call genuinely has to stay on the env path (e.g. the+ backend hasn't migrated yet — `persons/properties` is one such case),+ add `// nosemgrep: no-environments-api-urls-frontend` above the line+ with a short comment explaining why.+ severity: ERROR+ languages: [typescript, javascript]+ paths:+ include:+ - 'frontend/'+ - 'products/*/frontend/'+ exclude:+ # tests, fixtures, and stories legitimately exercise env URLs to+ # match what the calling logic currently constructs+ - '**/*.test.ts'+ - '**/*.test.tsx'+ - '**/*.spec.ts'+ - '**/*.spec.tsx'+ - '**/test/**'+ - '**/__tests__/**'+ - '**/testUtils.ts'+ - '**/testUtils.tsx'+ - '**/*.stories.tsx'+ - '**/*.stories.ts'+ - '**/__mocks__/**'+ - '**/mocks/**'+ # codegen output mirrors the OpenAPI schema (which still has env paths)+ - '**/generated/**'+ # toolbar runs in third-party page context — separate concern+ - '/frontend/src/toolbar/'+ # --- Migration backlog: shrink this list as files migrate ---+ # Each file below still constructs hand-coded `/api/environments/`+ # or `api/environments/` URLs. Removing a file from this list+ # re-enables the gate for it.+ - '/frontend/src/layout/navigation-3000/sidepanel/panels/activity/sidePanelNotificationsLogic.tsx'+ - '/frontend/src/lib/approvals/approvalsGateLogic.ts'+ - '/frontend/src/lib/components/HelpMenu/healthSummaryLogic.tsx'+ - '/frontend/src/lib/components/PropertiesTimeline/propertiesTimelineLogic.ts'+ - '/frontend/src/lib/components/PropertyFilters/components/TaxonomicPropertyFilter.tsx'+ - '/frontend/src/lib/components/PropertyFilters/components/groupKeySelectLogic.ts'+ - '/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx'+ - '/frontend/src/lib/components/TaxonomicFilter/utils/buildGroupAnalyticsGroups.ts'+ - '/frontend/src/lib/components/TaxonomicFilter/utils/buildTaxonomicGroups.tsx'+ - '/frontend/src/lib/logic/eventIngestionRestrictionLogic.ts'+ - '/frontend/src/lib/readOnlyGuard.ts'+ - '/frontend/src/models/dashboardsModel.tsx'+ - '/frontend/src/models/propertyDefinitionsModel.ts'+ - '/frontend/src/queries/nodes/DataNode/dataNodeLogic.ts'+ - '/frontend/src/scenes/approvals/approvalLogic.tsx'+ - '/frontend/src/scenes/approvals/approvalsLogic.tsx'+ - '/frontend/src/scenes/approvals/changeRequestsLogic.ts'+ - '/frontend/src/scenes/approvals/pendingApprovalsLogic.ts'+ - '/frontend/src/scenes/audit-logs/ExportsListHelpers.tsx'+ - '/frontend/src/scenes/audit-logs/advancedActivityLogsLogic.tsx'+ - '/frontend/src/scenes/authentication/cliLiveLogic.ts'+ - '/frontend/src/scenes/dashboard/dashboardLogic.tsx'+ - '/frontend/src/scenes/dashboard/dashboardUtils.ts'+ - '/frontend/src/scenes/dashboard/dashboards/dashboardsLogic.ts'+ - '/frontend/src/scenes/dashboard/newDashboardLogic.ts'+ - '/frontend/src/scenes/data-management/MaterializedColumns/CreateSlotModal.tsx'+ - '/frontend/src/scenes/data-management/MaterializedColumns/materializedColumnsLogic.ts'+ - '/frontend/src/scenes/data-management/events/eventInsightsLogic.ts'+ - '/frontend/src/scenes/data-management/variables/insightsLoader.ts'+ - '/frontend/src/scenes/data-pipelines/event-filtering/eventFilterLogic.ts'+ - '/frontend/src/scenes/experiments/experimentLogic.tsx'+ - '/frontend/src/scenes/feature-flags/defaultEvaluationContextsLogic.ts'+ - '/frontend/src/scenes/feature-flags/defaultReleaseConditionsLogic.ts'+ - '/frontend/src/scenes/feature-flags/featureFlagLogic.ts'+ - '/frontend/src/scenes/groups/groupLogic.ts'+ - '/frontend/src/scenes/groups/relatedGroupsLogic.ts'+ - '/frontend/src/scenes/health/categoryDetail/healthCategoryDetailLogic.ts'+ - '/frontend/src/scenes/health/healthSceneLogic.tsx'+ - '/frontend/src/scenes/health/pipelineStatus/pipelineHealthLogic.ts'+ - '/frontend/src/scenes/heatmaps/scenes/heatmap/heatmapLogic.ts'+ - '/frontend/src/scenes/insights/insightUsageLogic.ts'+ - '/frontend/src/scenes/insights/utils.tsx'+ - '/frontend/src/scenes/project-homepage/projectHomepageLogic.tsx'+ - '/frontend/src/scenes/saved-insights/addSavedInsightsModalLogic.ts'+ - '/frontend/src/scenes/saved-insights/savedInsightsLogic.ts'+ - '/frontend/src/scenes/settings/environment/coreEventsLogic.ts'+ - '/frontend/src/scenes/settings/environment/experimentsConfigLogic.ts'+ - '/frontend/src/scenes/settings/organization/Approvals/approvalPoliciesLogic.tsx'+ - '/frontend/src/scenes/surveys/surveyLogic.tsx'+ - '/frontend/src/scenes/teamLogic.tsx'+ - '/frontend/src/scenes/web-analytics/tabs/marketing-analytics/frontend/logic/marketingAnalyticsSettingsLogic.ts'+ - '/frontend/src/scenes/web-analytics/tabs/marketing-analytics/frontend/logic/utmAuditLogic.ts'+ - '/products/ai_observability/frontend/aiObservabilitySessionDataLogic.ts'+ - '/products/ai_observability/frontend/clusters/clusteringConfigLogic.ts'+ - '/products/ai_observability/frontend/clusters/clusteringJobsLogic.ts'+ - '/products/ai_observability/frontend/clusters/clustersAdminLogic.ts'+ - '/products/ai_observability/frontend/evaluations/evaluationReportLogic.ts'+ - '/products/ai_observability/frontend/evaluations/llmEvaluationLogic.ts'+ - '/products/ai_observability/frontend/evaluations/llmEvaluationsLogic.ts'+ - '/products/ai_observability/frontend/llmGenerationSentimentLazyLoaderLogic.ts'+ - '/products/ai_observability/frontend/llmPersonsLazyLoaderLogic.ts'+ - '/products/ai_observability/frontend/llmSentimentLazyLoaderLogic.ts'+ - '/products/ai_observability/frontend/playground/llmPlaygroundModelLogic.ts'+ - '/products/ai_observability/frontend/playground/llmPlaygroundPromptsLogic.ts'+ - '/products/ai_observability/frontend/settings/llmProviderKeysLogic.ts'+ - '/products/ai_observability/frontend/summary-view/summaryViewLogic.ts'+ - '/products/ai_observability/frontend/tags/llmTaggerLogic.ts'+ - '/products/ai_observability/frontend/tags/llmTaggersLogic.ts'+ - '/products/ai_observability/frontend/text-view/textViewLogic.ts'+ - '/products/ai_observability/frontend/traceReviews/traceReviewsApi.ts'+ - '/products/conversations/frontend/components/SavedViews/ticketViewsLogic.ts'+ - '/products/conversations/frontend/scenes/tickets/supportTicketsSceneLogic.ts'+ - '/products/error_tracking/frontend/scenes/ErrorTrackingScene/ErrorTrackingScene.tsx'+ - '/products/logs/frontend/components/LogsViewer/Filters/serviceFilterLogic.ts'+ - '/products/logs/frontend/components/LogsViews/logsViewsLogic.ts'+ - '/products/mcp_store/frontend/scene/ServerDetailPanel.tsx'+ - '/products/workflows/frontend/OptOuts/customerIOImportLogic.ts'+ # No leading slash on the regex — catches both `/api/environments/` and+ # bare `api/environments/` (the form used by api.get/create callers).+ pattern-regex: 'api/environments/'+ metadata:+ category: best-practice+ subcategory:+ - auditdiff --git a/.semgrep/devex-rules/no-environments-router-register.yaml b/.semgrep/devex-rules/no-environments-router-register.yamlnew file mode 100644index 000000000000..026333816f4c--- /dev/null+++ b/.semgrep/devex-rules/no-environments-router-register.yaml@@ -0,0 +1,43 @@+rules:+ - id: no-environments-router-register+ message: |+ Direct `environments_router.register(...)` is banned. `/api/projects/` is+ the canonical path; `/api/environments/` exists only as a back-compat+ alias for clients that integrated against it before the project↔environment+ split was rolled back.++ For new team-nested endpoints, register directly under `projects_router`+ with no env alias:++ projects_router.register(+ r"my_thing", MyThingViewSet, "project_my_thing", ["team_id"],+ )++ `register_legacy_dual_route_team_nested_viewset(...)` in+ `posthog/api/__init__.py` exists only to preserve dual-route surfaces+ that already shipped — it is NOT a default for new endpoints. After+ the rollback there's no legitimate reason to register a new endpoint+ env-only; doing so means the project path is never generated by Orval+ and consumers are pinned to the deprecated surface.++ If you have a genuine edge case (e.g. an endpoint where the env-side+ and project-side need different parent lookups), add+ `# nosemgrep: no-environments-router-register` on the line with a+ short comment explaining why the helper doesn't fit.+ severity: ERROR+ languages: [python]+ paths:+ include:+ - 'posthog/api/__init__.py'+ patterns:+ - pattern: environments_router.register(...)+ # Exempt the helper's body by name. Listed explicitly so the+ # exemption can't be widened by wrapping a registration in any random+ # function.+ - pattern-not-inside: |+ def register_legacy_dual_route_team_nested_viewset(...):+ ...+ metadata:+ category: best-practice+ subcategory:+ - auditdiff --git a/ee/urls.py b/ee/urls.pyindex b4a8516d3c0b..69ca8a93c24e 100644--- a/ee/urls.py+++ b/ee/urls.py@@ -43,7 +43,7 @@ def extend_api_router() -> None:environments_router,legacy_project_dashboards_router,organizations_router,- register_grandfathered_environment_nested_viewset,+ register_legacy_dual_route_team_nested_viewset,router as root_router,)@@ -64,7 +64,7 @@ def extend_api_router() -> None:"organization_role_memberships",["organization_id", "role_id"],)- register_grandfathered_environment_nested_viewset(r"hooks", hooks.HookViewSet, "environment_hooks", ["team_id"])+ register_legacy_dual_route_team_nested_viewset(r"hooks", hooks.HookViewSet, "environment_hooks", ["team_id"])environment_dashboards_router.register(r"collaborators",@@ -79,7 +79,7 @@ def extend_api_router() -> None:["project_id", "dashboard_id"],)- env_subscriptions_router, _ = register_grandfathered_environment_nested_viewset(+ _, env_subscriptions_router = register_legacy_dual_route_team_nested_viewset(r"subscriptions", subscription.SubscriptionViewSet, "environment_subscriptions", ["team_id"])env_subscriptions_router.register(diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/activity/sidePanelNotificationsLogic.test.ts b/frontend/src/layout/navigation-3000/sidepanel/panels/activity/sidePanelNotificationsLogic.test.tsindex ad68a727b4df..77620d95ddc4 100644--- a/frontend/src/layout/navigation-3000/sidepanel/panels/activity/sidePanelNotificationsLogic.test.ts+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/activity/sidePanelNotificationsLogic.test.ts@@ -118,7 +118,7 @@ describe('sidePanelNotificationsLogic.loadGroupChildren', () => {beforeEach(() => {useMocks({get: {- '/api/environments/:tid/notifications/': () => [+ '/api/projects/:tid/notifications/': () => [200,{results: [makeNotification({ id: 'child-1' }), makeNotification({ id: 'child-2' })],@@ -162,8 +162,8 @@ describe('sidePanelNotificationsLogic.toggleGroupRead', () => {beforeEach(() => {useMocks({post: {- '/api/environments/:tid/notifications/mark_read_bulk/': () => [200, { updated: 2 }],- '/api/environments/:tid/notifications/mark_unread_bulk/': () => [200, { updated: 2 }],+ '/api/projects/:tid/notifications/mark_read_bulk/': () => [200, { updated: 2 }],+ '/api/projects/:tid/notifications/mark_unread_bulk/': () => [200, { updated: 2 }],},})initKeaTests()diff --git a/posthog/api/__init__.py b/posthog/api/__init__.pyindex 59f97f799cde..d375463dde1f 100644--- a/posthog/api/__init__.py+++ b/posthog/api/__init__.py@@ -231,41 +231,56 @@ projects_router.register(r"environments", team.ProjectEnvironmentsViewSet, "projenvironments_router = router.register(r"environments", team.RootTeamViewSet, "environments")-def register_grandfathered_environment_nested_viewset(+def register_legacy_dual_route_team_nested_viewset(prefix: str, viewset: type[viewsets.GenericViewSet], basename: str, parents_query_lookups: list[str]) -> tuple[NestedRegistryItem, NestedRegistryItem]:"""- Register a team-nested viewset under both /api/projects/:team_id/ (canonical)- and /api/environments/:team_id/ (backward-compat alias).+ Register a team-nested viewset under BOTH /api/projects/:team_id/ and+ /api/environments/:team_id/, for endpoints whose dual-route surface needs+ to be preserved for existing clients.Background: PostHog briefly split projects and environments as separateconcepts then rolled the split back. /api/projects/ is the canonical path;/api/environments/ is preserved only for clients that integrated against it- during the split (SDKs, customer integrations) and is auto-marked+ during the split (SDKs, customer integrations), and gets auto-marked`deprecated: true` in the generated OpenAPI schema by the postprocess hook- in posthog.api.documentation whenever a matching /api/projects/ route exists.+ in posthog.api.documentation whenever a matching /api/projects/ route+ exists. That deprecation flag is what makes Orval pick the project route+ as canonical for the generated TypeScript client.++ The `basename` argument encodes which side was the original canonical one,+ which matters for stable URL-reverse names:+ • `project_<X>` — project is canonical; env is a back-compat alias.+ Pass this for endpoints that were (re-)introduced+ env-only after the rollback by mistake.+ • `environment_<X>` — env was the canonical surface from the split era;+ project alias is back-filled. Pass this for legacy+ env-canonical endpoints.+ Either way, the project URL ends up with basename `project_<X>` and the env+ URL with `environment_<X>`.DO NOT USE FOR NEW ENDPOINTS. New team-nested endpoints should register- directly under projects_router. This helper exists to preserve the dual-route- surface for endpoints that were already exposed both ways before the rollback.+ directly under projects_router with no env alias — `# nosemgrep` markers+ around env registrations are the smell to look for in code review; this+ helper is the smell to look for in PRs that *add* registrations.- Returns (environment_nested, project_nested) — note that despite the names,- the project_nested route is the canonical one; the environment_nested route- is the deprecated alias.+ Returns (project_nested, environment_nested)."""if parents_query_lookups[0] != "team_id":raise ValueError("Only endpoints with team_id as the first parent query lookup can be team-nested")- if not basename.startswith("environment_"):- raise ValueError("Only endpoints with a basename starting with `environment_` can use this helper")- environment_nested = environments_router.register(prefix, viewset, basename, parents_query_lookups)- project_nested = projects_router.register(- prefix, viewset, basename.replace("environment_", "project_"), parents_query_lookups- )- return environment_nested, project_nested---environment_plugins_configs_router, legacy_project_plugins_configs_router = (- register_grandfathered_environment_nested_viewset(+ if basename.startswith("project_"):+ stem = basename.removeprefix("project_")+ elif basename.startswith("environment_"):+ stem = basename.removeprefix("environment_")+ else:+ raise ValueError("basename must start with `project_` or `environment_`")+ project_nested = projects_router.register(prefix, viewset, "project_" + stem, parents_query_lookups)+ environment_nested = environments_router.register(prefix, viewset, "environment_" + stem, parents_query_lookups)+ return project_nested, environment_nested+++legacy_project_plugins_configs_router, environment_plugins_configs_router = (+ register_legacy_dual_route_team_nested_viewset(r"plugin_configs", plugin.PluginConfigViewSet, "environment_plugin_configs", ["team_id"]))@@ -281,25 +296,25 @@ legacy_project_plugins_configs_router.register("project_plugin_config_logs",["team_id", "plugin_config_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"pipeline_transformation_configs",plugin.PipelineTransformationsConfigsViewSet,"environment_pipeline_transformation_configs",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"pipeline_destination_configs",plugin.PipelineDestinationsConfigsViewSet,"environment_pipeline_destination_configs",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"pipeline_frontend_apps_configs",plugin.PipelineFrontendAppsConfigsViewSet,"environment_pipeline_frontend_apps_configs",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"pipeline_import_apps_configs",plugin.PipelineImportAppsConfigsViewSet,"environment_pipeline_import_apps_configs",@@ -323,7 +338,7 @@ projects_router.register(projects_router.register(r"my_notifications",my_notifications.MyNotificationsViewSet,- "project_notifications",+ "project_my_notifications",["project_id"],)project_feature_flags_router = projects_router.register(@@ -393,76 +408,76 @@ projects_router.register("project_dashboard_templates",["project_id"],)-environment_dashboards_router, legacy_project_dashboards_router = register_grandfathered_environment_nested_viewset(+legacy_project_dashboards_router, environment_dashboards_router = register_legacy_dual_route_team_nested_viewset(r"dashboards", dashboard.DashboardsViewSet, "environment_dashboards", ["team_id"])-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"column_configurations",ColumnConfigurationViewSet,- "environment_column_configurations",+ "project_column_configurations",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"event_filter",EventFilterConfigViewSet,- "environment_event_filter",+ "project_event_filter",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"health_issues",health_issue.HealthIssueViewSet,- "environment_health_issues",+ "project_health_issues",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_prompts",LLMPromptViewSet,- "environment_llm_prompts",+ "project_llm_prompts",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_skills",LLMSkillViewSet,- "environment_llm_skills",+ "project_llm_skills",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"exports", exports.ExportedAssetViewSet, "environment_exports", ["team_id"])-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"integrations", integration.IntegrationViewSet, "environment_integrations", ["team_id"])-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"ingestion_warnings",ingestion_warnings.IngestionWarningsViewSet,"environment_ingestion_warnings",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"customer_profile_configs",customer_analytics.CustomerProfileConfigViewSet,- "environment_customer_profile_configs",+ "project_customer_profile_configs",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"customer_journeys",customer_analytics.CustomerJourneyViewSet,- "environment_customer_journeys",+ "project_customer_journeys",["team_id"],)-environment_accounts_router = environments_router.register(+project_accounts_router, environment_accounts_router = register_legacy_dual_route_team_nested_viewset(r"accounts",customer_analytics.AccountViewSet,- "environment_accounts",+ "project_accounts",["team_id"],)@@ -472,6 +487,12 @@ environment_accounts_router.register("environment_account_notebooks",["team_id", "account_id"],)+project_accounts_router.register(+ r"notebooks",+ customer_analytics.AccountNotebookViewSet,+ "project_account_notebooks",+ ["team_id", "account_id"],+)projects_router.register(r"data_management",@@ -480,10 +501,10 @@ projects_router.register(["project_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"materialized_column_slots",materialized_column_slot.MaterializedColumnSlotViewSet,- "environment_materialized_column_slots",+ "project_materialized_column_slots",["team_id"],)@@ -494,38 +515,36 @@ projects_router.register(["project_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"file_system", file_system.FileSystemViewSet, "environment_file_system", ["team_id"])-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"file_system_shortcut",file_system_shortcut.FileSystemShortcutViewSet,"environment_file_system_shortcut",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"persisted_folder",persisted_folder.PersistedFolderViewSet,"environment_persisted_folder",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"user_product_list",user_product_list.UserProductListViewSet,"environment_user_product_list",["team_id"],)-environment_batch_exports_router, legacy_project_batch_exports_router = (- register_grandfathered_environment_nested_viewset(- r"batch_exports", batch_exports.BatchExportViewSet, "environment_batch_exports", ["team_id"]- )+legacy_project_batch_exports_router, environment_batch_exports_router = register_legacy_dual_route_team_nested_viewset(+ r"batch_exports", batch_exports.BatchExportViewSet, "environment_batch_exports", ["team_id"])-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"file_download_batch_exports",file_download.FileDownloadBatchExportOnDemandViewSet,"environment_file_download_batch_exports",@@ -552,28 +571,28 @@ legacy_project_batch_exports_router.register(["team_id", "batch_export_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"warehouse_tables", table.TableViewSet, "environment_warehouse_tables", ["team_id"])-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"warehouse_saved_query_folders",saved_query.DataWarehouseSavedQueryFolderViewSet,"environment_warehouse_saved_query_folders",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"warehouse_saved_queries",saved_query.DataWarehouseSavedQueryViewSet,"environment_warehouse_saved_queries",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"warehouse_view_links",view_link.ViewLinkViewSet,"environment_warehouse_view_links",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"warehouse_view_link", view_link.ViewLinkViewSet, "environment_warehouse_view_link", ["team_id"])@@ -612,16 +631,16 @@ projects_router.register()projects_router.register(r"tags", tagged_item.TaggedItemViewSet, "project_tags", ["project_id"])-register_grandfathered_environment_nested_viewset(r"query", query.QueryViewSet, "environment_query", ["team_id"])+register_legacy_dual_route_team_nested_viewset(r"query", query.QueryViewSet, "environment_query", ["team_id"])# External data resources-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"external_data_sources",external_data_source.ExternalDataSourceViewSet,"environment_external_data_sources",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"data_warehouse",data_warehouse.DataWarehouseViewSet,"environment_data_warehouse",@@ -646,53 +665,53 @@ projects_router.register(["project_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"external_data_schemas",external_data_schema.ExternalDataSchemaViewset,"environment_external_data_schemas",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"fix_hogql",fix_hogql.FixHogQLViewSet,"project_fix_hogql",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"warehouse_saved_query_drafts",saved_query_draft.DataWarehouseSavedQueryDraftViewSet,- "environment_warehouse_saved_query_drafts",+ "project_warehouse_saved_query_drafts",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"managed_viewsets",managed_viewset.DataWarehouseManagedViewSetViewSet,- "environment_managed_viewsets",+ "project_managed_viewsets",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"data_modeling_dags",DAGViewSet,- "environment_data_modeling_dags",+ "project_data_modeling_dags",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"data_modeling_nodes",NodeViewSet,- "environment_data_modeling_nodes",+ "project_data_modeling_nodes",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"data_modeling_edges",EdgeViewSet,- "environment_data_modeling_edges",+ "project_data_modeling_edges",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"notifications",NotificationsViewSet,- "environment_notifications",+ "project_notifications",["team_id"],)@@ -864,20 +883,20 @@ router.register(r"heatmap", LegacyHeatmapViewSet, basename="heatmap")router.register(r"event", LegacyEventViewSet, basename="event")# Nested endpoints CH-register_grandfathered_environment_nested_viewset(r"events", EventViewSet, "environment_events", ["team_id"])+register_legacy_dual_route_team_nested_viewset(r"events", EventViewSet, "environment_events", ["team_id"])projects_router.register(r"actions", ActionViewSet, "project_actions", ["project_id"])projects_router.register(r"web_experiments", WebExperimentViewSet, "web_experiments", ["project_id"])projects_router.register(r"cohorts", CohortViewSet, "project_cohorts", ["project_id"])-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"elements",ElementViewSet,"environment_elements",["team_id"], # TODO: Can be removed?)-environment_sessions_recordings_router, legacy_project_session_recordings_router = (- register_grandfathered_environment_nested_viewset(+legacy_project_session_recordings_router, environment_sessions_recordings_router = (+ register_legacy_dual_route_team_nested_viewset(r"session_recordings",SessionRecordingViewSet,"environment_session_recordings",@@ -885,26 +904,26 @@ environment_sessions_recordings_router, legacy_project_session_recordings_router))-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"session_recording_external_references",SessionRecordingExternalReferenceViewSet,- "environment_session_recording_external_references",+ "project_session_recording_external_references",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"session_recording_playlists",SessionRecordingPlaylistViewSet,"environment_session_recording_playlist",["team_id"],)-register_grandfathered_environment_nested_viewset(r"heatmaps", HeatmapViewSet, "environment_heatmaps", ["team_id"])-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"heatmaps", HeatmapViewSet, "environment_heatmaps", ["team_id"])+register_legacy_dual_route_team_nested_viewset(r"heatmap_screenshots", HeatmapScreenshotViewSet, "environment_heatmap_screenshots", ["team_id"])-register_grandfathered_environment_nested_viewset(r"saved", SavedHeatmapViewSet, "environment_saved", ["team_id"])-register_grandfathered_environment_nested_viewset(r"sessions", SessionViewSet, "environment_sessions", ["team_id"])+register_legacy_dual_route_team_nested_viewset(r"saved", SavedHeatmapViewSet, "environment_saved", ["team_id"])+register_legacy_dual_route_team_nested_viewset(r"sessions", SessionViewSet, "environment_sessions", ["team_id"])if EE_AVAILABLE:from products.experiments.backend.presentation.views import EnterpriseExperimentsViewSet@@ -922,17 +941,17 @@ if EE_AVAILABLE:projects_router.register(r"experiment_saved_metrics", ExperimentSavedMetricViewSet, "project_experiment_saved_metrics", ["project_id"])- register_grandfathered_environment_nested_viewset(r"groups", GroupsViewSet, "environment_groups", ["team_id"])+ register_legacy_dual_route_team_nested_viewset(r"groups", GroupsViewSet, "environment_groups", ["team_id"])group_types_router = projects_router.register(r"groups_types", GroupsTypesViewSet, "project_groups_types", ["project_id"])group_types_router.register(r"metrics", GroupUsageMetricViewSet, "project_groups_metrics", ["project_id", "group_type_index"])- environment_insights_router, legacy_project_insights_router = register_grandfathered_environment_nested_viewset(+ legacy_project_insights_router, environment_insights_router = register_legacy_dual_route_team_nested_viewset(r"insights", EnterpriseInsightsViewSet, "environment_insights", ["team_id"])- register_grandfathered_environment_nested_viewset(+ register_legacy_dual_route_team_nested_viewset(r"persons", EnterprisePersonViewSet, "environment_persons", ["team_id"])router.register(r"person", LegacyEnterprisePersonViewSet, "persons")@@ -959,10 +978,10 @@ if EE_AVAILABLE:)else:- environment_insights_router, legacy_project_insights_router = register_grandfathered_environment_nested_viewset(+ legacy_project_insights_router, environment_insights_router = register_legacy_dual_route_team_nested_viewset(r"insights", InsightViewSet, "environment_insights", ["team_id"])- register_grandfathered_environment_nested_viewset(r"persons", PersonViewSet, "environment_persons", ["team_id"])+ register_legacy_dual_route_team_nested_viewset(r"persons", PersonViewSet, "environment_persons", ["team_id"])router.register(r"person", LegacyPersonViewSet, "persons")environment_dashboards_router.register(@@ -1038,6 +1057,11 @@ projects_router.register(["project_id"],)+# Env side is team-scoped (team_id) while project side below is genuinely+# project-scoped (project_id); register_legacy_dual_route_team_nested_viewset+# assumes both sides share the same parent lookup, so these stay as manual+# dual-registrations.+# nosemgrep: no-environments-router-registerenvironments_router.register(r"error_tracking/releases",ErrorTrackingReleaseViewSet,@@ -1052,6 +1076,8 @@ projects_router.register(["project_id"],)+# Same shape as error_tracking/releases above (env team_id vs project project_id).+# nosemgrep: no-environments-router-registerenvironments_router.register(r"error_tracking/symbol_sets",ErrorTrackingSymbolSetViewSet,@@ -1066,101 +1092,101 @@ projects_router.register(["project_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/assignment_rules",ErrorTrackingAssignmentRuleViewSet,- "environment_error_tracking_assignment_rule",+ "project_error_tracking_assignment_rule",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/grouping_rules",ErrorTrackingGroupingRuleViewSet,- "environment_error_tracking_grouping_rule",+ "project_error_tracking_grouping_rule",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/suppression_rules",ErrorTrackingSuppressionRuleViewSet,- "environment_error_tracking_suppression_rule",+ "project_error_tracking_suppression_rule",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/recommendations",ErrorTrackingRecommendationViewSet,- "environment_error_tracking_recommendation",+ "project_error_tracking_recommendation",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/fingerprints",ErrorTrackingFingerprintViewSet,- "environment_error_tracking_fingerprint",+ "project_error_tracking_fingerprint",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/issues",ErrorTrackingIssueViewSet,- "environment_error_tracking_issue",+ "project_error_tracking_issue",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/query",ErrorTrackingQueryViewSet,- "environment_error_tracking_query",+ "project_error_tracking_query",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/external_references",ErrorTrackingExternalReferenceViewSet,- "environment_error_tracking_external_references",+ "project_error_tracking_external_references",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/stack_frames",ErrorTrackingStackFrameViewSet,- "environment_error_tracking_stack_frames",+ "project_error_tracking_stack_frames",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/spike_detection_config",ErrorTrackingSpikeDetectionConfigViewSet,- "environment_error_tracking_spike_detection_config",+ "project_error_tracking_spike_detection_config",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/settings",ErrorTrackingSettingsViewSet,- "environment_error_tracking_settings",+ "project_error_tracking_settings",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/spike_events",ErrorTrackingSpikeEventViewSet,- "environment_error_tracking_spike_events",+ "project_error_tracking_spike_events",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"error_tracking/git-provider-file-links",GitProviderFileLinksViewSet,- "environment_error_tracking_git_provider_file_links",+ "project_error_tracking_git_provider_file_links",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"signals",SignalViewSet,- "environment_signals",+ "project_signals",["team_id"],)signal_reports_router = projects_router.register(@@ -1229,7 +1255,7 @@ projects_router.register(["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"quick_filters",quick_filters.QuickFilterViewSet,"project_quick_filters",@@ -1250,21 +1276,21 @@ projects_router.register(["project_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"hog_functions",hog_function.HogFunctionViewSet,"environment_hog_functions",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"hog_flows",hog_flow.HogFlowViewSet,"environment_hog_flows",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"hog_flow_templates",hog_flow_template.HogFlowTemplateViewSet,"environment_hog_flow_templates",@@ -1287,8 +1313,11 @@ projects_router.register(["team_id"],)-environments_router.register(- r"conversations/views", conversations.TicketViewViewSet, "environment_conversations_views", ["team_id"]+register_legacy_dual_route_team_nested_viewset(+ r"conversations/views",+ conversations.TicketViewViewSet,+ "project_conversations_views",+ ["team_id"],)projects_router.register(@@ -1312,21 +1341,21 @@ projects_router.register(["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"metalytics",metalytics.MetalyticsViewSet,"environment_metalytics",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"insight_variables",InsightVariableViewSet,"environment_insight_variables",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"alerts",alert.AlertViewSet,"environment_alerts",@@ -1335,105 +1364,113 @@ register_grandfathered_environment_nested_viewset(projects_router.register(r"search", search.SearchViewSet, "project_search", ["project_id"])-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"project_secret_api_keys",project_secret_api_key.ProjectSecretAPIKeyViewSet,"environment_project_secret_api_keys",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"data_color_themes", data_color_theme.DataColorThemeViewSet, "environment_data_color_themes", ["team_id"])-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"web_vitals",web_vitals.WebVitalsViewSet,- "environment_web_vitals",+ "project_web_vitals",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"web_analytics_filter_presets",WebAnalyticsFilterPresetViewSet,- "environment_web_analytics_filter_preset",+ "project_web_analytics_filter_preset",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"web_analytics",web_analytics_api.WebAnalyticsViewSet,- "environment_web_analytics",+ "project_web_analytics",["team_id"],)router.register(r"wizard", wizard.SetupWizardViewSet, "wizard")-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"data_modeling_jobs",data_modeling_job.DataModelingJobViewSet,"environment_data_modeling_jobs",["team_id"],)-environments_router.register(r"lineage", LineageViewSet, "environment_lineage", ["team_id"])+register_legacy_dual_route_team_nested_viewset(+ r"lineage",+ LineageViewSet,+ "project_lineage",+ ["team_id"],+)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"messaging_templates",MessageTemplatesViewSet,- "environment_messaging_templates",+ "project_messaging_templates",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"messaging_categories",MessageCategoryViewSet,- "environment_messaging_categories",+ "project_messaging_categories",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"messaging_preferences",MessagePreferencesViewSet,- "environment_messaging_preferences",+ "project_messaging_preferences",["team_id"],)# Logs endpoints-register_grandfathered_environment_nested_viewset(r"logs", logs.LogsViewSet, "environment_logs", ["team_id"])-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"logs", logs.LogsViewSet, "environment_logs", ["team_id"])+register_legacy_dual_route_team_nested_viewset(r"logs/alerts", logs.LogsAlertViewSet, "environment_logs_alerts", ["team_id"])-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"logs/sampling_rules", logs.LogsSamplingRuleViewSet, "environment_logs_sampling_rules", ["team_id"])-environments_router.register(r"logs/views", logs.LogsViewViewSet, "environment_logs_views", ["team_id"])+register_legacy_dual_route_team_nested_viewset(+ r"logs/views",+ logs.LogsViewViewSet,+ "project_logs_views",+ ["team_id"],+)# Metrics endpoints-register_grandfathered_environment_nested_viewset(- r"metrics", metrics.MetricsViewSet, "environment_metrics", ["team_id"]-)+register_legacy_dual_route_team_nested_viewset(r"metrics", metrics.MetricsViewSet, "environment_metrics", ["team_id"])-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"logs/explainLogWithAI",logs.LogExplainViewSet,- "environment_logs_explain_with_ai",+ "project_logs_explain_with_ai",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"endpoints", endpoints.EndpointViewSet, "environment_endpoints", ["team_id"])-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"user_interviews",UserInterviewViewSet,- "environment_user_interviews",+ "project_user_interviews",["team_id"],)-user_interview_topics_router = environments_router.register(+project_user_interview_topics_router, user_interview_topics_router = register_legacy_dual_route_team_nested_viewset(r"user_interview_topics",UserInterviewTopicViewSet,- "environment_user_interview_topics",+ "project_user_interview_topics",["team_id"],)user_interview_topics_router.register(@@ -1442,6 +1479,12 @@ user_interview_topics_router.register("environment_user_interview_topic_interviewees",["team_id", "topic_id"],)+project_user_interview_topics_router.register(+ r"interviewees",+ IntervieweeContextViewSet,+ "project_user_interview_topic_interviewees",+ ["team_id", "topic_id"],+)visual_review_repos_router = projects_router.register(r"visual_review/repos",@@ -1468,45 +1511,45 @@ projects_router.register(["project_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"tracing/spans",TracingSpansViewSet,- "environment_tracing_spans",+ "project_tracing_spans",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"desktop_recordings",DesktopRecordingViewSet,- "environment_desktop_recordings",+ "project_desktop_recordings",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"csp-reporting",CSPReportingViewSet,- "environment_csp_reporting",+ "project_csp_reporting",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"marketing_analytics",marketing_analytics.MarketingAnalyticsViewSet,- "environment_marketing_analytics",+ "project_marketing_analytics",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"revenue_analytics/taxonomy",revenue_analytics.RevenueAnalyticsTaxonomyViewSet,- "environment_revenue_analytics_taxonomy",+ "project_revenue_analytics_taxonomy",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"revenue_analytics/joins",revenue_analytics.RevenueAnalyticsJoinViewSet,- "environment_revenue_analytics_joins",+ "project_revenue_analytics_joins",["team_id"],)@@ -1519,171 +1562,171 @@ projects_router.register(projects_router.register(r"js-snippet", JsSnippetViewSet, "project_js_snippet", ["team_id"])-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"datasets",DatasetViewSet,"environment_datasets",["team_id"],)-register_grandfathered_environment_nested_viewset(+register_legacy_dual_route_team_nested_viewset(r"dataset_items",DatasetItemViewSet,"environment_dataset_items",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"evaluations",EvaluationViewSet,- "environment_evaluations",+ "project_evaluations",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"taggers",TaggerViewSet,- "environment_taggers",+ "project_taggers",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"evaluation_runs",EvaluationRunViewSet,- "environment_evaluation_runs",+ "project_evaluation_runs",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/text_repr",AIObservabilityTextReprViewSet,- "environment_llm_analytics_text_repr",+ "project_llm_analytics_text_repr",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/summarization",AIObservabilitySummarizationViewSet,- "environment_llm_analytics_summarization",+ "project_llm_analytics_summarization",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/evaluation_summary",LLMEvaluationSummaryViewSet,- "environment_llm_analytics_evaluation_summary",+ "project_llm_analytics_evaluation_summary",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/translate",AIObservabilityTranslateViewSet,- "environment_llm_analytics_translate",+ "project_llm_analytics_translate",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/provider_keys",LLMProviderKeyViewSet,- "environment_llm_analytics_provider_keys",+ "project_llm_analytics_provider_keys",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/provider_key_validations",LLMProviderKeyValidationViewSet,- "environment_llm_analytics_provider_key_validations",+ "project_llm_analytics_provider_key_validations",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/models",LLMModelsViewSet,- "environment_llm_analytics_models",+ "project_llm_analytics_models",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/evaluation_config",EvaluationConfigViewSet,- "environment_llm_analytics_evaluation_config",+ "project_llm_analytics_evaluation_config",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/clustering_runs",AIObservabilityClusteringRunViewSet,- "environment_llm_analytics_clustering_runs",+ "project_llm_analytics_clustering_runs",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/clustering_config",ClusteringConfigViewSet,- "environment_llm_analytics_clustering_config",+ "project_llm_analytics_clustering_config",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/clustering_jobs",ClusteringJobViewSet,- "environment_llm_analytics_clustering_jobs",+ "project_llm_analytics_clustering_jobs",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/sentiment",AIObservabilitySentimentViewSet,- "environment_llm_analytics_sentiment",+ "project_llm_analytics_sentiment",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/offline_evaluations",AIObservabilityOfflineEvaluationsViewSet,- "environment_llm_analytics_offline_evaluations",+ "project_llm_analytics_offline_evaluations",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/review_queue_items",ReviewQueueItemViewSet,- "environment_llm_analytics_review_queue_items",+ "project_llm_analytics_review_queue_items",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/review_queues",ReviewQueueViewSet,- "environment_llm_analytics_review_queues",+ "project_llm_analytics_review_queues",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/score_definitions",ScoreDefinitionViewSet,- "environment_llm_analytics_score_definitions",+ "project_llm_analytics_score_definitions",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/trace_reviews",TraceReviewViewSet,- "environment_llm_analytics_trace_reviews",+ "project_llm_analytics_trace_reviews",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"llm_analytics/evaluation_reports",EvaluationReportViewSet,- "environment_llm_analytics_evaluation_reports",+ "project_llm_analytics_evaluation_reports",["team_id"],)-environment_vision_scanners_router = environments_router.register(+project_vision_scanners_router, environment_vision_scanners_router = register_legacy_dual_route_team_nested_viewset(r"vision/scanners",ReplayScannerViewSet,- "environment_vision_scanners",+ "project_vision_scanners",["team_id"],)environment_vision_scanners_router.register(@@ -1692,57 +1735,63 @@ environment_vision_scanners_router.register("environment_vision_scanner_observations",["team_id", "scanner_id"],)-environments_router.register(+project_vision_scanners_router.register(+ r"observations",+ ReplayObservationViewSet,+ "project_vision_scanner_observations",+ ["team_id", "scanner_id"],+)+register_legacy_dual_route_team_nested_viewset(r"vision/observations",SessionReplayObservationViewSet,- "environment_vision_observations",+ "project_vision_observations",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"vision/quota",VisionQuotaViewSet,- "environment_vision_quota",+ "project_vision_quota",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"change_requests",approval_api.ChangeRequestViewSet,- "environment_change_requests",+ "project_change_requests",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"approval_policies",approval_api.ApprovalPolicyViewSet,- "environment_approval_policies",+ "project_approval_policies",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"core_events",CoreEventViewSet,- "environment_core_events",+ "project_core_events",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"mcp_tools",MCPToolsViewSet,- "environment_mcp_tools",+ "project_mcp_tools",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"mcp_servers",mcp_store.MCPServerViewSet,- "environment_mcp_servers",+ "project_mcp_servers",["team_id"],)-environments_router.register(+register_legacy_dual_route_team_nested_viewset(r"mcp_server_installations",mcp_store.MCPServerInstallationViewSet,- "environment_mcp_server_installations",+ "project_mcp_server_installations",["team_id"],)diff --git a/posthog/api/test/test_api_docs.py b/posthog/api/test/test_api_docs.pyindex 3f0cd9d5463b..78a0158c0afa 100644--- a/posthog/api/test/test_api_docs.py+++ b/posthog/api/test/test_api_docs.py@@ -22,12 +22,12 @@ class TestAPIDocsSchema(APIBaseTest):assert isinstance(schema_response.data, dict)paths = schema_response.data["paths"]- list_operation = paths["/api/environments/{project_id}/llm_prompts/"]["get"]+ list_operation = paths["/api/projects/{project_id}/llm_prompts/"]["get"]list_params = list_operation.get("parameters", [])assert any(param.get("in") == "query" and param.get("name") == "search" for param in list_params)assert any(param.get("in") == "query" and param.get("name") == "content" for param in list_params)- by_name_path = "/api/environments/{project_id}/llm_prompts/name/{prompt_name}/"+ by_name_path = "/api/projects/{project_id}/llm_prompts/name/{prompt_name}/"assert by_name_path in pathsfor method in ("get", "patch"):diff --git a/products/ai_observability/frontend/generated/api.schemas.ts b/products/ai_observability/frontend/generated/api.schemas.tsindex a96ecdfdb82f..d812669aed0e 100644--- a/products/ai_observability/frontend/generated/api.schemas.ts+++ b/products/ai_observability/frontend/generated/api.schemas.ts@@ -7,6 +7,295 @@* PostHog API - generated* OpenAPI spec version: 1.0.0*/+export interface _SummaryApi {+ /** Inclusive UTC start of the spend window resolved from the request. */+ date_from: string+ /** Exclusive UTC end of the spend window resolved from the request. */+ date_to: string+ /** The `ai_product` filter applied to tool / model / trace breakdowns — echoes the request `product`. */+ product: string+ /** Total LLM cost in USD across every `ai_product` for the user — independent of the `product` filter. */+ total_cost_usd: number+ /** Total $ai_generation + $ai_embedding events captured across every product. */+ event_count: number+ /** Total cost in USD for the product filter. Matches the cost summed across `by_tool` / `by_model` for the scoped slice. */+ scoped_cost_usd: number+ /** Total $ai_generation + $ai_embedding events for the scoped slice. */+ scoped_event_count: number+}++export interface _ProductBreakdownRowApi {+ /**+ * Value of the `ai_product` property on the event (e.g. `posthog_code`, `background_agents`). Null when unset.+ * @nullable+ */+ product: string | null+ /** Number of $ai_generation + $ai_embedding events for this product. */+ event_count: number+ /** Total cost in USD for this product over the lookback window. */+ cost_usd: number+}++export interface _ProductBreakdownApi {+ /** Rows of spend by product, ordered by cost descending. */+ items: _ProductBreakdownRowApi[]+ /** True when more rows exist beyond the requested `limit`. Re-request with a larger `limit` to retrieve them. */+ truncated: boolean+}++export interface _ToolBreakdownRowApi {+ /**+ * Individual tool name from `$ai_tools_called` (split on `,` since multi-tool generations store a comma-separated list). Null = pure text response with no tool call.+ * @nullable+ */+ tool: string | null+ /** Number of $ai_generation events whose tool list includes this tool. */+ generation_count: number+ /** Sum of `$ai_total_cost_usd` for generations whose tool list includes this tool. Multi-tool generations contribute their full cost to every tool they invoked, so this sum can exceed `summary.scoped_cost_usd`. Prefer `share_of_scoped` for headline percentages — it's computed per row and doesn't require the totals to reconcile. */+ cost_usd: number+ /** This tool's share of `summary.scoped_cost_usd`, expressed as a float in `[0, 1]`. Independent per row, so co-occurring tools can each show a substantial share — the headline number to present (e.g. `'Bash drove 47% of your spend'`). */+ share_of_scoped: number+ /** Average `$ai_input_tokens` across these generations — high values signal context bloat per call. */+ avg_input_tokens: number+}++export interface _ToolBreakdownApi {+ /** Rows of spend by tool, ordered by cost descending. */+ items: _ToolBreakdownRowApi[]+ /** True when more rows exist beyond the requested `limit`. Re-request with a larger `limit` to retrieve them. */+ truncated: boolean+}++export interface _ModelBreakdownRowApi {+ /**+ * Value of the `$ai_model` property.+ * @nullable+ */+ model: string | null+ /** Number of $ai_generation + $ai_embedding events. */+ generation_count: number+ /** Total cost in USD for this model. */+ cost_usd: number+ /** Sum of `$ai_input_tokens` for this model. */+ input_tokens: number+ /** Sum of `$ai_output_tokens` for this model. */+ output_tokens: number+}++export interface _ModelBreakdownApi {+ /** Rows of spend by model, ordered by cost descending. */+ items: _ModelBreakdownRowApi[]+ /** True when more rows exist beyond the requested `limit`. Re-request with a larger `limit` to retrieve them. */+ truncated: boolean+}++export interface _TopTraceRowApi {+ /**+ * `$ai_trace_id` of the session — opaque string scoped to the originating product. Format is not stable: most are UUIDs but some SDK wrappers emit JSON-shaped strings like `{"device_id":"...","session_id":"..."}`. Callers should treat this as an opaque identifier (URL-encode before linking to a trace view).+ * @nullable+ */+ trace_id: string | null+ /** Number of $ai_generation events in this trace. */+ generation_count: number+ /** Total cost in USD for this trace. */+ cost_usd: number+ /**+ * Timestamp of the earliest event in this trace.+ * @nullable+ */+ started_at: string | null+}++export interface _TopTracesApi {+ /** Rows of top traces by cost, ordered by cost descending. */+ items: _TopTraceRowApi[]+ /** True when more rows exist beyond the requested `limit`. Re-request with a larger `limit` to retrieve them. */+ truncated: boolean+}++/**+ * Structured personal LLM spend analysis for the requesting user.+ */+export interface PersonalSpendAnalysisResponseApi {+ /** High-level totals for the lookback window. */+ summary: _SummaryApi+ /** Spend grouped by the `ai_product` property — always across all products, never filtered. */+ by_product: _ProductBreakdownApi+ /** Spend grouped by tool. Scoped to `product` when set. */+ by_tool: _ToolBreakdownApi+ /** Spend grouped by `$ai_model`. Scoped to `product` when set. */+ by_model: _ModelBreakdownApi+ /** Deprecated — always returns `{items: [], truncated: false}`. Trace IDs are opaque strings that aren't actionable in the UI. Kept in the response shape so existing consumers don't crash; remove your rendering of this field and we'll drop it from the response entirely in a follow-up. */+ top_traces: _TopTracesApi+}++/**+ * DRF's default error envelope — `{ "detail": str }` — typed for the OpenAPI schema.+ */+export interface _ErrorResponseApi {+ /** Human-readable error description from DRF. */+ detail: string+}++/**+ * * `engineering` - Engineering+ * `data` - Data+ * `product` - Product Management+ * `founder` - Founder+ * `leadership` - Leadership+ * `marketing` - Marketing+ * `sales` - Sales / Success+ * `other` - Other+ */+export type RoleAtOrganizationEnumApi = (typeof RoleAtOrganizationEnumApi)[keyof typeof RoleAtOrganizationEnumApi]++export const RoleAtOrganizationEnumApi = {+ Engineering: 'engineering',+ Data: 'data',+ Product: 'product',+ Founder: 'founder',+ Leadership: 'leadership',+ Marketing: 'marketing',+ Sales: 'sales',+ Other: 'other',+} as const++export type BlankEnumApi = (typeof BlankEnumApi)[keyof typeof BlankEnumApi]++export const BlankEnumApi = {+ '': '',+} as const++/**+ * @nullable+ */+export type UserBasicApiHedgehogConfig = { [key: string]: unknown } | null++export interface UserBasicApi {+ readonly id: number+ readonly uuid: string+ /**+ * @maxLength 200+ * @nullable+ */+ distinct_id?: string | null+ /** @maxLength 150 */+ first_name?: string+ /** @maxLength 150 */+ last_name?: string+ /** @maxLength 254 */+ email: string+ /** @nullable */+ is_email_verified?: boolean | null+ /** @nullable */+ readonly hedgehog_config: UserBasicApiHedgehogConfig+ role_at_organization?: RoleAtOrganizationEnumApi | BlankEnumApi | null+}++export interface DatasetItemApi {+ readonly id: string+ dataset: string+ input?: unknown+ output?: unknown+ metadata?: unknown+ /**+ * @maxLength 255+ * @nullable+ */+ ref_trace_id?: string | null+ /** @nullable */+ ref_timestamp?: string | null+ /**+ * @maxLength 255+ * @nullable+ */+ ref_source_id?: string | null+ /** @nullable */+ deleted?: boolean | null+ readonly created_at: string+ /** @nullable */+ readonly updated_at: string | null+ readonly created_by: UserBasicApi+ readonly team: number+}++export interface PaginatedDatasetItemListApi {+ count: number+ /** @nullable */+ next?: string | null+ /** @nullable */+ previous?: string | null+ results: DatasetItemApi[]+}++export interface PatchedDatasetItemApi {+ readonly id?: string+ dataset?: string+ input?: unknown+ output?: unknown+ metadata?: unknown+ /**+ * @maxLength 255+ * @nullable+ */+ ref_trace_id?: string | null+ /** @nullable */+ ref_timestamp?: string | null+ /**+ * @maxLength 255+ * @nullable+ */+ ref_source_id?: string | null+ /** @nullable */+ deleted?: boolean | null+ readonly created_at?: string+ /** @nullable */+ readonly updated_at?: string | null+ readonly created_by?: UserBasicApi+ readonly team?: number+}++export interface DatasetApi {+ readonly id: string+ /** @maxLength 400 */+ name: string+ /** @nullable */+ description?: string | null+ metadata?: unknown+ readonly created_at: string+ /** @nullable */+ readonly updated_at: string | null+ /** @nullable */+ deleted?: boolean | null+ readonly created_by: UserBasicApi+ readonly team: number+}++export interface PaginatedDatasetListApi {+ count: number+ /** @nullable */+ next?: string | null+ /** @nullable */+ previous?: string | null+ results: DatasetApi[]+}++export interface PatchedDatasetApi {+ readonly id?: string+ /** @maxLength 400 */+ name?: string+ /** @nullable */+ description?: string | null+ metadata?: unknown+ readonly created_at?: string+ /** @nullable */+ readonly updated_at?: string | null+ /** @nullable */+ deleted?: boolean | null+ readonly created_by?: UserBasicApi+ readonly team?: number+}+export interface EvaluationRunRequestApi {/** UUID of the evaluation to run. */evaluation_id: string@@ -103,61 +392,6 @@ export interface ModelConfigurationApi {readonly provider_key_name: string | null}-/**- * * `engineering` - Engineering- * `data` - Data- * `product` - Product Management- * `founder` - Founder- * `leadership` - Leadership- * `marketing` - Marketing- * `sales` - Sales / Success- * `other` - Other- */-export type RoleAtOrganizationEnumApi = (typeof RoleAtOrganizationEnumApi)[keyof typeof RoleAtOrganizationEnumApi]--export const RoleAtOrganizationEnumApi = {- Engineering: 'engineering',- Data: 'data',- Product: 'product',- Founder: 'founder',- Leadership: 'leadership',- Marketing: 'marketing',- Sales: 'sales',- Other: 'other',-} as const--export type BlankEnumApi = (typeof BlankEnumApi)[keyof typeof BlankEnumApi]--export const BlankEnumApi = {- '': '',-} as const--/**- * @nullable- */-export type UserBasicApiHedgehogConfig = { [key: string]: unknown } | null--export interface UserBasicApi {- readonly id: number- readonly uuid: string- /**- * @maxLength 200- * @nullable- */- distinct_id?: string | null- /** @maxLength 150 */- first_name?: string- /** @maxLength 150 */- last_name?: string- /** @maxLength 254 */- email: string- /** @nullable */- is_email_verified?: boolean | null- /** @nullable */- readonly hedgehog_config: UserBasicApiHedgehogConfig- role_at_organization?: RoleAtOrganizationEnumApi | BlankEnumApi | null-}-/*** Configuration dict. For 'llm_judge': {prompt}. For 'hog': {source}.*/@@ -2192,288 +2426,128 @@ export interface TestHogTaggerTagApi {/*** Optional description for the tag.* @maxLength 500- */- description?: string-}--export interface TestHogTaggerRequestApi {- /**- * Hog source code to test. Return a tag name string, a list of tag name strings, or null.- * @minLength 1- */- source: string- /**- * Number of recent $ai_generation events to test against (1-10, default 5).- * @minimum 1- * @maximum 10- */- sample_count?: number- /** Optional tag whitelist. Returned tags outside this list are filtered out. */- tags?: TestHogTaggerTagApi[]-}--export interface TestHogTaggerResultItemApi {- /** UUID of the sampled $ai_generation event. */- event_uuid: string- /**- * Trace ID if available.- * @nullable- */- trace_id?: string | null- /** First 200 characters of the generation input. */- input_preview: string- /** First 200 characters of the generation output. */- output_preview: string- /** Tag names returned by the Hog code. */- tags: string[]- /** Text written to stdout by the Hog code. */- reasoning: string- /**- * Error message if the Hog code failed.- * @nullable- */- error?: string | null-}--export interface TestHogTaggerResponseApi {- /** Per-event Hog tagger test results. */- results: TestHogTaggerResultItemApi[]- /** Optional message, for example when no recent AI events were found. */- message?: string-}--export interface _SummaryApi {- /** Inclusive UTC start of the spend window resolved from the request. */- date_from: string- /** Exclusive UTC end of the spend window resolved from the request. */- date_to: string- /** The `ai_product` filter applied to tool / model / trace breakdowns — echoes the request `product`. */- product: string- /** Total LLM cost in USD across every `ai_product` for the user — independent of the `product` filter. */- total_cost_usd: number- /** Total $ai_generation + $ai_embedding events captured across every product. */- event_count: number- /** Total cost in USD for the product filter. Matches the cost summed across `by_tool` / `by_model` for the scoped slice. */- scoped_cost_usd: number- /** Total $ai_generation + $ai_embedding events for the scoped slice. */- scoped_event_count: number-}--export interface _ProductBreakdownRowApi {- /**- * Value of the `ai_product` property on the event (e.g. `posthog_code`, `background_agents`). Null when unset.- * @nullable- */- product: string | null- /** Number of $ai_generation + $ai_embedding events for this product. */- event_count: number- /** Total cost in USD for this product over the lookback window. */- cost_usd: number-}--export interface _ProductBreakdownApi {- /** Rows of spend by product, ordered by cost descending. */- items: _ProductBreakdownRowApi[]- /** True when more rows exist beyond the requested `limit`. Re-request with a larger `limit` to retrieve them. */- truncated: boolean-}--export interface _ToolBreakdownRowApi {- /**- * Individual tool name from `$ai_tools_called` (split on `,` since multi-tool generations store a comma-separated list). Null = pure text response with no tool call.- * @nullable- */- tool: string | null- /** Number of $ai_generation events whose tool list includes this tool. */- generation_count: number- /** Sum of `$ai_total_cost_usd` for generations whose tool list includes this tool. Multi-tool generations contribute their full cost to every tool they invoked, so this sum can exceed `summary.scoped_cost_usd`. Prefer `share_of_scoped` for headline percentages — it's computed per row and doesn't require the totals to reconcile. */- cost_usd: number- /** This tool's share of `summary.scoped_cost_usd`, expressed as a float in `[0, 1]`. Independent per row, so co-occurring tools can each show a substantial share — the headline number to present (e.g. `'Bash drove 47% of your spend'`). */- share_of_scoped: number- /** Average `$ai_input_tokens` across these generations — high values signal context bloat per call. */- avg_input_tokens: number-}--export interface _ToolBreakdownApi {- /** Rows of spend by tool, ordered by cost descending. */- items: _ToolBreakdownRowApi[]- /** True when more rows exist beyond the requested `limit`. Re-request with a larger `limit` to retrieve them. */- truncated: boolean-}--export interface _ModelBreakdownRowApi {- /**- * Value of the `$ai_model` property.- * @nullable- */- model: string | null- /** Number of $ai_generation + $ai_embedding events. */- generation_count: number- /** Total cost in USD for this model. */- cost_usd: number- /** Sum of `$ai_input_tokens` for this model. */- input_tokens: number- /** Sum of `$ai_output_tokens` for this model. */- output_tokens: number-}--export interface _ModelBreakdownApi {- /** Rows of spend by model, ordered by cost descending. */- items: _ModelBreakdownRowApi[]- /** True when more rows exist beyond the requested `limit`. Re-request with a larger `limit` to retrieve them. */- truncated: boolean-}--export interface _TopTraceRowApi {- /**- * `$ai_trace_id` of the session — opaque string scoped to the originating product. Format is not stable: most are UUIDs but some SDK wrappers emit JSON-shaped strings like `{"device_id":"...","session_id":"..."}`. Callers should treat this as an opaque identifier (URL-encode before linking to a trace view).- * @nullable- */- trace_id: string | null- /** Number of $ai_generation events in this trace. */- generation_count: number- /** Total cost in USD for this trace. */- cost_usd: number- /**- * Timestamp of the earliest event in this trace.- * @nullable- */- started_at: string | null-}--export interface _TopTracesApi {- /** Rows of top traces by cost, ordered by cost descending. */- items: _TopTraceRowApi[]- /** True when more rows exist beyond the requested `limit`. Re-request with a larger `limit` to retrieve them. */- truncated: boolean-}--/**- * Structured personal LLM spend analysis for the requesting user.- */-export interface PersonalSpendAnalysisResponseApi {- /** High-level totals for the lookback window. */- summary: _SummaryApi- /** Spend grouped by the `ai_product` property — always across all products, never filtered. */- by_product: _ProductBreakdownApi- /** Spend grouped by tool. Scoped to `product` when set. */- by_tool: _ToolBreakdownApi- /** Spend grouped by `$ai_model`. Scoped to `product` when set. */- by_model: _ModelBreakdownApi- /** Deprecated — always returns `{items: [], truncated: false}`. Trace IDs are opaque strings that aren't actionable in the UI. Kept in the response shape so existing consumers don't crash; remove your rendering of this field and we'll drop it from the response entirely in a follow-up. */- top_traces: _TopTracesApi-}--/**- * DRF's default error envelope — `{ "detail": str }` — typed for the OpenAPI schema.- */-export interface _ErrorResponseApi {- /** Human-readable error description from DRF. */- detail: string+ */+ description?: string}-export interface DatasetItemApi {- readonly id: string- dataset: string- input?: unknown- output?: unknown- metadata?: unknown+export interface TestHogTaggerRequestApi {/**- * @maxLength 255+ * Hog source code to test. Return a tag name string, a list of tag name strings, or null.+ * @minLength 1+ */+ source: string+ /**+ * Number of recent $ai_generation events to test against (1-10, default 5).+ * @minimum 1+ * @maximum 10+ */+ sample_count?: number+ /** Optional tag whitelist. Returned tags outside this list are filtered out. */+ tags?: TestHogTaggerTagApi[]+}++export interface TestHogTaggerResultItemApi {+ /** UUID of the sampled $ai_generation event. */+ event_uuid: string+ /**+ * Trace ID if available.* @nullable*/- ref_trace_id?: string | null- /** @nullable */- ref_timestamp?: string | null+ trace_id?: string | null+ /** First 200 characters of the generation input. */+ input_preview: string+ /** First 200 characters of the generation output. */+ output_preview: string+ /** Tag names returned by the Hog code. */+ tags: string[]+ /** Text written to stdout by the Hog code. */+ reasoning: string/**- * @maxLength 255+ * Error message if the Hog code failed.* @nullable*/- ref_source_id?: string | null- /** @nullable */- deleted?: boolean | null- readonly created_at: string- /** @nullable */- readonly updated_at: string | null- readonly created_by: UserBasicApi- readonly team: number+ error?: string | null}-export interface PaginatedDatasetItemListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: DatasetItemApi[]+export interface TestHogTaggerResponseApi {+ /** Per-event Hog tagger test results. */+ results: TestHogTaggerResultItemApi[]+ /** Optional message, for example when no recent AI events were found. */+ message?: string}-export interface PatchedDatasetItemApi {- readonly id?: string- dataset?: string- input?: unknown- output?: unknown- metadata?: unknown+export type LlmAnalyticsPersonalSpendListParams = {/**- * @maxLength 255- * @nullable+ * Start of the spend window. Accepts absolute dates (`2026-04-23`) or relative strings (`-7d`, `-1m`, etc.) — same parser used elsewhere in PostHog. Defaults to `-30d`. The window between `date_from` and `date_to` cannot exceed 90 days.+ * @minLength 1+ * @maxLength 32*/- ref_trace_id?: string | null- /** @nullable */- ref_timestamp?: string | null+ date_from?: string/**- * @maxLength 255+ * End of the spend window. Accepts the same formats as `date_from`. Defaults to `now` when omitted.+ * @maxLength 32* @nullable*/- ref_source_id?: string | null- /** @nullable */- deleted?: boolean | null- readonly created_at?: string- /** @nullable */- readonly updated_at?: string | null- readonly created_by?: UserBasicApi- readonly team?: number+ date_to?: string | null+ /**+ * Maximum number of rows to return per breakdown (1-200, defaults to 50). Each breakdown returns up to this many rows ordered by cost descending. Per-breakdown `truncated: true` indicates more rows exist beyond the limit.+ * @minimum 1+ * @maximum 200+ */+ limit?: number+ /**+ * Required `ai_product` key to scope the tool / model / trace breakdowns to a single product. Only the following products are currently supported: posthog_code.+ * @minLength 1+ * @maxLength 64+ */+ product: string+ /**+ * If true, bypass the result cache and re-run the underlying queries against ClickHouse.+ */+ refresh?: boolean}-export interface DatasetApi {- readonly id: string- /** @maxLength 400 */- name: string- /** @nullable */- description?: string | null- metadata?: unknown- readonly created_at: string- /** @nullable */- readonly updated_at: string | null- /** @nullable */- deleted?: boolean | null- readonly created_by: UserBasicApi- readonly team: number+export type DatasetItemsListParams = {+ /**+ * Filter by dataset ID+ */+ dataset?: string+ /**+ * Number of results to return per page.+ */+ limit?: number+ /**+ * The initial index from which to return the results.+ */+ offset?: number}-export interface PaginatedDatasetListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: DatasetApi[]-}+export type DatasetsListParams = {+ /**+ * Multiple values may be separated by commas.+ */+ id__in?: string[]+ /**+ * Number of results to return per page.+ */+ limit?: number+ /**+ * The initial index from which to return the results.+ */+ offset?: number+ /**+ * Ordering-export interface PatchedDatasetApi {- readonly id?: string- /** @maxLength 400 */- name?: string- /** @nullable */- description?: string | null- metadata?: unknown- readonly created_at?: string- /** @nullable */- readonly updated_at?: string | null- /** @nullable */- deleted?: boolean | null- readonly created_by?: UserBasicApi- readonly team?: number+* `created_at` - Created At+* `-created_at` - Created At (descending)+* `updated_at` - Updated At+* `-updated_at` - Updated At (descending)+ */+ order_by?: string[]+ /**+ * Search in name, description, or metadata+ */+ search?: string}export type EvaluationRunsCreate200 = { [key: string]: unknown }@@ -2931,77 +3005,3 @@ export type TaggersListParams = {*/search?: string}--export type LlmAnalyticsPersonalSpendListParams = {- /**- * Start of the spend window. Accepts absolute dates (`2026-04-23`) or relative strings (`-7d`, `-1m`, etc.) — same parser used elsewhere in PostHog. Defaults to `-30d`. The window between `date_from` and `date_to` cannot exceed 90 days.- * @minLength 1- * @maxLength 32- */- date_from?: string- /**- * End of the spend window. Accepts the same formats as `date_from`. Defaults to `now` when omitted.- * @maxLength 32- * @nullable- */- date_to?: string | null- /**- * Maximum number of rows to return per breakdown (1-200, defaults to 50). Each breakdown returns up to this many rows ordered by cost descending. Per-breakdown `truncated: true` indicates more rows exist beyond the limit.- * @minimum 1- * @maximum 200- */- limit?: number- /**- * Required `ai_product` key to scope the tool / model / trace breakdowns to a single product. Only the following products are currently supported: posthog_code.- * @minLength 1- * @maxLength 64- */- product: string- /**- * If true, bypass the result cache and re-run the underlying queries against ClickHouse.- */- refresh?: boolean-}--export type DatasetItemsListParams = {- /**- * Filter by dataset ID- */- dataset?: string- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number-}--export type DatasetsListParams = {- /**- * Multiple values may be separated by commas.- */- id__in?: string[]- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number- /**- * Ordering--* `created_at` - Created At-* `-created_at` - Created At (descending)-* `updated_at` - Updated At-* `-updated_at` - Updated At (descending)- */- order_by?: string[]- /**- * Search in name, description, or metadata- */- search?: string-}diff --git a/products/ai_observability/frontend/generated/api.ts b/products/ai_observability/frontend/generated/api.tsindex dc9f2a9b7be3..dd81ade15cdc 100644--- a/products/ai_observability/frontend/generated/api.ts+++ b/products/ai_observability/frontend/generated/api.ts@@ -134,8 +134,251 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>]}: DistributeReadOnlyOverUnions<T>+export const getLlmAnalyticsPersonalSpendListUrl = (params: LlmAnalyticsPersonalSpendListParams) => {+ const normalizedParams = new URLSearchParams()++ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : value.toString())+ }+ })++ const stringifiedParams = normalizedParams.toString()++ return stringifiedParams.length > 0+ ? `/api/llm_analytics/@me/spend/?${stringifiedParams}`+ : `/api/llm_analytics/@me/spend/`+}++/**+ * Return a structured personal LLM spend analysis for the requesting user. Pass `date_from` / `date_to` (absolute like `2026-04-23` or relative like `-7d`) to bound the window — defaults to the last 30 days, max 90 days. The `product=<ai_product>` query param is required and scopes the tool / model / trace breakdowns to a single product; supported values: posthog_code. `by_product` is always returned for cross-product visibility. Use `refresh=true` to bypass the 5-minute response cache.+ */+export const llmAnalyticsPersonalSpendList = async (+ params: LlmAnalyticsPersonalSpendListParams,+ options?: RequestInit+): Promise<PersonalSpendAnalysisResponseApi[]> => {+ return apiMutator<PersonalSpendAnalysisResponseApi[]>(getLlmAnalyticsPersonalSpendListUrl(params), {+ ...options,+ method: 'GET',+ })+}++export const getDatasetItemsListUrl = (projectId: string, params?: DatasetItemsListParams) => {+ const normalizedParams = new URLSearchParams()++ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : value.toString())+ }+ })++ const stringifiedParams = normalizedParams.toString()++ return stringifiedParams.length > 0+ ? `/api/projects/${projectId}/dataset_items/?${stringifiedParams}`+ : `/api/projects/${projectId}/dataset_items/`+}++export const datasetItemsList = async (+ projectId: string,+ params?: DatasetItemsListParams,+ options?: RequestInit+): Promise<PaginatedDatasetItemListApi> => {+ return apiMutator<PaginatedDatasetItemListApi>(getDatasetItemsListUrl(projectId, params), {+ ...options,+ method: 'GET',+ })+}++export const getDatasetItemsCreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/dataset_items/`+}++export const datasetItemsCreate = async (+ projectId: string,+ datasetItemApi: NonReadonly<DatasetItemApi>,+ options?: RequestInit+): Promise<DatasetItemApi> => {+ return apiMutator<DatasetItemApi>(getDatasetItemsCreateUrl(projectId), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(datasetItemApi),+ })+}++export const getDatasetItemsRetrieveUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/dataset_items/${id}/`+}++export const datasetItemsRetrieve = async (+ projectId: string,+ id: string,+ options?: RequestInit+): Promise<DatasetItemApi> => {+ return apiMutator<DatasetItemApi>(getDatasetItemsRetrieveUrl(projectId, id), {+ ...options,+ method: 'GET',+ })+}++export const getDatasetItemsUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/dataset_items/${id}/`+}++export const datasetItemsUpdate = async (+ projectId: string,+ id: string,+ datasetItemApi: NonReadonly<DatasetItemApi>,+ options?: RequestInit+): Promise<DatasetItemApi> => {+ return apiMutator<DatasetItemApi>(getDatasetItemsUpdateUrl(projectId, id), {+ ...options,+ method: 'PUT',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(datasetItemApi),+ })+}++export const getDatasetItemsPartialUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/dataset_items/${id}/`+}++export const datasetItemsPartialUpdate = async (+ projectId: string,+ id: string,+ patchedDatasetItemApi?: NonReadonly<PatchedDatasetItemApi>,+ options?: RequestInit+): Promise<DatasetItemApi> => {+ return apiMutator<DatasetItemApi>(getDatasetItemsPartialUpdateUrl(projectId, id), {+ ...options,+ method: 'PATCH',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(patchedDatasetItemApi),+ })+}++export const getDatasetItemsDestroyUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/dataset_items/${id}/`+}++/**+ * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true+ */+export const datasetItemsDestroy = async (projectId: string, id: string, options?: RequestInit): Promise<unknown> => {+ return apiMutator<unknown>(getDatasetItemsDestroyUrl(projectId, id), {+ ...options,+ method: 'DELETE',+ })+}++export const getDatasetsListUrl = (projectId: string, params?: DatasetsListParams) => {+ const normalizedParams = new URLSearchParams()++ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : value.toString())+ }+ })++ const stringifiedParams = normalizedParams.toString()++ return stringifiedParams.length > 0+ ? `/api/projects/${projectId}/datasets/?${stringifiedParams}`+ : `/api/projects/${projectId}/datasets/`+}++export const datasetsList = async (+ projectId: string,+ params?: DatasetsListParams,+ options?: RequestInit+): Promise<PaginatedDatasetListApi> => {+ return apiMutator<PaginatedDatasetListApi>(getDatasetsListUrl(projectId, params), {+ ...options,+ method: 'GET',+ })+}++export const getDatasetsCreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/datasets/`+}++export const datasetsCreate = async (+ projectId: string,+ datasetApi: NonReadonly<DatasetApi>,+ options?: RequestInit+): Promise<DatasetApi> => {+ return apiMutator<DatasetApi>(getDatasetsCreateUrl(projectId), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(datasetApi),+ })+}++export const getDatasetsRetrieveUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/datasets/${id}/`+}++export const datasetsRetrieve = async (projectId: string, id: string, options?: RequestInit): Promise<DatasetApi> => {+ return apiMutator<DatasetApi>(getDatasetsRetrieveUrl(projectId, id), {+ ...options,+ method: 'GET',+ })+}++export const getDatasetsUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/datasets/${id}/`+}++export const datasetsUpdate = async (+ projectId: string,+ id: string,+ datasetApi: NonReadonly<DatasetApi>,+ options?: RequestInit+): Promise<DatasetApi> => {+ return apiMutator<DatasetApi>(getDatasetsUpdateUrl(projectId, id), {+ ...options,+ method: 'PUT',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(datasetApi),+ })+}++export const getDatasetsPartialUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/datasets/${id}/`+}++export const datasetsPartialUpdate = async (+ projectId: string,+ id: string,+ patchedDatasetApi?: NonReadonly<PatchedDatasetApi>,+ options?: RequestInit+): Promise<DatasetApi> => {+ return apiMutator<DatasetApi>(getDatasetsPartialUpdateUrl(projectId, id), {+ ...options,+ method: 'PATCH',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(patchedDatasetApi),+ })+}++export const getDatasetsDestroyUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/datasets/${id}/`+}++/**+ * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true+ */+export const datasetsDestroy = async (projectId: string, id: string, options?: RequestInit): Promise<unknown> => {+ return apiMutator<unknown>(getDatasetsDestroyUrl(projectId, id), {+ ...options,+ method: 'DELETE',+ })+}+export const getEvaluationRunsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/evaluation_runs/`+ return `/api/projects/${projectId}/evaluation_runs/`}/**@@ -169,8 +412,8 @@ export const getEvaluationsListUrl = (projectId: string, params?: EvaluationsLisconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/evaluations/?${stringifiedParams}`- : `/api/environments/${projectId}/evaluations/`+ ? `/api/projects/${projectId}/evaluations/?${stringifiedParams}`+ : `/api/projects/${projectId}/evaluations/`}export const evaluationsList = async (@@ -185,7 +428,7 @@ export const evaluationsList = async (}export const getEvaluationsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/evaluations/`+ return `/api/projects/${projectId}/evaluations/`}export const evaluationsCreate = async (@@ -202,7 +445,7 @@ export const evaluationsCreate = async (}export const getEvaluationsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/evaluations/${id}/`+ return `/api/projects/${projectId}/evaluations/${id}/`}export const evaluationsRetrieve = async (@@ -217,7 +460,7 @@ export const evaluationsRetrieve = async (}export const getEvaluationsUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/evaluations/${id}/`+ return `/api/projects/${projectId}/evaluations/${id}/`}export const evaluationsUpdate = async (@@ -235,7 +478,7 @@ export const evaluationsUpdate = async (}export const getEvaluationsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/evaluations/${id}/`+ return `/api/projects/${projectId}/evaluations/${id}/`}export const evaluationsPartialUpdate = async (@@ -253,7 +496,7 @@ export const evaluationsPartialUpdate = async (}export const getEvaluationsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/evaluations/${id}/`+ return `/api/projects/${projectId}/evaluations/${id}/`}/**@@ -267,7 +510,7 @@ export const evaluationsDestroy = async (projectId: string, id: string, options?}export const getEvaluationsTestHogCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/evaluations/test_hog/`+ return `/api/projects/${projectId}/evaluations/test_hog/`}/**@@ -287,7 +530,7 @@ export const evaluationsTestHogCreate = async (}export const getLlmAnalyticsClusteringConfigRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/clustering_config/`+ return `/api/projects/${projectId}/llm_analytics/clustering_config/`}/**@@ -304,7 +547,7 @@ export const llmAnalyticsClusteringConfigRetrieve = async (}export const getLlmAnalyticsClusteringConfigSetEventFiltersCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/clustering_config/set_event_filters/`+ return `/api/projects/${projectId}/llm_analytics/clustering_config/set_event_filters/`}/**@@ -338,8 +581,8 @@ export const getLlmAnalyticsClusteringJobsListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_analytics/clustering_jobs/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_analytics/clustering_jobs/`+ ? `/api/projects/${projectId}/llm_analytics/clustering_jobs/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_analytics/clustering_jobs/`}/**@@ -357,7 +600,7 @@ export const llmAnalyticsClusteringJobsList = async (}export const getLlmAnalyticsClusteringJobsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/clustering_jobs/`+ return `/api/projects/${projectId}/llm_analytics/clustering_jobs/`}/**@@ -377,7 +620,7 @@ export const llmAnalyticsClusteringJobsCreate = async (}export const getLlmAnalyticsClusteringJobsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/clustering_jobs/${id}/`+ return `/api/projects/${projectId}/llm_analytics/clustering_jobs/${id}/`}/**@@ -395,7 +638,7 @@ export const llmAnalyticsClusteringJobsRetrieve = async (}export const getLlmAnalyticsClusteringJobsUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/clustering_jobs/${id}/`+ return `/api/projects/${projectId}/llm_analytics/clustering_jobs/${id}/`}/**@@ -416,7 +659,7 @@ export const llmAnalyticsClusteringJobsUpdate = async (}export const getLlmAnalyticsClusteringJobsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/clustering_jobs/${id}/`+ return `/api/projects/${projectId}/llm_analytics/clustering_jobs/${id}/`}/**@@ -437,7 +680,7 @@ export const llmAnalyticsClusteringJobsPartialUpdate = async (}export const getLlmAnalyticsClusteringJobsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/clustering_jobs/${id}/`+ return `/api/projects/${projectId}/llm_analytics/clustering_jobs/${id}/`}/**@@ -455,7 +698,7 @@ export const llmAnalyticsClusteringJobsDestroy = async (}export const getLlmAnalyticsClusteringRunsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/clustering_runs/`+ return `/api/projects/${projectId}/llm_analytics/clustering_runs/`}/**@@ -478,7 +721,7 @@ export const llmAnalyticsClusteringRunsCreate = async (}export const getLlmAnalyticsEvaluationConfigRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/evaluation_config/`+ return `/api/projects/${projectId}/llm_analytics/evaluation_config/`}/**@@ -495,7 +738,7 @@ export const llmAnalyticsEvaluationConfigRetrieve = async (}export const getLlmAnalyticsEvaluationConfigSetActiveKeyCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/evaluation_config/set_active_key/`+ return `/api/projects/${projectId}/llm_analytics/evaluation_config/set_active_key/`}/**@@ -529,8 +772,8 @@ export const getLlmAnalyticsEvaluationReportsListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_analytics/evaluation_reports/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_analytics/evaluation_reports/`+ ? `/api/projects/${projectId}/llm_analytics/evaluation_reports/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_analytics/evaluation_reports/`}/**@@ -548,7 +791,7 @@ export const llmAnalyticsEvaluationReportsList = async (}export const getLlmAnalyticsEvaluationReportsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/evaluation_reports/`+ return `/api/projects/${projectId}/llm_analytics/evaluation_reports/`}/**@@ -568,7 +811,7 @@ export const llmAnalyticsEvaluationReportsCreate = async (}export const getLlmAnalyticsEvaluationReportsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/evaluation_reports/${id}/`+ return `/api/projects/${projectId}/llm_analytics/evaluation_reports/${id}/`}/**@@ -586,7 +829,7 @@ export const llmAnalyticsEvaluationReportsRetrieve = async (}export const getLlmAnalyticsEvaluationReportsUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/evaluation_reports/${id}/`+ return `/api/projects/${projectId}/llm_analytics/evaluation_reports/${id}/`}/**@@ -607,7 +850,7 @@ export const llmAnalyticsEvaluationReportsUpdate = async (}export const getLlmAnalyticsEvaluationReportsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/evaluation_reports/${id}/`+ return `/api/projects/${projectId}/llm_analytics/evaluation_reports/${id}/`}/**@@ -628,7 +871,7 @@ export const llmAnalyticsEvaluationReportsPartialUpdate = async (}export const getLlmAnalyticsEvaluationReportsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/evaluation_reports/${id}/`+ return `/api/projects/${projectId}/llm_analytics/evaluation_reports/${id}/`}/**@@ -646,7 +889,7 @@ export const llmAnalyticsEvaluationReportsDestroy = async (}export const getLlmAnalyticsEvaluationReportsGenerateCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/evaluation_reports/${id}/generate/`+ return `/api/projects/${projectId}/llm_analytics/evaluation_reports/${id}/generate/`}/**@@ -679,8 +922,8 @@ export const getLlmAnalyticsEvaluationReportsRunsListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_analytics/evaluation_reports/${id}/runs/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_analytics/evaluation_reports/${id}/runs/`+ ? `/api/projects/${projectId}/llm_analytics/evaluation_reports/${id}/runs/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_analytics/evaluation_reports/${id}/runs/`}/**@@ -702,7 +945,7 @@ export const llmAnalyticsEvaluationReportsRunsList = async (}export const getLlmAnalyticsEvaluationSummaryCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/evaluation_summary/`+ return `/api/projects/${projectId}/llm_analytics/evaluation_summary/`}/**@@ -746,8 +989,8 @@ export const getLlmAnalyticsModelsRetrieveUrl = (projectId: string, params: LlmAconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_analytics/models/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_analytics/models/`+ ? `/api/projects/${projectId}/llm_analytics/models/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_analytics/models/`}/**@@ -765,7 +1008,7 @@ export const llmAnalyticsModelsRetrieve = async (}export const getLlmAnalyticsOfflineEvaluationsExperimentItemsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/offline_evaluations/experiment_items/`+ return `/api/projects/${projectId}/llm_analytics/offline_evaluations/experiment_items/`}export const llmAnalyticsOfflineEvaluationsExperimentItemsCreate = async (@@ -785,7 +1028,7 @@ export const llmAnalyticsOfflineEvaluationsExperimentItemsCreate = async (}export const getLlmAnalyticsProviderKeyValidationsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/provider_key_validations/`+ return `/api/projects/${projectId}/llm_analytics/provider_key_validations/`}/**@@ -816,8 +1059,8 @@ export const getLlmAnalyticsProviderKeysListUrl = (projectId: string, params?: Lconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_analytics/provider_keys/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_analytics/provider_keys/`+ ? `/api/projects/${projectId}/llm_analytics/provider_keys/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_analytics/provider_keys/`}export const llmAnalyticsProviderKeysList = async (@@ -832,7 +1075,7 @@ export const llmAnalyticsProviderKeysList = async (}export const getLlmAnalyticsProviderKeysCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/provider_keys/`+ return `/api/projects/${projectId}/llm_analytics/provider_keys/`}export const llmAnalyticsProviderKeysCreate = async (@@ -849,7 +1092,7 @@ export const llmAnalyticsProviderKeysCreate = async (}export const getLlmAnalyticsProviderKeysRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/provider_keys/${id}/`+ return `/api/projects/${projectId}/llm_analytics/provider_keys/${id}/`}export const llmAnalyticsProviderKeysRetrieve = async (@@ -864,7 +1107,7 @@ export const llmAnalyticsProviderKeysRetrieve = async (}export const getLlmAnalyticsProviderKeysUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/provider_keys/${id}/`+ return `/api/projects/${projectId}/llm_analytics/provider_keys/${id}/`}export const llmAnalyticsProviderKeysUpdate = async (@@ -882,7 +1125,7 @@ export const llmAnalyticsProviderKeysUpdate = async (}export const getLlmAnalyticsProviderKeysPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/provider_keys/${id}/`+ return `/api/projects/${projectId}/llm_analytics/provider_keys/${id}/`}export const llmAnalyticsProviderKeysPartialUpdate = async (@@ -900,7 +1143,7 @@ export const llmAnalyticsProviderKeysPartialUpdate = async (}export const getLlmAnalyticsProviderKeysDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/provider_keys/${id}/`+ return `/api/projects/${projectId}/llm_analytics/provider_keys/${id}/`}export const llmAnalyticsProviderKeysDestroy = async (@@ -915,7 +1158,7 @@ export const llmAnalyticsProviderKeysDestroy = async (}export const getLlmAnalyticsProviderKeysAssignCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/provider_keys/${id}/assign/`+ return `/api/projects/${projectId}/llm_analytics/provider_keys/${id}/assign/`}/**@@ -936,7 +1179,7 @@ export const llmAnalyticsProviderKeysAssignCreate = async (}export const getLlmAnalyticsProviderKeysDependentConfigsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/provider_keys/${id}/dependent_configs/`+ return `/api/projects/${projectId}/llm_analytics/provider_keys/${id}/dependent_configs/`}/**@@ -954,7 +1197,7 @@ export const llmAnalyticsProviderKeysDependentConfigsRetrieve = async (}export const getLlmAnalyticsProviderKeysValidateCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/provider_keys/${id}/validate/`+ return `/api/projects/${projectId}/llm_analytics/provider_keys/${id}/validate/`}export const llmAnalyticsProviderKeysValidateCreate = async (@@ -972,7 +1215,7 @@ export const llmAnalyticsProviderKeysValidateCreate = async (}export const getLlmAnalyticsProviderKeysTrialEvaluationsRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/provider_keys/trial_evaluations/`+ return `/api/projects/${projectId}/llm_analytics/provider_keys/trial_evaluations/`}/**@@ -1003,8 +1246,8 @@ export const getLlmAnalyticsReviewQueueItemsListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_analytics/review_queue_items/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_analytics/review_queue_items/`+ ? `/api/projects/${projectId}/llm_analytics/review_queue_items/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_analytics/review_queue_items/`}export const llmAnalyticsReviewQueueItemsList = async (@@ -1019,7 +1262,7 @@ export const llmAnalyticsReviewQueueItemsList = async (}export const getLlmAnalyticsReviewQueueItemsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/review_queue_items/`+ return `/api/projects/${projectId}/llm_analytics/review_queue_items/`}export const llmAnalyticsReviewQueueItemsCreate = async (@@ -1036,7 +1279,7 @@ export const llmAnalyticsReviewQueueItemsCreate = async (}export const getLlmAnalyticsReviewQueueItemsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/review_queue_items/${id}/`+ return `/api/projects/${projectId}/llm_analytics/review_queue_items/${id}/`}export const llmAnalyticsReviewQueueItemsRetrieve = async (@@ -1051,7 +1294,7 @@ export const llmAnalyticsReviewQueueItemsRetrieve = async (}export const getLlmAnalyticsReviewQueueItemsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/review_queue_items/${id}/`+ return `/api/projects/${projectId}/llm_analytics/review_queue_items/${id}/`}export const llmAnalyticsReviewQueueItemsPartialUpdate = async (@@ -1069,7 +1312,7 @@ export const llmAnalyticsReviewQueueItemsPartialUpdate = async (}export const getLlmAnalyticsReviewQueueItemsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/review_queue_items/${id}/`+ return `/api/projects/${projectId}/llm_analytics/review_queue_items/${id}/`}export const llmAnalyticsReviewQueueItemsDestroy = async (@@ -1095,8 +1338,8 @@ export const getLlmAnalyticsReviewQueuesListUrl = (projectId: string, params?: Lconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_analytics/review_queues/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_analytics/review_queues/`+ ? `/api/projects/${projectId}/llm_analytics/review_queues/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_analytics/review_queues/`}export const llmAnalyticsReviewQueuesList = async (@@ -1111,7 +1354,7 @@ export const llmAnalyticsReviewQueuesList = async (}export const getLlmAnalyticsReviewQueuesCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/review_queues/`+ return `/api/projects/${projectId}/llm_analytics/review_queues/`}export const llmAnalyticsReviewQueuesCreate = async (@@ -1128,7 +1371,7 @@ export const llmAnalyticsReviewQueuesCreate = async (}export const getLlmAnalyticsReviewQueuesRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/review_queues/${id}/`+ return `/api/projects/${projectId}/llm_analytics/review_queues/${id}/`}export const llmAnalyticsReviewQueuesRetrieve = async (@@ -1143,7 +1386,7 @@ export const llmAnalyticsReviewQueuesRetrieve = async (}export const getLlmAnalyticsReviewQueuesPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/review_queues/${id}/`+ return `/api/projects/${projectId}/llm_analytics/review_queues/${id}/`}export const llmAnalyticsReviewQueuesPartialUpdate = async (@@ -1161,7 +1404,7 @@ export const llmAnalyticsReviewQueuesPartialUpdate = async (}export const getLlmAnalyticsReviewQueuesDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/review_queues/${id}/`+ return `/api/projects/${projectId}/llm_analytics/review_queues/${id}/`}export const llmAnalyticsReviewQueuesDestroy = async (@@ -1190,8 +1433,8 @@ export const getLlmAnalyticsScoreDefinitionsListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_analytics/score_definitions/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_analytics/score_definitions/`+ ? `/api/projects/${projectId}/llm_analytics/score_definitions/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_analytics/score_definitions/`}export const llmAnalyticsScoreDefinitionsList = async (@@ -1206,7 +1449,7 @@ export const llmAnalyticsScoreDefinitionsList = async (}export const getLlmAnalyticsScoreDefinitionsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/score_definitions/`+ return `/api/projects/${projectId}/llm_analytics/score_definitions/`}export const llmAnalyticsScoreDefinitionsCreate = async (@@ -1223,7 +1466,7 @@ export const llmAnalyticsScoreDefinitionsCreate = async (}export const getLlmAnalyticsScoreDefinitionsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/score_definitions/${id}/`+ return `/api/projects/${projectId}/llm_analytics/score_definitions/${id}/`}export const llmAnalyticsScoreDefinitionsRetrieve = async (@@ -1238,7 +1481,7 @@ export const llmAnalyticsScoreDefinitionsRetrieve = async (}export const getLlmAnalyticsScoreDefinitionsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/score_definitions/${id}/`+ return `/api/projects/${projectId}/llm_analytics/score_definitions/${id}/`}export const llmAnalyticsScoreDefinitionsPartialUpdate = async (@@ -1256,7 +1499,7 @@ export const llmAnalyticsScoreDefinitionsPartialUpdate = async (}export const getLlmAnalyticsScoreDefinitionsNewVersionCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/score_definitions/${id}/new_version/`+ return `/api/projects/${projectId}/llm_analytics/score_definitions/${id}/new_version/`}export const llmAnalyticsScoreDefinitionsNewVersionCreate = async (@@ -1274,7 +1517,7 @@ export const llmAnalyticsScoreDefinitionsNewVersionCreate = async (}export const getLlmAnalyticsSentimentCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/sentiment/`+ return `/api/projects/${projectId}/llm_analytics/sentiment/`}export const llmAnalyticsSentimentCreate = async (@@ -1291,7 +1534,7 @@ export const llmAnalyticsSentimentCreate = async (}export const getLlmAnalyticsSentimentGenerationsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/sentiment/generations/`+ return `/api/projects/${projectId}/llm_analytics/sentiment/generations/`}export const llmAnalyticsSentimentGenerationsCreate = async (@@ -1308,7 +1551,7 @@ export const llmAnalyticsSentimentGenerationsCreate = async (}export const getLlmAnalyticsSummarizationCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/summarization/`+ return `/api/projects/${projectId}/llm_analytics/summarization/`}/**@@ -1349,7 +1592,7 @@ export const llmAnalyticsSummarizationCreate = async (}export const getLlmAnalyticsSummarizationBatchCheckCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/summarization/batch_check/`+ return `/api/projects/${projectId}/llm_analytics/summarization/batch_check/`}/**@@ -1380,7 +1623,7 @@ export const llmAnalyticsSummarizationBatchCheckCreate = async (}export const getLlmAnalyticsTextReprCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/text_repr/`+ return `/api/projects/${projectId}/llm_analytics/text_repr/`}/**@@ -1444,8 +1687,8 @@ export const getLlmAnalyticsTraceReviewsListUrl = (projectId: string, params?: Lconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_analytics/trace_reviews/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_analytics/trace_reviews/`+ ? `/api/projects/${projectId}/llm_analytics/trace_reviews/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_analytics/trace_reviews/`}export const llmAnalyticsTraceReviewsList = async (@@ -1460,7 +1703,7 @@ export const llmAnalyticsTraceReviewsList = async (}export const getLlmAnalyticsTraceReviewsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/trace_reviews/`+ return `/api/projects/${projectId}/llm_analytics/trace_reviews/`}export const llmAnalyticsTraceReviewsCreate = async (@@ -1477,7 +1720,7 @@ export const llmAnalyticsTraceReviewsCreate = async (}export const getLlmAnalyticsTraceReviewsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/trace_reviews/${id}/`+ return `/api/projects/${projectId}/llm_analytics/trace_reviews/${id}/`}export const llmAnalyticsTraceReviewsRetrieve = async (@@ -1492,7 +1735,7 @@ export const llmAnalyticsTraceReviewsRetrieve = async (}export const getLlmAnalyticsTraceReviewsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/trace_reviews/${id}/`+ return `/api/projects/${projectId}/llm_analytics/trace_reviews/${id}/`}export const llmAnalyticsTraceReviewsPartialUpdate = async (@@ -1510,7 +1753,7 @@ export const llmAnalyticsTraceReviewsPartialUpdate = async (}export const getLlmAnalyticsTraceReviewsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/llm_analytics/trace_reviews/${id}/`+ return `/api/projects/${projectId}/llm_analytics/trace_reviews/${id}/`}export const llmAnalyticsTraceReviewsDestroy = async (@@ -1525,7 +1768,7 @@ export const llmAnalyticsTraceReviewsDestroy = async (}export const getLlmAnalyticsTranslateCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_analytics/translate/`+ return `/api/projects/${projectId}/llm_analytics/translate/`}/**@@ -1556,8 +1799,8 @@ export const getLlmPromptsListUrl = (projectId: string, params?: LlmPromptsListPconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_prompts/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_prompts/`+ ? `/api/projects/${projectId}/llm_prompts/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_prompts/`}export const llmPromptsList = async (@@ -1572,7 +1815,7 @@ export const llmPromptsList = async (}export const getLlmPromptsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_prompts/`+ return `/api/projects/${projectId}/llm_prompts/`}export const llmPromptsCreate = async (@@ -1604,8 +1847,8 @@ export const getLlmPromptsNameRetrieveUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_prompts/name/${promptName}/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_prompts/name/${promptName}/`+ ? `/api/projects/${projectId}/llm_prompts/name/${promptName}/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_prompts/name/${promptName}/`}export const llmPromptsNameRetrieve = async (@@ -1621,7 +1864,7 @@ export const llmPromptsNameRetrieve = async (}export const getLlmPromptsNamePartialUpdateUrl = (projectId: string, promptName: string) => {- return `/api/environments/${projectId}/llm_prompts/name/${promptName}/`+ return `/api/projects/${projectId}/llm_prompts/name/${promptName}/`}export const llmPromptsNamePartialUpdate = async (@@ -1639,7 +1882,7 @@ export const llmPromptsNamePartialUpdate = async (}export const getLlmPromptsNameArchiveCreateUrl = (projectId: string, promptName: string) => {- return `/api/environments/${projectId}/llm_prompts/name/${promptName}/archive/`+ return `/api/projects/${projectId}/llm_prompts/name/${promptName}/archive/`}export const llmPromptsNameArchiveCreate = async (@@ -1657,7 +1900,7 @@ export const llmPromptsNameArchiveCreate = async (}export const getLlmPromptsNameDuplicateCreateUrl = (projectId: string, promptName: string) => {- return `/api/environments/${projectId}/llm_prompts/name/${promptName}/duplicate/`+ return `/api/projects/${projectId}/llm_prompts/name/${promptName}/duplicate/`}export const llmPromptsNameDuplicateCreate = async (@@ -1690,8 +1933,8 @@ export const getLlmPromptsResolveNameRetrieveUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_prompts/resolve/name/${promptName}/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_prompts/resolve/name/${promptName}/`+ ? `/api/projects/${projectId}/llm_prompts/resolve/name/${promptName}/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_prompts/resolve/name/${promptName}/`}export const llmPromptsResolveNameRetrieve = async (@@ -1718,8 +1961,8 @@ export const getLlmSkillsListUrl = (projectId: string, params?: LlmSkillsListParconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_skills/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_skills/`+ ? `/api/projects/${projectId}/llm_skills/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_skills/`}export const llmSkillsList = async (@@ -1734,7 +1977,7 @@ export const llmSkillsList = async (}export const getLlmSkillsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/llm_skills/`+ return `/api/projects/${projectId}/llm_skills/`}export const llmSkillsCreate = async (@@ -1766,8 +2009,8 @@ export const getLlmSkillsNameRetrieveUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_skills/name/${skillName}/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_skills/name/${skillName}/`+ ? `/api/projects/${projectId}/llm_skills/name/${skillName}/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_skills/name/${skillName}/`}export const llmSkillsNameRetrieve = async (@@ -1783,7 +2026,7 @@ export const llmSkillsNameRetrieve = async (}export const getLlmSkillsNamePartialUpdateUrl = (projectId: string, skillName: string) => {- return `/api/environments/${projectId}/llm_skills/name/${skillName}/`+ return `/api/projects/${projectId}/llm_skills/name/${skillName}/`}export const llmSkillsNamePartialUpdate = async (@@ -1801,7 +2044,7 @@ export const llmSkillsNamePartialUpdate = async (}export const getLlmSkillsNameArchiveCreateUrl = (projectId: string, skillName: string) => {- return `/api/environments/${projectId}/llm_skills/name/${skillName}/archive/`+ return `/api/projects/${projectId}/llm_skills/name/${skillName}/archive/`}export const llmSkillsNameArchiveCreate = async (@@ -1816,7 +2059,7 @@ export const llmSkillsNameArchiveCreate = async (}export const getLlmSkillsNameDuplicateCreateUrl = (projectId: string, skillName: string) => {- return `/api/environments/${projectId}/llm_skills/name/${skillName}/duplicate/`+ return `/api/projects/${projectId}/llm_skills/name/${skillName}/duplicate/`}export const llmSkillsNameDuplicateCreate = async (@@ -1834,7 +2077,7 @@ export const llmSkillsNameDuplicateCreate = async (}export const getLlmSkillsNameFilesCreateUrl = (projectId: string, skillName: string) => {- return `/api/environments/${projectId}/llm_skills/name/${skillName}/files/`+ return `/api/projects/${projectId}/llm_skills/name/${skillName}/files/`}export const llmSkillsNameFilesCreate = async (@@ -1852,7 +2095,7 @@ export const llmSkillsNameFilesCreate = async (}export const getLlmSkillsNameFilesRenameCreateUrl = (projectId: string, skillName: string) => {- return `/api/environments/${projectId}/llm_skills/name/${skillName}/files-rename/`+ return `/api/projects/${projectId}/llm_skills/name/${skillName}/files-rename/`}export const llmSkillsNameFilesRenameCreate = async (@@ -1886,8 +2129,8 @@ export const getLlmSkillsNameFilesRetrieveUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_skills/name/${skillName}/files/${filePath}/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_skills/name/${skillName}/files/${filePath}/`+ ? `/api/projects/${projectId}/llm_skills/name/${skillName}/files/${filePath}/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_skills/name/${skillName}/files/${filePath}/`}export const llmSkillsNameFilesRetrieve = async (@@ -1920,8 +2163,8 @@ export const getLlmSkillsNameFilesDestroyUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_skills/name/${skillName}/files/${filePath}/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_skills/name/${skillName}/files/${filePath}/`+ ? `/api/projects/${projectId}/llm_skills/name/${skillName}/files/${filePath}/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_skills/name/${skillName}/files/${filePath}/`}export const llmSkillsNameFilesDestroy = async (@@ -1953,8 +2196,8 @@ export const getLlmSkillsResolveNameRetrieveUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/llm_skills/resolve/name/${skillName}/?${stringifiedParams}`- : `/api/environments/${projectId}/llm_skills/resolve/name/${skillName}/`+ ? `/api/projects/${projectId}/llm_skills/resolve/name/${skillName}/?${stringifiedParams}`+ : `/api/projects/${projectId}/llm_skills/resolve/name/${skillName}/`}export const llmSkillsResolveNameRetrieve = async (@@ -1981,8 +2224,8 @@ export const getTaggersListUrl = (projectId: string, params?: TaggersListParams)const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/taggers/?${stringifiedParams}`- : `/api/environments/${projectId}/taggers/`+ ? `/api/projects/${projectId}/taggers/?${stringifiedParams}`+ : `/api/projects/${projectId}/taggers/`}export const taggersList = async (@@ -1997,7 +2240,7 @@ export const taggersList = async (}export const getTaggersCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/taggers/`+ return `/api/projects/${projectId}/taggers/`}export const taggersCreate = async (@@ -2014,7 +2257,7 @@ export const taggersCreate = async (}export const getTaggersTestHogCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/taggers/test_hog/`+ return `/api/projects/${projectId}/taggers/test_hog/`}/**@@ -2032,246 +2275,3 @@ export const taggersTestHogCreate = async (body: JSON.stringify(testHogTaggerRequestApi),})}--export const getLlmAnalyticsPersonalSpendListUrl = (params: LlmAnalyticsPersonalSpendListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : value.toString())- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/llm_analytics/@me/spend/?${stringifiedParams}`- : `/api/llm_analytics/@me/spend/`-}--/**- * Return a structured personal LLM spend analysis for the requesting user. Pass `date_from` / `date_to` (absolute like `2026-04-23` or relative like `-7d`) to bound the window — defaults to the last 30 days, max 90 days. The `product=<ai_product>` query param is required and scopes the tool / model / trace breakdowns to a single product; supported values: posthog_code. `by_product` is always returned for cross-product visibility. Use `refresh=true` to bypass the 5-minute response cache.- */-export const llmAnalyticsPersonalSpendList = async (- params: LlmAnalyticsPersonalSpendListParams,- options?: RequestInit-): Promise<PersonalSpendAnalysisResponseApi[]> => {- return apiMutator<PersonalSpendAnalysisResponseApi[]>(getLlmAnalyticsPersonalSpendListUrl(params), {- ...options,- method: 'GET',- })-}--export const getDatasetItemsListUrl = (projectId: string, params?: DatasetItemsListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : value.toString())- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/projects/${projectId}/dataset_items/?${stringifiedParams}`- : `/api/projects/${projectId}/dataset_items/`-}--export const datasetItemsList = async (- projectId: string,- params?: DatasetItemsListParams,- options?: RequestInit-): Promise<PaginatedDatasetItemListApi> => {- return apiMutator<PaginatedDatasetItemListApi>(getDatasetItemsListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getDatasetItemsCreateUrl = (projectId: string) => {- return `/api/projects/${projectId}/dataset_items/`-}--export const datasetItemsCreate = async (- projectId: string,- datasetItemApi: NonReadonly<DatasetItemApi>,- options?: RequestInit-): Promise<DatasetItemApi> => {- return apiMutator<DatasetItemApi>(getDatasetItemsCreateUrl(projectId), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(datasetItemApi),- })-}--export const getDatasetItemsRetrieveUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/dataset_items/${id}/`-}--export const datasetItemsRetrieve = async (- projectId: string,- id: string,- options?: RequestInit-): Promise<DatasetItemApi> => {- return apiMutator<DatasetItemApi>(getDatasetItemsRetrieveUrl(projectId, id), {- ...options,- method: 'GET',- })-}--export const getDatasetItemsUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/dataset_items/${id}/`-}--export const datasetItemsUpdate = async (- projectId: string,- id: string,- datasetItemApi: NonReadonly<DatasetItemApi>,- options?: RequestInit-): Promise<DatasetItemApi> => {- return apiMutator<DatasetItemApi>(getDatasetItemsUpdateUrl(projectId, id), {- ...options,- method: 'PUT',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(datasetItemApi),- })-}--export const getDatasetItemsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/dataset_items/${id}/`-}--export const datasetItemsPartialUpdate = async (- projectId: string,- id: string,- patchedDatasetItemApi?: NonReadonly<PatchedDatasetItemApi>,- options?: RequestInit-): Promise<DatasetItemApi> => {- return apiMutator<DatasetItemApi>(getDatasetItemsPartialUpdateUrl(projectId, id), {- ...options,- method: 'PATCH',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedDatasetItemApi),- })-}--export const getDatasetItemsDestroyUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/dataset_items/${id}/`-}--/**- * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true- */-export const datasetItemsDestroy = async (projectId: string, id: string, options?: RequestInit): Promise<unknown> => {- return apiMutator<unknown>(getDatasetItemsDestroyUrl(projectId, id), {- ...options,- method: 'DELETE',- })-}--export const getDatasetsListUrl = (projectId: string, params?: DatasetsListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : value.toString())- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/projects/${projectId}/datasets/?${stringifiedParams}`- : `/api/projects/${projectId}/datasets/`-}--export const datasetsList = async (- projectId: string,- params?: DatasetsListParams,- options?: RequestInit-): Promise<PaginatedDatasetListApi> => {- return apiMutator<PaginatedDatasetListApi>(getDatasetsListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getDatasetsCreateUrl = (projectId: string) => {- return `/api/projects/${projectId}/datasets/`-}--export const datasetsCreate = async (- projectId: string,- datasetApi: NonReadonly<DatasetApi>,- options?: RequestInit-): Promise<DatasetApi> => {- return apiMutator<DatasetApi>(getDatasetsCreateUrl(projectId), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(datasetApi),- })-}--export const getDatasetsRetrieveUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/datasets/${id}/`-}--export const datasetsRetrieve = async (projectId: string, id: string, options?: RequestInit): Promise<DatasetApi> => {- return apiMutator<DatasetApi>(getDatasetsRetrieveUrl(projectId, id), {- ...options,- method: 'GET',- })-}--export const getDatasetsUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/datasets/${id}/`-}--export const datasetsUpdate = async (- projectId: string,- id: string,- datasetApi: NonReadonly<DatasetApi>,- options?: RequestInit-): Promise<DatasetApi> => {- return apiMutator<DatasetApi>(getDatasetsUpdateUrl(projectId, id), {- ...options,- method: 'PUT',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(datasetApi),- })-}--export const getDatasetsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/datasets/${id}/`-}--export const datasetsPartialUpdate = async (- projectId: string,- id: string,- patchedDatasetApi?: NonReadonly<PatchedDatasetApi>,- options?: RequestInit-): Promise<DatasetApi> => {- return apiMutator<DatasetApi>(getDatasetsPartialUpdateUrl(projectId, id), {- ...options,- method: 'PATCH',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedDatasetApi),- })-}--export const getDatasetsDestroyUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/datasets/${id}/`-}--/**- * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true- */-export const datasetsDestroy = async (projectId: string, id: string, options?: RequestInit): Promise<unknown> => {- return apiMutator<unknown>(getDatasetsDestroyUrl(projectId, id), {- ...options,- method: 'DELETE',- })-}diff --git a/products/ai_observability/frontend/generated/api.zod.ts b/products/ai_observability/frontend/generated/api.zod.tsindex f5172828d0aa..26b71e365c2e 100644--- a/products/ai_observability/frontend/generated/api.zod.ts+++ b/products/ai_observability/frontend/generated/api.zod.ts@@ -9,6 +9,78 @@*/import * as zod from 'zod'+export const datasetItemsCreateBodyRefTraceIdMax = 255++export const datasetItemsCreateBodyRefSourceIdMax = 255++export const DatasetItemsCreateBody = /* @__PURE__ */ zod.object({+ dataset: zod.uuid(),+ input: zod.unknown().optional(),+ output: zod.unknown().optional(),+ metadata: zod.unknown().optional(),+ ref_trace_id: zod.string().max(datasetItemsCreateBodyRefTraceIdMax).nullish(),+ ref_timestamp: zod.iso.datetime({ offset: true }).nullish(),+ ref_source_id: zod.string().max(datasetItemsCreateBodyRefSourceIdMax).nullish(),+ deleted: zod.boolean().nullish(),+})++export const datasetItemsUpdateBodyRefTraceIdMax = 255++export const datasetItemsUpdateBodyRefSourceIdMax = 255++export const DatasetItemsUpdateBody = /* @__PURE__ */ zod.object({+ dataset: zod.uuid(),+ input: zod.unknown().optional(),+ output: zod.unknown().optional(),+ metadata: zod.unknown().optional(),+ ref_trace_id: zod.string().max(datasetItemsUpdateBodyRefTraceIdMax).nullish(),+ ref_timestamp: zod.iso.datetime({ offset: true }).nullish(),+ ref_source_id: zod.string().max(datasetItemsUpdateBodyRefSourceIdMax).nullish(),+ deleted: zod.boolean().nullish(),+})++export const datasetItemsPartialUpdateBodyRefTraceIdMax = 255++export const datasetItemsPartialUpdateBodyRefSourceIdMax = 255++export const DatasetItemsPartialUpdateBody = /* @__PURE__ */ zod.object({+ dataset: zod.uuid().optional(),+ input: zod.unknown().optional(),+ output: zod.unknown().optional(),+ metadata: zod.unknown().optional(),+ ref_trace_id: zod.string().max(datasetItemsPartialUpdateBodyRefTraceIdMax).nullish(),+ ref_timestamp: zod.iso.datetime({ offset: true }).nullish(),+ ref_source_id: zod.string().max(datasetItemsPartialUpdateBodyRefSourceIdMax).nullish(),+ deleted: zod.boolean().nullish(),+})++export const datasetsCreateBodyNameMax = 400++export const DatasetsCreateBody = /* @__PURE__ */ zod.object({+ name: zod.string().max(datasetsCreateBodyNameMax),+ description: zod.string().nullish(),+ metadata: zod.unknown().optional(),+ deleted: zod.boolean().nullish(),+})++export const datasetsUpdateBodyNameMax = 400++export const DatasetsUpdateBody = /* @__PURE__ */ zod.object({+ name: zod.string().max(datasetsUpdateBodyNameMax),+ description: zod.string().nullish(),+ metadata: zod.unknown().optional(),+ deleted: zod.boolean().nullish(),+})++export const datasetsPartialUpdateBodyNameMax = 400++export const DatasetsPartialUpdateBody = /* @__PURE__ */ zod.object({+ name: zod.string().max(datasetsPartialUpdateBodyNameMax).optional(),+ description: zod.string().nullish(),+ metadata: zod.unknown().optional(),+ deleted: zod.boolean().nullish(),+})+/*** Create a new evaluation run.@@ -1882,75 +1954,3 @@ export const TaggersTestHogCreateBody = /* @__PURE__ */ zod.object({.optional().describe('Optional tag whitelist. Returned tags outside this list are filtered out.'),})--export const datasetItemsCreateBodyRefTraceIdMax = 255--export const datasetItemsCreateBodyRefSourceIdMax = 255--export const DatasetItemsCreateBody = /* @__PURE__ */ zod.object({- dataset: zod.uuid(),- input: zod.unknown().optional(),- output: zod.unknown().optional(),- metadata: zod.unknown().optional(),- ref_trace_id: zod.string().max(datasetItemsCreateBodyRefTraceIdMax).nullish(),- ref_timestamp: zod.iso.datetime({ offset: true }).nullish(),- ref_source_id: zod.string().max(datasetItemsCreateBodyRefSourceIdMax).nullish(),- deleted: zod.boolean().nullish(),-})--export const datasetItemsUpdateBodyRefTraceIdMax = 255--export const datasetItemsUpdateBodyRefSourceIdMax = 255--export const DatasetItemsUpdateBody = /* @__PURE__ */ zod.object({- dataset: zod.uuid(),- input: zod.unknown().optional(),- output: zod.unknown().optional(),- metadata: zod.unknown().optional(),- ref_trace_id: zod.string().max(datasetItemsUpdateBodyRefTraceIdMax).nullish(),- ref_timestamp: zod.iso.datetime({ offset: true }).nullish(),- ref_source_id: zod.string().max(datasetItemsUpdateBodyRefSourceIdMax).nullish(),- deleted: zod.boolean().nullish(),-})--export const datasetItemsPartialUpdateBodyRefTraceIdMax = 255--export const datasetItemsPartialUpdateBodyRefSourceIdMax = 255--export const DatasetItemsPartialUpdateBody = /* @__PURE__ */ zod.object({- dataset: zod.uuid().optional(),- input: zod.unknown().optional(),- output: zod.unknown().optional(),- metadata: zod.unknown().optional(),- ref_trace_id: zod.string().max(datasetItemsPartialUpdateBodyRefTraceIdMax).nullish(),- ref_timestamp: zod.iso.datetime({ offset: true }).nullish(),- ref_source_id: zod.string().max(datasetItemsPartialUpdateBodyRefSourceIdMax).nullish(),- deleted: zod.boolean().nullish(),-})--export const datasetsCreateBodyNameMax = 400--export const DatasetsCreateBody = /* @__PURE__ */ zod.object({- name: zod.string().max(datasetsCreateBodyNameMax),- description: zod.string().nullish(),- metadata: zod.unknown().optional(),- deleted: zod.boolean().nullish(),-})--export const datasetsUpdateBodyNameMax = 400--export const DatasetsUpdateBody = /* @__PURE__ */ zod.object({- name: zod.string().max(datasetsUpdateBodyNameMax),- description: zod.string().nullish(),- metadata: zod.unknown().optional(),- deleted: zod.boolean().nullish(),-})--export const datasetsPartialUpdateBodyNameMax = 400--export const DatasetsPartialUpdateBody = /* @__PURE__ */ zod.object({- name: zod.string().max(datasetsPartialUpdateBodyNameMax).optional(),- description: zod.string().nullish(),- metadata: zod.unknown().optional(),- deleted: zod.boolean().nullish(),-})diff --git a/products/conversations/frontend/generated/api.schemas.ts b/products/conversations/frontend/generated/api.schemas.tsindex 754bf5d4ef1a..288793aead49 100644--- a/products/conversations/frontend/generated/api.schemas.ts+++ b/products/conversations/frontend/generated/api.schemas.ts@@ -281,31 +281,6 @@ export interface PatchedConversationApi {readonly pending_approvals?: readonly PatchedConversationApiPendingApprovalsItem[]}-/**- * Saved ticket filter criteria. May contain status, priority, channel, sla, assignee, tags, dateFrom, dateTo, and sorting keys.- */-export type TicketViewApiFilters = { [key: string]: unknown }--export interface TicketViewApi {- readonly id: string- readonly short_id: string- /** @maxLength 400 */- name: string- /** Saved ticket filter criteria. May contain status, priority, channel, sla, assignee, tags, dateFrom, dateTo, and sorting keys. */- filters?: TicketViewApiFilters- readonly created_at: string- readonly created_by: UserBasicApi-}--export interface PaginatedTicketViewListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: TicketViewApi[]-}-/*** * `widget` - Widget* `email` - Email@@ -644,18 +619,32 @@ export interface ComposeTicketResponseApi {ticket_number: number}-export type ConversationsListParams = {- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number+/**+ * Saved ticket filter criteria. May contain status, priority, channel, sla, assignee, tags, dateFrom, dateTo, and sorting keys.+ */+export type TicketViewApiFilters = { [key: string]: unknown }++export interface TicketViewApi {+ readonly id: string+ readonly short_id: string+ /** @maxLength 400 */+ name: string+ /** Saved ticket filter criteria. May contain status, priority, channel, sla, assignee, tags, dateFrom, dateTo, and sorting keys. */+ filters?: TicketViewApiFilters+ readonly created_at: string+ readonly created_by: UserBasicApi}-export type ConversationsViewsListParams = {+export interface PaginatedTicketViewListApi {+ count: number+ /** @nullable */+ next?: string | null+ /** @nullable */+ previous?: string | null+ results: TicketViewApi[]+}++export type ConversationsListParams = {/*** Number of results to return per page.*/@@ -757,3 +746,14 @@ export const ConversationsTicketsListSla = {Breached: 'breached',OnTrack: 'on-track',} as const++export type ConversationsViewsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number+ /**+ * The initial index from which to return the results.+ */+ offset?: number+}diff --git a/products/conversations/frontend/generated/api.ts b/products/conversations/frontend/generated/api.tsindex d0ba286a2719..6893dcee8285 100644--- a/products/conversations/frontend/generated/api.ts+++ b/products/conversations/frontend/generated/api.ts@@ -256,80 +256,6 @@ export const conversationsQueueClearCreate = async (})}-export const getConversationsViewsListUrl = (projectId: string, params?: ConversationsViewsListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : value.toString())- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/environments/${projectId}/conversations/views/?${stringifiedParams}`- : `/api/environments/${projectId}/conversations/views/`-}--export const conversationsViewsList = async (- projectId: string,- params?: ConversationsViewsListParams,- options?: RequestInit-): Promise<PaginatedTicketViewListApi> => {- return apiMutator<PaginatedTicketViewListApi>(getConversationsViewsListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getConversationsViewsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/conversations/views/`-}--export const conversationsViewsCreate = async (- projectId: string,- ticketViewApi: NonReadonly<TicketViewApi>,- options?: RequestInit-): Promise<TicketViewApi> => {- return apiMutator<TicketViewApi>(getConversationsViewsCreateUrl(projectId), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(ticketViewApi),- })-}--export const getConversationsViewsRetrieveUrl = (projectId: string, shortId: string) => {- return `/api/environments/${projectId}/conversations/views/${shortId}/`-}--export const conversationsViewsRetrieve = async (- projectId: string,- shortId: string,- options?: RequestInit-): Promise<TicketViewApi> => {- return apiMutator<TicketViewApi>(getConversationsViewsRetrieveUrl(projectId, shortId), {- ...options,- method: 'GET',- })-}--export const getConversationsViewsDestroyUrl = (projectId: string, shortId: string) => {- return `/api/environments/${projectId}/conversations/views/${shortId}/`-}--export const conversationsViewsDestroy = async (- projectId: string,- shortId: string,- options?: RequestInit-): Promise<void> => {- return apiMutator<void>(getConversationsViewsDestroyUrl(projectId, shortId), {- ...options,- method: 'DELETE',- })-}-export const getConversationsTicketsListUrl = (projectId: string, params?: ConversationsTicketsListParams) => {const normalizedParams = new URLSearchParams()@@ -539,3 +465,77 @@ export const conversationsTicketsUnreadCountRetrieve = async (method: 'GET',})}++export const getConversationsViewsListUrl = (projectId: string, params?: ConversationsViewsListParams) => {+ const normalizedParams = new URLSearchParams()++ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : value.toString())+ }+ })++ const stringifiedParams = normalizedParams.toString()++ return stringifiedParams.length > 0+ ? `/api/projects/${projectId}/conversations/views/?${stringifiedParams}`+ : `/api/projects/${projectId}/conversations/views/`+}++export const conversationsViewsList = async (+ projectId: string,+ params?: ConversationsViewsListParams,+ options?: RequestInit+): Promise<PaginatedTicketViewListApi> => {+ return apiMutator<PaginatedTicketViewListApi>(getConversationsViewsListUrl(projectId, params), {+ ...options,+ method: 'GET',+ })+}++export const getConversationsViewsCreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/conversations/views/`+}++export const conversationsViewsCreate = async (+ projectId: string,+ ticketViewApi: NonReadonly<TicketViewApi>,+ options?: RequestInit+): Promise<TicketViewApi> => {+ return apiMutator<TicketViewApi>(getConversationsViewsCreateUrl(projectId), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(ticketViewApi),+ })+}++export const getConversationsViewsRetrieveUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/conversations/views/${shortId}/`+}++export const conversationsViewsRetrieve = async (+ projectId: string,+ shortId: string,+ options?: RequestInit+): Promise<TicketViewApi> => {+ return apiMutator<TicketViewApi>(getConversationsViewsRetrieveUrl(projectId, shortId), {+ ...options,+ method: 'GET',+ })+}++export const getConversationsViewsDestroyUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/conversations/views/${shortId}/`+}++export const conversationsViewsDestroy = async (+ projectId: string,+ shortId: string,+ options?: RequestInit+): Promise<void> => {+ return apiMutator<void>(getConversationsViewsDestroyUrl(projectId, shortId), {+ ...options,+ method: 'DELETE',+ })+}diff --git a/products/conversations/frontend/generated/api.zod.ts b/products/conversations/frontend/generated/api.zod.tsindex afb9ff5fb701..19a62b58cff3 100644--- a/products/conversations/frontend/generated/api.zod.ts+++ b/products/conversations/frontend/generated/api.zod.ts@@ -73,18 +73,6 @@ export const ConversationsQueuePartialUpdateBody = /* @__PURE__ */ zod.looseObjeexport const ConversationsQueueClearCreateBody = /* @__PURE__ */ zod.looseObject({})-export const conversationsViewsCreateBodyNameMax = 400--export const ConversationsViewsCreateBody = /* @__PURE__ */ zod.object({- name: zod.string().max(conversationsViewsCreateBodyNameMax),- filters: zod- .record(zod.string(), zod.unknown())- .optional()- .describe(- 'Saved ticket filter criteria. May contain status, priority, channel, sla, assignee, tags, dateFrom, dateTo, and sorting keys.'- ),-})-export const ConversationsTicketsCreateBody = /* @__PURE__ */ zod.object({status: zod@@ -247,3 +235,15 @@ export const ConversationsTicketsComposeCreateBody = /* @__PURE__ */ zod.object(message: zod.string().max(conversationsTicketsComposeCreateBodyMessageMax).describe('Message content in markdown.'),rich_content: zod.unknown().optional().describe('TipTap rich content JSON for formatted messages.'),})++export const conversationsViewsCreateBodyNameMax = 400++export const ConversationsViewsCreateBody = /* @__PURE__ */ zod.object({+ name: zod.string().max(conversationsViewsCreateBodyNameMax),+ filters: zod+ .record(zod.string(), zod.unknown())+ .optional()+ .describe(+ 'Saved ticket filter criteria. May contain status, priority, channel, sla, assignee, tags, dateFrom, dateTo, and sorting keys.'+ ),+})diff --git a/products/core_events/frontend/generated/api.ts b/products/core_events/frontend/generated/api.tsindex 7d0407a67c14..1d696fb78e1f 100644--- a/products/core_events/frontend/generated/api.ts+++ b/products/core_events/frontend/generated/api.ts@@ -39,8 +39,8 @@ export const getCoreEventsListUrl = (projectId: string, params?: CoreEventsListPconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/core_events/?${stringifiedParams}`- : `/api/environments/${projectId}/core_events/`+ ? `/api/projects/${projectId}/core_events/?${stringifiedParams}`+ : `/api/projects/${projectId}/core_events/`}/**@@ -61,7 +61,7 @@ export const coreEventsList = async (}export const getCoreEventsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/core_events/`+ return `/api/projects/${projectId}/core_events/`}/**@@ -84,7 +84,7 @@ export const coreEventsCreate = async (}export const getCoreEventsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/core_events/${id}/`+ return `/api/projects/${projectId}/core_events/${id}/`}/**@@ -105,7 +105,7 @@ export const coreEventsRetrieve = async (}export const getCoreEventsUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/core_events/${id}/`+ return `/api/projects/${projectId}/core_events/${id}/`}/**@@ -129,7 +129,7 @@ export const coreEventsUpdate = async (}export const getCoreEventsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/core_events/${id}/`+ return `/api/projects/${projectId}/core_events/${id}/`}/**@@ -153,7 +153,7 @@ export const coreEventsPartialUpdate = async (}export const getCoreEventsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/core_events/${id}/`+ return `/api/projects/${projectId}/core_events/${id}/`}/**diff --git a/products/customer_analytics/frontend/generated/api.ts b/products/customer_analytics/frontend/generated/api.tsindex 6d3407382a47..08f7e02f9ab9 100644--- a/products/customer_analytics/frontend/generated/api.ts+++ b/products/customer_analytics/frontend/generated/api.ts@@ -57,8 +57,8 @@ export const getAccountsListUrl = (projectId: string, params?: AccountsListParamconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/accounts/?${stringifiedParams}`- : `/api/environments/${projectId}/accounts/`+ ? `/api/projects/${projectId}/accounts/?${stringifiedParams}`+ : `/api/projects/${projectId}/accounts/`}export const accountsList = async (@@ -73,7 +73,7 @@ export const accountsList = async (}export const getAccountsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/accounts/`+ return `/api/projects/${projectId}/accounts/`}export const accountsCreate = async (@@ -105,8 +105,8 @@ export const getAccountsNotebooksListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/accounts/${accountId}/notebooks/?${stringifiedParams}`- : `/api/environments/${projectId}/accounts/${accountId}/notebooks/`+ ? `/api/projects/${projectId}/accounts/${accountId}/notebooks/?${stringifiedParams}`+ : `/api/projects/${projectId}/accounts/${accountId}/notebooks/`}export const accountsNotebooksList = async (@@ -122,7 +122,7 @@ export const accountsNotebooksList = async (}export const getAccountsNotebooksCreateUrl = (projectId: string, accountId: string) => {- return `/api/environments/${projectId}/accounts/${accountId}/notebooks/`+ return `/api/projects/${projectId}/accounts/${accountId}/notebooks/`}export const accountsNotebooksCreate = async (@@ -140,7 +140,7 @@ export const accountsNotebooksCreate = async (}export const getAccountsNotebooksRetrieveUrl = (projectId: string, accountId: string, shortId: string) => {- return `/api/environments/${projectId}/accounts/${accountId}/notebooks/${shortId}/`+ return `/api/projects/${projectId}/accounts/${accountId}/notebooks/${shortId}/`}export const accountsNotebooksRetrieve = async (@@ -156,7 +156,7 @@ export const accountsNotebooksRetrieve = async (}export const getAccountsNotebooksDestroyUrl = (projectId: string, accountId: string, shortId: string) => {- return `/api/environments/${projectId}/accounts/${accountId}/notebooks/${shortId}/`+ return `/api/projects/${projectId}/accounts/${accountId}/notebooks/${shortId}/`}export const accountsNotebooksDestroy = async (@@ -172,7 +172,7 @@ export const accountsNotebooksDestroy = async (}export const getAccountsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/accounts/${id}/`+ return `/api/projects/${projectId}/accounts/${id}/`}export const accountsRetrieve = async (projectId: string, id: string, options?: RequestInit): Promise<AccountApi> => {@@ -183,7 +183,7 @@ export const accountsRetrieve = async (projectId: string, id: string, options?:}export const getAccountsUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/accounts/${id}/`+ return `/api/projects/${projectId}/accounts/${id}/`}export const accountsUpdate = async (@@ -201,7 +201,7 @@ export const accountsUpdate = async (}export const getAccountsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/accounts/${id}/`+ return `/api/projects/${projectId}/accounts/${id}/`}export const accountsPartialUpdate = async (@@ -219,7 +219,7 @@ export const accountsPartialUpdate = async (}export const getAccountsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/accounts/${id}/`+ return `/api/projects/${projectId}/accounts/${id}/`}export const accountsDestroy = async (projectId: string, id: string, options?: RequestInit): Promise<void> => {@@ -241,8 +241,8 @@ export const getCustomerJourneysListUrl = (projectId: string, params?: CustomerJconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/customer_journeys/?${stringifiedParams}`- : `/api/environments/${projectId}/customer_journeys/`+ ? `/api/projects/${projectId}/customer_journeys/?${stringifiedParams}`+ : `/api/projects/${projectId}/customer_journeys/`}export const customerJourneysList = async (@@ -257,7 +257,7 @@ export const customerJourneysList = async (}export const getCustomerJourneysCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/customer_journeys/`+ return `/api/projects/${projectId}/customer_journeys/`}export const customerJourneysCreate = async (@@ -285,8 +285,8 @@ export const getCustomerProfileConfigsListUrl = (projectId: string, params?: Cusconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/customer_profile_configs/?${stringifiedParams}`- : `/api/environments/${projectId}/customer_profile_configs/`+ ? `/api/projects/${projectId}/customer_profile_configs/?${stringifiedParams}`+ : `/api/projects/${projectId}/customer_profile_configs/`}export const customerProfileConfigsList = async (@@ -301,7 +301,7 @@ export const customerProfileConfigsList = async (}export const getCustomerProfileConfigsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/customer_profile_configs/`+ return `/api/projects/${projectId}/customer_profile_configs/`}export const customerProfileConfigsCreate = async (diff --git a/products/data_modeling/frontend/generated/api.ts b/products/data_modeling/frontend/generated/api.tsindex 18234145172e..c4e1b9a46890 100644--- a/products/data_modeling/frontend/generated/api.ts+++ b/products/data_modeling/frontend/generated/api.ts@@ -49,8 +49,8 @@ export const getDataModelingDagsListUrl = (projectId: string, params?: DataModelconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/data_modeling_dags/?${stringifiedParams}`- : `/api/environments/${projectId}/data_modeling_dags/`+ ? `/api/projects/${projectId}/data_modeling_dags/?${stringifiedParams}`+ : `/api/projects/${projectId}/data_modeling_dags/`}export const dataModelingDagsList = async (@@ -65,7 +65,7 @@ export const dataModelingDagsList = async (}export const getDataModelingDagsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/data_modeling_dags/`+ return `/api/projects/${projectId}/data_modeling_dags/`}export const dataModelingDagsCreate = async (@@ -93,8 +93,8 @@ export const getDataModelingEdgesListUrl = (projectId: string, params?: DataModeconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/data_modeling_edges/?${stringifiedParams}`- : `/api/environments/${projectId}/data_modeling_edges/`+ ? `/api/projects/${projectId}/data_modeling_edges/?${stringifiedParams}`+ : `/api/projects/${projectId}/data_modeling_edges/`}export const dataModelingEdgesList = async (@@ -109,7 +109,7 @@ export const dataModelingEdgesList = async (}export const getDataModelingEdgesCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/data_modeling_edges/`+ return `/api/projects/${projectId}/data_modeling_edges/`}export const dataModelingEdgesCreate = async (@@ -137,8 +137,8 @@ export const getDataModelingNodesListUrl = (projectId: string, params?: DataModeconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/data_modeling_nodes/?${stringifiedParams}`- : `/api/environments/${projectId}/data_modeling_nodes/`+ ? `/api/projects/${projectId}/data_modeling_nodes/?${stringifiedParams}`+ : `/api/projects/${projectId}/data_modeling_nodes/`}export const dataModelingNodesList = async (@@ -153,7 +153,7 @@ export const dataModelingNodesList = async (}export const getDataModelingNodesCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/data_modeling_nodes/`+ return `/api/projects/${projectId}/data_modeling_nodes/`}export const dataModelingNodesCreate = async (@@ -170,7 +170,7 @@ export const dataModelingNodesCreate = async (}export const getDataModelingNodesDagIdsRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/data_modeling_nodes/dag_ids/`+ return `/api/projects/${projectId}/data_modeling_nodes/dag_ids/`}/**diff --git a/products/data_warehouse/frontend/generated/api.schemas.ts b/products/data_warehouse/frontend/generated/api.schemas.tsindex 8c8e9bd4854a..ecb61ee9c88b 100644--- a/products/data_warehouse/frontend/generated/api.schemas.ts+++ b/products/data_warehouse/frontend/generated/api.schemas.ts@@ -7,53 +7,6 @@* PostHog API - generated* OpenAPI spec version: 1.0.0*/-export interface DataWarehouseSavedQueryDraftApi {- readonly id: string- readonly created_at: string- /** @nullable */- readonly updated_at: string | null- /** HogQL query draft */- query?: unknown- /** @nullable */- saved_query_id?: string | null- /** @nullable */- name?: string | null- /**- * view history id that the draft branched from- * @maxLength 255- * @nullable- */- edited_history_id?: string | null-}--export interface PaginatedDataWarehouseSavedQueryDraftListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: DataWarehouseSavedQueryDraftApi[]-}--export interface PatchedDataWarehouseSavedQueryDraftApi {- readonly id?: string- readonly created_at?: string- /** @nullable */- readonly updated_at?: string | null- /** HogQL query draft */- query?: unknown- /** @nullable */- saved_query_id?: string | null- /** @nullable */- name?: string | null- /**- * view history id that the draft branched from- * @maxLength 255- * @nullable- */- edited_history_id?: string | null-}-/*** * `Cancelled` - Cancelled* `Completed` - Completed@@ -1791,6 +1744,53 @@ export interface PatchedDataWarehouseSavedQueryApi {readonly user_access_level?: string | null}+export interface DataWarehouseSavedQueryDraftApi {+ readonly id: string+ readonly created_at: string+ /** @nullable */+ readonly updated_at: string | null+ /** HogQL query draft */+ query?: unknown+ /** @nullable */+ saved_query_id?: string | null+ /** @nullable */+ name?: string | null+ /**+ * view history id that the draft branched from+ * @maxLength 255+ * @nullable+ */+ edited_history_id?: string | null+}++export interface PaginatedDataWarehouseSavedQueryDraftListApi {+ count: number+ /** @nullable */+ next?: string | null+ /** @nullable */+ previous?: string | null+ results: DataWarehouseSavedQueryDraftApi[]+}++export interface PatchedDataWarehouseSavedQueryDraftApi {+ readonly id?: string+ readonly created_at?: string+ /** @nullable */+ readonly updated_at?: string | null+ /** HogQL query draft */+ query?: unknown+ /** @nullable */+ saved_query_id?: string | null+ /** @nullable */+ name?: string | null+ /**+ * view history id that the draft branched from+ * @maxLength 255+ * @nullable+ */+ edited_history_id?: string | null+}+/*** Mixin for serializers to add user access control fields*/@@ -1953,28 +1953,6 @@ export interface ViewLinkValidationApi {source_table_key: string}-export type FixHogqlListParams = {- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number-}--export type WarehouseSavedQueryDraftsListParams = {- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number-}-export type DataModelingJobsListParams = {/*** The pagination cursor value.@@ -2060,6 +2038,17 @@ export type ExternalDataSourcesConnectionsListParams = {search?: string}+export type FixHogqlListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number+ /**+ * The initial index from which to return the results.+ */+ offset?: number+}+export type InsightVariablesListParams = {/*** A page number within the paginated result set.@@ -2100,6 +2089,17 @@ export type WarehouseSavedQueriesListParams = {search?: string}+export type WarehouseSavedQueryDraftsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number+ /**+ * The initial index from which to return the results.+ */+ offset?: number+}+export type WarehouseTablesListParams = {/*** Number of results to return per page.diff --git a/products/data_warehouse/frontend/generated/api.ts b/products/data_warehouse/frontend/generated/api.tsindex de610d6a3d5d..03a80063b1ad 100644--- a/products/data_warehouse/frontend/generated/api.ts+++ b/products/data_warehouse/frontend/generated/api.ts@@ -82,209 +82,6 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>]}: DistributeReadOnlyOverUnions<T>-export const getFixHogqlListUrl = (projectId: string, params?: FixHogqlListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : value.toString())- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/environments/${projectId}/fix_hogql/?${stringifiedParams}`- : `/api/environments/${projectId}/fix_hogql/`-}--export const fixHogqlList = async (- projectId: string,- params?: FixHogqlListParams,- options?: RequestInit-): Promise<void> => {- return apiMutator<void>(getFixHogqlListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getFixHogqlCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/fix_hogql/`-}--export const fixHogqlCreate = async (projectId: string, options?: RequestInit): Promise<void> => {- return apiMutator<void>(getFixHogqlCreateUrl(projectId), {- ...options,- method: 'POST',- })-}--export const getLineageGetUpstreamRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/lineage/get_upstream/`-}--export const lineageGetUpstreamRetrieve = async (projectId: string, options?: RequestInit): Promise<void> => {- return apiMutator<void>(getLineageGetUpstreamRetrieveUrl(projectId), {- ...options,- method: 'GET',- })-}--export const getManagedViewsetsRetrieveUrl = (projectId: string, kind: 'revenue_analytics') => {- return `/api/environments/${projectId}/managed_viewsets/${kind}/`-}--/**- * Get all views associated with a specific managed viewset.-GET /api/environments/{team_id}/managed_viewsets/{kind}/- */-export const managedViewsetsRetrieve = async (- projectId: string,- kind: 'revenue_analytics',- options?: RequestInit-): Promise<void> => {- return apiMutator<void>(getManagedViewsetsRetrieveUrl(projectId, kind), {- ...options,- method: 'GET',- })-}--export const getManagedViewsetsUpdateUrl = (projectId: string, kind: 'revenue_analytics') => {- return `/api/environments/${projectId}/managed_viewsets/${kind}/`-}--/**- * Enable or disable a managed viewset by kind.-PUT /api/environments/{team_id}/managed_viewsets/{kind}/ with body {"enabled": true/false}- */-export const managedViewsetsUpdate = async (- projectId: string,- kind: 'revenue_analytics',- options?: RequestInit-): Promise<void> => {- return apiMutator<void>(getManagedViewsetsUpdateUrl(projectId, kind), {- ...options,- method: 'PUT',- })-}--export const getWarehouseSavedQueryDraftsListUrl = (- projectId: string,- params?: WarehouseSavedQueryDraftsListParams-) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : value.toString())- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/environments/${projectId}/warehouse_saved_query_drafts/?${stringifiedParams}`- : `/api/environments/${projectId}/warehouse_saved_query_drafts/`-}--export const warehouseSavedQueryDraftsList = async (- projectId: string,- params?: WarehouseSavedQueryDraftsListParams,- options?: RequestInit-): Promise<PaginatedDataWarehouseSavedQueryDraftListApi> => {- return apiMutator<PaginatedDataWarehouseSavedQueryDraftListApi>(- getWarehouseSavedQueryDraftsListUrl(projectId, params),- {- ...options,- method: 'GET',- }- )-}--export const getWarehouseSavedQueryDraftsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/warehouse_saved_query_drafts/`-}--export const warehouseSavedQueryDraftsCreate = async (- projectId: string,- dataWarehouseSavedQueryDraftApi?: NonReadonly<DataWarehouseSavedQueryDraftApi>,- options?: RequestInit-): Promise<DataWarehouseSavedQueryDraftApi> => {- return apiMutator<DataWarehouseSavedQueryDraftApi>(getWarehouseSavedQueryDraftsCreateUrl(projectId), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(dataWarehouseSavedQueryDraftApi),- })-}--export const getWarehouseSavedQueryDraftsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/warehouse_saved_query_drafts/${id}/`-}--export const warehouseSavedQueryDraftsRetrieve = async (- projectId: string,- id: string,- options?: RequestInit-): Promise<DataWarehouseSavedQueryDraftApi> => {- return apiMutator<DataWarehouseSavedQueryDraftApi>(getWarehouseSavedQueryDraftsRetrieveUrl(projectId, id), {- ...options,- method: 'GET',- })-}--export const getWarehouseSavedQueryDraftsUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/warehouse_saved_query_drafts/${id}/`-}--export const warehouseSavedQueryDraftsUpdate = async (- projectId: string,- id: string,- dataWarehouseSavedQueryDraftApi?: NonReadonly<DataWarehouseSavedQueryDraftApi>,- options?: RequestInit-): Promise<DataWarehouseSavedQueryDraftApi> => {- return apiMutator<DataWarehouseSavedQueryDraftApi>(getWarehouseSavedQueryDraftsUpdateUrl(projectId, id), {- ...options,- method: 'PUT',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(dataWarehouseSavedQueryDraftApi),- })-}--export const getWarehouseSavedQueryDraftsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/warehouse_saved_query_drafts/${id}/`-}--export const warehouseSavedQueryDraftsPartialUpdate = async (- projectId: string,- id: string,- patchedDataWarehouseSavedQueryDraftApi?: NonReadonly<PatchedDataWarehouseSavedQueryDraftApi>,- options?: RequestInit-): Promise<DataWarehouseSavedQueryDraftApi> => {- return apiMutator<DataWarehouseSavedQueryDraftApi>(getWarehouseSavedQueryDraftsPartialUpdateUrl(projectId, id), {- ...options,- method: 'PATCH',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedDataWarehouseSavedQueryDraftApi),- })-}--export const getWarehouseSavedQueryDraftsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/warehouse_saved_query_drafts/${id}/`-}--export const warehouseSavedQueryDraftsDestroy = async (- projectId: string,- id: string,- options?: RequestInit-): Promise<void> => {- return apiMutator<void>(getWarehouseSavedQueryDraftsDestroyUrl(projectId, id), {- ...options,- method: 'DELETE',- })-}-export const getDataModelingJobsListUrl = (projectId: string, params?: DataModelingJobsListParams) => {const normalizedParams = new URLSearchParams()@@ -1224,6 +1021,44 @@ export const externalDataSourcesWizardRetrieve = async (projectId: string, optio})}+export const getFixHogqlListUrl = (projectId: string, params?: FixHogqlListParams) => {+ const normalizedParams = new URLSearchParams()++ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : value.toString())+ }+ })++ const stringifiedParams = normalizedParams.toString()++ return stringifiedParams.length > 0+ ? `/api/projects/${projectId}/fix_hogql/?${stringifiedParams}`+ : `/api/projects/${projectId}/fix_hogql/`+}++export const fixHogqlList = async (+ projectId: string,+ params?: FixHogqlListParams,+ options?: RequestInit+): Promise<void> => {+ return apiMutator<void>(getFixHogqlListUrl(projectId, params), {+ ...options,+ method: 'GET',+ })+}++export const getFixHogqlCreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/fix_hogql/`+}++export const fixHogqlCreate = async (projectId: string, options?: RequestInit): Promise<void> => {+ return apiMutator<void>(getFixHogqlCreateUrl(projectId), {+ ...options,+ method: 'POST',+ })+}+export const getInsightVariablesListUrl = (projectId: string, params?: InsightVariablesListParams) => {const normalizedParams = new URLSearchParams()@@ -1330,6 +1165,55 @@ export const insightVariablesDestroy = async (projectId: string, id: string, opt})}+export const getLineageGetUpstreamRetrieveUrl = (projectId: string) => {+ return `/api/projects/${projectId}/lineage/get_upstream/`+}++export const lineageGetUpstreamRetrieve = async (projectId: string, options?: RequestInit): Promise<void> => {+ return apiMutator<void>(getLineageGetUpstreamRetrieveUrl(projectId), {+ ...options,+ method: 'GET',+ })+}++export const getManagedViewsetsRetrieveUrl = (projectId: string, kind: 'revenue_analytics') => {+ return `/api/projects/${projectId}/managed_viewsets/${kind}/`+}++/**+ * Get all views associated with a specific managed viewset.+GET /api/environments/{team_id}/managed_viewsets/{kind}/+ */+export const managedViewsetsRetrieve = async (+ projectId: string,+ kind: 'revenue_analytics',+ options?: RequestInit+): Promise<void> => {+ return apiMutator<void>(getManagedViewsetsRetrieveUrl(projectId, kind), {+ ...options,+ method: 'GET',+ })+}++export const getManagedViewsetsUpdateUrl = (projectId: string, kind: 'revenue_analytics') => {+ return `/api/projects/${projectId}/managed_viewsets/${kind}/`+}++/**+ * Enable or disable a managed viewset by kind.+PUT /api/environments/{team_id}/managed_viewsets/{kind}/ with body {"enabled": true/false}+ */+export const managedViewsetsUpdate = async (+ projectId: string,+ kind: 'revenue_analytics',+ options?: RequestInit+): Promise<void> => {+ return apiMutator<void>(getManagedViewsetsUpdateUrl(projectId, kind), {+ ...options,+ method: 'PUT',+ })+}+export const getQueryTabStateListUrl = (projectId: string, params?: QueryTabStateListParams) => {const normalizedParams = new URLSearchParams()@@ -1858,6 +1742,122 @@ export const warehouseSavedQueriesResumeSchedulesCreate = async (})}+export const getWarehouseSavedQueryDraftsListUrl = (+ projectId: string,+ params?: WarehouseSavedQueryDraftsListParams+) => {+ const normalizedParams = new URLSearchParams()++ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : value.toString())+ }+ })++ const stringifiedParams = normalizedParams.toString()++ return stringifiedParams.length > 0+ ? `/api/projects/${projectId}/warehouse_saved_query_drafts/?${stringifiedParams}`+ : `/api/projects/${projectId}/warehouse_saved_query_drafts/`+}++export const warehouseSavedQueryDraftsList = async (+ projectId: string,+ params?: WarehouseSavedQueryDraftsListParams,+ options?: RequestInit+): Promise<PaginatedDataWarehouseSavedQueryDraftListApi> => {+ return apiMutator<PaginatedDataWarehouseSavedQueryDraftListApi>(+ getWarehouseSavedQueryDraftsListUrl(projectId, params),+ {+ ...options,+ method: 'GET',+ }+ )+}++export const getWarehouseSavedQueryDraftsCreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/warehouse_saved_query_drafts/`+}++export const warehouseSavedQueryDraftsCreate = async (+ projectId: string,+ dataWarehouseSavedQueryDraftApi?: NonReadonly<DataWarehouseSavedQueryDraftApi>,+ options?: RequestInit+): Promise<DataWarehouseSavedQueryDraftApi> => {+ return apiMutator<DataWarehouseSavedQueryDraftApi>(getWarehouseSavedQueryDraftsCreateUrl(projectId), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(dataWarehouseSavedQueryDraftApi),+ })+}++export const getWarehouseSavedQueryDraftsRetrieveUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/warehouse_saved_query_drafts/${id}/`+}++export const warehouseSavedQueryDraftsRetrieve = async (+ projectId: string,+ id: string,+ options?: RequestInit+): Promise<DataWarehouseSavedQueryDraftApi> => {+ return apiMutator<DataWarehouseSavedQueryDraftApi>(getWarehouseSavedQueryDraftsRetrieveUrl(projectId, id), {+ ...options,+ method: 'GET',+ })+}++export const getWarehouseSavedQueryDraftsUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/warehouse_saved_query_drafts/${id}/`+}++export const warehouseSavedQueryDraftsUpdate = async (+ projectId: string,+ id: string,+ dataWarehouseSavedQueryDraftApi?: NonReadonly<DataWarehouseSavedQueryDraftApi>,+ options?: RequestInit+): Promise<DataWarehouseSavedQueryDraftApi> => {+ return apiMutator<DataWarehouseSavedQueryDraftApi>(getWarehouseSavedQueryDraftsUpdateUrl(projectId, id), {+ ...options,+ method: 'PUT',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(dataWarehouseSavedQueryDraftApi),+ })+}++export const getWarehouseSavedQueryDraftsPartialUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/warehouse_saved_query_drafts/${id}/`+}++export const warehouseSavedQueryDraftsPartialUpdate = async (+ projectId: string,+ id: string,+ patchedDataWarehouseSavedQueryDraftApi?: NonReadonly<PatchedDataWarehouseSavedQueryDraftApi>,+ options?: RequestInit+): Promise<DataWarehouseSavedQueryDraftApi> => {+ return apiMutator<DataWarehouseSavedQueryDraftApi>(getWarehouseSavedQueryDraftsPartialUpdateUrl(projectId, id), {+ ...options,+ method: 'PATCH',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(patchedDataWarehouseSavedQueryDraftApi),+ })+}++export const getWarehouseSavedQueryDraftsDestroyUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/warehouse_saved_query_drafts/${id}/`+}++export const warehouseSavedQueryDraftsDestroy = async (+ projectId: string,+ id: string,+ options?: RequestInit+): Promise<void> => {+ return apiMutator<void>(getWarehouseSavedQueryDraftsDestroyUrl(projectId, id), {+ ...options,+ method: 'DELETE',+ })+}+export const getWarehouseSavedQueryFoldersListUrl = (projectId: string) => {return `/api/projects/${projectId}/warehouse_saved_query_folders/`}diff --git a/products/data_warehouse/frontend/generated/api.zod.ts b/products/data_warehouse/frontend/generated/api.zod.tsindex 331f6ebe2ad5..943183d1f557 100644--- a/products/data_warehouse/frontend/generated/api.zod.ts+++ b/products/data_warehouse/frontend/generated/api.zod.ts@@ -9,45 +9,6 @@*/import * as zod from 'zod'-export const warehouseSavedQueryDraftsCreateBodyEditedHistoryIdMax = 255--export const WarehouseSavedQueryDraftsCreateBody = /* @__PURE__ */ zod.object({- query: zod.unknown().optional().describe('HogQL query draft'),- saved_query_id: zod.uuid().nullish(),- name: zod.string().nullish(),- edited_history_id: zod- .string()- .max(warehouseSavedQueryDraftsCreateBodyEditedHistoryIdMax)- .nullish()- .describe('view history id that the draft branched from'),-})--export const warehouseSavedQueryDraftsUpdateBodyEditedHistoryIdMax = 255--export const WarehouseSavedQueryDraftsUpdateBody = /* @__PURE__ */ zod.object({- query: zod.unknown().optional().describe('HogQL query draft'),- saved_query_id: zod.uuid().nullish(),- name: zod.string().nullish(),- edited_history_id: zod- .string()- .max(warehouseSavedQueryDraftsUpdateBodyEditedHistoryIdMax)- .nullish()- .describe('view history id that the draft branched from'),-})--export const warehouseSavedQueryDraftsPartialUpdateBodyEditedHistoryIdMax = 255--export const WarehouseSavedQueryDraftsPartialUpdateBody = /* @__PURE__ */ zod.object({- query: zod.unknown().optional().describe('HogQL query draft'),- saved_query_id: zod.uuid().nullish(),- name: zod.string().nullish(),- edited_history_id: zod- .string()- .max(warehouseSavedQueryDraftsPartialUpdateBodyEditedHistoryIdMax)- .nullish()- .describe('view history id that the draft branched from'),-})-/*** Start provisioning a managed warehouse for this team.*/@@ -1756,6 +1717,45 @@ export const WarehouseSavedQueriesResumeSchedulesCreateBody = /* @__PURE__ */ zo'Shared methods for DataWarehouseSavedQuery serializers.\n\nThis mixin is intended to be used with serializers.ModelSerializer subclasses.')+export const warehouseSavedQueryDraftsCreateBodyEditedHistoryIdMax = 255++export const WarehouseSavedQueryDraftsCreateBody = /* @__PURE__ */ zod.object({+ query: zod.unknown().optional().describe('HogQL query draft'),+ saved_query_id: zod.uuid().nullish(),+ name: zod.string().nullish(),+ edited_history_id: zod+ .string()+ .max(warehouseSavedQueryDraftsCreateBodyEditedHistoryIdMax)+ .nullish()+ .describe('view history id that the draft branched from'),+})++export const warehouseSavedQueryDraftsUpdateBodyEditedHistoryIdMax = 255++export const WarehouseSavedQueryDraftsUpdateBody = /* @__PURE__ */ zod.object({+ query: zod.unknown().optional().describe('HogQL query draft'),+ saved_query_id: zod.uuid().nullish(),+ name: zod.string().nullish(),+ edited_history_id: zod+ .string()+ .max(warehouseSavedQueryDraftsUpdateBodyEditedHistoryIdMax)+ .nullish()+ .describe('view history id that the draft branched from'),+})++export const warehouseSavedQueryDraftsPartialUpdateBodyEditedHistoryIdMax = 255++export const WarehouseSavedQueryDraftsPartialUpdateBody = /* @__PURE__ */ zod.object({+ query: zod.unknown().optional().describe('HogQL query draft'),+ saved_query_id: zod.uuid().nullish(),+ name: zod.string().nullish(),+ edited_history_id: zod+ .string()+ .max(warehouseSavedQueryDraftsPartialUpdateBodyEditedHistoryIdMax)+ .nullish()+ .describe('view history id that the draft branched from'),+})+export const warehouseSavedQueryFoldersCreateBodyNameMax = 128export const WarehouseSavedQueryFoldersCreateBody = /* @__PURE__ */ zoddiff --git a/products/desktop_recordings/frontend/generated/api.ts b/products/desktop_recordings/frontend/generated/api.tsindex 7324140a67f2..8c0693368556 100644--- a/products/desktop_recordings/frontend/generated/api.ts+++ b/products/desktop_recordings/frontend/generated/api.ts@@ -47,8 +47,8 @@ export const getDesktopRecordingsListUrl = (projectId: string, params?: DesktopRconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/desktop_recordings/?${stringifiedParams}`- : `/api/environments/${projectId}/desktop_recordings/`+ ? `/api/projects/${projectId}/desktop_recordings/?${stringifiedParams}`+ : `/api/projects/${projectId}/desktop_recordings/`}/**@@ -68,7 +68,7 @@ export const desktopRecordingsList = async (}export const getDesktopRecordingsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/desktop_recordings/`+ return `/api/projects/${projectId}/desktop_recordings/`}/**@@ -88,7 +88,7 @@ export const desktopRecordingsCreate = async (}export const getDesktopRecordingsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/desktop_recordings/${id}/`+ return `/api/projects/${projectId}/desktop_recordings/${id}/`}/**@@ -108,7 +108,7 @@ export const desktopRecordingsRetrieve = async (}export const getDesktopRecordingsUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/desktop_recordings/${id}/`+ return `/api/projects/${projectId}/desktop_recordings/${id}/`}/**@@ -131,7 +131,7 @@ export const desktopRecordingsUpdate = async (}export const getDesktopRecordingsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/desktop_recordings/${id}/`+ return `/api/projects/${projectId}/desktop_recordings/${id}/`}/**@@ -154,7 +154,7 @@ export const desktopRecordingsPartialUpdate = async (}export const getDesktopRecordingsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/desktop_recordings/${id}/`+ return `/api/projects/${projectId}/desktop_recordings/${id}/`}/**@@ -170,7 +170,7 @@ export const desktopRecordingsDestroy = async (projectId: string, id: string, op}export const getDesktopRecordingsAppendSegmentsCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/desktop_recordings/${id}/append_segments/`+ return `/api/projects/${projectId}/desktop_recordings/${id}/append_segments/`}/**diff --git a/products/error_tracking/frontend/generated/api.schemas.ts b/products/error_tracking/frontend/generated/api.schemas.tsindex 81ca6d40a863..4df02de04f30 100644--- a/products/error_tracking/frontend/generated/api.schemas.ts+++ b/products/error_tracking/frontend/generated/api.schemas.ts@@ -1243,6 +1243,35 @@ export interface PaginatedErrorTrackingRecommendationListApi {results: ErrorTrackingRecommendationApi[]}+export interface ErrorTrackingReleaseApi {+ readonly id: string+ hash_id: string+ readonly team_id: number+ readonly created_at: string+ metadata?: unknown+ version: string+ project: string+}++export interface PaginatedErrorTrackingReleaseListApi {+ count: number+ /** @nullable */+ next?: string | null+ /** @nullable */+ previous?: string | null+ results: ErrorTrackingReleaseApi[]+}++export interface PatchedErrorTrackingReleaseApi {+ readonly id?: string+ hash_id?: string+ readonly team_id?: number+ readonly created_at?: string+ metadata?: unknown+ version?: string+ project?: string+}+export interface ErrorTrackingSettingsApi {/*** Maximum number of exception events ingested per bucket for the entire project. Null removes the limit.@@ -1358,16 +1387,6 @@ export interface PaginatedErrorTrackingSpikeEventListApi {results: ErrorTrackingSpikeEventApi[]}-export interface ErrorTrackingReleaseApi {- readonly id: string- hash_id: string- readonly team_id: number- readonly created_at: string- metadata?: unknown- version: string- project: string-}-export interface ErrorTrackingStackFrameApi {readonly id: string/** Raw frame ID in 'hash/part' format */@@ -1459,25 +1478,6 @@ export interface PatchedErrorTrackingSuppressionRuleApi {readonly updated_at?: string}-export interface PaginatedErrorTrackingReleaseListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: ErrorTrackingReleaseApi[]-}--export interface PatchedErrorTrackingReleaseApi {- readonly id?: string- hash_id?: string- readonly team_id?: number- readonly created_at?: string- metadata?: unknown- version?: string- project?: string-}-/*** Release associated with this symbol set, if any.* @nullable@@ -1678,7 +1678,7 @@ export type ErrorTrackingRecommendationsListParams = {offset?: number}-export type ErrorTrackingSpikeEventsListParams = {+export type ErrorTrackingReleasesListParams = {/*** Number of results to return per page.*/@@ -1689,7 +1689,7 @@ export type ErrorTrackingSpikeEventsListParams = {offset?: number}-export type ErrorTrackingStackFramesListParams = {+export type ErrorTrackingSpikeEventsListParams = {/*** Number of results to return per page.*/@@ -1700,7 +1700,7 @@ export type ErrorTrackingStackFramesListParams = {offset?: number}-export type ErrorTrackingSuppressionRulesListParams = {+export type ErrorTrackingStackFramesListParams = {/*** Number of results to return per page.*/@@ -1711,7 +1711,7 @@ export type ErrorTrackingSuppressionRulesListParams = {offset?: number}-export type ErrorTrackingReleasesListParams = {+export type ErrorTrackingSuppressionRulesListParams = {/*** Number of results to return per page.*/diff --git a/products/error_tracking/frontend/generated/api.ts b/products/error_tracking/frontend/generated/api.tsindex d424cba73aab..7e872cab75b5 100644--- a/products/error_tracking/frontend/generated/api.ts+++ b/products/error_tracking/frontend/generated/api.ts@@ -110,8 +110,8 @@ export const getErrorTrackingAssignmentRulesListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/error_tracking/assignment_rules/?${stringifiedParams}`- : `/api/environments/${projectId}/error_tracking/assignment_rules/`+ ? `/api/projects/${projectId}/error_tracking/assignment_rules/?${stringifiedParams}`+ : `/api/projects/${projectId}/error_tracking/assignment_rules/`}export const errorTrackingAssignmentRulesList = async (@@ -129,7 +129,7 @@ export const errorTrackingAssignmentRulesList = async (}export const getErrorTrackingAssignmentRulesCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/assignment_rules/`+ return `/api/projects/${projectId}/error_tracking/assignment_rules/`}export const errorTrackingAssignmentRulesCreate = async (@@ -146,7 +146,7 @@ export const errorTrackingAssignmentRulesCreate = async (}export const getErrorTrackingAssignmentRulesRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/assignment_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/assignment_rules/${id}/`}export const errorTrackingAssignmentRulesRetrieve = async (@@ -161,7 +161,7 @@ export const errorTrackingAssignmentRulesRetrieve = async (}export const getErrorTrackingAssignmentRulesUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/assignment_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/assignment_rules/${id}/`}export const errorTrackingAssignmentRulesUpdate = async (@@ -179,7 +179,7 @@ export const errorTrackingAssignmentRulesUpdate = async (}export const getErrorTrackingAssignmentRulesPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/assignment_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/assignment_rules/${id}/`}export const errorTrackingAssignmentRulesPartialUpdate = async (@@ -197,7 +197,7 @@ export const errorTrackingAssignmentRulesPartialUpdate = async (}export const getErrorTrackingAssignmentRulesDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/assignment_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/assignment_rules/${id}/`}export const errorTrackingAssignmentRulesDestroy = async (@@ -212,7 +212,7 @@ export const errorTrackingAssignmentRulesDestroy = async (}export const getErrorTrackingAssignmentRulesReorderPartialUpdateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/assignment_rules/reorder/`+ return `/api/projects/${projectId}/error_tracking/assignment_rules/reorder/`}export const errorTrackingAssignmentRulesReorderPartialUpdate = async (@@ -243,8 +243,8 @@ export const getErrorTrackingExternalReferencesListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/error_tracking/external_references/?${stringifiedParams}`- : `/api/environments/${projectId}/error_tracking/external_references/`+ ? `/api/projects/${projectId}/error_tracking/external_references/?${stringifiedParams}`+ : `/api/projects/${projectId}/error_tracking/external_references/`}export const errorTrackingExternalReferencesList = async (@@ -262,7 +262,7 @@ export const errorTrackingExternalReferencesList = async (}export const getErrorTrackingExternalReferencesCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/external_references/`+ return `/api/projects/${projectId}/error_tracking/external_references/`}export const errorTrackingExternalReferencesCreate = async (@@ -279,7 +279,7 @@ export const errorTrackingExternalReferencesCreate = async (}export const getErrorTrackingExternalReferencesRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/external_references/${id}/`+ return `/api/projects/${projectId}/error_tracking/external_references/${id}/`}export const errorTrackingExternalReferencesRetrieve = async (@@ -297,7 +297,7 @@ export const errorTrackingExternalReferencesRetrieve = async (}export const getErrorTrackingExternalReferencesDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/external_references/${id}/`+ return `/api/projects/${projectId}/error_tracking/external_references/${id}/`}/**@@ -329,8 +329,8 @@ export const getErrorTrackingFingerprintsListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/error_tracking/fingerprints/?${stringifiedParams}`- : `/api/environments/${projectId}/error_tracking/fingerprints/`+ ? `/api/projects/${projectId}/error_tracking/fingerprints/?${stringifiedParams}`+ : `/api/projects/${projectId}/error_tracking/fingerprints/`}export const errorTrackingFingerprintsList = async (@@ -348,7 +348,7 @@ export const errorTrackingFingerprintsList = async (}export const getErrorTrackingFingerprintsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/fingerprints/${id}/`+ return `/api/projects/${projectId}/error_tracking/fingerprints/${id}/`}export const errorTrackingFingerprintsRetrieve = async (@@ -363,7 +363,7 @@ export const errorTrackingFingerprintsRetrieve = async (}export const getErrorTrackingFingerprintsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/fingerprints/${id}/`+ return `/api/projects/${projectId}/error_tracking/fingerprints/${id}/`}/**@@ -395,8 +395,8 @@ export const getErrorTrackingGitProviderFileLinksResolveGithubRetrieveUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/error_tracking/git-provider-file-links/resolve_github/?${stringifiedParams}`- : `/api/environments/${projectId}/error_tracking/git-provider-file-links/resolve_github/`+ ? `/api/projects/${projectId}/error_tracking/git-provider-file-links/resolve_github/?${stringifiedParams}`+ : `/api/projects/${projectId}/error_tracking/git-provider-file-links/resolve_github/`}export const errorTrackingGitProviderFileLinksResolveGithubRetrieve = async (@@ -428,8 +428,8 @@ export const getErrorTrackingGitProviderFileLinksResolveGitlabRetrieveUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/error_tracking/git-provider-file-links/resolve_gitlab/?${stringifiedParams}`- : `/api/environments/${projectId}/error_tracking/git-provider-file-links/resolve_gitlab/`+ ? `/api/projects/${projectId}/error_tracking/git-provider-file-links/resolve_gitlab/?${stringifiedParams}`+ : `/api/projects/${projectId}/error_tracking/git-provider-file-links/resolve_gitlab/`}export const errorTrackingGitProviderFileLinksResolveGitlabRetrieve = async (@@ -447,7 +447,7 @@ export const errorTrackingGitProviderFileLinksResolveGitlabRetrieve = async (}export const getErrorTrackingGroupingRulesListUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/grouping_rules/`+ return `/api/projects/${projectId}/error_tracking/grouping_rules/`}export const errorTrackingGroupingRulesList = async (@@ -461,7 +461,7 @@ export const errorTrackingGroupingRulesList = async (}export const getErrorTrackingGroupingRulesCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/grouping_rules/`+ return `/api/projects/${projectId}/error_tracking/grouping_rules/`}export const errorTrackingGroupingRulesCreate = async (@@ -478,7 +478,7 @@ export const errorTrackingGroupingRulesCreate = async (}export const getErrorTrackingGroupingRulesRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/grouping_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/grouping_rules/${id}/`}export const errorTrackingGroupingRulesRetrieve = async (@@ -493,7 +493,7 @@ export const errorTrackingGroupingRulesRetrieve = async (}export const getErrorTrackingGroupingRulesUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/grouping_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/grouping_rules/${id}/`}export const errorTrackingGroupingRulesUpdate = async (@@ -511,7 +511,7 @@ export const errorTrackingGroupingRulesUpdate = async (}export const getErrorTrackingGroupingRulesPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/grouping_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/grouping_rules/${id}/`}export const errorTrackingGroupingRulesPartialUpdate = async (@@ -529,7 +529,7 @@ export const errorTrackingGroupingRulesPartialUpdate = async (}export const getErrorTrackingGroupingRulesDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/grouping_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/grouping_rules/${id}/`}export const errorTrackingGroupingRulesDestroy = async (@@ -544,7 +544,7 @@ export const errorTrackingGroupingRulesDestroy = async (}export const getErrorTrackingGroupingRulesReorderPartialUpdateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/grouping_rules/reorder/`+ return `/api/projects/${projectId}/error_tracking/grouping_rules/reorder/`}export const errorTrackingGroupingRulesReorderPartialUpdate = async (@@ -572,8 +572,8 @@ export const getErrorTrackingIssuesListUrl = (projectId: string, params?: ErrorTconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/error_tracking/issues/?${stringifiedParams}`- : `/api/environments/${projectId}/error_tracking/issues/`+ ? `/api/projects/${projectId}/error_tracking/issues/?${stringifiedParams}`+ : `/api/projects/${projectId}/error_tracking/issues/`}export const errorTrackingIssuesList = async (@@ -588,7 +588,7 @@ export const errorTrackingIssuesList = async (}export const getErrorTrackingIssuesCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/issues/`+ return `/api/projects/${projectId}/error_tracking/issues/`}export const errorTrackingIssuesCreate = async (@@ -605,7 +605,7 @@ export const errorTrackingIssuesCreate = async (}export const getErrorTrackingIssuesRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/issues/${id}/`+ return `/api/projects/${projectId}/error_tracking/issues/${id}/`}export const errorTrackingIssuesRetrieve = async (@@ -620,7 +620,7 @@ export const errorTrackingIssuesRetrieve = async (}export const getErrorTrackingIssuesUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/issues/${id}/`+ return `/api/projects/${projectId}/error_tracking/issues/${id}/`}export const errorTrackingIssuesUpdate = async (@@ -638,7 +638,7 @@ export const errorTrackingIssuesUpdate = async (}export const getErrorTrackingIssuesPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/issues/${id}/`+ return `/api/projects/${projectId}/error_tracking/issues/${id}/`}export const errorTrackingIssuesPartialUpdate = async (@@ -656,7 +656,7 @@ export const errorTrackingIssuesPartialUpdate = async (}export const getErrorTrackingIssuesDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/issues/${id}/`+ return `/api/projects/${projectId}/error_tracking/issues/${id}/`}/**@@ -674,7 +674,7 @@ export const errorTrackingIssuesDestroy = async (}export const getErrorTrackingIssuesActivityRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/issues/${id}/activity/`+ return `/api/projects/${projectId}/error_tracking/issues/${id}/activity/`}export const errorTrackingIssuesActivityRetrieve = async (@@ -689,7 +689,7 @@ export const errorTrackingIssuesActivityRetrieve = async (}export const getErrorTrackingIssuesAssignPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/issues/${id}/assign/`+ return `/api/projects/${projectId}/error_tracking/issues/${id}/assign/`}export const errorTrackingIssuesAssignPartialUpdate = async (@@ -707,7 +707,7 @@ export const errorTrackingIssuesAssignPartialUpdate = async (}export const getErrorTrackingIssuesCohortUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/issues/${id}/cohort/`+ return `/api/projects/${projectId}/error_tracking/issues/${id}/cohort/`}export const errorTrackingIssuesCohortUpdate = async (@@ -725,7 +725,7 @@ export const errorTrackingIssuesCohortUpdate = async (}export const getErrorTrackingIssuesMergeCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/issues/${id}/merge/`+ return `/api/projects/${projectId}/error_tracking/issues/${id}/merge/`}export const errorTrackingIssuesMergeCreate = async (@@ -743,7 +743,7 @@ export const errorTrackingIssuesMergeCreate = async (}export const getErrorTrackingIssuesSplitCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/issues/${id}/split/`+ return `/api/projects/${projectId}/error_tracking/issues/${id}/split/`}export const errorTrackingIssuesSplitCreate = async (@@ -761,7 +761,7 @@ export const errorTrackingIssuesSplitCreate = async (}export const getErrorTrackingIssuesAllActivityRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/issues/activity/`+ return `/api/projects/${projectId}/error_tracking/issues/activity/`}export const errorTrackingIssuesAllActivityRetrieve = async (@@ -775,7 +775,7 @@ export const errorTrackingIssuesAllActivityRetrieve = async (}export const getErrorTrackingIssuesBulkCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/issues/bulk/`+ return `/api/projects/${projectId}/error_tracking/issues/bulk/`}export const errorTrackingIssuesBulkCreate = async (@@ -792,7 +792,7 @@ export const errorTrackingIssuesBulkCreate = async (}export const getErrorTrackingIssuesExistsRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/issues/exists/`+ return `/api/projects/${projectId}/error_tracking/issues/exists/`}export const errorTrackingIssuesExistsRetrieve = async (projectId: string, options?: RequestInit): Promise<void> => {@@ -803,7 +803,7 @@ export const errorTrackingIssuesExistsRetrieve = async (projectId: string, optio}export const getErrorTrackingIssuesValuesRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/issues/values/`+ return `/api/projects/${projectId}/error_tracking/issues/values/`}export const errorTrackingIssuesValuesRetrieve = async (projectId: string, options?: RequestInit): Promise<void> => {@@ -814,7 +814,7 @@ export const errorTrackingIssuesValuesRetrieve = async (projectId: string, optio}export const getErrorTrackingQueryIssueCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/query/issue/`+ return `/api/projects/${projectId}/error_tracking/query/issue/`}/**@@ -835,7 +835,7 @@ export const errorTrackingQueryIssueCreate = async (}export const getErrorTrackingQueryIssueEventsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/query/issue_events/`+ return `/api/projects/${projectId}/error_tracking/query/issue_events/`}/**@@ -856,7 +856,7 @@ export const errorTrackingQueryIssueEventsCreate = async (}export const getErrorTrackingQueryIssuesListCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/query/issues/`+ return `/api/projects/${projectId}/error_tracking/query/issues/`}/**@@ -891,8 +891,8 @@ export const getErrorTrackingRecommendationsListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/error_tracking/recommendations/?${stringifiedParams}`- : `/api/environments/${projectId}/error_tracking/recommendations/`+ ? `/api/projects/${projectId}/error_tracking/recommendations/?${stringifiedParams}`+ : `/api/projects/${projectId}/error_tracking/recommendations/`}export const errorTrackingRecommendationsList = async (@@ -910,7 +910,7 @@ export const errorTrackingRecommendationsList = async (}export const getErrorTrackingRecommendationsDismissCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/recommendations/${id}/dismiss/`+ return `/api/projects/${projectId}/error_tracking/recommendations/${id}/dismiss/`}export const errorTrackingRecommendationsDismissCreate = async (@@ -925,7 +925,7 @@ export const errorTrackingRecommendationsDismissCreate = async (}export const getErrorTrackingRecommendationsRefreshCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/recommendations/${id}/refresh/`+ return `/api/projects/${projectId}/error_tracking/recommendations/${id}/refresh/`}export const errorTrackingRecommendationsRefreshCreate = async (@@ -940,7 +940,7 @@ export const errorTrackingRecommendationsRefreshCreate = async (}export const getErrorTrackingRecommendationsRestoreCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/recommendations/${id}/restore/`+ return `/api/projects/${projectId}/error_tracking/recommendations/${id}/restore/`}export const errorTrackingRecommendationsRestoreCreate = async (@@ -954,8 +954,133 @@ export const errorTrackingRecommendationsRestoreCreate = async (})}+export const getErrorTrackingReleasesListUrl = (projectId: string, params?: ErrorTrackingReleasesListParams) => {+ const normalizedParams = new URLSearchParams()++ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : value.toString())+ }+ })++ const stringifiedParams = normalizedParams.toString()++ return stringifiedParams.length > 0+ ? `/api/projects/${projectId}/error_tracking/releases/?${stringifiedParams}`+ : `/api/projects/${projectId}/error_tracking/releases/`+}++export const errorTrackingReleasesList = async (+ projectId: string,+ params?: ErrorTrackingReleasesListParams,+ options?: RequestInit+): Promise<PaginatedErrorTrackingReleaseListApi> => {+ return apiMutator<PaginatedErrorTrackingReleaseListApi>(getErrorTrackingReleasesListUrl(projectId, params), {+ ...options,+ method: 'GET',+ })+}++export const getErrorTrackingReleasesCreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/error_tracking/releases/`+}++export const errorTrackingReleasesCreate = async (+ projectId: string,+ errorTrackingReleaseApi: NonReadonly<ErrorTrackingReleaseApi>,+ options?: RequestInit+): Promise<ErrorTrackingReleaseApi> => {+ return apiMutator<ErrorTrackingReleaseApi>(getErrorTrackingReleasesCreateUrl(projectId), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(errorTrackingReleaseApi),+ })+}++export const getErrorTrackingReleasesRetrieveUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/error_tracking/releases/${id}/`+}++export const errorTrackingReleasesRetrieve = async (+ projectId: string,+ id: string,+ options?: RequestInit+): Promise<ErrorTrackingReleaseApi> => {+ return apiMutator<ErrorTrackingReleaseApi>(getErrorTrackingReleasesRetrieveUrl(projectId, id), {+ ...options,+ method: 'GET',+ })+}++export const getErrorTrackingReleasesUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/error_tracking/releases/${id}/`+}++export const errorTrackingReleasesUpdate = async (+ projectId: string,+ id: string,+ errorTrackingReleaseApi: NonReadonly<ErrorTrackingReleaseApi>,+ options?: RequestInit+): Promise<ErrorTrackingReleaseApi> => {+ return apiMutator<ErrorTrackingReleaseApi>(getErrorTrackingReleasesUpdateUrl(projectId, id), {+ ...options,+ method: 'PUT',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(errorTrackingReleaseApi),+ })+}++export const getErrorTrackingReleasesPartialUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/error_tracking/releases/${id}/`+}++export const errorTrackingReleasesPartialUpdate = async (+ projectId: string,+ id: string,+ patchedErrorTrackingReleaseApi?: NonReadonly<PatchedErrorTrackingReleaseApi>,+ options?: RequestInit+): Promise<ErrorTrackingReleaseApi> => {+ return apiMutator<ErrorTrackingReleaseApi>(getErrorTrackingReleasesPartialUpdateUrl(projectId, id), {+ ...options,+ method: 'PATCH',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(patchedErrorTrackingReleaseApi),+ })+}++export const getErrorTrackingReleasesDestroyUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/error_tracking/releases/${id}/`+}++export const errorTrackingReleasesDestroy = async (+ projectId: string,+ id: string,+ options?: RequestInit+): Promise<void> => {+ return apiMutator<void>(getErrorTrackingReleasesDestroyUrl(projectId, id), {+ ...options,+ method: 'DELETE',+ })+}++export const getErrorTrackingReleasesHashRetrieveUrl = (projectId: string, hashId: string) => {+ return `/api/projects/${projectId}/error_tracking/releases/hash/${hashId}/`+}++export const errorTrackingReleasesHashRetrieve = async (+ projectId: string,+ hashId: string,+ options?: RequestInit+): Promise<void> => {+ return apiMutator<void>(getErrorTrackingReleasesHashRetrieveUrl(projectId, hashId), {+ ...options,+ method: 'GET',+ })+}+export const getErrorTrackingSettingsRetrieveSettingsRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/settings/retrieve_settings/`+ return `/api/projects/${projectId}/error_tracking/settings/retrieve_settings/`}export const errorTrackingSettingsRetrieveSettingsRetrieve = async (@@ -969,7 +1094,7 @@ export const errorTrackingSettingsRetrieveSettingsRetrieve = async (}export const getErrorTrackingSettingsUpdateSettingsPartialUpdateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/settings/update_settings/`+ return `/api/projects/${projectId}/error_tracking/settings/update_settings/`}export const errorTrackingSettingsUpdateSettingsPartialUpdate = async (@@ -986,7 +1111,7 @@ export const errorTrackingSettingsUpdateSettingsPartialUpdate = async (}export const getErrorTrackingSpikeDetectionConfigListUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/spike_detection_config/`+ return `/api/projects/${projectId}/error_tracking/spike_detection_config/`}export const errorTrackingSpikeDetectionConfigList = async (@@ -1000,7 +1125,7 @@ export const errorTrackingSpikeDetectionConfigList = async (}export const getErrorTrackingSpikeDetectionConfigUpdateConfigPartialUpdateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/spike_detection_config/update_config/`+ return `/api/projects/${projectId}/error_tracking/spike_detection_config/update_config/`}export const errorTrackingSpikeDetectionConfigUpdateConfigPartialUpdate = async (@@ -1031,8 +1156,8 @@ export const getErrorTrackingSpikeEventsListUrl = (projectId: string, params?: Econst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/error_tracking/spike_events/?${stringifiedParams}`- : `/api/environments/${projectId}/error_tracking/spike_events/`+ ? `/api/projects/${projectId}/error_tracking/spike_events/?${stringifiedParams}`+ : `/api/projects/${projectId}/error_tracking/spike_events/`}export const errorTrackingSpikeEventsList = async (@@ -1058,8 +1183,8 @@ export const getErrorTrackingStackFramesListUrl = (projectId: string, params?: Econst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/error_tracking/stack_frames/?${stringifiedParams}`- : `/api/environments/${projectId}/error_tracking/stack_frames/`+ ? `/api/projects/${projectId}/error_tracking/stack_frames/?${stringifiedParams}`+ : `/api/projects/${projectId}/error_tracking/stack_frames/`}export const errorTrackingStackFramesList = async (@@ -1074,7 +1199,7 @@ export const errorTrackingStackFramesList = async (}export const getErrorTrackingStackFramesRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/stack_frames/${id}/`+ return `/api/projects/${projectId}/error_tracking/stack_frames/${id}/`}export const errorTrackingStackFramesRetrieve = async (@@ -1089,7 +1214,7 @@ export const errorTrackingStackFramesRetrieve = async (}export const getErrorTrackingStackFramesDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/stack_frames/${id}/`+ return `/api/projects/${projectId}/error_tracking/stack_frames/${id}/`}/**@@ -1107,7 +1232,7 @@ export const errorTrackingStackFramesDestroy = async (}export const getErrorTrackingStackFramesBatchGetCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/stack_frames/batch_get/`+ return `/api/projects/${projectId}/error_tracking/stack_frames/batch_get/`}export const errorTrackingStackFramesBatchGetCreate = async (@@ -1138,8 +1263,8 @@ export const getErrorTrackingSuppressionRulesListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/error_tracking/suppression_rules/?${stringifiedParams}`- : `/api/environments/${projectId}/error_tracking/suppression_rules/`+ ? `/api/projects/${projectId}/error_tracking/suppression_rules/?${stringifiedParams}`+ : `/api/projects/${projectId}/error_tracking/suppression_rules/`}export const errorTrackingSuppressionRulesList = async (@@ -1157,7 +1282,7 @@ export const errorTrackingSuppressionRulesList = async (}export const getErrorTrackingSuppressionRulesCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/suppression_rules/`+ return `/api/projects/${projectId}/error_tracking/suppression_rules/`}export const errorTrackingSuppressionRulesCreate = async (@@ -1174,7 +1299,7 @@ export const errorTrackingSuppressionRulesCreate = async (}export const getErrorTrackingSuppressionRulesRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/suppression_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/suppression_rules/${id}/`}export const errorTrackingSuppressionRulesRetrieve = async (@@ -1189,7 +1314,7 @@ export const errorTrackingSuppressionRulesRetrieve = async (}export const getErrorTrackingSuppressionRulesUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/suppression_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/suppression_rules/${id}/`}export const errorTrackingSuppressionRulesUpdate = async (@@ -1207,7 +1332,7 @@ export const errorTrackingSuppressionRulesUpdate = async (}export const getErrorTrackingSuppressionRulesPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/suppression_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/suppression_rules/${id}/`}export const errorTrackingSuppressionRulesPartialUpdate = async (@@ -1225,7 +1350,7 @@ export const errorTrackingSuppressionRulesPartialUpdate = async (}export const getErrorTrackingSuppressionRulesDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/error_tracking/suppression_rules/${id}/`+ return `/api/projects/${projectId}/error_tracking/suppression_rules/${id}/`}export const errorTrackingSuppressionRulesDestroy = async (@@ -1240,7 +1365,7 @@ export const errorTrackingSuppressionRulesDestroy = async (}export const getErrorTrackingSuppressionRulesReorderPartialUpdateUrl = (projectId: string) => {- return `/api/environments/${projectId}/error_tracking/suppression_rules/reorder/`+ return `/api/projects/${projectId}/error_tracking/suppression_rules/reorder/`}export const errorTrackingSuppressionRulesReorderPartialUpdate = async (@@ -1256,131 +1381,6 @@ export const errorTrackingSuppressionRulesReorderPartialUpdate = async (})}-export const getErrorTrackingReleasesListUrl = (projectId: string, params?: ErrorTrackingReleasesListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : value.toString())- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/projects/${projectId}/error_tracking/releases/?${stringifiedParams}`- : `/api/projects/${projectId}/error_tracking/releases/`-}--export const errorTrackingReleasesList = async (- projectId: string,- params?: ErrorTrackingReleasesListParams,- options?: RequestInit-): Promise<PaginatedErrorTrackingReleaseListApi> => {- return apiMutator<PaginatedErrorTrackingReleaseListApi>(getErrorTrackingReleasesListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getErrorTrackingReleasesCreateUrl = (projectId: string) => {- return `/api/projects/${projectId}/error_tracking/releases/`-}--export const errorTrackingReleasesCreate = async (- projectId: string,- errorTrackingReleaseApi: NonReadonly<ErrorTrackingReleaseApi>,- options?: RequestInit-): Promise<ErrorTrackingReleaseApi> => {- return apiMutator<ErrorTrackingReleaseApi>(getErrorTrackingReleasesCreateUrl(projectId), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(errorTrackingReleaseApi),- })-}--export const getErrorTrackingReleasesRetrieveUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/error_tracking/releases/${id}/`-}--export const errorTrackingReleasesRetrieve = async (- projectId: string,- id: string,- options?: RequestInit-): Promise<ErrorTrackingReleaseApi> => {- return apiMutator<ErrorTrackingReleaseApi>(getErrorTrackingReleasesRetrieveUrl(projectId, id), {- ...options,- method: 'GET',- })-}--export const getErrorTrackingReleasesUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/error_tracking/releases/${id}/`-}--export const errorTrackingReleasesUpdate = async (- projectId: string,- id: string,- errorTrackingReleaseApi: NonReadonly<ErrorTrackingReleaseApi>,- options?: RequestInit-): Promise<ErrorTrackingReleaseApi> => {- return apiMutator<ErrorTrackingReleaseApi>(getErrorTrackingReleasesUpdateUrl(projectId, id), {- ...options,- method: 'PUT',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(errorTrackingReleaseApi),- })-}--export const getErrorTrackingReleasesPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/error_tracking/releases/${id}/`-}--export const errorTrackingReleasesPartialUpdate = async (- projectId: string,- id: string,- patchedErrorTrackingReleaseApi?: NonReadonly<PatchedErrorTrackingReleaseApi>,- options?: RequestInit-): Promise<ErrorTrackingReleaseApi> => {- return apiMutator<ErrorTrackingReleaseApi>(getErrorTrackingReleasesPartialUpdateUrl(projectId, id), {- ...options,- method: 'PATCH',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedErrorTrackingReleaseApi),- })-}--export const getErrorTrackingReleasesDestroyUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/error_tracking/releases/${id}/`-}--export const errorTrackingReleasesDestroy = async (- projectId: string,- id: string,- options?: RequestInit-): Promise<void> => {- return apiMutator<void>(getErrorTrackingReleasesDestroyUrl(projectId, id), {- ...options,- method: 'DELETE',- })-}--export const getErrorTrackingReleasesHashRetrieveUrl = (projectId: string, hashId: string) => {- return `/api/projects/${projectId}/error_tracking/releases/hash/${hashId}/`-}--export const errorTrackingReleasesHashRetrieve = async (- projectId: string,- hashId: string,- options?: RequestInit-): Promise<void> => {- return apiMutator<void>(getErrorTrackingReleasesHashRetrieveUrl(projectId, hashId), {- ...options,- method: 'GET',- })-}-export const getErrorTrackingSymbolSetsListUrl = (projectId: string, params?: ErrorTrackingSymbolSetsListParams) => {const normalizedParams = new URLSearchParams()diff --git a/products/error_tracking/frontend/generated/api.zod.ts b/products/error_tracking/frontend/generated/api.zod.tsindex ecf85ed9b364..ec4f7493fdfa 100644--- a/products/error_tracking/frontend/generated/api.zod.ts+++ b/products/error_tracking/frontend/generated/api.zod.ts@@ -814,6 +814,27 @@ export const ErrorTrackingQueryIssuesListCreateBody = /* @__PURE__ */ zod.object.describe('Search stack-frame source\/file path text.'),})+export const ErrorTrackingReleasesCreateBody = /* @__PURE__ */ zod.object({+ hash_id: zod.string(),+ metadata: zod.unknown().optional(),+ version: zod.string(),+ project: zod.string(),+})++export const ErrorTrackingReleasesUpdateBody = /* @__PURE__ */ zod.object({+ hash_id: zod.string(),+ metadata: zod.unknown().optional(),+ version: zod.string(),+ project: zod.string(),+})++export const ErrorTrackingReleasesPartialUpdateBody = /* @__PURE__ */ zod.object({+ hash_id: zod.string().optional(),+ metadata: zod.unknown().optional(),+ version: zod.string().optional(),+ project: zod.string().optional(),+})+export const ErrorTrackingSettingsUpdateSettingsPartialUpdateBody = /* @__PURE__ */ zod.object({project_rate_limit_value: zod.number()@@ -944,27 +965,6 @@ export const ErrorTrackingSuppressionRulesReorderPartialUpdateBody = /* @__PURE_sampling_rate: zod.number().optional(),})-export const ErrorTrackingReleasesCreateBody = /* @__PURE__ */ zod.object({- hash_id: zod.string(),- metadata: zod.unknown().optional(),- version: zod.string(),- project: zod.string(),-})--export const ErrorTrackingReleasesUpdateBody = /* @__PURE__ */ zod.object({- hash_id: zod.string(),- metadata: zod.unknown().optional(),- version: zod.string(),- project: zod.string(),-})--export const ErrorTrackingReleasesPartialUpdateBody = /* @__PURE__ */ zod.object({- hash_id: zod.string().optional(),- metadata: zod.unknown().optional(),- version: zod.string().optional(),- project: zod.string().optional(),-})-export const ErrorTrackingSymbolSetsFinishUploadUpdateBody = /* @__PURE__ */ zod.object({content_hash: zod.string().describe('Hash of the uploaded symbol set content.'),})diff --git a/products/logs/frontend/generated/api.schemas.ts b/products/logs/frontend/generated/api.schemas.tsindex 2f1c16c9cf27..9405a27a2c31 100644--- a/products/logs/frontend/generated/api.schemas.ts+++ b/products/logs/frontend/generated/api.schemas.ts@@ -7,117 +7,6 @@* PostHog API - generated* OpenAPI spec version: 1.0.0*/-export interface ExplainRequestApi {- /** UUID of the log entry to explain */- uuid: string- /** Timestamp of the log entry (used for efficient lookup) */- timestamp: string- /** Force regenerate explanation, bypassing cache */- force_refresh?: boolean-}--/**- * * `engineering` - Engineering- * `data` - Data- * `product` - Product Management- * `founder` - Founder- * `leadership` - Leadership- * `marketing` - Marketing- * `sales` - Sales / Success- * `other` - Other- */-export type RoleAtOrganizationEnumApi = (typeof RoleAtOrganizationEnumApi)[keyof typeof RoleAtOrganizationEnumApi]--export const RoleAtOrganizationEnumApi = {- Engineering: 'engineering',- Data: 'data',- Product: 'product',- Founder: 'founder',- Leadership: 'leadership',- Marketing: 'marketing',- Sales: 'sales',- Other: 'other',-} as const--export type BlankEnumApi = (typeof BlankEnumApi)[keyof typeof BlankEnumApi]--export const BlankEnumApi = {- '': '',-} as const--/**- * @nullable- */-export type UserBasicApiHedgehogConfig = { [key: string]: unknown } | null--export interface UserBasicApi {- readonly id: number- readonly uuid: string- /**- * @maxLength 200- * @nullable- */- distinct_id?: string | null- /** @maxLength 150 */- first_name?: string- /** @maxLength 150 */- last_name?: string- /** @maxLength 254 */- email: string- /** @nullable */- is_email_verified?: boolean | null- /** @nullable */- readonly hedgehog_config: UserBasicApiHedgehogConfig- role_at_organization?: RoleAtOrganizationEnumApi | BlankEnumApi | null-}--/**- * Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys.- */-export type LogsViewApiFilters = { [key: string]: unknown }--export interface LogsViewApi {- readonly id: string- readonly short_id: string- /** @maxLength 400 */- name: string- /** Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys. */- filters?: LogsViewApiFilters- pinned?: boolean- readonly created_at: string- readonly created_by: UserBasicApi- /** @nullable */- readonly updated_at: string | null-}--export interface PaginatedLogsViewListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: LogsViewApi[]-}--/**- * Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys.- */-export type PatchedLogsViewApiFilters = { [key: string]: unknown }--export interface PatchedLogsViewApi {- readonly id?: string- readonly short_id?: string- /** @maxLength 400 */- name?: string- /** Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys. */- filters?: PatchedLogsViewApiFilters- pinned?: boolean- readonly created_at?: string- readonly created_by?: UserBasicApi- /** @nullable */- readonly updated_at?: string | null-}-export type FilterLogicalOperatorApi = (typeof FilterLogicalOperatorApi)[keyof typeof FilterLogicalOperatorApi]export const FilterLogicalOperatorApi = {@@ -475,6 +364,61 @@ export const NotificationDestinationTypeEnumApi = {Webhook: 'webhook',} as const+/**+ * * `engineering` - Engineering+ * `data` - Data+ * `product` - Product Management+ * `founder` - Founder+ * `leadership` - Leadership+ * `marketing` - Marketing+ * `sales` - Sales / Success+ * `other` - Other+ */+export type RoleAtOrganizationEnumApi = (typeof RoleAtOrganizationEnumApi)[keyof typeof RoleAtOrganizationEnumApi]++export const RoleAtOrganizationEnumApi = {+ Engineering: 'engineering',+ Data: 'data',+ Product: 'product',+ Founder: 'founder',+ Leadership: 'leadership',+ Marketing: 'marketing',+ Sales: 'sales',+ Other: 'other',+} as const++export type BlankEnumApi = (typeof BlankEnumApi)[keyof typeof BlankEnumApi]++export const BlankEnumApi = {+ '': '',+} as const++/**+ * @nullable+ */+export type UserBasicApiHedgehogConfig = { [key: string]: unknown } | null++export interface UserBasicApi {+ readonly id: number+ readonly uuid: string+ /**+ * @maxLength 200+ * @nullable+ */+ distinct_id?: string | null+ /** @maxLength 150 */+ first_name?: string+ /** @maxLength 150 */+ last_name?: string+ /** @maxLength 254 */+ email: string+ /** @nullable */+ is_email_verified?: boolean | null+ /** @nullable */+ readonly hedgehog_config: UserBasicApiHedgehogConfig+ role_at_organization?: RoleAtOrganizationEnumApi | BlankEnumApi | null+}+export interface LogsAlertConfigurationApi {/** Unique identifier for this alert. */readonly id: string@@ -1033,6 +977,15 @@ export interface _LogsCountRangesResponseApi {interval: string}+export interface ExplainRequestApi {+ /** UUID of the log entry to explain */+ uuid: string+ /** Timestamp of the log entry (used for efficient lookup) */+ timestamp: string+ /** Force regenerate explanation, bypassing cache */+ force_refresh?: boolean+}+/*** * `latest` - latest* `earliest` - earliest@@ -1395,15 +1348,51 @@ export interface _LogsValuesResponseApi {refreshing: boolean}-export type LogsViewsListParams = {- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number+/**+ * Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys.+ */+export type LogsViewApiFilters = { [key: string]: unknown }++export interface LogsViewApi {+ readonly id: string+ readonly short_id: string+ /** @maxLength 400 */+ name: string+ /** Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys. */+ filters?: LogsViewApiFilters+ pinned?: boolean+ readonly created_at: string+ readonly created_by: UserBasicApi+ /** @nullable */+ readonly updated_at: string | null+}++export interface PaginatedLogsViewListApi {+ count: number+ /** @nullable */+ next?: string | null+ /** @nullable */+ previous?: string | null+ results: LogsViewApi[]+}++/**+ * Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys.+ */+export type PatchedLogsViewApiFilters = { [key: string]: unknown }++export interface PatchedLogsViewApi {+ readonly id?: string+ readonly short_id?: string+ /** @maxLength 400 */+ name?: string+ /** Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys. */+ filters?: PatchedLogsViewApiFilters+ pinned?: boolean+ readonly created_at?: string+ readonly created_by?: UserBasicApi+ /** @nullable */+ readonly updated_at?: string | null}export type LogsAlertsListParams = {@@ -1545,3 +1534,14 @@ export const LogsValuesRetrieveAttributeType = {Log: 'log',Resource: 'resource',} as const++export type LogsViewsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number+ /**+ * The initial index from which to return the results.+ */+ offset?: number+}diff --git a/products/logs/frontend/generated/api.ts b/products/logs/frontend/generated/api.tsindex ccd6a6b86337..dc49851be821 100644--- a/products/logs/frontend/generated/api.ts+++ b/products/logs/frontend/generated/api.ts@@ -67,134 +67,6 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>]}: DistributeReadOnlyOverUnions<T>-export const getLogsExplainLogWithAICreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/logs/explainLogWithAI/`-}--/**- * Explain a log entry using AI.--POST /api/environments/:id/logs/explainLogWithAI/- */-export const logsExplainLogWithAICreate = async (- projectId: string,- explainRequestApi: ExplainRequestApi,- options?: RequestInit-): Promise<ExplainRequestApi> => {- return apiMutator<ExplainRequestApi>(getLogsExplainLogWithAICreateUrl(projectId), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(explainRequestApi),- })-}--export const getLogsViewsListUrl = (projectId: string, params?: LogsViewsListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : value.toString())- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/environments/${projectId}/logs/views/?${stringifiedParams}`- : `/api/environments/${projectId}/logs/views/`-}--export const logsViewsList = async (- projectId: string,- params?: LogsViewsListParams,- options?: RequestInit-): Promise<PaginatedLogsViewListApi> => {- return apiMutator<PaginatedLogsViewListApi>(getLogsViewsListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getLogsViewsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/logs/views/`-}--export const logsViewsCreate = async (- projectId: string,- logsViewApi: NonReadonly<LogsViewApi>,- options?: RequestInit-): Promise<LogsViewApi> => {- return apiMutator<LogsViewApi>(getLogsViewsCreateUrl(projectId), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(logsViewApi),- })-}--export const getLogsViewsRetrieveUrl = (projectId: string, shortId: string) => {- return `/api/environments/${projectId}/logs/views/${shortId}/`-}--export const logsViewsRetrieve = async (- projectId: string,- shortId: string,- options?: RequestInit-): Promise<LogsViewApi> => {- return apiMutator<LogsViewApi>(getLogsViewsRetrieveUrl(projectId, shortId), {- ...options,- method: 'GET',- })-}--export const getLogsViewsUpdateUrl = (projectId: string, shortId: string) => {- return `/api/environments/${projectId}/logs/views/${shortId}/`-}--export const logsViewsUpdate = async (- projectId: string,- shortId: string,- logsViewApi: NonReadonly<LogsViewApi>,- options?: RequestInit-): Promise<LogsViewApi> => {- return apiMutator<LogsViewApi>(getLogsViewsUpdateUrl(projectId, shortId), {- ...options,- method: 'PUT',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(logsViewApi),- })-}--export const getLogsViewsPartialUpdateUrl = (projectId: string, shortId: string) => {- return `/api/environments/${projectId}/logs/views/${shortId}/`-}--export const logsViewsPartialUpdate = async (- projectId: string,- shortId: string,- patchedLogsViewApi?: NonReadonly<PatchedLogsViewApi>,- options?: RequestInit-): Promise<LogsViewApi> => {- return apiMutator<LogsViewApi>(getLogsViewsPartialUpdateUrl(projectId, shortId), {- ...options,- method: 'PATCH',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedLogsViewApi),- })-}--export const getLogsViewsDestroyUrl = (projectId: string, shortId: string) => {- return `/api/environments/${projectId}/logs/views/${shortId}/`-}--export const logsViewsDestroy = async (projectId: string, shortId: string, options?: RequestInit): Promise<void> => {- return apiMutator<void>(getLogsViewsDestroyUrl(projectId, shortId), {- ...options,- method: 'DELETE',- })-}-export const getDomainsScimLogsRetrieveUrl = (organizationId: string, id: string) => {return `/api/organizations/${organizationId}/domains/${id}/scim/logs/`}@@ -488,6 +360,28 @@ export const logsCountRangesCreate = async (})}+export const getLogsExplainLogWithAICreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/logs/explainLogWithAI/`+}++/**+ * Explain a log entry using AI.++POST /api/environments/:id/logs/explainLogWithAI/+ */+export const logsExplainLogWithAICreate = async (+ projectId: string,+ explainRequestApi: ExplainRequestApi,+ options?: RequestInit+): Promise<ExplainRequestApi> => {+ return apiMutator<ExplainRequestApi>(getLogsExplainLogWithAICreateUrl(projectId), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(explainRequestApi),+ })+}+export const getLogsExportCreateUrl = (projectId: string) => {return `/api/projects/${projectId}/logs/export/`}@@ -751,6 +645,112 @@ export const logsValuesRetrieve = async (})}+export const getLogsViewsListUrl = (projectId: string, params?: LogsViewsListParams) => {+ const normalizedParams = new URLSearchParams()++ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : value.toString())+ }+ })++ const stringifiedParams = normalizedParams.toString()++ return stringifiedParams.length > 0+ ? `/api/projects/${projectId}/logs/views/?${stringifiedParams}`+ : `/api/projects/${projectId}/logs/views/`+}++export const logsViewsList = async (+ projectId: string,+ params?: LogsViewsListParams,+ options?: RequestInit+): Promise<PaginatedLogsViewListApi> => {+ return apiMutator<PaginatedLogsViewListApi>(getLogsViewsListUrl(projectId, params), {+ ...options,+ method: 'GET',+ })+}++export const getLogsViewsCreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/logs/views/`+}++export const logsViewsCreate = async (+ projectId: string,+ logsViewApi: NonReadonly<LogsViewApi>,+ options?: RequestInit+): Promise<LogsViewApi> => {+ return apiMutator<LogsViewApi>(getLogsViewsCreateUrl(projectId), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(logsViewApi),+ })+}++export const getLogsViewsRetrieveUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/logs/views/${shortId}/`+}++export const logsViewsRetrieve = async (+ projectId: string,+ shortId: string,+ options?: RequestInit+): Promise<LogsViewApi> => {+ return apiMutator<LogsViewApi>(getLogsViewsRetrieveUrl(projectId, shortId), {+ ...options,+ method: 'GET',+ })+}++export const getLogsViewsUpdateUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/logs/views/${shortId}/`+}++export const logsViewsUpdate = async (+ projectId: string,+ shortId: string,+ logsViewApi: NonReadonly<LogsViewApi>,+ options?: RequestInit+): Promise<LogsViewApi> => {+ return apiMutator<LogsViewApi>(getLogsViewsUpdateUrl(projectId, shortId), {+ ...options,+ method: 'PUT',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(logsViewApi),+ })+}++export const getLogsViewsPartialUpdateUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/logs/views/${shortId}/`+}++export const logsViewsPartialUpdate = async (+ projectId: string,+ shortId: string,+ patchedLogsViewApi?: NonReadonly<PatchedLogsViewApi>,+ options?: RequestInit+): Promise<LogsViewApi> => {+ return apiMutator<LogsViewApi>(getLogsViewsPartialUpdateUrl(projectId, shortId), {+ ...options,+ method: 'PATCH',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(patchedLogsViewApi),+ })+}++export const getLogsViewsDestroyUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/logs/views/${shortId}/`+}++export const logsViewsDestroy = async (projectId: string, shortId: string, options?: RequestInit): Promise<void> => {+ return apiMutator<void>(getLogsViewsDestroyUrl(projectId, shortId), {+ ...options,+ method: 'DELETE',+ })+}+export const getTasksRunsLogsRetrieveUrl = (projectId: string, taskId: string, id: string) => {return `/api/projects/${projectId}/tasks/${taskId}/runs/${id}/logs/`}diff --git a/products/logs/frontend/generated/api.zod.ts b/products/logs/frontend/generated/api.zod.tsindex a2dc034eb4d6..d5f4bfb8bc1f 100644--- a/products/logs/frontend/generated/api.zod.ts+++ b/products/logs/frontend/generated/api.zod.ts@@ -9,61 +9,6 @@*/import * as zod from 'zod'-/**- * Explain a log entry using AI.--POST /api/environments/:id/logs/explainLogWithAI/- */-export const logsExplainLogWithAICreateBodyForceRefreshDefault = false--export const LogsExplainLogWithAICreateBody = /* @__PURE__ */ zod.object({- uuid: zod.string().describe('UUID of the log entry to explain'),- timestamp: zod.iso.datetime({ offset: true }).describe('Timestamp of the log entry (used for efficient lookup)'),- force_refresh: zod- .boolean()- .default(logsExplainLogWithAICreateBodyForceRefreshDefault)- .describe('Force regenerate explanation, bypassing cache'),-})--export const logsViewsCreateBodyNameMax = 400--export const LogsViewsCreateBody = /* @__PURE__ */ zod.object({- name: zod.string().max(logsViewsCreateBodyNameMax),- filters: zod- .record(zod.string(), zod.unknown())- .optional()- .describe(- 'Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys.'- ),- pinned: zod.boolean().optional(),-})--export const logsViewsUpdateBodyNameMax = 400--export const LogsViewsUpdateBody = /* @__PURE__ */ zod.object({- name: zod.string().max(logsViewsUpdateBodyNameMax),- filters: zod- .record(zod.string(), zod.unknown())- .optional()- .describe(- 'Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys.'- ),- pinned: zod.boolean().optional(),-})--export const logsViewsPartialUpdateBodyNameMax = 400--export const LogsViewsPartialUpdateBody = /* @__PURE__ */ zod.object({- name: zod.string().max(logsViewsPartialUpdateBodyNameMax).optional(),- filters: zod- .record(zod.string(), zod.unknown())- .optional()- .describe(- 'Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys.'- ),- pinned: zod.boolean().optional(),-})-export const logsAlertsCreateBodyNameMax = 255export const logsAlertsCreateBodyEnabledDefault = true@@ -659,6 +604,22 @@ export const LogsCountRangesCreateBody = /* @__PURE__ */ zod.object({.describe('The bucketed-count query to execute.'),})+/**+ * Explain a log entry using AI.++POST /api/environments/:id/logs/explainLogWithAI/+ */+export const logsExplainLogWithAICreateBodyForceRefreshDefault = false++export const LogsExplainLogWithAICreateBody = /* @__PURE__ */ zod.object({+ uuid: zod.string().describe('UUID of the log entry to explain'),+ timestamp: zod.iso.datetime({ offset: true }).describe('Timestamp of the log entry (used for efficient lookup)'),+ force_refresh: zod+ .boolean()+ .default(logsExplainLogWithAICreateBodyForceRefreshDefault)+ .describe('Force regenerate explanation, bypassing cache'),+})+export const logsQueryCreateBodyQueryOneSeverityLevelsDefault = []export const logsQueryCreateBodyQueryOneServiceNamesDefault = []export const logsQueryCreateBodyQueryOneFilterGroupDefault = []@@ -1112,3 +1073,42 @@ export const LogsSparklineCreateBody = /* @__PURE__ */ zod.object({}).describe('The sparkline query to execute.'),})++export const logsViewsCreateBodyNameMax = 400++export const LogsViewsCreateBody = /* @__PURE__ */ zod.object({+ name: zod.string().max(logsViewsCreateBodyNameMax),+ filters: zod+ .record(zod.string(), zod.unknown())+ .optional()+ .describe(+ 'Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys.'+ ),+ pinned: zod.boolean().optional(),+})++export const logsViewsUpdateBodyNameMax = 400++export const LogsViewsUpdateBody = /* @__PURE__ */ zod.object({+ name: zod.string().max(logsViewsUpdateBodyNameMax),+ filters: zod+ .record(zod.string(), zod.unknown())+ .optional()+ .describe(+ 'Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys.'+ ),+ pinned: zod.boolean().optional(),+})++export const logsViewsPartialUpdateBodyNameMax = 400++export const LogsViewsPartialUpdateBody = /* @__PURE__ */ zod.object({+ name: zod.string().max(logsViewsPartialUpdateBodyNameMax).optional(),+ filters: zod+ .record(zod.string(), zod.unknown())+ .optional()+ .describe(+ 'Filter criteria — subset of LogsViewerFilters. May contain severityLevels, serviceNames, searchTerm, filterGroup, dateRange, and other keys.'+ ),+ pinned: zod.boolean().optional(),+})diff --git a/products/logs/frontend/logsConfigLogic.ts b/products/logs/frontend/logsConfigLogic.tsindex 14d2910d1d34..042d2fab9730 100644--- a/products/logs/frontend/logsConfigLogic.ts+++ b/products/logs/frontend/logsConfigLogic.ts@@ -29,7 +29,7 @@ export const logsConfigLogic = kea<logsConfigLogicType>([// `experiments_config`). The codegen path opens up when the action// gets a proper request/response schema annotation.// nosemgrep: prefer-codegen-api- return await api.get(`api/environments/${values.currentTeamId}/logs_config/`)+ return await api.get(`api/projects/${values.currentTeamId}/logs_config/`)},},],diff --git a/products/marketing_analytics/frontend/generated/api.ts b/products/marketing_analytics/frontend/generated/api.tsindex 7e726bb6f2a5..579dc84f6aac 100644--- a/products/marketing_analytics/frontend/generated/api.ts+++ b/products/marketing_analytics/frontend/generated/api.ts@@ -11,7 +11,7 @@ import { apiMutator } from '../../../../frontend/src/lib/api-orval-mutator'import type { MarketingAnalyticsUtmAuditRetrieveParams, UtmAuditResponseApi } from './api.schemas'export const getMarketingAnalyticsTestMappingCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/marketing_analytics/test_mapping/`+ return `/api/projects/${projectId}/marketing_analytics/test_mapping/`}export const marketingAnalyticsTestMappingCreate = async (projectId: string, options?: RequestInit): Promise<void> => {@@ -36,8 +36,8 @@ export const getMarketingAnalyticsUtmAuditRetrieveUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/marketing_analytics/utm_audit/?${stringifiedParams}`- : `/api/environments/${projectId}/marketing_analytics/utm_audit/`+ ? `/api/projects/${projectId}/marketing_analytics/utm_audit/?${stringifiedParams}`+ : `/api/projects/${projectId}/marketing_analytics/utm_audit/`}/**diff --git a/products/mcp_store/frontend/generated/api.ts b/products/mcp_store/frontend/generated/api.tsindex e6d0d2830931..9dfaf7fe925e 100644--- a/products/mcp_store/frontend/generated/api.ts+++ b/products/mcp_store/frontend/generated/api.ts@@ -53,8 +53,8 @@ export const getMcpServerInstallationsListUrl = (projectId: string, params?: Mcpconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/mcp_server_installations/?${stringifiedParams}`- : `/api/environments/${projectId}/mcp_server_installations/`+ ? `/api/projects/${projectId}/mcp_server_installations/?${stringifiedParams}`+ : `/api/projects/${projectId}/mcp_server_installations/`}export const mcpServerInstallationsList = async (@@ -69,7 +69,7 @@ export const mcpServerInstallationsList = async (}export const getMcpServerInstallationsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/mcp_server_installations/`+ return `/api/projects/${projectId}/mcp_server_installations/`}export const mcpServerInstallationsCreate = async (@@ -86,7 +86,7 @@ export const mcpServerInstallationsCreate = async (}export const getMcpServerInstallationsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/mcp_server_installations/${id}/`+ return `/api/projects/${projectId}/mcp_server_installations/${id}/`}export const mcpServerInstallationsRetrieve = async (@@ -101,7 +101,7 @@ export const mcpServerInstallationsRetrieve = async (}export const getMcpServerInstallationsUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/mcp_server_installations/${id}/`+ return `/api/projects/${projectId}/mcp_server_installations/${id}/`}export const mcpServerInstallationsUpdate = async (@@ -119,7 +119,7 @@ export const mcpServerInstallationsUpdate = async (}export const getMcpServerInstallationsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/mcp_server_installations/${id}/`+ return `/api/projects/${projectId}/mcp_server_installations/${id}/`}export const mcpServerInstallationsPartialUpdate = async (@@ -137,7 +137,7 @@ export const mcpServerInstallationsPartialUpdate = async (}export const getMcpServerInstallationsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/mcp_server_installations/${id}/`+ return `/api/projects/${projectId}/mcp_server_installations/${id}/`}export const mcpServerInstallationsDestroy = async (@@ -152,7 +152,7 @@ export const mcpServerInstallationsDestroy = async (}export const getMcpServerInstallationsProxyCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/mcp_server_installations/${id}/proxy/`+ return `/api/projects/${projectId}/mcp_server_installations/${id}/proxy/`}export const mcpServerInstallationsProxyCreate = async (@@ -170,7 +170,7 @@ export const mcpServerInstallationsProxyCreate = async (}export const getMcpServerInstallationsToolsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/mcp_server_installations/${id}/tools/`+ return `/api/projects/${projectId}/mcp_server_installations/${id}/tools/`}export const mcpServerInstallationsToolsRetrieve = async (@@ -188,7 +188,7 @@ export const mcpServerInstallationsToolsRetrieve = async (}export const getMcpServerInstallationsToolsPartialUpdateUrl = (projectId: string, id: string, toolName: string) => {- return `/api/environments/${projectId}/mcp_server_installations/${id}/tools/${toolName}/`+ return `/api/projects/${projectId}/mcp_server_installations/${id}/tools/${toolName}/`}export const mcpServerInstallationsToolsPartialUpdate = async (@@ -210,7 +210,7 @@ export const mcpServerInstallationsToolsPartialUpdate = async (}export const getMcpServerInstallationsToolsRefreshCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/mcp_server_installations/${id}/tools/refresh/`+ return `/api/projects/${projectId}/mcp_server_installations/${id}/tools/refresh/`}export const mcpServerInstallationsToolsRefreshCreate = async (@@ -245,8 +245,8 @@ export const getMcpServerInstallationsAuthorizeRetrieveUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/mcp_server_installations/authorize/?${stringifiedParams}`- : `/api/environments/${projectId}/mcp_server_installations/authorize/`+ ? `/api/projects/${projectId}/mcp_server_installations/authorize/?${stringifiedParams}`+ : `/api/projects/${projectId}/mcp_server_installations/authorize/`}/**@@ -268,7 +268,7 @@ export const mcpServerInstallationsAuthorizeRetrieve = async (}export const getMcpServerInstallationsInstallCustomCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/mcp_server_installations/install_custom/`+ return `/api/projects/${projectId}/mcp_server_installations/install_custom/`}export const mcpServerInstallationsInstallCustomCreate = async (@@ -288,7 +288,7 @@ export const mcpServerInstallationsInstallCustomCreate = async (}export const getMcpServerInstallationsInstallTemplateCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/mcp_server_installations/install_template/`+ return `/api/projects/${projectId}/mcp_server_installations/install_template/`}export const mcpServerInstallationsInstallTemplateCreate = async (@@ -319,8 +319,8 @@ export const getMcpServersListUrl = (projectId: string, params?: McpServersListPconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/mcp_servers/?${stringifiedParams}`- : `/api/environments/${projectId}/mcp_servers/`+ ? `/api/projects/${projectId}/mcp_servers/?${stringifiedParams}`+ : `/api/projects/${projectId}/mcp_servers/`}/**diff --git a/products/messaging/frontend/generated/api.ts b/products/messaging/frontend/generated/api.tsindex e1029468c533..7d6ef8a7a125 100644--- a/products/messaging/frontend/generated/api.ts+++ b/products/messaging/frontend/generated/api.ts@@ -48,8 +48,8 @@ export const getMessagingCategoriesListUrl = (projectId: string, params?: Messagconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/messaging_categories/?${stringifiedParams}`- : `/api/environments/${projectId}/messaging_categories/`+ ? `/api/projects/${projectId}/messaging_categories/?${stringifiedParams}`+ : `/api/projects/${projectId}/messaging_categories/`}export const messagingCategoriesList = async (@@ -64,7 +64,7 @@ export const messagingCategoriesList = async (}export const getMessagingCategoriesCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_categories/`+ return `/api/projects/${projectId}/messaging_categories/`}export const messagingCategoriesCreate = async (@@ -81,7 +81,7 @@ export const messagingCategoriesCreate = async (}export const getMessagingCategoriesImportFromCustomerioCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_categories/import_from_customerio/`+ return `/api/projects/${projectId}/messaging_categories/import_from_customerio/`}/**@@ -103,7 +103,7 @@ export const messagingCategoriesImportFromCustomerioCreate = async (}export const getMessagingCategoriesImportPreferencesCsvCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_categories/import_preferences_csv/`+ return `/api/projects/${projectId}/messaging_categories/import_preferences_csv/`}/**@@ -139,7 +139,7 @@ export const messagingCategoriesImportPreferencesCsvCreate = async (}export const getMessagingCategoriesOptoutSyncConfigRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_categories/optout_sync_config/`+ return `/api/projects/${projectId}/messaging_categories/optout_sync_config/`}/**@@ -157,7 +157,7 @@ export const messagingCategoriesOptoutSyncConfigRetrieve = async (}export const getMessagingCategoriesRemoveCustomerioAppConfigDestroyUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_categories/remove_customerio_app_config/`+ return `/api/projects/${projectId}/messaging_categories/remove_customerio_app_config/`}/**@@ -174,7 +174,7 @@ export const messagingCategoriesRemoveCustomerioAppConfigDestroy = async (}export const getMessagingCategoriesRemoveTrackConfigDestroyUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_categories/remove_track_config/`+ return `/api/projects/${projectId}/messaging_categories/remove_track_config/`}/**@@ -191,7 +191,7 @@ export const messagingCategoriesRemoveTrackConfigDestroy = async (}export const getMessagingCategoriesRemoveWebhookConfigDestroyUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_categories/remove_webhook_config/`+ return `/api/projects/${projectId}/messaging_categories/remove_webhook_config/`}/**@@ -208,7 +208,7 @@ export const messagingCategoriesRemoveWebhookConfigDestroy = async (}export const getMessagingCategoriesSaveTrackConfigCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_categories/save_track_config/`+ return `/api/projects/${projectId}/messaging_categories/save_track_config/`}/**@@ -234,7 +234,7 @@ export const messagingCategoriesSaveTrackConfigCreate = async (}export const getMessagingCategoriesSaveWebhookConfigCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_categories/save_webhook_config/`+ return `/api/projects/${projectId}/messaging_categories/save_webhook_config/`}/**@@ -258,7 +258,7 @@ export const messagingCategoriesSaveWebhookConfigCreate = async (}export const getMessagingPreferencesAddOptOutCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_preferences/add_opt_out/`+ return `/api/projects/${projectId}/messaging_preferences/add_opt_out/`}/**@@ -279,7 +279,7 @@ export const messagingPreferencesAddOptOutCreate = async (}export const getMessagingPreferencesGenerateLinkCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_preferences/generate_link/`+ return `/api/projects/${projectId}/messaging_preferences/generate_link/`}/**@@ -296,7 +296,7 @@ export const messagingPreferencesGenerateLinkCreate = async (}export const getMessagingPreferencesOptOutsRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_preferences/opt_outs/`+ return `/api/projects/${projectId}/messaging_preferences/opt_outs/`}/**@@ -310,7 +310,7 @@ export const messagingPreferencesOptOutsRetrieve = async (projectId: string, opt}export const getMessagingPreferencesWebhookUrlRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_preferences/webhook_url/`+ return `/api/projects/${projectId}/messaging_preferences/webhook_url/`}/**@@ -338,8 +338,8 @@ export const getMessagingTemplatesListUrl = (projectId: string, params?: Messagiconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/messaging_templates/?${stringifiedParams}`- : `/api/environments/${projectId}/messaging_templates/`+ ? `/api/projects/${projectId}/messaging_templates/?${stringifiedParams}`+ : `/api/projects/${projectId}/messaging_templates/`}export const messagingTemplatesList = async (@@ -354,7 +354,7 @@ export const messagingTemplatesList = async (}export const getMessagingTemplatesCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/messaging_templates/`+ return `/api/projects/${projectId}/messaging_templates/`}export const messagingTemplatesCreate = async (diff --git a/products/metrics/frontend/generated/api.ts b/products/metrics/frontend/generated/api.tsindex f6fd8cf37449..22636a5e210e 100644--- a/products/metrics/frontend/generated/api.ts+++ b/products/metrics/frontend/generated/api.ts@@ -19,7 +19,7 @@ import type {} from './api.schemas'export const getEventFilterMetricsRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/event_filter/metrics/`+ return `/api/projects/${projectId}/event_filter/metrics/`}/**@@ -40,7 +40,7 @@ export const eventFilterMetricsRetrieve = async (}export const getEventFilterMetricsTotalsRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/event_filter/metrics/totals/`+ return `/api/projects/${projectId}/event_filter/metrics/totals/`}/**diff --git a/products/notifications/frontend/generated/api.ts b/products/notifications/frontend/generated/api.tsindex 1f9b9eaaa3ed..361aa94c2a03 100644--- a/products/notifications/frontend/generated/api.ts+++ b/products/notifications/frontend/generated/api.ts@@ -26,8 +26,8 @@ export const getNotificationsListUrl = (projectId: string, params?: Notificationconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/notifications/?${stringifiedParams}`- : `/api/environments/${projectId}/notifications/`+ ? `/api/projects/${projectId}/notifications/?${stringifiedParams}`+ : `/api/projects/${projectId}/notifications/`}export const notificationsList = async (@@ -42,7 +42,7 @@ export const notificationsList = async (}export const getNotificationsMarkReadCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/notifications/${id}/mark_read/`+ return `/api/projects/${projectId}/notifications/${id}/mark_read/`}export const notificationsMarkReadCreate = async (@@ -57,7 +57,7 @@ export const notificationsMarkReadCreate = async (}export const getNotificationsMarkUnreadCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/notifications/${id}/mark_unread/`+ return `/api/projects/${projectId}/notifications/${id}/mark_unread/`}export const notificationsMarkUnreadCreate = async (@@ -72,7 +72,7 @@ export const notificationsMarkUnreadCreate = async (}export const getNotificationsMarkAllReadCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/notifications/mark_all_read/`+ return `/api/projects/${projectId}/notifications/mark_all_read/`}export const notificationsMarkAllReadCreate = async (projectId: string, options?: RequestInit): Promise<void> => {@@ -83,7 +83,7 @@ export const notificationsMarkAllReadCreate = async (projectId: string, options?}export const getNotificationsMarkReadBulkCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/notifications/mark_read_bulk/`+ return `/api/projects/${projectId}/notifications/mark_read_bulk/`}export const notificationsMarkReadBulkCreate = async (@@ -100,7 +100,7 @@ export const notificationsMarkReadBulkCreate = async (}export const getNotificationsMarkUnreadBulkCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/notifications/mark_unread_bulk/`+ return `/api/projects/${projectId}/notifications/mark_unread_bulk/`}export const notificationsMarkUnreadBulkCreate = async (@@ -117,7 +117,7 @@ export const notificationsMarkUnreadBulkCreate = async (}export const getNotificationsUnreadCountRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/notifications/unread_count/`+ return `/api/projects/${projectId}/notifications/unread_count/`}export const notificationsUnreadCountRetrieve = async (projectId: string, options?: RequestInit): Promise<void> => {diff --git a/products/platform_features/frontend/generated/api.schemas.ts b/products/platform_features/frontend/generated/api.schemas.tsindex 2d49a2c28c21..1ca4cfb9e723 100644--- a/products/platform_features/frontend/generated/api.schemas.ts+++ b/products/platform_features/frontend/generated/api.schemas.ts@@ -7,189 +7,6 @@* PostHog API - generated* OpenAPI spec version: 1.0.0*/-/**- * * `engineering` - Engineering- * `data` - Data- * `product` - Product Management- * `founder` - Founder- * `leadership` - Leadership- * `marketing` - Marketing- * `sales` - Sales / Success- * `other` - Other- */-export type RoleAtOrganizationEnumApi = (typeof RoleAtOrganizationEnumApi)[keyof typeof RoleAtOrganizationEnumApi]--export const RoleAtOrganizationEnumApi = {- Engineering: 'engineering',- Data: 'data',- Product: 'product',- Founder: 'founder',- Leadership: 'leadership',- Marketing: 'marketing',- Sales: 'sales',- Other: 'other',-} as const--export type BlankEnumApi = (typeof BlankEnumApi)[keyof typeof BlankEnumApi]--export const BlankEnumApi = {- '': '',-} as const--/**- * @nullable- */-export type UserBasicApiHedgehogConfig = { [key: string]: unknown } | null--export interface UserBasicApi {- readonly id: number- readonly uuid: string- /**- * @maxLength 200- * @nullable- */- distinct_id?: string | null- /** @maxLength 150 */- first_name?: string- /** @maxLength 150 */- last_name?: string- /** @maxLength 254 */- email: string- /** @nullable */- is_email_verified?: boolean | null- /** @nullable */- readonly hedgehog_config: UserBasicApiHedgehogConfig- role_at_organization?: RoleAtOrganizationEnumApi | BlankEnumApi | null-}--export interface ApprovalPolicyApi {- readonly id: string- /** @maxLength 128 */- action_key: string- conditions?: unknown- approver_config: unknown- allow_self_approve?: boolean- bypass_org_membership_levels?: unknown- bypass_roles?: string[]- /** Auto-expire change requests after this duration */- expires_after?: string- enabled?: boolean- readonly created_by: UserBasicApi- readonly created_at: string- /** @nullable */- readonly updated_at: string | null-}--export interface PaginatedApprovalPolicyListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: ApprovalPolicyApi[]-}--export interface PatchedApprovalPolicyApi {- readonly id?: string- /** @maxLength 128 */- action_key?: string- conditions?: unknown- approver_config?: unknown- allow_self_approve?: boolean- bypass_org_membership_levels?: unknown- bypass_roles?: string[]- /** Auto-expire change requests after this duration */- expires_after?: string- enabled?: boolean- readonly created_by?: UserBasicApi- readonly created_at?: string- /** @nullable */- readonly updated_at?: string | null-}--/**- * * `valid` - Valid- * `invalid` - Invalid- * `expired` - Expired- * `stale` - Stale (resource changed)- */-export type ValidationStatusEnumApi = (typeof ValidationStatusEnumApi)[keyof typeof ValidationStatusEnumApi]--export const ValidationStatusEnumApi = {- Valid: 'valid',- Invalid: 'invalid',- Expired: 'expired',- Stale: 'stale',-} as const--/**- * * `pending` - Pending- * `approved` - Approved (awaiting application)- * `applied` - Applied- * `rejected` - Rejected- * `expired` - Expired- * `failed` - Failed to apply- */-export type ChangeRequestStateEnumApi = (typeof ChangeRequestStateEnumApi)[keyof typeof ChangeRequestStateEnumApi]--export const ChangeRequestStateEnumApi = {- Pending: 'pending',- Approved: 'approved',- Applied: 'applied',- Rejected: 'rejected',- Expired: 'expired',- Failed: 'failed',-} as const--export type ChangeRequestApiApprovalsItem = { [key: string]: unknown }--export interface ChangeRequestApi {- readonly id: string- readonly action_key: string- readonly action_version: number- readonly resource_type: string- /** @nullable */- readonly resource_id: string | null- readonly intent: unknown- readonly intent_display: unknown- readonly policy_snapshot: unknown- readonly validation_status: ValidationStatusEnumApi- readonly validation_errors: unknown- /** @nullable */- readonly validated_at: string | null- readonly state: ChangeRequestStateEnumApi- readonly created_by: UserBasicApi- readonly applied_by: UserBasicApi- readonly created_at: string- /** @nullable */- readonly updated_at: string | null- readonly expires_at: string- /** @nullable */- readonly applied_at: string | null- readonly apply_error: string- readonly result_data: unknown- readonly approvals: readonly ChangeRequestApiApprovalsItem[]- /** Check if current user can approve this change request. */- readonly can_approve: boolean- readonly can_cancel: boolean- /** Check if current user is the requester. */- readonly is_requester: boolean- /**- * Get the current user's approval decision if they have voted.- * @nullable- */- readonly user_decision: string | null-}--export interface PaginatedChangeRequestListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: ChangeRequestApi[]-}-export type EffectiveMembershipLevelEnumApi =(typeof EffectiveMembershipLevelEnumApi)[keyof typeof EffectiveMembershipLevelEnumApi]@@ -226,6 +43,12 @@ export const DefaultExperimentStatsMethodEnumApi = {Frequentist: 'frequentist',} as const+export type BlankEnumApi = (typeof BlankEnumApi)[keyof typeof BlankEnumApi]++export const BlankEnumApi = {+ '': '',+} as const+export type OrganizationApiTeamsItem = { [key: string]: unknown }export type OrganizationApiProjectsItem = { [key: string]: unknown }@@ -399,6 +222,55 @@ export interface PatchedOrganizationApi {readonly is_pending_deletion?: boolean | null}+/**+ * * `engineering` - Engineering+ * `data` - Data+ * `product` - Product Management+ * `founder` - Founder+ * `leadership` - Leadership+ * `marketing` - Marketing+ * `sales` - Sales / Success+ * `other` - Other+ */+export type RoleAtOrganizationEnumApi = (typeof RoleAtOrganizationEnumApi)[keyof typeof RoleAtOrganizationEnumApi]++export const RoleAtOrganizationEnumApi = {+ Engineering: 'engineering',+ Data: 'data',+ Product: 'product',+ Founder: 'founder',+ Leadership: 'leadership',+ Marketing: 'marketing',+ Sales: 'sales',+ Other: 'other',+} as const++/**+ * @nullable+ */+export type UserBasicApiHedgehogConfig = { [key: string]: unknown } | null++export interface UserBasicApi {+ readonly id: number+ readonly uuid: string+ /**+ * @maxLength 200+ * @nullable+ */+ distinct_id?: string | null+ /** @maxLength 150 */+ first_name?: string+ /** @maxLength 150 */+ last_name?: string+ /** @maxLength 254 */+ email: string+ /** @nullable */+ is_email_verified?: boolean | null+ /** @nullable */+ readonly hedgehog_config: UserBasicApiHedgehogConfig+ role_at_organization?: RoleAtOrganizationEnumApi | BlankEnumApi | null+}+/*** * `1` - member* `8` - administrator@@ -641,6 +513,134 @@ export interface AvailableFiltersResponseApi {detail_fields: AvailableFiltersResponseApiDetailFields}+export interface ApprovalPolicyApi {+ readonly id: string+ /** @maxLength 128 */+ action_key: string+ conditions?: unknown+ approver_config: unknown+ allow_self_approve?: boolean+ bypass_org_membership_levels?: unknown+ bypass_roles?: string[]+ /** Auto-expire change requests after this duration */+ expires_after?: string+ enabled?: boolean+ readonly created_by: UserBasicApi+ readonly created_at: string+ /** @nullable */+ readonly updated_at: string | null+}++export interface PaginatedApprovalPolicyListApi {+ count: number+ /** @nullable */+ next?: string | null+ /** @nullable */+ previous?: string | null+ results: ApprovalPolicyApi[]+}++export interface PatchedApprovalPolicyApi {+ readonly id?: string+ /** @maxLength 128 */+ action_key?: string+ conditions?: unknown+ approver_config?: unknown+ allow_self_approve?: boolean+ bypass_org_membership_levels?: unknown+ bypass_roles?: string[]+ /** Auto-expire change requests after this duration */+ expires_after?: string+ enabled?: boolean+ readonly created_by?: UserBasicApi+ readonly created_at?: string+ /** @nullable */+ readonly updated_at?: string | null+}++/**+ * * `valid` - Valid+ * `invalid` - Invalid+ * `expired` - Expired+ * `stale` - Stale (resource changed)+ */+export type ValidationStatusEnumApi = (typeof ValidationStatusEnumApi)[keyof typeof ValidationStatusEnumApi]++export const ValidationStatusEnumApi = {+ Valid: 'valid',+ Invalid: 'invalid',+ Expired: 'expired',+ Stale: 'stale',+} as const++/**+ * * `pending` - Pending+ * `approved` - Approved (awaiting application)+ * `applied` - Applied+ * `rejected` - Rejected+ * `expired` - Expired+ * `failed` - Failed to apply+ */+export type ChangeRequestStateEnumApi = (typeof ChangeRequestStateEnumApi)[keyof typeof ChangeRequestStateEnumApi]++export const ChangeRequestStateEnumApi = {+ Pending: 'pending',+ Approved: 'approved',+ Applied: 'applied',+ Rejected: 'rejected',+ Expired: 'expired',+ Failed: 'failed',+} as const++export type ChangeRequestApiApprovalsItem = { [key: string]: unknown }++export interface ChangeRequestApi {+ readonly id: string+ readonly action_key: string+ readonly action_version: number+ readonly resource_type: string+ /** @nullable */+ readonly resource_id: string | null+ readonly intent: unknown+ readonly intent_display: unknown+ readonly policy_snapshot: unknown+ readonly validation_status: ValidationStatusEnumApi+ readonly validation_errors: unknown+ /** @nullable */+ readonly validated_at: string | null+ readonly state: ChangeRequestStateEnumApi+ readonly created_by: UserBasicApi+ readonly applied_by: UserBasicApi+ readonly created_at: string+ /** @nullable */+ readonly updated_at: string | null+ readonly expires_at: string+ /** @nullable */+ readonly applied_at: string | null+ readonly apply_error: string+ readonly result_data: unknown+ readonly approvals: readonly ChangeRequestApiApprovalsItem[]+ /** Check if current user can approve this change request. */+ readonly can_approve: boolean+ readonly can_cancel: boolean+ /** Check if current user is the requester. */+ readonly is_requester: boolean+ /**+ * Get the current user's approval decision if they have voted.+ * @nullable+ */+ readonly user_decision: string | null+}++export interface PaginatedChangeRequestListApi {+ count: number+ /** @nullable */+ next?: string | null+ /** @nullable */+ previous?: string | null+ results: ChangeRequestApi[]+}+export interface CommentApi {readonly id: stringreadonly created_by: UserBasicApi@@ -763,36 +763,6 @@ export interface PatchedPinnedSceneTabsApi {homepage?: PinnedSceneTabApi | null}-export type ApprovalPoliciesListParams = {- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number-}--export type ChangeRequestsListParams = {- action_key?: string- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number- requester?: number- resource_id?: string- resource_type?: string- /**- * Multiple values may be separated by commas.- */- state?: string[]-}-export type ListParams = {/*** Number of results to return per page.@@ -1202,6 +1172,36 @@ export type AdvancedActivityLogsListParams = {was_impersonated?: boolean | null}+export type ApprovalPoliciesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number+ /**+ * The initial index from which to return the results.+ */+ offset?: number+}++export type ChangeRequestsListParams = {+ action_key?: string+ /**+ * Number of results to return per page.+ */+ limit?: number+ /**+ * The initial index from which to return the results.+ */+ offset?: number+ requester?: number+ resource_id?: string+ resource_type?: string+ /**+ * Multiple values may be separated by commas.+ */+ state?: string[]+}+export type CommentsListParams = {/*** When kind=task, restrict to open (incomplete) or completed tasks. Ignored when kind is not 'task'. Defaults to 'any' (no filter).diff --git a/products/platform_features/frontend/generated/api.ts b/products/platform_features/frontend/generated/api.tsindex 32352656c7f1..24c730e104f7 100644--- a/products/platform_features/frontend/generated/api.ts+++ b/products/platform_features/frontend/generated/api.ts@@ -62,219 +62,6 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>]}: DistributeReadOnlyOverUnions<T>-export const getApprovalPoliciesListUrl = (projectId: string, params?: ApprovalPoliciesListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : value.toString())- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/environments/${projectId}/approval_policies/?${stringifiedParams}`- : `/api/environments/${projectId}/approval_policies/`-}--export const approvalPoliciesList = async (- projectId: string,- params?: ApprovalPoliciesListParams,- options?: RequestInit-): Promise<PaginatedApprovalPolicyListApi> => {- return apiMutator<PaginatedApprovalPolicyListApi>(getApprovalPoliciesListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getApprovalPoliciesCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/approval_policies/`-}--export const approvalPoliciesCreate = async (- projectId: string,- approvalPolicyApi: NonReadonly<ApprovalPolicyApi>,- options?: RequestInit-): Promise<ApprovalPolicyApi> => {- return apiMutator<ApprovalPolicyApi>(getApprovalPoliciesCreateUrl(projectId), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(approvalPolicyApi),- })-}--export const getApprovalPoliciesRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/approval_policies/${id}/`-}--export const approvalPoliciesRetrieve = async (- projectId: string,- id: string,- options?: RequestInit-): Promise<ApprovalPolicyApi> => {- return apiMutator<ApprovalPolicyApi>(getApprovalPoliciesRetrieveUrl(projectId, id), {- ...options,- method: 'GET',- })-}--export const getApprovalPoliciesUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/approval_policies/${id}/`-}--export const approvalPoliciesUpdate = async (- projectId: string,- id: string,- approvalPolicyApi: NonReadonly<ApprovalPolicyApi>,- options?: RequestInit-): Promise<ApprovalPolicyApi> => {- return apiMutator<ApprovalPolicyApi>(getApprovalPoliciesUpdateUrl(projectId, id), {- ...options,- method: 'PUT',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(approvalPolicyApi),- })-}--export const getApprovalPoliciesPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/approval_policies/${id}/`-}--export const approvalPoliciesPartialUpdate = async (- projectId: string,- id: string,- patchedApprovalPolicyApi?: NonReadonly<PatchedApprovalPolicyApi>,- options?: RequestInit-): Promise<ApprovalPolicyApi> => {- return apiMutator<ApprovalPolicyApi>(getApprovalPoliciesPartialUpdateUrl(projectId, id), {- ...options,- method: 'PATCH',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedApprovalPolicyApi),- })-}--export const getApprovalPoliciesDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/approval_policies/${id}/`-}--export const approvalPoliciesDestroy = async (projectId: string, id: string, options?: RequestInit): Promise<void> => {- return apiMutator<void>(getApprovalPoliciesDestroyUrl(projectId, id), {- ...options,- method: 'DELETE',- })-}--export const getChangeRequestsListUrl = (projectId: string, params?: ChangeRequestsListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : value.toString())- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/environments/${projectId}/change_requests/?${stringifiedParams}`- : `/api/environments/${projectId}/change_requests/`-}--export const changeRequestsList = async (- projectId: string,- params?: ChangeRequestsListParams,- options?: RequestInit-): Promise<PaginatedChangeRequestListApi> => {- return apiMutator<PaginatedChangeRequestListApi>(getChangeRequestsListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getChangeRequestsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/change_requests/${id}/`-}--export const changeRequestsRetrieve = async (- projectId: string,- id: string,- options?: RequestInit-): Promise<ChangeRequestApi> => {- return apiMutator<ChangeRequestApi>(getChangeRequestsRetrieveUrl(projectId, id), {- ...options,- method: 'GET',- })-}--export const getChangeRequestsApproveCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/change_requests/${id}/approve/`-}--/**- * Approve a change request.-If quorum is reached, automatically applies the change immediately.- */-export const changeRequestsApproveCreate = async (- projectId: string,- id: string,- changeRequestApi?: NonReadonly<ChangeRequestApi>,- options?: RequestInit-): Promise<ChangeRequestApi> => {- return apiMutator<ChangeRequestApi>(getChangeRequestsApproveCreateUrl(projectId, id), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(changeRequestApi),- })-}--export const getChangeRequestsCancelCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/change_requests/${id}/cancel/`-}--/**- * Cancel a change request.-Only the requester can cancel their own pending change request.- */-export const changeRequestsCancelCreate = async (- projectId: string,- id: string,- changeRequestApi?: NonReadonly<ChangeRequestApi>,- options?: RequestInit-): Promise<ChangeRequestApi> => {- return apiMutator<ChangeRequestApi>(getChangeRequestsCancelCreateUrl(projectId, id), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(changeRequestApi),- })-}--export const getChangeRequestsRejectCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/change_requests/${id}/reject/`-}--/**- * Reject a change request.- */-export const changeRequestsRejectCreate = async (- projectId: string,- id: string,- changeRequestApi?: NonReadonly<ChangeRequestApi>,- options?: RequestInit-): Promise<ChangeRequestApi> => {- return apiMutator<ChangeRequestApi>(getChangeRequestsRejectCreateUrl(projectId, id), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(changeRequestApi),- })-}-export const getListUrl = (params?: ListParams) => {const normalizedParams = new URLSearchParams()@@ -747,6 +534,219 @@ export const advancedActivityLogsExportCreate = async (})}+export const getApprovalPoliciesListUrl = (projectId: string, params?: ApprovalPoliciesListParams) => {+ const normalizedParams = new URLSearchParams()++ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : value.toString())+ }+ })++ const stringifiedParams = normalizedParams.toString()++ return stringifiedParams.length > 0+ ? `/api/projects/${projectId}/approval_policies/?${stringifiedParams}`+ : `/api/projects/${projectId}/approval_policies/`+}++export const approvalPoliciesList = async (+ projectId: string,+ params?: ApprovalPoliciesListParams,+ options?: RequestInit+): Promise<PaginatedApprovalPolicyListApi> => {+ return apiMutator<PaginatedApprovalPolicyListApi>(getApprovalPoliciesListUrl(projectId, params), {+ ...options,+ method: 'GET',+ })+}++export const getApprovalPoliciesCreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/approval_policies/`+}++export const approvalPoliciesCreate = async (+ projectId: string,+ approvalPolicyApi: NonReadonly<ApprovalPolicyApi>,+ options?: RequestInit+): Promise<ApprovalPolicyApi> => {+ return apiMutator<ApprovalPolicyApi>(getApprovalPoliciesCreateUrl(projectId), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(approvalPolicyApi),+ })+}++export const getApprovalPoliciesRetrieveUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/approval_policies/${id}/`+}++export const approvalPoliciesRetrieve = async (+ projectId: string,+ id: string,+ options?: RequestInit+): Promise<ApprovalPolicyApi> => {+ return apiMutator<ApprovalPolicyApi>(getApprovalPoliciesRetrieveUrl(projectId, id), {+ ...options,+ method: 'GET',+ })+}++export const getApprovalPoliciesUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/approval_policies/${id}/`+}++export const approvalPoliciesUpdate = async (+ projectId: string,+ id: string,+ approvalPolicyApi: NonReadonly<ApprovalPolicyApi>,+ options?: RequestInit+): Promise<ApprovalPolicyApi> => {+ return apiMutator<ApprovalPolicyApi>(getApprovalPoliciesUpdateUrl(projectId, id), {+ ...options,+ method: 'PUT',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(approvalPolicyApi),+ })+}++export const getApprovalPoliciesPartialUpdateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/approval_policies/${id}/`+}++export const approvalPoliciesPartialUpdate = async (+ projectId: string,+ id: string,+ patchedApprovalPolicyApi?: NonReadonly<PatchedApprovalPolicyApi>,+ options?: RequestInit+): Promise<ApprovalPolicyApi> => {+ return apiMutator<ApprovalPolicyApi>(getApprovalPoliciesPartialUpdateUrl(projectId, id), {+ ...options,+ method: 'PATCH',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(patchedApprovalPolicyApi),+ })+}++export const getApprovalPoliciesDestroyUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/approval_policies/${id}/`+}++export const approvalPoliciesDestroy = async (projectId: string, id: string, options?: RequestInit): Promise<void> => {+ return apiMutator<void>(getApprovalPoliciesDestroyUrl(projectId, id), {+ ...options,+ method: 'DELETE',+ })+}++export const getChangeRequestsListUrl = (projectId: string, params?: ChangeRequestsListParams) => {+ const normalizedParams = new URLSearchParams()++ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : value.toString())+ }+ })++ const stringifiedParams = normalizedParams.toString()++ return stringifiedParams.length > 0+ ? `/api/projects/${projectId}/change_requests/?${stringifiedParams}`+ : `/api/projects/${projectId}/change_requests/`+}++export const changeRequestsList = async (+ projectId: string,+ params?: ChangeRequestsListParams,+ options?: RequestInit+): Promise<PaginatedChangeRequestListApi> => {+ return apiMutator<PaginatedChangeRequestListApi>(getChangeRequestsListUrl(projectId, params), {+ ...options,+ method: 'GET',+ })+}++export const getChangeRequestsRetrieveUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/change_requests/${id}/`+}++export const changeRequestsRetrieve = async (+ projectId: string,+ id: string,+ options?: RequestInit+): Promise<ChangeRequestApi> => {+ return apiMutator<ChangeRequestApi>(getChangeRequestsRetrieveUrl(projectId, id), {+ ...options,+ method: 'GET',+ })+}++export const getChangeRequestsApproveCreateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/change_requests/${id}/approve/`+}++/**+ * Approve a change request.+If quorum is reached, automatically applies the change immediately.+ */+export const changeRequestsApproveCreate = async (+ projectId: string,+ id: string,+ changeRequestApi?: NonReadonly<ChangeRequestApi>,+ options?: RequestInit+): Promise<ChangeRequestApi> => {+ return apiMutator<ChangeRequestApi>(getChangeRequestsApproveCreateUrl(projectId, id), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(changeRequestApi),+ })+}++export const getChangeRequestsCancelCreateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/change_requests/${id}/cancel/`+}++/**+ * Cancel a change request.+Only the requester can cancel their own pending change request.+ */+export const changeRequestsCancelCreate = async (+ projectId: string,+ id: string,+ changeRequestApi?: NonReadonly<ChangeRequestApi>,+ options?: RequestInit+): Promise<ChangeRequestApi> => {+ return apiMutator<ChangeRequestApi>(getChangeRequestsCancelCreateUrl(projectId, id), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(changeRequestApi),+ })+}++export const getChangeRequestsRejectCreateUrl = (projectId: string, id: string) => {+ return `/api/projects/${projectId}/change_requests/${id}/reject/`+}++/**+ * Reject a change request.+ */+export const changeRequestsRejectCreate = async (+ projectId: string,+ id: string,+ changeRequestApi?: NonReadonly<ChangeRequestApi>,+ options?: RequestInit+): Promise<ChangeRequestApi> => {+ return apiMutator<ChangeRequestApi>(getChangeRequestsRejectCreateUrl(projectId, id), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(changeRequestApi),+ })+}+export const getCommentsListUrl = (projectId: string, params?: CommentsListParams) => {const normalizedParams = new URLSearchParams()diff --git a/products/platform_features/frontend/generated/api.zod.ts b/products/platform_features/frontend/generated/api.zod.tsindex 19cd6f914ea1..2f0ebbc528e0 100644--- a/products/platform_features/frontend/generated/api.zod.ts+++ b/products/platform_features/frontend/generated/api.zod.ts@@ -9,62 +9,6 @@*/import * as zod from 'zod'-export const approvalPoliciesCreateBodyActionKeyMax = 128--export const ApprovalPoliciesCreateBody = /* @__PURE__ */ zod.object({- action_key: zod.string().max(approvalPoliciesCreateBodyActionKeyMax),- conditions: zod.unknown().optional(),- approver_config: zod.unknown(),- allow_self_approve: zod.boolean().optional(),- bypass_org_membership_levels: zod.unknown().optional(),- bypass_roles: zod.array(zod.uuid()).optional(),- expires_after: zod.string().optional().describe('Auto-expire change requests after this duration'),- enabled: zod.boolean().optional(),-})--export const approvalPoliciesUpdateBodyActionKeyMax = 128--export const ApprovalPoliciesUpdateBody = /* @__PURE__ */ zod.object({- action_key: zod.string().max(approvalPoliciesUpdateBodyActionKeyMax),- conditions: zod.unknown().optional(),- approver_config: zod.unknown(),- allow_self_approve: zod.boolean().optional(),- bypass_org_membership_levels: zod.unknown().optional(),- bypass_roles: zod.array(zod.uuid()).optional(),- expires_after: zod.string().optional().describe('Auto-expire change requests after this duration'),- enabled: zod.boolean().optional(),-})--export const approvalPoliciesPartialUpdateBodyActionKeyMax = 128--export const ApprovalPoliciesPartialUpdateBody = /* @__PURE__ */ zod.object({- action_key: zod.string().max(approvalPoliciesPartialUpdateBodyActionKeyMax).optional(),- conditions: zod.unknown().optional(),- approver_config: zod.unknown().optional(),- allow_self_approve: zod.boolean().optional(),- bypass_org_membership_levels: zod.unknown().optional(),- bypass_roles: zod.array(zod.uuid()).optional(),- expires_after: zod.string().optional().describe('Auto-expire change requests after this duration'),- enabled: zod.boolean().optional(),-})--/**- * Approve a change request.-If quorum is reached, automatically applies the change immediately.- */-export const ChangeRequestsApproveCreateBody = /* @__PURE__ */ zod.looseObject({})--/**- * Cancel a change request.-Only the requester can cancel their own pending change request.- */-export const ChangeRequestsCancelCreateBody = /* @__PURE__ */ zod.looseObject({})--/**- * Reject a change request.- */-export const ChangeRequestsRejectCreateBody = /* @__PURE__ */ zod.looseObject({})-export const createBodyNameMax = 64export const CreateBody = /* @__PURE__ */ zod.object({@@ -261,6 +205,62 @@ export const AdvancedActivityLogsExportCreateBody = /* @__PURE__ */ zod.object({created_at: zod.iso.datetime({ offset: true }).optional(),})+export const approvalPoliciesCreateBodyActionKeyMax = 128++export const ApprovalPoliciesCreateBody = /* @__PURE__ */ zod.object({+ action_key: zod.string().max(approvalPoliciesCreateBodyActionKeyMax),+ conditions: zod.unknown().optional(),+ approver_config: zod.unknown(),+ allow_self_approve: zod.boolean().optional(),+ bypass_org_membership_levels: zod.unknown().optional(),+ bypass_roles: zod.array(zod.uuid()).optional(),+ expires_after: zod.string().optional().describe('Auto-expire change requests after this duration'),+ enabled: zod.boolean().optional(),+})++export const approvalPoliciesUpdateBodyActionKeyMax = 128++export const ApprovalPoliciesUpdateBody = /* @__PURE__ */ zod.object({+ action_key: zod.string().max(approvalPoliciesUpdateBodyActionKeyMax),+ conditions: zod.unknown().optional(),+ approver_config: zod.unknown(),+ allow_self_approve: zod.boolean().optional(),+ bypass_org_membership_levels: zod.unknown().optional(),+ bypass_roles: zod.array(zod.uuid()).optional(),+ expires_after: zod.string().optional().describe('Auto-expire change requests after this duration'),+ enabled: zod.boolean().optional(),+})++export const approvalPoliciesPartialUpdateBodyActionKeyMax = 128++export const ApprovalPoliciesPartialUpdateBody = /* @__PURE__ */ zod.object({+ action_key: zod.string().max(approvalPoliciesPartialUpdateBodyActionKeyMax).optional(),+ conditions: zod.unknown().optional(),+ approver_config: zod.unknown().optional(),+ allow_self_approve: zod.boolean().optional(),+ bypass_org_membership_levels: zod.unknown().optional(),+ bypass_roles: zod.array(zod.uuid()).optional(),+ expires_after: zod.string().optional().describe('Auto-expire change requests after this duration'),+ enabled: zod.boolean().optional(),+})++/**+ * Approve a change request.+If quorum is reached, automatically applies the change immediately.+ */+export const ChangeRequestsApproveCreateBody = /* @__PURE__ */ zod.looseObject({})++/**+ * Cancel a change request.+Only the requester can cancel their own pending change request.+ */+export const ChangeRequestsCancelCreateBody = /* @__PURE__ */ zod.looseObject({})++/**+ * Reject a change request.+ */+export const ChangeRequestsRejectCreateBody = /* @__PURE__ */ zod.looseObject({})+export const commentsCreateBodyIsTaskDefault = falseexport const commentsCreateBodyItemIdMax = 72diff --git a/products/posthog_ai/frontend/generated/api.ts b/products/posthog_ai/frontend/generated/api.tsindex c0f75772a974..140c2258ae52 100644--- a/products/posthog_ai/frontend/generated/api.ts+++ b/products/posthog_ai/frontend/generated/api.ts@@ -11,7 +11,7 @@ import { apiMutator } from '../../../../frontend/src/lib/api-orval-mutator'import type { DocsSearchRequestApi, DocsSearchResponseApi, McpToolsCreate200 } from './api.schemas'export const getMcpToolsCreateUrl = (projectId: string, toolName: string) => {- return `/api/environments/${projectId}/mcp_tools/${toolName}/`+ return `/api/projects/${projectId}/mcp_tools/${toolName}/`}/**@@ -34,7 +34,7 @@ export const mcpToolsCreate = async (}export const getDocsSearchUrl = (projectId: string) => {- return `/api/environments/${projectId}/mcp_tools/docs_search/`+ return `/api/projects/${projectId}/mcp_tools/docs_search/`}/**diff --git a/products/product_analytics/frontend/generated/api.ts b/products/product_analytics/frontend/generated/api.tsindex f01683b27bc5..ffaf6cb0ea32 100644--- a/products/product_analytics/frontend/generated/api.ts+++ b/products/product_analytics/frontend/generated/api.ts@@ -73,8 +73,8 @@ export const getColumnConfigurationsListUrl = (projectId: string, params?: Columconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/column_configurations/?${stringifiedParams}`- : `/api/environments/${projectId}/column_configurations/`+ ? `/api/projects/${projectId}/column_configurations/?${stringifiedParams}`+ : `/api/projects/${projectId}/column_configurations/`}export const columnConfigurationsList = async (@@ -89,7 +89,7 @@ export const columnConfigurationsList = async (}export const getColumnConfigurationsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/column_configurations/`+ return `/api/projects/${projectId}/column_configurations/`}export const columnConfigurationsCreate = async (@@ -106,7 +106,7 @@ export const columnConfigurationsCreate = async (}export const getColumnConfigurationsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/column_configurations/${id}/`+ return `/api/projects/${projectId}/column_configurations/${id}/`}export const columnConfigurationsRetrieve = async (@@ -121,7 +121,7 @@ export const columnConfigurationsRetrieve = async (}export const getColumnConfigurationsUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/column_configurations/${id}/`+ return `/api/projects/${projectId}/column_configurations/${id}/`}export const columnConfigurationsUpdate = async (@@ -139,7 +139,7 @@ export const columnConfigurationsUpdate = async (}export const getColumnConfigurationsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/column_configurations/${id}/`+ return `/api/projects/${projectId}/column_configurations/${id}/`}export const columnConfigurationsPartialUpdate = async (@@ -157,7 +157,7 @@ export const columnConfigurationsPartialUpdate = async (}export const getColumnConfigurationsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/column_configurations/${id}/`+ return `/api/projects/${projectId}/column_configurations/${id}/`}export const columnConfigurationsDestroy = async (diff --git a/products/replay_vision/frontend/generated/api.ts b/products/replay_vision/frontend/generated/api.tsindex f943ab4570b9..254ecd2181fb 100644--- a/products/replay_vision/frontend/generated/api.ts+++ b/products/replay_vision/frontend/generated/api.ts@@ -53,8 +53,8 @@ export const getVisionObservationsListUrl = (projectId: string, params: VisionObconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/vision/observations/?${stringifiedParams}`- : `/api/environments/${projectId}/vision/observations/`+ ? `/api/projects/${projectId}/vision/observations/?${stringifiedParams}`+ : `/api/projects/${projectId}/vision/observations/`}/**@@ -72,7 +72,7 @@ export const visionObservationsList = async (}export const getVisionObservationsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/vision/observations/${id}/`+ return `/api/projects/${projectId}/vision/observations/${id}/`}/**@@ -90,7 +90,7 @@ export const visionObservationsRetrieve = async (}export const getEnvironmentVisionQuotaRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/vision/quota/`+ return `/api/projects/${projectId}/vision/quota/`}export const environmentVisionQuotaRetrieve = async (@@ -115,8 +115,8 @@ export const getVisionScannersListUrl = (projectId: string, params?: VisionScannconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/vision/scanners/?${stringifiedParams}`- : `/api/environments/${projectId}/vision/scanners/`+ ? `/api/projects/${projectId}/vision/scanners/?${stringifiedParams}`+ : `/api/projects/${projectId}/vision/scanners/`}/**@@ -134,7 +134,7 @@ export const visionScannersList = async (}export const getVisionScannersCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/vision/scanners/`+ return `/api/projects/${projectId}/vision/scanners/`}/**@@ -154,7 +154,7 @@ export const visionScannersCreate = async (}export const getVisionScannersRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/vision/scanners/${id}/`+ return `/api/projects/${projectId}/vision/scanners/${id}/`}/**@@ -172,7 +172,7 @@ export const visionScannersRetrieve = async (}export const getVisionScannersPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/vision/scanners/${id}/`+ return `/api/projects/${projectId}/vision/scanners/${id}/`}/**@@ -193,7 +193,7 @@ export const visionScannersPartialUpdate = async (}export const getVisionScannersDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/vision/scanners/${id}/`+ return `/api/projects/${projectId}/vision/scanners/${id}/`}/**@@ -207,7 +207,7 @@ export const visionScannersDestroy = async (projectId: string, id: string, optio}export const getVisionScannersObserveCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/vision/scanners/${id}/observe/`+ return `/api/projects/${projectId}/vision/scanners/${id}/observe/`}/**@@ -243,8 +243,8 @@ export const getVisionScannersObservationsListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/vision/scanners/${scannerId}/observations/?${stringifiedParams}`- : `/api/environments/${projectId}/vision/scanners/${scannerId}/observations/`+ ? `/api/projects/${projectId}/vision/scanners/${scannerId}/observations/?${stringifiedParams}`+ : `/api/projects/${projectId}/vision/scanners/${scannerId}/observations/`}/**@@ -266,7 +266,7 @@ export const visionScannersObservationsList = async (}export const getVisionScannersObservationsRetrieveUrl = (projectId: string, scannerId: string, id: string) => {- return `/api/environments/${projectId}/vision/scanners/${scannerId}/observations/${id}/`+ return `/api/projects/${projectId}/vision/scanners/${scannerId}/observations/${id}/`}/**@@ -285,7 +285,7 @@ export const visionScannersObservationsRetrieve = async (}export const getVisionScannersEstimateCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/vision/scanners/estimate/`+ return `/api/projects/${projectId}/vision/scanners/estimate/`}/**diff --git a/products/revenue_analytics/frontend/generated/api.ts b/products/revenue_analytics/frontend/generated/api.tsindex 41904f6c410d..4625b506ab27 100644--- a/products/revenue_analytics/frontend/generated/api.ts+++ b/products/revenue_analytics/frontend/generated/api.ts@@ -10,7 +10,7 @@import { apiMutator } from '../../../../frontend/src/lib/api-orval-mutator'export const getRevenueAnalyticsJoinsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/revenue_analytics/joins/`+ return `/api/projects/${projectId}/revenue_analytics/joins/`}export const revenueAnalyticsJoinsCreate = async (projectId: string, options?: RequestInit): Promise<void> => {@@ -21,7 +21,7 @@ export const revenueAnalyticsJoinsCreate = async (projectId: string, options?: R}export const getRevenueAnalyticsTaxonomyValuesRetrieveUrl = (projectId: string) => {- return `/api/environments/${projectId}/revenue_analytics/taxonomy/values/`+ return `/api/projects/${projectId}/revenue_analytics/taxonomy/values/`}export const revenueAnalyticsTaxonomyValuesRetrieve = async (diff --git a/products/tracing/frontend/generated/api.ts b/products/tracing/frontend/generated/api.tsindex bf7cfe1cce94..7ae734eac76f 100644--- a/products/tracing/frontend/generated/api.ts+++ b/products/tracing/frontend/generated/api.ts@@ -19,7 +19,7 @@ import type {} from './api.schemas'export const getTracingSpansAggregateCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/tracing/spans/aggregate/`+ return `/api/projects/${projectId}/tracing/spans/aggregate/`}export const tracingSpansAggregateCreate = async (@@ -50,8 +50,8 @@ export const getTracingSpansAttributesRetrieveUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/tracing/spans/attributes/?${stringifiedParams}`- : `/api/environments/${projectId}/tracing/spans/attributes/`+ ? `/api/projects/${projectId}/tracing/spans/attributes/?${stringifiedParams}`+ : `/api/projects/${projectId}/tracing/spans/attributes/`}export const tracingSpansAttributesRetrieve = async (@@ -66,7 +66,7 @@ export const tracingSpansAttributesRetrieve = async (}export const getTracingSpansQueryCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/tracing/spans/query/`+ return `/api/projects/${projectId}/tracing/spans/query/`}export const tracingSpansQueryCreate = async (@@ -97,8 +97,8 @@ export const getTracingSpansServiceNamesRetrieveUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/tracing/spans/service-names/?${stringifiedParams}`- : `/api/environments/${projectId}/tracing/spans/service-names/`+ ? `/api/projects/${projectId}/tracing/spans/service-names/?${stringifiedParams}`+ : `/api/projects/${projectId}/tracing/spans/service-names/`}export const tracingSpansServiceNamesRetrieve = async (@@ -113,7 +113,7 @@ export const tracingSpansServiceNamesRetrieve = async (}export const getTracingSpansSparklineCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/tracing/spans/sparkline/`+ return `/api/projects/${projectId}/tracing/spans/sparkline/`}export const tracingSpansSparklineCreate = async (@@ -130,7 +130,7 @@ export const tracingSpansSparklineCreate = async (}export const getTracingSpansTraceCreateUrl = (projectId: string, traceId: string) => {- return `/api/environments/${projectId}/tracing/spans/trace/${traceId}/`+ return `/api/projects/${projectId}/tracing/spans/trace/${traceId}/`}export const tracingSpansTraceCreate = async (@@ -148,7 +148,7 @@ export const tracingSpansTraceCreate = async (}export const getTracingSpansTreeCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/tracing/spans/tree/`+ return `/api/projects/${projectId}/tracing/spans/tree/`}export const tracingSpansTreeCreate = async (@@ -176,8 +176,8 @@ export const getTracingSpansValuesRetrieveUrl = (projectId: string, params: Tracconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/tracing/spans/values/?${stringifiedParams}`- : `/api/environments/${projectId}/tracing/spans/values/`+ ? `/api/projects/${projectId}/tracing/spans/values/?${stringifiedParams}`+ : `/api/projects/${projectId}/tracing/spans/values/`}export const tracingSpansValuesRetrieve = async (diff --git a/products/user_interviews/frontend/generated/api.ts b/products/user_interviews/frontend/generated/api.tsindex 4f3d087d92fb..a0a4e7b34c29 100644--- a/products/user_interviews/frontend/generated/api.ts+++ b/products/user_interviews/frontend/generated/api.ts@@ -61,8 +61,8 @@ export const getUserInterviewTopicsListUrl = (projectId: string, params?: UserInconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/user_interview_topics/?${stringifiedParams}`- : `/api/environments/${projectId}/user_interview_topics/`+ ? `/api/projects/${projectId}/user_interview_topics/?${stringifiedParams}`+ : `/api/projects/${projectId}/user_interview_topics/`}/**@@ -80,7 +80,7 @@ export const userInterviewTopicsList = async (}export const getUserInterviewTopicsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/user_interview_topics/`+ return `/api/projects/${projectId}/user_interview_topics/`}/**@@ -100,7 +100,7 @@ export const userInterviewTopicsCreate = async (}export const getUserInterviewTopicsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${id}/`+ return `/api/projects/${projectId}/user_interview_topics/${id}/`}/**@@ -118,7 +118,7 @@ export const userInterviewTopicsRetrieve = async (}export const getUserInterviewTopicsUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${id}/`+ return `/api/projects/${projectId}/user_interview_topics/${id}/`}/**@@ -139,7 +139,7 @@ export const userInterviewTopicsUpdate = async (}export const getUserInterviewTopicsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${id}/`+ return `/api/projects/${projectId}/user_interview_topics/${id}/`}/**@@ -160,7 +160,7 @@ export const userInterviewTopicsPartialUpdate = async (}export const getUserInterviewTopicsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${id}/`+ return `/api/projects/${projectId}/user_interview_topics/${id}/`}/**@@ -178,7 +178,7 @@ export const userInterviewTopicsDestroy = async (}export const getUserInterviewTopicsAddIntervieweeCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${id}/add_interviewee/`+ return `/api/projects/${projectId}/user_interview_topics/${id}/add_interviewee/`}/**@@ -199,7 +199,7 @@ export const userInterviewTopicsAddIntervieweeCreate = async (}export const getUserInterviewTopicsGenerateLinksCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${id}/generate_links/`+ return `/api/projects/${projectId}/user_interview_topics/${id}/generate_links/`}/**@@ -217,7 +217,7 @@ export const userInterviewTopicsGenerateLinksCreate = async (}export const getUserInterviewTopicsLinksCsvCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${id}/links_csv/`+ return `/api/projects/${projectId}/user_interview_topics/${id}/links_csv/`}/**@@ -235,7 +235,7 @@ export const userInterviewTopicsLinksCsvCreate = async (}export const getUserInterviewTopicsRemoveIntervieweeCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${id}/remove_interviewee/`+ return `/api/projects/${projectId}/user_interview_topics/${id}/remove_interviewee/`}/**@@ -256,7 +256,7 @@ export const userInterviewTopicsRemoveIntervieweeCreate = async (}export const getUserInterviewTopicsSendInvitesCreateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${id}/send_invites/`+ return `/api/projects/${projectId}/user_interview_topics/${id}/send_invites/`}/**@@ -280,7 +280,7 @@ export const userInterviewTopicsSendInvitesCreate = async (}export const getUserInterviewTopicsTestLinkRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${id}/test_link/`+ return `/api/projects/${projectId}/user_interview_topics/${id}/test_link/`}/**@@ -313,8 +313,8 @@ export const getUserInterviewTopicsIntervieweesListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/user_interview_topics/${topicId}/interviewees/?${stringifiedParams}`- : `/api/environments/${projectId}/user_interview_topics/${topicId}/interviewees/`+ ? `/api/projects/${projectId}/user_interview_topics/${topicId}/interviewees/?${stringifiedParams}`+ : `/api/projects/${projectId}/user_interview_topics/${topicId}/interviewees/`}/**@@ -336,7 +336,7 @@ export const userInterviewTopicsIntervieweesList = async (}export const getUserInterviewTopicsIntervieweesCreateUrl = (projectId: string, topicId: string) => {- return `/api/environments/${projectId}/user_interview_topics/${topicId}/interviewees/`+ return `/api/projects/${projectId}/user_interview_topics/${topicId}/interviewees/`}/**@@ -357,7 +357,7 @@ export const userInterviewTopicsIntervieweesCreate = async (}export const getUserInterviewTopicsIntervieweesRetrieveUrl = (projectId: string, topicId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${topicId}/interviewees/${id}/`+ return `/api/projects/${projectId}/user_interview_topics/${topicId}/interviewees/${id}/`}/**@@ -376,7 +376,7 @@ export const userInterviewTopicsIntervieweesRetrieve = async (}export const getUserInterviewTopicsIntervieweesUpdateUrl = (projectId: string, topicId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${topicId}/interviewees/${id}/`+ return `/api/projects/${projectId}/user_interview_topics/${topicId}/interviewees/${id}/`}/**@@ -398,7 +398,7 @@ export const userInterviewTopicsIntervieweesUpdate = async (}export const getUserInterviewTopicsIntervieweesPartialUpdateUrl = (projectId: string, topicId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${topicId}/interviewees/${id}/`+ return `/api/projects/${projectId}/user_interview_topics/${topicId}/interviewees/${id}/`}/**@@ -423,7 +423,7 @@ export const userInterviewTopicsIntervieweesPartialUpdate = async (}export const getUserInterviewTopicsIntervieweesDestroyUrl = (projectId: string, topicId: string, id: string) => {- return `/api/environments/${projectId}/user_interview_topics/${topicId}/interviewees/${id}/`+ return `/api/projects/${projectId}/user_interview_topics/${topicId}/interviewees/${id}/`}/**@@ -442,7 +442,7 @@ export const userInterviewTopicsIntervieweesDestroy = async (}export const getUserInterviewTopicsIntervieweesBulkCreateUrl = (projectId: string, topicId: string) => {- return `/api/environments/${projectId}/user_interview_topics/${topicId}/interviewees/bulk/`+ return `/api/projects/${projectId}/user_interview_topics/${topicId}/interviewees/bulk/`}/**@@ -477,8 +477,8 @@ export const getUserInterviewsListUrl = (projectId: string, params?: UserInterviconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/user_interviews/?${stringifiedParams}`- : `/api/environments/${projectId}/user_interviews/`+ ? `/api/projects/${projectId}/user_interviews/?${stringifiedParams}`+ : `/api/projects/${projectId}/user_interviews/`}export const userInterviewsList = async (@@ -493,7 +493,7 @@ export const userInterviewsList = async (}export const getUserInterviewsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/user_interviews/`+ return `/api/projects/${projectId}/user_interviews/`}export const userInterviewsCreate = async (@@ -518,7 +518,7 @@ export const userInterviewsCreate = async (}export const getUserInterviewsRetrieveUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interviews/${id}/`+ return `/api/projects/${projectId}/user_interviews/${id}/`}export const userInterviewsRetrieve = async (@@ -533,7 +533,7 @@ export const userInterviewsRetrieve = async (}export const getUserInterviewsUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interviews/${id}/`+ return `/api/projects/${projectId}/user_interviews/${id}/`}export const userInterviewsUpdate = async (@@ -559,7 +559,7 @@ export const userInterviewsUpdate = async (}export const getUserInterviewsPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interviews/${id}/`+ return `/api/projects/${projectId}/user_interviews/${id}/`}export const userInterviewsPartialUpdate = async (@@ -587,7 +587,7 @@ export const userInterviewsPartialUpdate = async (}export const getUserInterviewsDestroyUrl = (projectId: string, id: string) => {- return `/api/environments/${projectId}/user_interviews/${id}/`+ return `/api/projects/${projectId}/user_interviews/${id}/`}export const userInterviewsDestroy = async (projectId: string, id: string, options?: RequestInit): Promise<void> => {@@ -598,7 +598,7 @@ export const userInterviewsDestroy = async (projectId: string, id: string, optio}export const getUserInterviewsSearchCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/user_interviews/search/`+ return `/api/projects/${projectId}/user_interviews/search/`}/**diff --git a/products/web_analytics/frontend/generated/api.schemas.ts b/products/web_analytics/frontend/generated/api.schemas.tsindex ba860feec91b..f23e873497e9 100644--- a/products/web_analytics/frontend/generated/api.schemas.ts+++ b/products/web_analytics/frontend/generated/api.schemas.ts@@ -7,6 +7,180 @@* PostHog API - generated* OpenAPI spec version: 1.0.0*/+export interface HeatmapResponseItemApi {+ count: number+ pointer_y: number+ pointer_relative_x: number+ pointer_target_fixed: boolean+}++export interface HeatmapsResponseApi {+ results: HeatmapResponseItemApi[]+}++export interface PaginatedHeatmapsResponseListApi {+ count: number+ /** @nullable */+ next?: string | null+ /** @nullable */+ previous?: string | null+ results: HeatmapsResponseApi[]+}++/**+ * * `screenshot` - Screenshot+ * `iframe` - Iframe+ * `recording` - Recording+ */+export type HeatmapScreenshotResponseTypeEnumApi =+ (typeof HeatmapScreenshotResponseTypeEnumApi)[keyof typeof HeatmapScreenshotResponseTypeEnumApi]++export const HeatmapScreenshotResponseTypeEnumApi = {+ Screenshot: 'screenshot',+ Iframe: 'iframe',+ Recording: 'recording',+} as const++/**+ * * `processing` - Processing+ * `completed` - Completed+ * `failed` - Failed+ */+export type HeatmapScreenshotResponseStatusEnumApi =+ (typeof HeatmapScreenshotResponseStatusEnumApi)[keyof typeof HeatmapScreenshotResponseStatusEnumApi]++export const HeatmapScreenshotResponseStatusEnumApi = {+ Processing: 'processing',+ Completed: 'completed',+ Failed: 'failed',+} as const++/**+ * * `engineering` - Engineering+ * `data` - Data+ * `product` - Product Management+ * `founder` - Founder+ * `leadership` - Leadership+ * `marketing` - Marketing+ * `sales` - Sales / Success+ * `other` - Other+ */+export type RoleAtOrganizationEnumApi = (typeof RoleAtOrganizationEnumApi)[keyof typeof RoleAtOrganizationEnumApi]++export const RoleAtOrganizationEnumApi = {+ Engineering: 'engineering',+ Data: 'data',+ Product: 'product',+ Founder: 'founder',+ Leadership: 'leadership',+ Marketing: 'marketing',+ Sales: 'sales',+ Other: 'other',+} as const++export type BlankEnumApi = (typeof BlankEnumApi)[keyof typeof BlankEnumApi]++export const BlankEnumApi = {+ '': '',+} as const++/**+ * @nullable+ */+export type UserBasicApiHedgehogConfig = { [key: string]: unknown } | null++export interface UserBasicApi {+ readonly id: number+ readonly uuid: string+ /**+ * @maxLength 200+ * @nullable+ */+ distinct_id?: string | null+ /** @maxLength 150 */+ first_name?: string+ /** @maxLength 150 */+ last_name?: string+ /** @maxLength 254 */+ email: string+ /** @nullable */+ is_email_verified?: boolean | null+ /** @nullable */+ readonly hedgehog_config: UserBasicApiHedgehogConfig+ role_at_organization?: RoleAtOrganizationEnumApi | BlankEnumApi | null+}++export type HeatmapScreenshotResponseApiSnapshotsItem = { [key: string]: unknown }++export interface HeatmapScreenshotResponseApi {+ readonly id: string+ readonly short_id: string+ /**+ * @maxLength 400+ * @nullable+ */+ name?: string | null+ /** @maxLength 2000 */+ url: string+ /**+ * URL for fetching heatmap data+ * @maxLength 2000+ * @nullable+ */+ data_url?: string | null+ target_widths?: unknown+ type?: HeatmapScreenshotResponseTypeEnumApi+ readonly status: HeatmapScreenshotResponseStatusEnumApi+ readonly has_content: boolean+ readonly snapshots: readonly HeatmapScreenshotResponseApiSnapshotsItem[]+ deleted?: boolean+ readonly created_by: UserBasicApi+ readonly created_at: string+ readonly updated_at: string+ /** @nullable */+ readonly exception: string | null+}++export interface PaginatedHeatmapScreenshotResponseListApi {+ count: number+ /** @nullable */+ next?: string | null+ /** @nullable */+ previous?: string | null+ results: HeatmapScreenshotResponseApi[]+}++export type PatchedHeatmapScreenshotResponseApiSnapshotsItem = { [key: string]: unknown }++export interface PatchedHeatmapScreenshotResponseApi {+ readonly id?: string+ readonly short_id?: string+ /**+ * @maxLength 400+ * @nullable+ */+ name?: string | null+ /** @maxLength 2000 */+ url?: string+ /**+ * URL for fetching heatmap data+ * @maxLength 2000+ * @nullable+ */+ data_url?: string | null+ target_widths?: unknown+ type?: HeatmapScreenshotResponseTypeEnumApi+ readonly status?: HeatmapScreenshotResponseStatusEnumApi+ readonly has_content?: boolean+ readonly snapshots?: readonly PatchedHeatmapScreenshotResponseApiSnapshotsItem[]+ deleted?: boolean+ readonly created_by?: UserBasicApi+ readonly created_at?: string+ readonly updated_at?: string+ /** @nullable */+ readonly exception?: string | null+}+/*** * `Up` - Up* `Down` - Down@@ -108,61 +282,6 @@ export interface WeeklyDigestResponseApi {dashboard_url: string}-/**- * * `engineering` - Engineering- * `data` - Data- * `product` - Product Management- * `founder` - Founder- * `leadership` - Leadership- * `marketing` - Marketing- * `sales` - Sales / Success- * `other` - Other- */-export type RoleAtOrganizationEnumApi = (typeof RoleAtOrganizationEnumApi)[keyof typeof RoleAtOrganizationEnumApi]--export const RoleAtOrganizationEnumApi = {- Engineering: 'engineering',- Data: 'data',- Product: 'product',- Founder: 'founder',- Leadership: 'leadership',- Marketing: 'marketing',- Sales: 'sales',- Other: 'other',-} as const--export type BlankEnumApi = (typeof BlankEnumApi)[keyof typeof BlankEnumApi]--export const BlankEnumApi = {- '': '',-} as const--/**- * @nullable- */-export type UserBasicApiHedgehogConfig = { [key: string]: unknown } | null--export interface UserBasicApi {- readonly id: number- readonly uuid: string- /**- * @maxLength 200- * @nullable- */- distinct_id?: string | null- /** @maxLength 150 */- first_name?: string- /** @maxLength 150 */- last_name?: string- /** @maxLength 254 */- email: string- /** @nullable */- is_email_verified?: boolean | null- /** @nullable */- readonly hedgehog_config: UserBasicApiHedgehogConfig- role_at_organization?: RoleAtOrganizationEnumApi | BlankEnumApi | null-}-export interface WebAnalyticsFilterPresetApi {readonly id: stringreadonly short_id: string@@ -202,123 +321,26 @@ export interface PatchedWebAnalyticsFilterPresetApi {readonly last_modified_by?: UserBasicApi}-export interface HeatmapResponseItemApi {- count: number- pointer_y: number- pointer_relative_x: number- pointer_target_fixed: boolean-}--export interface HeatmapsResponseApi {- results: HeatmapResponseItemApi[]-}--export interface PaginatedHeatmapsResponseListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: HeatmapsResponseApi[]-}--/**- * * `screenshot` - Screenshot- * `iframe` - Iframe- * `recording` - Recording- */-export type HeatmapScreenshotResponseTypeEnumApi =- (typeof HeatmapScreenshotResponseTypeEnumApi)[keyof typeof HeatmapScreenshotResponseTypeEnumApi]--export const HeatmapScreenshotResponseTypeEnumApi = {- Screenshot: 'screenshot',- Iframe: 'iframe',- Recording: 'recording',-} as const--/**- * * `processing` - Processing- * `completed` - Completed- * `failed` - Failed- */-export type HeatmapScreenshotResponseStatusEnumApi =- (typeof HeatmapScreenshotResponseStatusEnumApi)[keyof typeof HeatmapScreenshotResponseStatusEnumApi]--export const HeatmapScreenshotResponseStatusEnumApi = {- Processing: 'processing',- Completed: 'completed',- Failed: 'failed',-} as const--export type HeatmapScreenshotResponseApiSnapshotsItem = { [key: string]: unknown }--export interface HeatmapScreenshotResponseApi {- readonly id: string- readonly short_id: string+export type HeatmapsListParams = {/**- * @maxLength 400- * @nullable+ * Number of results to return per page.*/- name?: string | null- /** @maxLength 2000 */- url: string+ limit?: number/**- * URL for fetching heatmap data- * @maxLength 2000- * @nullable+ * The initial index from which to return the results.*/- data_url?: string | null- target_widths?: unknown- type?: HeatmapScreenshotResponseTypeEnumApi- readonly status: HeatmapScreenshotResponseStatusEnumApi- readonly has_content: boolean- readonly snapshots: readonly HeatmapScreenshotResponseApiSnapshotsItem[]- deleted?: boolean- readonly created_by: UserBasicApi- readonly created_at: string- readonly updated_at: string- /** @nullable */- readonly exception: string | null-}--export interface PaginatedHeatmapScreenshotResponseListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: HeatmapScreenshotResponseApi[]+ offset?: number}-export type PatchedHeatmapScreenshotResponseApiSnapshotsItem = { [key: string]: unknown }--export interface PatchedHeatmapScreenshotResponseApi {- readonly id?: string- readonly short_id?: string+export type SavedListParams = {/**- * @maxLength 400- * @nullable+ * Number of results to return per page.*/- name?: string | null- /** @maxLength 2000 */- url?: string+ limit?: number/**- * URL for fetching heatmap data- * @maxLength 2000- * @nullable+ * The initial index from which to return the results.*/- data_url?: string | null- target_widths?: unknown- type?: HeatmapScreenshotResponseTypeEnumApi- readonly status?: HeatmapScreenshotResponseStatusEnumApi- readonly has_content?: boolean- readonly snapshots?: readonly PatchedHeatmapScreenshotResponseApiSnapshotsItem[]- deleted?: boolean- readonly created_by?: UserBasicApi- readonly created_at?: string- readonly updated_at?: string- /** @nullable */- readonly exception?: string | null+ offset?: number}export type WebAnalyticsWeeklyDigestParams = {@@ -344,25 +366,3 @@ export type WebAnalyticsFilterPresetsListParams = {offset?: numbershort_id?: string}--export type HeatmapsListParams = {- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number-}--export type SavedListParams = {- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number-}diff --git a/products/web_analytics/frontend/generated/api.ts b/products/web_analytics/frontend/generated/api.tsindex 1eda8262da31..1686c808ebba 100644--- a/products/web_analytics/frontend/generated/api.ts+++ b/products/web_analytics/frontend/generated/api.ts@@ -40,7 +40,7 @@ type NonReadonly<T> = [T] extends [UnionToIntersection<T>]}: DistributeReadOnlyOverUnions<T>-export const getWebAnalyticsWeeklyDigestUrl = (projectId: string, params?: WebAnalyticsWeeklyDigestParams) => {+export const getHeatmapsListUrl = (projectId: string, params?: HeatmapsListParams) => {const normalizedParams = new URLSearchParams()Object.entries(params || {}).forEach(([key, value]) => {@@ -52,29 +52,33 @@ export const getWebAnalyticsWeeklyDigestUrl = (projectId: string, params?: WebAnconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/web_analytics/weekly_digest/?${stringifiedParams}`- : `/api/environments/${projectId}/web_analytics/weekly_digest/`+ ? `/api/projects/${projectId}/heatmaps/?${stringifiedParams}`+ : `/api/projects/${projectId}/heatmaps/`}-/**- * Summarizes a project's web analytics over a lookback window (default 7 days): unique visitors, pageviews, sessions, bounce rate, and average session duration with period-over-period comparisons, plus the top 5 pages, top 5 traffic sources, and goal conversions.- * @summary Summarize web analytics- */-export const webAnalyticsWeeklyDigest = async (+export const heatmapsList = async (projectId: string,- params?: WebAnalyticsWeeklyDigestParams,+ params?: HeatmapsListParams,options?: RequestInit-): Promise<WeeklyDigestResponseApi> => {- return apiMutator<WeeklyDigestResponseApi>(getWebAnalyticsWeeklyDigestUrl(projectId, params), {+): Promise<PaginatedHeatmapsResponseListApi> => {+ return apiMutator<PaginatedHeatmapsResponseListApi>(getHeatmapsListUrl(projectId, params), {...options,method: 'GET',})}-export const getWebAnalyticsFilterPresetsListUrl = (- projectId: string,- params?: WebAnalyticsFilterPresetsListParams-) => {+export const getHeatmapsEventsRetrieveUrl = (projectId: string) => {+ return `/api/projects/${projectId}/heatmaps/events/`+}++export const heatmapsEventsRetrieve = async (projectId: string, options?: RequestInit): Promise<void> => {+ return apiMutator<void>(getHeatmapsEventsRetrieveUrl(projectId), {+ ...options,+ method: 'GET',+ })+}++export const getSavedListUrl = (projectId: string, params?: SavedListParams) => {const normalizedParams = new URLSearchParams()Object.entries(params || {}).forEach(([key, value]) => {@@ -86,111 +90,104 @@ export const getWebAnalyticsFilterPresetsListUrl = (const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/environments/${projectId}/web_analytics_filter_presets/?${stringifiedParams}`- : `/api/environments/${projectId}/web_analytics_filter_presets/`+ ? `/api/projects/${projectId}/saved/?${stringifiedParams}`+ : `/api/projects/${projectId}/saved/`}-export const webAnalyticsFilterPresetsList = async (+export const savedList = async (projectId: string,- params?: WebAnalyticsFilterPresetsListParams,+ params?: SavedListParams,options?: RequestInit-): Promise<PaginatedWebAnalyticsFilterPresetListApi> => {- return apiMutator<PaginatedWebAnalyticsFilterPresetListApi>(- getWebAnalyticsFilterPresetsListUrl(projectId, params),- {- ...options,- method: 'GET',- }- )+): Promise<PaginatedHeatmapScreenshotResponseListApi> => {+ return apiMutator<PaginatedHeatmapScreenshotResponseListApi>(getSavedListUrl(projectId, params), {+ ...options,+ method: 'GET',+ })}-export const getWebAnalyticsFilterPresetsCreateUrl = (projectId: string) => {- return `/api/environments/${projectId}/web_analytics_filter_presets/`+export const getSavedCreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/saved/`}-export const webAnalyticsFilterPresetsCreate = async (+export const savedCreate = async (projectId: string,- webAnalyticsFilterPresetApi: NonReadonly<WebAnalyticsFilterPresetApi>,+ heatmapScreenshotResponseApi: NonReadonly<HeatmapScreenshotResponseApi>,options?: RequestInit-): Promise<WebAnalyticsFilterPresetApi> => {- return apiMutator<WebAnalyticsFilterPresetApi>(getWebAnalyticsFilterPresetsCreateUrl(projectId), {+): Promise<HeatmapScreenshotResponseApi> => {+ return apiMutator<HeatmapScreenshotResponseApi>(getSavedCreateUrl(projectId), {...options,method: 'POST',headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(webAnalyticsFilterPresetApi),+ body: JSON.stringify(heatmapScreenshotResponseApi),})}-export const getWebAnalyticsFilterPresetsRetrieveUrl = (projectId: string, shortId: string) => {- return `/api/environments/${projectId}/web_analytics_filter_presets/${shortId}/`+export const getSavedRetrieveUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/saved/${shortId}/`}-export const webAnalyticsFilterPresetsRetrieve = async (+export const savedRetrieve = async (projectId: string,shortId: string,options?: RequestInit-): Promise<WebAnalyticsFilterPresetApi> => {- return apiMutator<WebAnalyticsFilterPresetApi>(getWebAnalyticsFilterPresetsRetrieveUrl(projectId, shortId), {+): Promise<HeatmapScreenshotResponseApi> => {+ return apiMutator<HeatmapScreenshotResponseApi>(getSavedRetrieveUrl(projectId, shortId), {...options,method: 'GET',})}-export const getWebAnalyticsFilterPresetsUpdateUrl = (projectId: string, shortId: string) => {- return `/api/environments/${projectId}/web_analytics_filter_presets/${shortId}/`+export const getSavedPartialUpdateUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/saved/${shortId}/`}-export const webAnalyticsFilterPresetsUpdate = async (+export const savedPartialUpdate = async (projectId: string,shortId: string,- webAnalyticsFilterPresetApi: NonReadonly<WebAnalyticsFilterPresetApi>,+ patchedHeatmapScreenshotResponseApi?: NonReadonly<PatchedHeatmapScreenshotResponseApi>,options?: RequestInit-): Promise<WebAnalyticsFilterPresetApi> => {- return apiMutator<WebAnalyticsFilterPresetApi>(getWebAnalyticsFilterPresetsUpdateUrl(projectId, shortId), {+): Promise<HeatmapScreenshotResponseApi> => {+ return apiMutator<HeatmapScreenshotResponseApi>(getSavedPartialUpdateUrl(projectId, shortId), {...options,- method: 'PUT',+ method: 'PATCH',headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(webAnalyticsFilterPresetApi),+ body: JSON.stringify(patchedHeatmapScreenshotResponseApi),})}-export const getWebAnalyticsFilterPresetsPartialUpdateUrl = (projectId: string, shortId: string) => {- return `/api/environments/${projectId}/web_analytics_filter_presets/${shortId}/`+export const getSavedDestroyUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/saved/${shortId}/`}-export const webAnalyticsFilterPresetsPartialUpdate = async (- projectId: string,- shortId: string,- patchedWebAnalyticsFilterPresetApi?: NonReadonly<PatchedWebAnalyticsFilterPresetApi>,- options?: RequestInit-): Promise<WebAnalyticsFilterPresetApi> => {- return apiMutator<WebAnalyticsFilterPresetApi>(getWebAnalyticsFilterPresetsPartialUpdateUrl(projectId, shortId), {+/**+ * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true+ */+export const savedDestroy = async (projectId: string, shortId: string, options?: RequestInit): Promise<unknown> => {+ return apiMutator<unknown>(getSavedDestroyUrl(projectId, shortId), {...options,- method: 'PATCH',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedWebAnalyticsFilterPresetApi),+ method: 'DELETE',})}-export const getWebAnalyticsFilterPresetsDestroyUrl = (projectId: string, shortId: string) => {- return `/api/environments/${projectId}/web_analytics_filter_presets/${shortId}/`+export const getSavedRegenerateCreateUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/saved/${shortId}/regenerate/`}-/**- * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true- */-export const webAnalyticsFilterPresetsDestroy = async (+export const savedRegenerateCreate = async (projectId: string,shortId: string,+ heatmapScreenshotResponseApi: NonReadonly<HeatmapScreenshotResponseApi>,options?: RequestInit-): Promise<unknown> => {- return apiMutator<unknown>(getWebAnalyticsFilterPresetsDestroyUrl(projectId, shortId), {+): Promise<void> => {+ return apiMutator<void>(getSavedRegenerateCreateUrl(projectId, shortId), {...options,- method: 'DELETE',+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(heatmapScreenshotResponseApi),})}-export const getHeatmapsListUrl = (projectId: string, params?: HeatmapsListParams) => {+export const getWebAnalyticsWeeklyDigestUrl = (projectId: string, params?: WebAnalyticsWeeklyDigestParams) => {const normalizedParams = new URLSearchParams()Object.entries(params || {}).forEach(([key, value]) => {@@ -202,33 +199,29 @@ export const getHeatmapsListUrl = (projectId: string, params?: HeatmapsListParamconst stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/projects/${projectId}/heatmaps/?${stringifiedParams}`- : `/api/projects/${projectId}/heatmaps/`+ ? `/api/projects/${projectId}/web_analytics/weekly_digest/?${stringifiedParams}`+ : `/api/projects/${projectId}/web_analytics/weekly_digest/`}-export const heatmapsList = async (+/**+ * Summarizes a project's web analytics over a lookback window (default 7 days): unique visitors, pageviews, sessions, bounce rate, and average session duration with period-over-period comparisons, plus the top 5 pages, top 5 traffic sources, and goal conversions.+ * @summary Summarize web analytics+ */+export const webAnalyticsWeeklyDigest = async (projectId: string,- params?: HeatmapsListParams,+ params?: WebAnalyticsWeeklyDigestParams,options?: RequestInit-): Promise<PaginatedHeatmapsResponseListApi> => {- return apiMutator<PaginatedHeatmapsResponseListApi>(getHeatmapsListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getHeatmapsEventsRetrieveUrl = (projectId: string) => {- return `/api/projects/${projectId}/heatmaps/events/`-}--export const heatmapsEventsRetrieve = async (projectId: string, options?: RequestInit): Promise<void> => {- return apiMutator<void>(getHeatmapsEventsRetrieveUrl(projectId), {+): Promise<WeeklyDigestResponseApi> => {+ return apiMutator<WeeklyDigestResponseApi>(getWebAnalyticsWeeklyDigestUrl(projectId, params), {...options,method: 'GET',})}-export const getSavedListUrl = (projectId: string, params?: SavedListParams) => {+export const getWebAnalyticsFilterPresetsListUrl = (+ projectId: string,+ params?: WebAnalyticsFilterPresetsListParams+) => {const normalizedParams = new URLSearchParams()Object.entries(params || {}).forEach(([key, value]) => {@@ -240,99 +233,106 @@ export const getSavedListUrl = (projectId: string, params?: SavedListParams) =>const stringifiedParams = normalizedParams.toString()return stringifiedParams.length > 0- ? `/api/projects/${projectId}/saved/?${stringifiedParams}`- : `/api/projects/${projectId}/saved/`+ ? `/api/projects/${projectId}/web_analytics_filter_presets/?${stringifiedParams}`+ : `/api/projects/${projectId}/web_analytics_filter_presets/`}-export const savedList = async (+export const webAnalyticsFilterPresetsList = async (projectId: string,- params?: SavedListParams,+ params?: WebAnalyticsFilterPresetsListParams,options?: RequestInit-): Promise<PaginatedHeatmapScreenshotResponseListApi> => {- return apiMutator<PaginatedHeatmapScreenshotResponseListApi>(getSavedListUrl(projectId, params), {- ...options,- method: 'GET',- })+): Promise<PaginatedWebAnalyticsFilterPresetListApi> => {+ return apiMutator<PaginatedWebAnalyticsFilterPresetListApi>(+ getWebAnalyticsFilterPresetsListUrl(projectId, params),+ {+ ...options,+ method: 'GET',+ }+ )}-export const getSavedCreateUrl = (projectId: string) => {- return `/api/projects/${projectId}/saved/`+export const getWebAnalyticsFilterPresetsCreateUrl = (projectId: string) => {+ return `/api/projects/${projectId}/web_analytics_filter_presets/`}-export const savedCreate = async (+export const webAnalyticsFilterPresetsCreate = async (projectId: string,- heatmapScreenshotResponseApi: NonReadonly<HeatmapScreenshotResponseApi>,+ webAnalyticsFilterPresetApi: NonReadonly<WebAnalyticsFilterPresetApi>,options?: RequestInit-): Promise<HeatmapScreenshotResponseApi> => {- return apiMutator<HeatmapScreenshotResponseApi>(getSavedCreateUrl(projectId), {+): Promise<WebAnalyticsFilterPresetApi> => {+ return apiMutator<WebAnalyticsFilterPresetApi>(getWebAnalyticsFilterPresetsCreateUrl(projectId), {...options,method: 'POST',headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(heatmapScreenshotResponseApi),+ body: JSON.stringify(webAnalyticsFilterPresetApi),})}-export const getSavedRetrieveUrl = (projectId: string, shortId: string) => {- return `/api/projects/${projectId}/saved/${shortId}/`+export const getWebAnalyticsFilterPresetsRetrieveUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/web_analytics_filter_presets/${shortId}/`}-export const savedRetrieve = async (+export const webAnalyticsFilterPresetsRetrieve = async (projectId: string,shortId: string,options?: RequestInit-): Promise<HeatmapScreenshotResponseApi> => {- return apiMutator<HeatmapScreenshotResponseApi>(getSavedRetrieveUrl(projectId, shortId), {+): Promise<WebAnalyticsFilterPresetApi> => {+ return apiMutator<WebAnalyticsFilterPresetApi>(getWebAnalyticsFilterPresetsRetrieveUrl(projectId, shortId), {...options,method: 'GET',})}-export const getSavedPartialUpdateUrl = (projectId: string, shortId: string) => {- return `/api/projects/${projectId}/saved/${shortId}/`+export const getWebAnalyticsFilterPresetsUpdateUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/web_analytics_filter_presets/${shortId}/`}-export const savedPartialUpdate = async (+export const webAnalyticsFilterPresetsUpdate = async (projectId: string,shortId: string,- patchedHeatmapScreenshotResponseApi?: NonReadonly<PatchedHeatmapScreenshotResponseApi>,+ webAnalyticsFilterPresetApi: NonReadonly<WebAnalyticsFilterPresetApi>,options?: RequestInit-): Promise<HeatmapScreenshotResponseApi> => {- return apiMutator<HeatmapScreenshotResponseApi>(getSavedPartialUpdateUrl(projectId, shortId), {+): Promise<WebAnalyticsFilterPresetApi> => {+ return apiMutator<WebAnalyticsFilterPresetApi>(getWebAnalyticsFilterPresetsUpdateUrl(projectId, shortId), {...options,- method: 'PATCH',+ method: 'PUT',headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedHeatmapScreenshotResponseApi),+ body: JSON.stringify(webAnalyticsFilterPresetApi),})}-export const getSavedDestroyUrl = (projectId: string, shortId: string) => {- return `/api/projects/${projectId}/saved/${shortId}/`+export const getWebAnalyticsFilterPresetsPartialUpdateUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/web_analytics_filter_presets/${shortId}/`}-/**- * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true- */-export const savedDestroy = async (projectId: string, shortId: string, options?: RequestInit): Promise<unknown> => {- return apiMutator<unknown>(getSavedDestroyUrl(projectId, shortId), {+export const webAnalyticsFilterPresetsPartialUpdate = async (+ projectId: string,+ shortId: string,+ patchedWebAnalyticsFilterPresetApi?: NonReadonly<PatchedWebAnalyticsFilterPresetApi>,+ options?: RequestInit+): Promise<WebAnalyticsFilterPresetApi> => {+ return apiMutator<WebAnalyticsFilterPresetApi>(getWebAnalyticsFilterPresetsPartialUpdateUrl(projectId, shortId), {...options,- method: 'DELETE',+ method: 'PATCH',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(patchedWebAnalyticsFilterPresetApi),})}-export const getSavedRegenerateCreateUrl = (projectId: string, shortId: string) => {- return `/api/projects/${projectId}/saved/${shortId}/regenerate/`+export const getWebAnalyticsFilterPresetsDestroyUrl = (projectId: string, shortId: string) => {+ return `/api/projects/${projectId}/web_analytics_filter_presets/${shortId}/`}-export const savedRegenerateCreate = async (+/**+ * Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true+ */+export const webAnalyticsFilterPresetsDestroy = async (projectId: string,shortId: string,- heatmapScreenshotResponseApi: NonReadonly<HeatmapScreenshotResponseApi>,options?: RequestInit-): Promise<void> => {- return apiMutator<void>(getSavedRegenerateCreateUrl(projectId, shortId), {+): Promise<unknown> => {+ return apiMutator<unknown>(getWebAnalyticsFilterPresetsDestroyUrl(projectId, shortId), {...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(heatmapScreenshotResponseApi),+ method: 'DELETE',})}diff --git a/products/web_analytics/frontend/generated/api.zod.ts b/products/web_analytics/frontend/generated/api.zod.tsindex 964e69037552..f375e8df5fc4 100644--- a/products/web_analytics/frontend/generated/api.zod.ts+++ b/products/web_analytics/frontend/generated/api.zod.ts@@ -9,36 +9,6 @@*/import * as zod from 'zod'-export const webAnalyticsFilterPresetsCreateBodyNameMax = 400--export const WebAnalyticsFilterPresetsCreateBody = /* @__PURE__ */ zod.object({- name: zod.string().max(webAnalyticsFilterPresetsCreateBodyNameMax),- description: zod.string().optional(),- pinned: zod.boolean().optional(),- deleted: zod.boolean().optional(),- filters: zod.unknown().optional(),-})--export const webAnalyticsFilterPresetsUpdateBodyNameMax = 400--export const WebAnalyticsFilterPresetsUpdateBody = /* @__PURE__ */ zod.object({- name: zod.string().max(webAnalyticsFilterPresetsUpdateBodyNameMax),- description: zod.string().optional(),- pinned: zod.boolean().optional(),- deleted: zod.boolean().optional(),- filters: zod.unknown().optional(),-})--export const webAnalyticsFilterPresetsPartialUpdateBodyNameMax = 400--export const WebAnalyticsFilterPresetsPartialUpdateBody = /* @__PURE__ */ zod.object({- name: zod.string().max(webAnalyticsFilterPresetsPartialUpdateBodyNameMax).optional(),- description: zod.string().optional(),- pinned: zod.boolean().optional(),- deleted: zod.boolean().optional(),- filters: zod.unknown().optional(),-})-export const savedCreateBodyNameMax = 400export const savedCreateBodyUrlMax = 2000@@ -92,3 +62,33 @@ export const SavedRegenerateCreateBody = /* @__PURE__ */ zod.object({.describe('\* `screenshot` - Screenshot\n\* `iframe` - Iframe\n\* `recording` - Recording'),deleted: zod.boolean().optional(),})++export const webAnalyticsFilterPresetsCreateBodyNameMax = 400++export const WebAnalyticsFilterPresetsCreateBody = /* @__PURE__ */ zod.object({+ name: zod.string().max(webAnalyticsFilterPresetsCreateBodyNameMax),+ description: zod.string().optional(),+ pinned: zod.boolean().optional(),+ deleted: zod.boolean().optional(),+ filters: zod.unknown().optional(),+})++export const webAnalyticsFilterPresetsUpdateBodyNameMax = 400++export const WebAnalyticsFilterPresetsUpdateBody = /* @__PURE__ */ zod.object({+ name: zod.string().max(webAnalyticsFilterPresetsUpdateBodyNameMax),+ description: zod.string().optional(),+ pinned: zod.boolean().optional(),+ deleted: zod.boolean().optional(),+ filters: zod.unknown().optional(),+})++export const webAnalyticsFilterPresetsPartialUpdateBodyNameMax = 400++export const WebAnalyticsFilterPresetsPartialUpdateBody = /* @__PURE__ */ zod.object({+ name: zod.string().max(webAnalyticsFilterPresetsPartialUpdateBodyNameMax).optional(),+ description: zod.string().optional(),+ pinned: zod.boolean().optional(),+ deleted: zod.boolean().optional(),+ filters: zod.unknown().optional(),+})diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex cc75f2425cce..7901f2dc37d6 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -39918,6 +39918,56 @@ export namespace Schemas {query: _TracingTreeQueryBody;}+ export type EnvironmentsAccountsListParams = {+ /**+ * Filter by account executive. Use 'unassigned' or an integer user id.+ */+ account_executive?: string;+ /**+ * Filter by account owner. Use 'unassigned' or an integer user id.+ */+ account_owner?: string;+ /**+ * When true, returns only accounts where CSM, account executive, and account owner are all unset.+ */+ all_roles_unassigned?: boolean;+ /**+ * Filter by CSM. Use 'unassigned' for accounts with no CSM, or an integer user id.+ */+ csm?: string;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Sort order. Defaults to '-created_at'.+ */+ ordering?: string;+ /**+ * Case-insensitive substring search across account name and external ID.+ */+ search?: string;+ /**+ * JSON-encoded array of tag names to filter by, e.g. `["enterprise","priority"]`. Returns accounts that have any of the listed tags. Malformed values (not a JSON-encoded list of strings) return a 400.+ */+ tags?: string;+ };++ export type EnvironmentsAccountsNotebooksListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+export type EnvironmentsAlertsListParams = {/*** Number of results to return per page.@@ -39948,6 +39998,17 @@ export namespace Schemas {checks_offset?: number;};+ export type EnvironmentsApprovalPoliciesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+export type EnvironmentsBatchExportsListParams = {/*** Number of results to return per page.@@ -40045,6 +40106,80 @@ export namespace Schemas {search?: string;};+ export type EnvironmentsChangeRequestsListParams = {+ action_key?: string;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ requester?: number;+ resource_id?: string;+ resource_type?: string;+ /**+ * Multiple values may be separated by commas.+ */+ state?: string[];+ };++ export type EnvironmentsColumnConfigurationsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type EnvironmentsConversationsViewsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type EnvironmentsCoreEventsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type EnvironmentsCustomerJourneysListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type EnvironmentsCustomerProfileConfigsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+export type EnvironmentsDashboardsListParams = {format?: EnvironmentsDashboardsListFormat;/**@@ -40345,6 +40480,28 @@ export namespace Schemas {offset?: number;};+ export type EnvironmentsDataModelingDagsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type EnvironmentsDataModelingEdgesListParams = {+ /**+ * A page number within the paginated result set.+ */+ page?: number;+ /**+ * A search term.+ */+ search?: string;+ };+export type EnvironmentsDataModelingJobsListParams = {/*** The pagination cursor value.@@ -40357,6 +40514,17 @@ export namespace Schemas {saved_query_id?: string;};+ export type EnvironmentsDataModelingNodesListParams = {+ /**+ * A page number within the paginated result set.+ */+ page?: number;+ /**+ * A search term.+ */+ search?: string;+ };+export type EnvironmentsDataWarehouseCheckDatabaseNameRetrieveParams = {/*** Database name to check@@ -40408,6 +40576,17 @@ export namespace Schemas {search?: string;};+ export type EnvironmentsDesktopRecordingsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+export type EnvironmentsElementsListParams = {/*** Number of results to return per page.@@ -40452,7 +40631,7 @@ export namespace Schemas {offset?: number;};- export type EnvironmentsErrorTrackingReleasesListParams = {+ export type EnvironmentsErrorTrackingAssignmentRulesListParams = {/*** Number of results to return per page.*/@@ -40463,7 +40642,7 @@ export namespace Schemas {offset?: number;};- export type EnvironmentsErrorTrackingSymbolSetsListParams = {+ export type EnvironmentsErrorTrackingExternalReferencesListParams = {/*** Number of results to return per page.*/@@ -40472,81 +40651,251 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ };++ export type EnvironmentsErrorTrackingFingerprintsListParams = {/**- * Sort order for symbol sets. Prefix with `-` for descending order.+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };- * `created_at` - created_at- * `-created_at` - -created_at- * `ref` - ref- * `-ref` - -ref- * `last_used` - last_used- * `-last_used` - -last_used+ export type EnvironmentsErrorTrackingGitProviderFileLinksResolveGithubRetrieveParams = {+ /**+ * Code snippet to search for in repository files.* @minLength 1*/- order_by?: string;+ code_sample: string;/**- * Exact symbol set reference to filter by.+ * File name to match in search results.* @minLength 1*/- ref?: string;+ file_name: string;/**- * Upload status filter: `valid` has an uploaded file, `invalid` is missing a file, `all` returns both.-- * `all` - all- * `valid` - valid- * `invalid` - invalid+ * Repository owner or namespace.* @minLength 1*/- status?: EnvironmentsErrorTrackingSymbolSetsListStatus;- };-- export type EnvironmentsErrorTrackingSymbolSetsListStatus = typeof EnvironmentsErrorTrackingSymbolSetsListStatus[keyof typeof EnvironmentsErrorTrackingSymbolSetsListStatus];--- export const EnvironmentsErrorTrackingSymbolSetsListStatus = {- All: 'all',- Valid: 'valid',- Invalid: 'invalid',- } as const;-- export type EnvironmentsEventsListParams = {+ owner: string;/**- * Only return events with a timestamp after this time. Default: now() - 24 hours.+ * Repository name.+ * @minLength 1*/- after?: string;+ repository: string;+ };++ export type EnvironmentsErrorTrackingGitProviderFileLinksResolveGitlabRetrieveParams = {/**- * Only return events with a timestamp before this time. Default: now() + 5 seconds.+ * Code snippet to search for in repository files.+ * @minLength 1*/- before?: string;+ code_sample: string;/**- * Filter list by distinct id.+ * File name to match in search results.+ * @minLength 1*/- distinct_id?: number;+ file_name: string;/**- * Filter list by event. For example `user sign up` or `$pageview`.+ * Repository owner or namespace.+ * @minLength 1*/- event?: string;- format?: EnvironmentsEventsListFormat;+ owner: string;/**- * Include person details for each event. Default: false.+ * Repository name.+ * @minLength 1*/- include_person?: boolean;+ repository: string;+ };++ export type EnvironmentsErrorTrackingIssuesListParams = {/**- * The maximum number of results to return+ * Number of results to return per page.*/limit?: number;/**- * Allows to skip first offset rows. Will fail for value larger than 100000. Read about proper way of paginating: https://posthog.com/docs/api/queries#5-use-timestamp-based-pagination-instead-of-offset+ * The initial index from which to return the results.*/offset?: number;+ };++ export type EnvironmentsErrorTrackingRecommendationsListParams = {/**- * Filter list by person id.+ * Number of results to return per page.*/- person_id?: number;+ limit?: number;/**- * Filter events by event property, person property, cohort, groups and more.+ * The initial index from which to return the results.*/- properties?: Property[];+ offset?: number;+ };++ export type EnvironmentsErrorTrackingReleasesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type EnvironmentsErrorTrackingSpikeEventsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type EnvironmentsErrorTrackingStackFramesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type EnvironmentsErrorTrackingSuppressionRulesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type EnvironmentsErrorTrackingSymbolSetsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Sort order for symbol sets. Prefix with `-` for descending order.++ * `created_at` - created_at+ * `-created_at` - -created_at+ * `ref` - ref+ * `-ref` - -ref+ * `last_used` - last_used+ * `-last_used` - -last_used+ * @minLength 1+ */+ order_by?: string;+ /**+ * Exact symbol set reference to filter by.+ * @minLength 1+ */+ ref?: string;+ /**+ * Upload status filter: `valid` has an uploaded file, `invalid` is missing a file, `all` returns both.++ * `all` - all+ * `valid` - valid+ * `invalid` - invalid+ * @minLength 1+ */+ status?: EnvironmentsErrorTrackingSymbolSetsListStatus;+ };++ export type EnvironmentsErrorTrackingSymbolSetsListStatus = typeof EnvironmentsErrorTrackingSymbolSetsListStatus[keyof typeof EnvironmentsErrorTrackingSymbolSetsListStatus];+++ export const EnvironmentsErrorTrackingSymbolSetsListStatus = {+ All: 'all',+ Valid: 'valid',+ Invalid: 'invalid',+ } as const;++ export type EnvironmentsEvaluationRunsCreate200 = { [key: string]: unknown };++ export type EnvironmentsEvaluationsListParams = {+ /**+ * Filter by enabled status+ */+ enabled?: boolean;+ /**+ * Multiple values may be separated by commas.+ */+ id__in?: string[];+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Ordering++ * `created_at` - Created At+ * `-created_at` - Created At (descending)+ * `updated_at` - Updated At+ * `-updated_at` - Updated At (descending)+ * `name` - Name+ * `-name` - Name (descending)+ */+ order_by?: string[];+ /**+ * Search in name or description+ */+ search?: string;+ };++ export type EnvironmentsEventsListParams = {+ /**+ * Only return events with a timestamp after this time. Default: now() - 24 hours.+ */+ after?: string;+ /**+ * Only return events with a timestamp before this time. Default: now() + 5 seconds.+ */+ before?: string;+ /**+ * Filter list by distinct id.+ */+ distinct_id?: number;+ /**+ * Filter list by event. For example `user sign up` or `$pageview`.+ */+ event?: string;+ format?: EnvironmentsEventsListFormat;+ /**+ * Include person details for each event. Default: false.+ */+ include_person?: boolean;+ /**+ * The maximum number of results to return+ */+ limit?: number;+ /**+ * Allows to skip first offset rows. Will fail for value larger than 100000. Read about proper way of paginating: https://posthog.com/docs/api/queries#5-use-timestamp-based-pagination-instead-of-offset+ */+ offset?: number;+ /**+ * Filter list by person id.+ */+ person_id?: number;+ /**+ * Filter events by event property, person property, cohort, groups and more.+ */+ properties?: Property[];/*** (Experimental) JSON-serialized array of HogQL expressions to return*/@@ -40742,6 +41091,17 @@ export namespace Schemas {offset?: number;};+ export type EnvironmentsFixHogqlListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+export type EnvironmentsGroupsListParams = {/*** Pagination cursor returned in the `next` URL of a previous response@@ -40816,6 +41176,17 @@ export namespace Schemas {group_type_index: number;};+ export type EnvironmentsHealthIssuesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+export type EnvironmentsHeatmapsListParams = {/*** Number of results to return per page.@@ -41811,7 +42182,11 @@ export namespace Schemas {search?: string;};- export type EnvironmentsLogsAlertsListParams = {+ export type EnvironmentsLlmAnalyticsClusteringConfigRetrieve200 = { [key: string]: unknown };++ export type EnvironmentsLlmAnalyticsClusteringConfigSetEventFiltersCreate200 = { [key: string]: unknown };++ export type EnvironmentsLlmAnalyticsClusteringJobsListParams = {/*** Number of results to return per page.*/@@ -41822,7 +42197,7 @@ export namespace Schemas {offset?: number;};- export type EnvironmentsLogsAlertsEventsListParams = {+ export type EnvironmentsLlmAnalyticsEvaluationReportsListParams = {/*** Number of results to return per page.*/@@ -41833,62 +42208,56 @@ export namespace Schemas {offset?: number;};- export type EnvironmentsLogsAttributesRetrieveParams = {- /**- * Type of attributes: "log" for log attributes, "resource" for resource attributes. Defaults to "log".-- * `log` - log- * `resource` - resource- * @minLength 1- */- attribute_type?: EnvironmentsLogsAttributesRetrieveAttributeType;- /**- * Date range to search within. Defaults to last hour.- */- dateRange?: _DateRange;- /**- * Property filters to narrow which logs are scanned for attributes.- */- filterGroup?: _LogPropertyFilter[];+ export type EnvironmentsLlmAnalyticsEvaluationReportsRunsListParams = {/**- * Max results (default: 100)- * @minimum 1- * @maximum 100+ * Number of results to return per page.*/limit?: number;/**- * Pagination offset (default: 0)- * @minimum 0+ * The initial index from which to return the results.*/offset?: number;+ };++ export type EnvironmentsLlmAnalyticsEvaluationSummaryCreate400 = { [key: string]: unknown };++ export type EnvironmentsLlmAnalyticsEvaluationSummaryCreate403 = { [key: string]: unknown };++ export type EnvironmentsLlmAnalyticsEvaluationSummaryCreate404 = { [key: string]: unknown };++ export type EnvironmentsLlmAnalyticsEvaluationSummaryCreate500 = { [key: string]: unknown };++ export type EnvironmentsLlmAnalyticsModelsRetrieveParams = {/**- * Search filter for attribute names- * @minLength 1- */- search?: string;- /**- * When true, the search query also matches attribute values (not just keys). Each result indicates whether it matched on key or value.+ * Optional provider key UUID. When supplied, models reachable with that specific key are returned (useful for Azure OpenAI, where the deployment list depends on the configured endpoint). Must belong to the same provider as the `provider` parameter.*/- search_values?: boolean;+ key_id?: string;/**- * Filter attributes to those appearing in logs from these services.+ * LLM provider to list models for. Must be one of the supported providers.*/- serviceNames?: string[];+ provider: EnvironmentsLlmAnalyticsModelsRetrieveProvider;};- export type EnvironmentsLogsAttributesRetrieveAttributeType = typeof EnvironmentsLogsAttributesRetrieveAttributeType[keyof typeof EnvironmentsLogsAttributesRetrieveAttributeType];+ export type EnvironmentsLlmAnalyticsModelsRetrieveProvider = typeof EnvironmentsLlmAnalyticsModelsRetrieveProvider[keyof typeof EnvironmentsLlmAnalyticsModelsRetrieveProvider];- export const EnvironmentsLogsAttributesRetrieveAttributeType = {- Log: 'log',- Resource: 'resource',+ export const EnvironmentsLlmAnalyticsModelsRetrieveProvider = {+ Anthropic: 'anthropic',+ AzureOpenai: 'azure_openai',+ Fireworks: 'fireworks',+ Gemini: 'gemini',+ Openai: 'openai',+ Openrouter: 'openrouter',+ TogetherAi: 'together_ai',} as const;- export type EnvironmentsLogsExportCreate201 = { [key: string]: unknown };+ export type EnvironmentsLlmAnalyticsOfflineEvaluationsExperimentItemsCreate400 = { [key: string]: unknown };- export type EnvironmentsLogsHasLogsRetrieve200 = { [key: string]: unknown };+ export type EnvironmentsLlmAnalyticsOfflineEvaluationsExperimentItemsCreate500 = { [key: string]: unknown };- export type EnvironmentsLogsSamplingRulesListParams = {+ export type EnvironmentsLlmAnalyticsProviderKeyValidationsCreate200 = { [key: string]: unknown };++ export type EnvironmentsLlmAnalyticsProviderKeysListParams = {/*** Number of results to return per page.*/@@ -41899,7 +42268,7 @@ export namespace Schemas {offset?: number;};- export type EnvironmentsLogsSamplingRulesReorderCreateParams = {+ export type EnvironmentsLlmAnalyticsReviewQueueItemsListParams = {/*** Number of results to return per page.*/@@ -41908,83 +42277,57 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- };-- export type EnvironmentsLogsValuesRetrieveParams = {/**- * Type of attribute: "log" or "resource". Defaults to "log".-- * `log` - log- * `resource` - resource- * @minLength 1+ * Order by `created_at` or `updated_at`.*/- attribute_type?: EnvironmentsLogsValuesRetrieveAttributeType;+ order_by?: string;/**- * Date range to search within. Defaults to last hour.- */- dateRange?: _DateRange;- /**- * Property filters to narrow which logs are scanned for values.+ * Filter by a specific review queue ID.*/- filterGroup?: _LogPropertyFilter[];+ queue_id?: string;/**- * The attribute key to get values for- * @minLength 1+ * Search pending trace IDs.*/- key: string;+ search?: string;/**- * Filter values to those appearing in logs from these services.+ * Filter by an exact trace ID.*/- serviceNames?: string[];+ trace_id?: string;/**- * Search filter for attribute values- * @minLength 1+ * Filter by multiple trace IDs separated by commas.*/- value?: string;+ trace_id__in?: string;};- export type EnvironmentsLogsValuesRetrieveAttributeType = typeof EnvironmentsLogsValuesRetrieveAttributeType[keyof typeof EnvironmentsLogsValuesRetrieveAttributeType];--- export const EnvironmentsLogsValuesRetrieveAttributeType = {- Log: 'log',- Resource: 'resource',- } as const;-- export type EnvironmentsMetricsHasMetricsRetrieve200 = { [key: string]: unknown };-- export type EnvironmentsMetricsValuesRetrieveParams = {+ export type EnvironmentsLlmAnalyticsReviewQueuesListParams = {/**- * Max number of names to return. Defaults to 100, capped at 1000.+ * Number of results to return per page.*/limit?: number;+ name?: string;/**- * Substring filter (case-insensitive) applied to metric names.+ * The initial index from which to return the results.*/- value?: string;- };-- export type EnvironmentsPersistedFolderListParams = {+ offset?: number;/**- * Number of results to return per page.+ * Order by `name`, `updated_at`, or `created_at`.*/- limit?: number;+ order_by?: string;/**- * The initial index from which to return the results.+ * Search review queue names.*/- offset?: number;+ search?: string;};- export type EnvironmentsPersonsListParams = {+ export type EnvironmentsLlmAnalyticsScoreDefinitionsListParams = {/**- * Filter list by distinct id.+ * Filter by archived state.*/- distinct_id?: string;+ archived?: boolean;/**- * Filter persons by email (exact match)+ * Filter by scorer kind.*/- email?: string;- format?: EnvironmentsPersonsListFormat;+ kind?: string;/*** Number of results to return per page.*/@@ -41994,185 +42337,379 @@ export namespace Schemas {*/offset?: number;/**- * Filter Persons by person properties.+ * Sort by name, kind, created_at, updated_at, or current_version.*/- properties?: Property[];+ order_by?: string;/**- * Search persons, either by email (full text search) or distinct_id (exact match).+ * Search scorers by name or description.*/search?: string;};- export type EnvironmentsPersonsListFormat = typeof EnvironmentsPersonsListFormat[keyof typeof EnvironmentsPersonsListFormat];--- export const EnvironmentsPersonsListFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type EnvironmentsPersonsRetrieveParams = {- format?: EnvironmentsPersonsRetrieveFormat;- };+ export type EnvironmentsLlmAnalyticsSentimentCreate400 = { [key: string]: unknown };- export type EnvironmentsPersonsRetrieveFormat = typeof EnvironmentsPersonsRetrieveFormat[keyof typeof EnvironmentsPersonsRetrieveFormat];+ export type EnvironmentsLlmAnalyticsSentimentCreate500 = { [key: string]: unknown };+ export type EnvironmentsLlmAnalyticsSentimentGenerationsCreate400 = { [key: string]: unknown };- export const EnvironmentsPersonsRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type EnvironmentsLlmAnalyticsSentimentGenerationsCreate500 = { [key: string]: unknown };- export type EnvironmentsPersonsUpdateParams = {- format?: EnvironmentsPersonsUpdateFormat;- };+ export type EnvironmentsLlmAnalyticsSummarizationCreate400 = { [key: string]: unknown };- export type EnvironmentsPersonsUpdateFormat = typeof EnvironmentsPersonsUpdateFormat[keyof typeof EnvironmentsPersonsUpdateFormat];+ export type EnvironmentsLlmAnalyticsSummarizationCreate403 = { [key: string]: unknown };+ export type EnvironmentsLlmAnalyticsSummarizationCreate500 = { [key: string]: unknown };- export const EnvironmentsPersonsUpdateFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type EnvironmentsLlmAnalyticsSummarizationBatchCheckCreate400 = { [key: string]: unknown };- export type EnvironmentsPersonsPartialUpdateParams = {- format?: EnvironmentsPersonsPartialUpdateFormat;- };+ export type EnvironmentsLlmAnalyticsSummarizationBatchCheckCreate403 = { [key: string]: unknown };- export type EnvironmentsPersonsPartialUpdateFormat = typeof EnvironmentsPersonsPartialUpdateFormat[keyof typeof EnvironmentsPersonsPartialUpdateFormat];+ export type EnvironmentsLlmAnalyticsTextReprCreate400 = { [key: string]: unknown };+ export type EnvironmentsLlmAnalyticsTextReprCreate500 = { [key: string]: unknown };- export const EnvironmentsPersonsPartialUpdateFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type EnvironmentsLlmAnalyticsTextReprCreate503 = { [key: string]: unknown };- export type EnvironmentsPersonsActivityRetrieveParams = {- format?: EnvironmentsPersonsActivityRetrieveFormat;+ export type EnvironmentsLlmAnalyticsTraceReviewsListParams = {+ /**+ * Filter by a stable scorer definition ID.+ */+ definition_id?: string;+ /**+ * Filter by multiple scorer definition IDs separated by commas.+ */+ definition_id__in?: string;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Order by `updated_at` or `created_at`.+ */+ order_by?: string;+ /**+ * Search trace IDs and comments.+ */+ search?: string;+ /**+ * Filter by an exact trace ID.+ */+ trace_id?: string;+ /**+ * Filter by multiple trace IDs separated by commas.+ */+ trace_id__in?: string;};- export type EnvironmentsPersonsActivityRetrieveFormat = typeof EnvironmentsPersonsActivityRetrieveFormat[keyof typeof EnvironmentsPersonsActivityRetrieveFormat];-+ export type EnvironmentsLlmAnalyticsTranslateCreate200 = { [key: string]: unknown };- export const EnvironmentsPersonsActivityRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type EnvironmentsLlmPromptsListParams = {+ /**+ * Controls how much prompt content is included in the response. 'full' includes the full prompt, 'preview' includes a short prompt_preview, and 'none' omits prompt content entirely. The outline field is always included.- export type EnvironmentsPersonsDeletePropertyCreateParams = {- format?: EnvironmentsPersonsDeletePropertyCreateFormat;+ * `full` - full+ * `preview` - preview+ * `none` - none+ * @minLength 1+ */+ content?: EnvironmentsLlmPromptsListContent;+ /**+ * Filter prompts by the ID of the user who created them.+ */+ created_by_id?: number;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Optional substring filter applied to prompt names and prompt content.+ */+ search?: string;};- export type EnvironmentsPersonsDeletePropertyCreateFormat = typeof EnvironmentsPersonsDeletePropertyCreateFormat[keyof typeof EnvironmentsPersonsDeletePropertyCreateFormat];+ export type EnvironmentsLlmPromptsListContent = typeof EnvironmentsLlmPromptsListContent[keyof typeof EnvironmentsLlmPromptsListContent];- export const EnvironmentsPersonsDeletePropertyCreateFormat = {- Csv: 'csv',- Json: 'json',+ export const EnvironmentsLlmPromptsListContent = {+ Full: 'full',+ Preview: 'preview',+ None: 'none',} as const;- export type EnvironmentsPersonsPropertiesTimelineRetrieveParams = {- format?: EnvironmentsPersonsPropertiesTimelineRetrieveFormat;+ export type EnvironmentsLlmPromptsNameRetrieveParams = {+ /**+ * Controls how much prompt content is included in the response. 'full' includes the full prompt, 'preview' includes a short prompt_preview, and 'none' omits prompt content entirely. The outline field is always included.++ * `full` - full+ * `preview` - preview+ * `none` - none+ * @minLength 1+ */+ content?: EnvironmentsLlmPromptsNameRetrieveContent;+ /**+ * Specific prompt version to fetch. If omitted, the latest version is returned.+ * @minimum 1+ */+ version?: number;};- export type EnvironmentsPersonsPropertiesTimelineRetrieveFormat = typeof EnvironmentsPersonsPropertiesTimelineRetrieveFormat[keyof typeof EnvironmentsPersonsPropertiesTimelineRetrieveFormat];+ export type EnvironmentsLlmPromptsNameRetrieveContent = typeof EnvironmentsLlmPromptsNameRetrieveContent[keyof typeof EnvironmentsLlmPromptsNameRetrieveContent];- export const EnvironmentsPersonsPropertiesTimelineRetrieveFormat = {- Csv: 'csv',- Json: 'json',+ export const EnvironmentsLlmPromptsNameRetrieveContent = {+ Full: 'full',+ Preview: 'preview',+ None: 'none',} as const;- export type EnvironmentsPersonsSplitCreateParams = {- format?: EnvironmentsPersonsSplitCreateFormat;+ export type EnvironmentsLlmPromptsResolveNameRetrieveParams = {+ /**+ * Return versions older than this version number. Mutually exclusive with offset.+ * @minimum 1+ */+ before_version?: number;+ /**+ * Maximum number of versions to return per page (1-100).+ * @minimum 1+ * @maximum 100+ */+ limit?: number;+ /**+ * Zero-based offset into version history for pagination. Mutually exclusive with before_version.+ * @minimum 0+ */+ offset?: number;+ /**+ * Specific prompt version to fetch. If omitted, the latest version is returned.+ * @minimum 1+ */+ version?: number;+ /**+ * Exact prompt version UUID to resolve. Can be used together with version for extra safety.+ */+ version_id?: string;};- export type EnvironmentsPersonsSplitCreateFormat = typeof EnvironmentsPersonsSplitCreateFormat[keyof typeof EnvironmentsPersonsSplitCreateFormat];-+ export type EnvironmentsLlmSkillsListParams = {+ /**+ * Filter skills by the ID of the user who created them.+ */+ created_by_id?: number;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Optional substring filter applied to skill names and descriptions.+ */+ search?: string;+ };- export const EnvironmentsPersonsSplitCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type EnvironmentsLlmSkillsNameRetrieveParams = {+ /**+ * Specific skill version to fetch. If omitted, the latest version is returned.+ * @minimum 1+ */+ version?: number;+ };- export type EnvironmentsPersonsUpdatePropertyCreateParams = {- format?: EnvironmentsPersonsUpdatePropertyCreateFormat;+ export type EnvironmentsLlmSkillsNameFilesRetrieveParams = {+ /**+ * Specific skill version to fetch. If omitted, the latest version is returned.+ * @minimum 1+ */+ version?: number;};- export type EnvironmentsPersonsUpdatePropertyCreateFormat = typeof EnvironmentsPersonsUpdatePropertyCreateFormat[keyof typeof EnvironmentsPersonsUpdatePropertyCreateFormat];--- export const EnvironmentsPersonsUpdatePropertyCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type EnvironmentsLlmSkillsNameFilesDestroyParams = {+ /**+ * Latest version you are editing from. If provided, the request fails with 409 when another write has landed in the meantime.+ * @minimum 1+ */+ base_version?: number;+ };- export type EnvironmentsPersonsAllActivityRetrieveParams = {- format?: EnvironmentsPersonsAllActivityRetrieveFormat;+ export type EnvironmentsLlmSkillsResolveNameRetrieveParams = {+ /**+ * Return versions older than this version number. Mutually exclusive with offset.+ * @minimum 1+ */+ before_version?: number;+ /**+ * Maximum number of versions to return per page (1-100).+ * @minimum 1+ * @maximum 100+ */+ limit?: number;+ /**+ * Zero-based offset into version history for pagination. Mutually exclusive with before_version.+ * @minimum 0+ */+ offset?: number;+ /**+ * Specific skill version to fetch. If omitted, the latest version is returned.+ * @minimum 1+ */+ version?: number;+ /**+ * Exact skill version UUID to resolve.+ */+ version_id?: string;};- export type EnvironmentsPersonsAllActivityRetrieveFormat = typeof EnvironmentsPersonsAllActivityRetrieveFormat[keyof typeof EnvironmentsPersonsAllActivityRetrieveFormat];+ export type EnvironmentsLogsAlertsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+ export type EnvironmentsLogsAlertsEventsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };- export const EnvironmentsPersonsAllActivityRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type EnvironmentsLogsAttributesRetrieveParams = {+ /**+ * Type of attributes: "log" for log attributes, "resource" for resource attributes. Defaults to "log".- export type EnvironmentsPersonsBatchByDistinctIdsCreateParams = {- format?: EnvironmentsPersonsBatchByDistinctIdsCreateFormat;+ * `log` - log+ * `resource` - resource+ * @minLength 1+ */+ attribute_type?: EnvironmentsLogsAttributesRetrieveAttributeType;+ /**+ * Date range to search within. Defaults to last hour.+ */+ dateRange?: _DateRange;+ /**+ * Property filters to narrow which logs are scanned for attributes.+ */+ filterGroup?: _LogPropertyFilter[];+ /**+ * Max results (default: 100)+ * @minimum 1+ * @maximum 100+ */+ limit?: number;+ /**+ * Pagination offset (default: 0)+ * @minimum 0+ */+ offset?: number;+ /**+ * Search filter for attribute names+ * @minLength 1+ */+ search?: string;+ /**+ * When true, the search query also matches attribute values (not just keys). Each result indicates whether it matched on key or value.+ */+ search_values?: boolean;+ /**+ * Filter attributes to those appearing in logs from these services.+ */+ serviceNames?: string[];};- export type EnvironmentsPersonsBatchByDistinctIdsCreateFormat = typeof EnvironmentsPersonsBatchByDistinctIdsCreateFormat[keyof typeof EnvironmentsPersonsBatchByDistinctIdsCreateFormat];+ export type EnvironmentsLogsAttributesRetrieveAttributeType = typeof EnvironmentsLogsAttributesRetrieveAttributeType[keyof typeof EnvironmentsLogsAttributesRetrieveAttributeType];- export const EnvironmentsPersonsBatchByDistinctIdsCreateFormat = {- Csv: 'csv',- Json: 'json',+ export const EnvironmentsLogsAttributesRetrieveAttributeType = {+ Log: 'log',+ Resource: 'resource',} as const;- export type EnvironmentsPersonsBatchByUuidsCreateParams = {- format?: EnvironmentsPersonsBatchByUuidsCreateFormat;- };-- export type EnvironmentsPersonsBatchByUuidsCreateFormat = typeof EnvironmentsPersonsBatchByUuidsCreateFormat[keyof typeof EnvironmentsPersonsBatchByUuidsCreateFormat];-+ export type EnvironmentsLogsExportCreate201 = { [key: string]: unknown };- export const EnvironmentsPersonsBatchByUuidsCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type EnvironmentsLogsHasLogsRetrieve200 = { [key: string]: unknown };- export type EnvironmentsPersonsBulkDeleteCreateParams = {- format?: EnvironmentsPersonsBulkDeleteCreateFormat;+ export type EnvironmentsLogsSamplingRulesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type EnvironmentsPersonsBulkDeleteCreateFormat = typeof EnvironmentsPersonsBulkDeleteCreateFormat[keyof typeof EnvironmentsPersonsBulkDeleteCreateFormat];-+ export type EnvironmentsLogsSamplingRulesReorderCreateParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };- export const EnvironmentsPersonsBulkDeleteCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type EnvironmentsLogsValuesRetrieveParams = {+ /**+ * Type of attribute: "log" or "resource". Defaults to "log".- export type EnvironmentsPersonsCohortsRetrieveParams = {- format?: EnvironmentsPersonsCohortsRetrieveFormat;+ * `log` - log+ * `resource` - resource+ * @minLength 1+ */+ attribute_type?: EnvironmentsLogsValuesRetrieveAttributeType;/**- * The person ID or UUID to get cohorts for.+ * Date range to search within. Defaults to last hour.*/- person_id: string;+ dateRange?: _DateRange;+ /**+ * Property filters to narrow which logs are scanned for values.+ */+ filterGroup?: _LogPropertyFilter[];+ /**+ * The attribute key to get values for+ * @minLength 1+ */+ key: string;+ /**+ * Filter values to those appearing in logs from these services.+ */+ serviceNames?: string[];+ /**+ * Search filter for attribute values+ * @minLength 1+ */+ value?: string;};- export type EnvironmentsPersonsCohortsRetrieveFormat = typeof EnvironmentsPersonsCohortsRetrieveFormat[keyof typeof EnvironmentsPersonsCohortsRetrieveFormat];+ export type EnvironmentsLogsValuesRetrieveAttributeType = typeof EnvironmentsLogsValuesRetrieveAttributeType[keyof typeof EnvironmentsLogsValuesRetrieveAttributeType];- export const EnvironmentsPersonsCohortsRetrieveFormat = {- Csv: 'csv',- Json: 'json',+ export const EnvironmentsLogsValuesRetrieveAttributeType = {+ Log: 'log',+ Resource: 'resource',} as const;- export type EnvironmentsPersonsDeletionStatusListParams = {- format?: EnvironmentsPersonsDeletionStatusListFormat;+ export type EnvironmentsLogsViewsListParams = {/*** Number of results to return per page.*/@@ -42181,166 +42718,77 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ };++ export type EnvironmentsMarketingAnalyticsUtmAuditRetrieveParams = {/**- * Filter by a specific person UUID.+ * Start date for the audit period+ * @minLength 1*/- person_uuid?: string;+ date_from?: string;/**- * Filter by deletion status: 'pending', 'completed', or 'all'.+ * End date for the audit period+ * @nullable*/- status?: EnvironmentsPersonsDeletionStatusListStatus;+ date_to?: string | null;};- export type EnvironmentsPersonsDeletionStatusListFormat = typeof EnvironmentsPersonsDeletionStatusListFormat[keyof typeof EnvironmentsPersonsDeletionStatusListFormat];+ export type EnvironmentsMaterializedColumnSlotsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+ export type EnvironmentsMcpServerInstallationsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };- export const EnvironmentsPersonsDeletionStatusListFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type EnvironmentsMcpServerInstallationsAuthorizeRetrieveParams = {+ /**+ * * `posthog` - posthog+ * `posthog-code` - posthog-code+ * @minLength 1+ */+ install_source?: EnvironmentsMcpServerInstallationsAuthorizeRetrieveInstallSource;+ installation_id?: string;+ posthog_code_callback_url?: string;+ template_id?: string;+ };- export type EnvironmentsPersonsDeletionStatusListStatus = typeof EnvironmentsPersonsDeletionStatusListStatus[keyof typeof EnvironmentsPersonsDeletionStatusListStatus];+ export type EnvironmentsMcpServerInstallationsAuthorizeRetrieveInstallSource = typeof EnvironmentsMcpServerInstallationsAuthorizeRetrieveInstallSource[keyof typeof EnvironmentsMcpServerInstallationsAuthorizeRetrieveInstallSource];- export const EnvironmentsPersonsDeletionStatusListStatus = {- All: 'all',- Completed: 'completed',- Pending: 'pending',+ export const EnvironmentsMcpServerInstallationsAuthorizeRetrieveInstallSource = {+ Posthog: 'posthog',+ PosthogCode: 'posthog-code',} as const;- export type EnvironmentsPersonsFunnelRetrieveParams = {- format?: EnvironmentsPersonsFunnelRetrieveFormat;+ export type EnvironmentsMcpServersListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type EnvironmentsPersonsFunnelRetrieveFormat = typeof EnvironmentsPersonsFunnelRetrieveFormat[keyof typeof EnvironmentsPersonsFunnelRetrieveFormat];--- export const EnvironmentsPersonsFunnelRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type EnvironmentsPersonsFunnelCreateParams = {- format?: EnvironmentsPersonsFunnelCreateFormat;- };-- export type EnvironmentsPersonsFunnelCreateFormat = typeof EnvironmentsPersonsFunnelCreateFormat[keyof typeof EnvironmentsPersonsFunnelCreateFormat];--- export const EnvironmentsPersonsFunnelCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type EnvironmentsPersonsFunnelCorrelationRetrieveParams = {- format?: EnvironmentsPersonsFunnelCorrelationRetrieveFormat;- };-- export type EnvironmentsPersonsFunnelCorrelationRetrieveFormat = typeof EnvironmentsPersonsFunnelCorrelationRetrieveFormat[keyof typeof EnvironmentsPersonsFunnelCorrelationRetrieveFormat];--- export const EnvironmentsPersonsFunnelCorrelationRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type EnvironmentsPersonsFunnelCorrelationCreateParams = {- format?: EnvironmentsPersonsFunnelCorrelationCreateFormat;- };-- export type EnvironmentsPersonsFunnelCorrelationCreateFormat = typeof EnvironmentsPersonsFunnelCorrelationCreateFormat[keyof typeof EnvironmentsPersonsFunnelCorrelationCreateFormat];--- export const EnvironmentsPersonsFunnelCorrelationCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type EnvironmentsPersonsLifecycleRetrieveParams = {- format?: EnvironmentsPersonsLifecycleRetrieveFormat;- };-- export type EnvironmentsPersonsLifecycleRetrieveFormat = typeof EnvironmentsPersonsLifecycleRetrieveFormat[keyof typeof EnvironmentsPersonsLifecycleRetrieveFormat];--- export const EnvironmentsPersonsLifecycleRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type EnvironmentsPersonsPropertiesAtTimeRetrieveParams = {- /**- * The distinct_id of the person (mutually exclusive with person_id)- */- distinct_id?: string;- format?: EnvironmentsPersonsPropertiesAtTimeRetrieveFormat;- /**- * Whether to handle $set_once operations (default: false)- */- include_set_once?: boolean;- /**- * The person_id (UUID) to build properties for (mutually exclusive with distinct_id)- */- person_id?: string;- /**- * ISO datetime string for the point in time (e.g., '2023-06-15T14:30:00Z')- */- timestamp: string;- };-- export type EnvironmentsPersonsPropertiesAtTimeRetrieveFormat = typeof EnvironmentsPersonsPropertiesAtTimeRetrieveFormat[keyof typeof EnvironmentsPersonsPropertiesAtTimeRetrieveFormat];--- export const EnvironmentsPersonsPropertiesAtTimeRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type EnvironmentsPersonsResetPersonDistinctIdCreateParams = {- format?: EnvironmentsPersonsResetPersonDistinctIdCreateFormat;- };-- export type EnvironmentsPersonsResetPersonDistinctIdCreateFormat = typeof EnvironmentsPersonsResetPersonDistinctIdCreateFormat[keyof typeof EnvironmentsPersonsResetPersonDistinctIdCreateFormat];--- export const EnvironmentsPersonsResetPersonDistinctIdCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type EnvironmentsPersonsTrendsRetrieveParams = {- format?: EnvironmentsPersonsTrendsRetrieveFormat;- };-- export type EnvironmentsPersonsTrendsRetrieveFormat = typeof EnvironmentsPersonsTrendsRetrieveFormat[keyof typeof EnvironmentsPersonsTrendsRetrieveFormat];--- export const EnvironmentsPersonsTrendsRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type EnvironmentsPersonsValuesRetrieveParams = {- format?: EnvironmentsPersonsValuesRetrieveFormat;- /**- * The person property key to get values for (e.g., 'email', 'plan', 'role').- */- key: string;- /**- * Optional search string to filter values (case-insensitive substring match).- */- value?: string;- };-- export type EnvironmentsPersonsValuesRetrieveFormat = typeof EnvironmentsPersonsValuesRetrieveFormat[keyof typeof EnvironmentsPersonsValuesRetrieveFormat];--- export const EnvironmentsPersonsValuesRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type EnvironmentsMcpToolsCreate200 = { [key: string]: unknown };- export type EnvironmentsPluginConfigsLogsListParams = {+ export type EnvironmentsMessagingCategoriesListParams = {/*** Number of results to return per page.*/@@ -42351,7 +42799,7 @@ export namespace Schemas {offset?: number;};- export type EnvironmentsProjectSecretApiKeysListParams = {+ export type EnvironmentsMessagingTemplatesListParams = {/*** Number of results to return per page.*/@@ -42362,111 +42810,59 @@ export namespace Schemas {offset?: number;};- export type EnvironmentsQueryLogRetrieve200 = { [key: string]: unknown };-- export type EnvironmentsQueryCheckAuthForAsyncCreate200 = { [key: string]: unknown };-- export type EnvironmentsQueryDraftSqlRetrieve200 = { [key: string]: unknown };+ export type EnvironmentsMetricsHasMetricsRetrieve200 = { [key: string]: unknown };- export type EnvironmentsSavedListParams = {+ export type EnvironmentsMetricsValuesRetrieveParams = {/**- * Number of results to return per page.+ * Max number of names to return. Defaults to 100, capped at 1000.*/limit?: number;/**- * The initial index from which to return the results.+ * Substring filter (case-insensitive) applied to metric names.*/- offset?: number;+ value?: string;};- export type EnvironmentsSessionRecordingPlaylistsListParams = {- created_by?: number;+ export type EnvironmentsNotificationsListParams = {/**- * Number of results to return per page.+ * ISO 8601 timestamp; only events at or after this time*/- limit?: number;+ created_after?: string;/**- * The initial index from which to return the results.+ * ISO 8601 timestamp; only events strictly before this time*/- offset?: number;- short_id?: string;- };-- export type EnvironmentsSessionRecordingsListParams = {+ created_before?: string;/*** Number of results to return per page.*/limit?: number;/**- * The initial index from which to return the results.- */- offset?: number;- };-- export type EnvironmentsSubscriptionsListParams = {- /**- * Filter by creator user UUID.- */- created_by?: string;- /**- * Filter by dashboard ID.- */- dashboard?: number;- /**- * Filter by insight ID.- */- insight?: number;- /**- * Number of results to return per page.+ * Filter by notification type*/- limit?: number;+ notification_type?: string;/*** The initial index from which to return the results.*/offset?: number;/**- * Which field to use when ordering the results.+ * Filter by the ID of the resource the notification refers to*/- ordering?: string;+ resource_id?: string;/**- * Filter by subscription resource: insight vs dashboard export.+ * Filter by the type of the resource the notification refers to (e.g. `insight`, `dashboard`)*/- resource_type?: EnvironmentsSubscriptionsListResourceType;+ resource_type?: string;/**- * A search term.+ * Filter by recipient target ID (e.g. a user ID)*/- search?: string;+ target_id?: string;/**- * Filter by delivery channel (email, Slack, or webhook).+ * Filter by recipient target type (e.g. `user`, `team`)*/- target_type?: EnvironmentsSubscriptionsListTargetType;- };-- export type EnvironmentsSubscriptionsListResourceType = typeof EnvironmentsSubscriptionsListResourceType[keyof typeof EnvironmentsSubscriptionsListResourceType];--- export const EnvironmentsSubscriptionsListResourceType = {- Dashboard: 'dashboard',- Insight: 'insight',- } as const;-- export type EnvironmentsSubscriptionsListTargetType = typeof EnvironmentsSubscriptionsListTargetType[keyof typeof EnvironmentsSubscriptionsListTargetType];--- export const EnvironmentsSubscriptionsListTargetType = {- Email: 'email',- Slack: 'slack',- Webhook: 'webhook',- } as const;-- export type EnvironmentsSubscriptionsSummaryQuotaRetrieve200 = {- active_count: number;- /** @nullable */- limit: number | null;- at_limit: boolean;+ target_type?: string;};- export type EnvironmentsUserProductListListParams = {+ export type EnvironmentsPersistedFolderListParams = {/*** Number of results to return per page.*/@@ -42477,18 +42873,16 @@ export namespace Schemas {offset?: number;};- export type EnvironmentsWarehouseSavedQueriesListParams = {+ export type EnvironmentsPersonsListParams = {/**- * A page number within the paginated result set.+ * Filter list by distinct id.*/- page?: number;+ distinct_id?: string;/**- * A search term.+ * Filter persons by email (exact match)*/- search?: string;- };-- export type EnvironmentsWarehouseTablesListParams = {+ email?: string;+ format?: EnvironmentsPersonsListFormat;/*** Number of results to return per page.*/@@ -42498,133 +42892,185 @@ export namespace Schemas {*/offset?: number;/**- * A search term.- */- search?: string;- };-- export type EnvironmentsWarehouseViewLinkListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.+ * Filter Persons by person properties.*/- offset?: number;+ properties?: Property[];/**- * A search term.+ * Search persons, either by email (full text search) or distinct_id (exact match).*/search?: string;};- export type EnvironmentsWarehouseViewLinksListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- /**- * A search term.- */- search?: string;+ export type EnvironmentsPersonsListFormat = typeof EnvironmentsPersonsListFormat[keyof typeof EnvironmentsPersonsListFormat];+++ export const EnvironmentsPersonsListFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsRetrieveParams = {+ format?: EnvironmentsPersonsRetrieveFormat;};- export type AccountsListParams = {- /**- * Filter by account executive. Use 'unassigned' or an integer user id.- */- account_executive?: string;- /**- * Filter by account owner. Use 'unassigned' or an integer user id.- */- account_owner?: string;- /**- * When true, returns only accounts where CSM, account executive, and account owner are all unset.- */- all_roles_unassigned?: boolean;- /**- * Filter by CSM. Use 'unassigned' for accounts with no CSM, or an integer user id.- */- csm?: string;- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- /**- * Sort order. Defaults to '-created_at'.- */- ordering?: string;- /**- * Case-insensitive substring search across account name and external ID.- */- search?: string;- /**- * JSON-encoded array of tag names to filter by, e.g. `["enterprise","priority"]`. Returns accounts that have any of the listed tags. Malformed values (not a JSON-encoded list of strings) return a 400.- */- tags?: string;+ export type EnvironmentsPersonsRetrieveFormat = typeof EnvironmentsPersonsRetrieveFormat[keyof typeof EnvironmentsPersonsRetrieveFormat];+++ export const EnvironmentsPersonsRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsUpdateParams = {+ format?: EnvironmentsPersonsUpdateFormat;};- export type AccountsNotebooksListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;+ export type EnvironmentsPersonsUpdateFormat = typeof EnvironmentsPersonsUpdateFormat[keyof typeof EnvironmentsPersonsUpdateFormat];+++ export const EnvironmentsPersonsUpdateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsPartialUpdateParams = {+ format?: EnvironmentsPersonsPartialUpdateFormat;};- export type ApprovalPoliciesListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;+ export type EnvironmentsPersonsPartialUpdateFormat = typeof EnvironmentsPersonsPartialUpdateFormat[keyof typeof EnvironmentsPersonsPartialUpdateFormat];+++ export const EnvironmentsPersonsPartialUpdateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsActivityRetrieveParams = {+ format?: EnvironmentsPersonsActivityRetrieveFormat;};- export type ChangeRequestsListParams = {- action_key?: string;- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- requester?: number;- resource_id?: string;- resource_type?: string;- /**- * Multiple values may be separated by commas.- */- state?: string[];+ export type EnvironmentsPersonsActivityRetrieveFormat = typeof EnvironmentsPersonsActivityRetrieveFormat[keyof typeof EnvironmentsPersonsActivityRetrieveFormat];+++ export const EnvironmentsPersonsActivityRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsDeletePropertyCreateParams = {+ format?: EnvironmentsPersonsDeletePropertyCreateFormat;};- export type ColumnConfigurationsListParams = {- /**- * Number of results to return per page.- */- limit?: number;+ export type EnvironmentsPersonsDeletePropertyCreateFormat = typeof EnvironmentsPersonsDeletePropertyCreateFormat[keyof typeof EnvironmentsPersonsDeletePropertyCreateFormat];+++ export const EnvironmentsPersonsDeletePropertyCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsPropertiesTimelineRetrieveParams = {+ format?: EnvironmentsPersonsPropertiesTimelineRetrieveFormat;+ };++ export type EnvironmentsPersonsPropertiesTimelineRetrieveFormat = typeof EnvironmentsPersonsPropertiesTimelineRetrieveFormat[keyof typeof EnvironmentsPersonsPropertiesTimelineRetrieveFormat];+++ export const EnvironmentsPersonsPropertiesTimelineRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsSplitCreateParams = {+ format?: EnvironmentsPersonsSplitCreateFormat;+ };++ export type EnvironmentsPersonsSplitCreateFormat = typeof EnvironmentsPersonsSplitCreateFormat[keyof typeof EnvironmentsPersonsSplitCreateFormat];+++ export const EnvironmentsPersonsSplitCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsUpdatePropertyCreateParams = {+ format?: EnvironmentsPersonsUpdatePropertyCreateFormat;+ };++ export type EnvironmentsPersonsUpdatePropertyCreateFormat = typeof EnvironmentsPersonsUpdatePropertyCreateFormat[keyof typeof EnvironmentsPersonsUpdatePropertyCreateFormat];+++ export const EnvironmentsPersonsUpdatePropertyCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsAllActivityRetrieveParams = {+ format?: EnvironmentsPersonsAllActivityRetrieveFormat;+ };++ export type EnvironmentsPersonsAllActivityRetrieveFormat = typeof EnvironmentsPersonsAllActivityRetrieveFormat[keyof typeof EnvironmentsPersonsAllActivityRetrieveFormat];+++ export const EnvironmentsPersonsAllActivityRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsBatchByDistinctIdsCreateParams = {+ format?: EnvironmentsPersonsBatchByDistinctIdsCreateFormat;+ };++ export type EnvironmentsPersonsBatchByDistinctIdsCreateFormat = typeof EnvironmentsPersonsBatchByDistinctIdsCreateFormat[keyof typeof EnvironmentsPersonsBatchByDistinctIdsCreateFormat];+++ export const EnvironmentsPersonsBatchByDistinctIdsCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsBatchByUuidsCreateParams = {+ format?: EnvironmentsPersonsBatchByUuidsCreateFormat;+ };++ export type EnvironmentsPersonsBatchByUuidsCreateFormat = typeof EnvironmentsPersonsBatchByUuidsCreateFormat[keyof typeof EnvironmentsPersonsBatchByUuidsCreateFormat];+++ export const EnvironmentsPersonsBatchByUuidsCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsBulkDeleteCreateParams = {+ format?: EnvironmentsPersonsBulkDeleteCreateFormat;+ };++ export type EnvironmentsPersonsBulkDeleteCreateFormat = typeof EnvironmentsPersonsBulkDeleteCreateFormat[keyof typeof EnvironmentsPersonsBulkDeleteCreateFormat];+++ export const EnvironmentsPersonsBulkDeleteCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsCohortsRetrieveParams = {+ format?: EnvironmentsPersonsCohortsRetrieveFormat;/**- * The initial index from which to return the results.+ * The person ID or UUID to get cohorts for.*/- offset?: number;+ person_id: string;};- export type ConversationsListParams = {+ export type EnvironmentsPersonsCohortsRetrieveFormat = typeof EnvironmentsPersonsCohortsRetrieveFormat[keyof typeof EnvironmentsPersonsCohortsRetrieveFormat];+++ export const EnvironmentsPersonsCohortsRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsDeletionStatusListParams = {+ format?: EnvironmentsPersonsDeletionStatusListFormat;/*** Number of results to return per page.*/@@ -42633,53 +43079,166 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- };-- export type ConversationsViewsListParams = {/**- * Number of results to return per page.+ * Filter by a specific person UUID.*/- limit?: number;+ person_uuid?: string;/**- * The initial index from which to return the results.+ * Filter by deletion status: 'pending', 'completed', or 'all'.*/- offset?: number;+ status?: EnvironmentsPersonsDeletionStatusListStatus;};- export type CoreEventsListParams = {+ export type EnvironmentsPersonsDeletionStatusListFormat = typeof EnvironmentsPersonsDeletionStatusListFormat[keyof typeof EnvironmentsPersonsDeletionStatusListFormat];+++ export const EnvironmentsPersonsDeletionStatusListFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsDeletionStatusListStatus = typeof EnvironmentsPersonsDeletionStatusListStatus[keyof typeof EnvironmentsPersonsDeletionStatusListStatus];+++ export const EnvironmentsPersonsDeletionStatusListStatus = {+ All: 'all',+ Completed: 'completed',+ Pending: 'pending',+ } as const;++ export type EnvironmentsPersonsFunnelRetrieveParams = {+ format?: EnvironmentsPersonsFunnelRetrieveFormat;+ };++ export type EnvironmentsPersonsFunnelRetrieveFormat = typeof EnvironmentsPersonsFunnelRetrieveFormat[keyof typeof EnvironmentsPersonsFunnelRetrieveFormat];+++ export const EnvironmentsPersonsFunnelRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsFunnelCreateParams = {+ format?: EnvironmentsPersonsFunnelCreateFormat;+ };++ export type EnvironmentsPersonsFunnelCreateFormat = typeof EnvironmentsPersonsFunnelCreateFormat[keyof typeof EnvironmentsPersonsFunnelCreateFormat];+++ export const EnvironmentsPersonsFunnelCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsFunnelCorrelationRetrieveParams = {+ format?: EnvironmentsPersonsFunnelCorrelationRetrieveFormat;+ };++ export type EnvironmentsPersonsFunnelCorrelationRetrieveFormat = typeof EnvironmentsPersonsFunnelCorrelationRetrieveFormat[keyof typeof EnvironmentsPersonsFunnelCorrelationRetrieveFormat];+++ export const EnvironmentsPersonsFunnelCorrelationRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsFunnelCorrelationCreateParams = {+ format?: EnvironmentsPersonsFunnelCorrelationCreateFormat;+ };++ export type EnvironmentsPersonsFunnelCorrelationCreateFormat = typeof EnvironmentsPersonsFunnelCorrelationCreateFormat[keyof typeof EnvironmentsPersonsFunnelCorrelationCreateFormat];+++ export const EnvironmentsPersonsFunnelCorrelationCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsLifecycleRetrieveParams = {+ format?: EnvironmentsPersonsLifecycleRetrieveFormat;+ };++ export type EnvironmentsPersonsLifecycleRetrieveFormat = typeof EnvironmentsPersonsLifecycleRetrieveFormat[keyof typeof EnvironmentsPersonsLifecycleRetrieveFormat];+++ export const EnvironmentsPersonsLifecycleRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsPropertiesAtTimeRetrieveParams = {/**- * Number of results to return per page.+ * The distinct_id of the person (mutually exclusive with person_id)*/- limit?: number;+ distinct_id?: string;+ format?: EnvironmentsPersonsPropertiesAtTimeRetrieveFormat;/**- * The initial index from which to return the results.+ * Whether to handle $set_once operations (default: false)*/- offset?: number;- };-- export type CoreMemoryListParams = {+ include_set_once?: boolean;/**- * Number of results to return per page.+ * The person_id (UUID) to build properties for (mutually exclusive with distinct_id)*/- limit?: number;+ person_id?: string;/**- * The initial index from which to return the results.+ * ISO datetime string for the point in time (e.g., '2023-06-15T14:30:00Z')*/- offset?: number;+ timestamp: string;};- export type CustomerJourneysListParams = {+ export type EnvironmentsPersonsPropertiesAtTimeRetrieveFormat = typeof EnvironmentsPersonsPropertiesAtTimeRetrieveFormat[keyof typeof EnvironmentsPersonsPropertiesAtTimeRetrieveFormat];+++ export const EnvironmentsPersonsPropertiesAtTimeRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsResetPersonDistinctIdCreateParams = {+ format?: EnvironmentsPersonsResetPersonDistinctIdCreateFormat;+ };++ export type EnvironmentsPersonsResetPersonDistinctIdCreateFormat = typeof EnvironmentsPersonsResetPersonDistinctIdCreateFormat[keyof typeof EnvironmentsPersonsResetPersonDistinctIdCreateFormat];+++ export const EnvironmentsPersonsResetPersonDistinctIdCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsTrendsRetrieveParams = {+ format?: EnvironmentsPersonsTrendsRetrieveFormat;+ };++ export type EnvironmentsPersonsTrendsRetrieveFormat = typeof EnvironmentsPersonsTrendsRetrieveFormat[keyof typeof EnvironmentsPersonsTrendsRetrieveFormat];+++ export const EnvironmentsPersonsTrendsRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPersonsValuesRetrieveParams = {+ format?: EnvironmentsPersonsValuesRetrieveFormat;/**- * Number of results to return per page.+ * The person property key to get values for (e.g., 'email', 'plan', 'role').*/- limit?: number;+ key: string;/**- * The initial index from which to return the results.+ * Optional search string to filter values (case-insensitive substring match).*/- offset?: number;+ value?: string;};- export type CustomerProfileConfigsListParams = {+ export type EnvironmentsPersonsValuesRetrieveFormat = typeof EnvironmentsPersonsValuesRetrieveFormat[keyof typeof EnvironmentsPersonsValuesRetrieveFormat];+++ export const EnvironmentsPersonsValuesRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type EnvironmentsPluginConfigsLogsListParams = {/*** Number of results to return per page.*/@@ -42690,7 +43249,7 @@ export namespace Schemas {offset?: number;};- export type DataModelingDagsListParams = {+ export type EnvironmentsProjectSecretApiKeysListParams = {/*** Number of results to return per page.*/@@ -42701,29 +43260,13 @@ export namespace Schemas {offset?: number;};- export type DataModelingEdgesListParams = {- /**- * A page number within the paginated result set.- */- page?: number;- /**- * A search term.- */- search?: string;- };+ export type EnvironmentsQueryLogRetrieve200 = { [key: string]: unknown };- export type DataModelingNodesListParams = {- /**- * A page number within the paginated result set.- */- page?: number;- /**- * A search term.- */- search?: string;- };+ export type EnvironmentsQueryCheckAuthForAsyncCreate200 = { [key: string]: unknown };- export type DesktopRecordingsListParams = {+ export type EnvironmentsQueryDraftSqlRetrieve200 = { [key: string]: unknown };++ export type EnvironmentsQuickFiltersListParams = {/*** Number of results to return per page.*/@@ -42734,7 +43277,7 @@ export namespace Schemas {offset?: number;};- export type ErrorTrackingAssignmentRulesListParams = {+ export type EnvironmentsSavedListParams = {/*** Number of results to return per page.*/@@ -42745,7 +43288,7 @@ export namespace Schemas {offset?: number;};- export type ErrorTrackingExternalReferencesListParams = {+ export type EnvironmentsSessionRecordingExternalReferencesListParams = {/*** Number of results to return per page.*/@@ -42756,7 +43299,8 @@ export namespace Schemas {offset?: number;};- export type ErrorTrackingFingerprintsListParams = {+ export type EnvironmentsSessionRecordingPlaylistsListParams = {+ created_by?: number;/*** Number of results to return per page.*/@@ -42765,55 +43309,33 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ short_id?: string;};- export type ErrorTrackingGitProviderFileLinksResolveGithubRetrieveParams = {- /**- * Code snippet to search for in repository files.- * @minLength 1- */- code_sample: string;- /**- * File name to match in search results.- * @minLength 1- */- file_name: string;+ export type EnvironmentsSessionRecordingsListParams = {/**- * Repository owner or namespace.- * @minLength 1+ * Number of results to return per page.*/- owner: string;+ limit?: number;/**- * Repository name.- * @minLength 1+ * The initial index from which to return the results.*/- repository: string;+ offset?: number;};- export type ErrorTrackingGitProviderFileLinksResolveGitlabRetrieveParams = {- /**- * Code snippet to search for in repository files.- * @minLength 1- */- code_sample: string;+ export type EnvironmentsSubscriptionsListParams = {/**- * File name to match in search results.- * @minLength 1+ * Filter by creator user UUID.*/- file_name: string;+ created_by?: string;/**- * Repository owner or namespace.- * @minLength 1+ * Filter by dashboard ID.*/- owner: string;+ dashboard?: number;/**- * Repository name.- * @minLength 1+ * Filter by insight ID.*/- repository: string;- };-- export type ErrorTrackingIssuesListParams = {+ insight?: number;/*** Number of results to return per page.*/@@ -42822,55 +43344,49 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- };-- export type ErrorTrackingRecommendationsListParams = {/**- * Number of results to return per page.+ * Which field to use when ordering the results.*/- limit?: number;+ ordering?: string;/**- * The initial index from which to return the results.+ * Filter by subscription resource: insight vs dashboard export.*/- offset?: number;- };-- export type ErrorTrackingSpikeEventsListParams = {+ resource_type?: EnvironmentsSubscriptionsListResourceType;/**- * Number of results to return per page.+ * A search term.*/- limit?: number;+ search?: string;/**- * The initial index from which to return the results.+ * Filter by delivery channel (email, Slack, or webhook).*/- offset?: number;+ target_type?: EnvironmentsSubscriptionsListTargetType;};- export type ErrorTrackingStackFramesListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };+ export type EnvironmentsSubscriptionsListResourceType = typeof EnvironmentsSubscriptionsListResourceType[keyof typeof EnvironmentsSubscriptionsListResourceType];- export type ErrorTrackingSuppressionRulesListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };- export type EvaluationRunsCreate200 = { [key: string]: unknown };+ export const EnvironmentsSubscriptionsListResourceType = {+ Dashboard: 'dashboard',+ Insight: 'insight',+ } as const;- export type EvaluationsListParams = {+ export type EnvironmentsSubscriptionsListTargetType = typeof EnvironmentsSubscriptionsListTargetType[keyof typeof EnvironmentsSubscriptionsListTargetType];+++ export const EnvironmentsSubscriptionsListTargetType = {+ Email: 'email',+ Slack: 'slack',+ Webhook: 'webhook',+ } as const;++ export type EnvironmentsSubscriptionsSummaryQuotaRetrieve200 = {+ active_count: number;+ /** @nullable */+ limit: number | null;+ at_limit: boolean;+ };++ export type EnvironmentsTaggersListParams = {/*** Filter by enabled status*/@@ -42904,104 +43420,97 @@ export namespace Schemas {search?: string;};- export type FixHogqlListParams = {- /**- * Number of results to return per page.- */- limit?: number;+ export type EnvironmentsTracingSpansAttributesRetrieveParams = {/**- * The initial index from which to return the results.- */- offset?: number;- };+ * Type of attributes: "span_attribute" for span-level attributes, "span_resource_attribute" for resource-level attributes.- export type HealthIssuesListParams = {+ * `span_attribute` - span_attribute+ * `span_resource_attribute` - span_resource_attribute+ * @minLength 1+ */+ attribute_type?: EnvironmentsTracingSpansAttributesRetrieveAttributeType;/**- * Number of results to return per page.+ * Max results (default: 100).+ * @minimum 1+ * @maximum 100*/limit?: number;/**- * The initial index from which to return the results.+ * Pagination offset (default: 0).+ * @minimum 0*/offset?: number;+ /**+ * Search filter for attribute names.+ * @minLength 1+ */+ search?: string;};- export type LlmAnalyticsClusteringConfigRetrieve200 = { [key: string]: unknown };+ export type EnvironmentsTracingSpansAttributesRetrieveAttributeType = typeof EnvironmentsTracingSpansAttributesRetrieveAttributeType[keyof typeof EnvironmentsTracingSpansAttributesRetrieveAttributeType];- export type LlmAnalyticsClusteringConfigSetEventFiltersCreate200 = { [key: string]: unknown };- export type LlmAnalyticsClusteringJobsListParams = {+ export const EnvironmentsTracingSpansAttributesRetrieveAttributeType = {+ SpanAttribute: 'span_attribute',+ SpanResourceAttribute: 'span_resource_attribute',+ } as const;++ export type EnvironmentsTracingSpansServiceNamesRetrieveParams = {/**- * Number of results to return per page.+ * JSON-encoded date range, e.g. '{"date_from": "-1h"}'.+ * @minLength 1*/- limit?: number;+ dateRange?: string;/**- * The initial index from which to return the results.+ * Search filter for service names.+ * @minLength 1*/- offset?: number;+ search?: string;};- export type LlmAnalyticsEvaluationReportsListParams = {+ export type EnvironmentsTracingSpansValuesRetrieveParams = {/**- * Number of results to return per page.+ * Type of attribute: "span" for built-in span fields (e.g. name), "span_attribute" for span-level attributes, "span_resource_attribute" for resource-level attributes.++ * `span` - span+ * `span_attribute` - span_attribute+ * `span_resource_attribute` - span_resource_attribute+ * @minLength 1*/- limit?: number;+ attribute_type?: EnvironmentsTracingSpansValuesRetrieveAttributeType;/**- * The initial index from which to return the results.+ * The attribute key to get values for.+ * @minLength 1*/- offset?: number;- };-- export type LlmAnalyticsEvaluationReportsRunsListParams = {+ key: string;/**- * Number of results to return per page.+ * Max results (default: 100).+ * @minimum 1+ * @maximum 100*/limit?: number;/**- * The initial index from which to return the results.+ * Pagination offset (default: 0).+ * @minimum 0*/offset?: number;- };-- export type LlmAnalyticsEvaluationSummaryCreate400 = { [key: string]: unknown };-- export type LlmAnalyticsEvaluationSummaryCreate403 = { [key: string]: unknown };-- export type LlmAnalyticsEvaluationSummaryCreate404 = { [key: string]: unknown };-- export type LlmAnalyticsEvaluationSummaryCreate500 = { [key: string]: unknown };-- export type LlmAnalyticsModelsRetrieveParams = {- /**- * Optional provider key UUID. When supplied, models reachable with that specific key are returned (useful for Azure OpenAI, where the deployment list depends on the configured endpoint). Must belong to the same provider as the `provider` parameter.- */- key_id?: string;/**- * LLM provider to list models for. Must be one of the supported providers.+ * Search filter for attribute values.+ * @minLength 1*/- provider: LlmAnalyticsModelsRetrieveProvider;+ value?: string;};- export type LlmAnalyticsModelsRetrieveProvider = typeof LlmAnalyticsModelsRetrieveProvider[keyof typeof LlmAnalyticsModelsRetrieveProvider];+ export type EnvironmentsTracingSpansValuesRetrieveAttributeType = typeof EnvironmentsTracingSpansValuesRetrieveAttributeType[keyof typeof EnvironmentsTracingSpansValuesRetrieveAttributeType];- export const LlmAnalyticsModelsRetrieveProvider = {- Anthropic: 'anthropic',- AzureOpenai: 'azure_openai',- Fireworks: 'fireworks',- Gemini: 'gemini',- Openai: 'openai',- Openrouter: 'openrouter',- TogetherAi: 'together_ai',+ export const EnvironmentsTracingSpansValuesRetrieveAttributeType = {+ Span: 'span',+ SpanAttribute: 'span_attribute',+ SpanResourceAttribute: 'span_resource_attribute',} as const;- export type LlmAnalyticsOfflineEvaluationsExperimentItemsCreate400 = { [key: string]: unknown };-- export type LlmAnalyticsOfflineEvaluationsExperimentItemsCreate500 = { [key: string]: unknown };-- export type LlmAnalyticsProviderKeyValidationsCreate200 = { [key: string]: unknown };-- export type LlmAnalyticsProviderKeysListParams = {+ export type EnvironmentsUserInterviewTopicsListParams = {/*** Number of results to return per page.*/@@ -43010,9 +43519,13 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ /**+ * A search term.+ */+ search?: string;};- export type LlmAnalyticsReviewQueueItemsListParams = {+ export type EnvironmentsUserInterviewTopicsIntervieweesListParams = {/*** Number of results to return per page.*/@@ -43021,57 +43534,55 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ };++ export type EnvironmentsUserInterviewsListParams = {/**- * Order by `created_at` or `updated_at`.- */- order_by?: string;- /**- * Filter by a specific review queue ID.+ * Number of results to return per page.*/- queue_id?: string;+ limit?: number;/**- * Search pending trace IDs.+ * The initial index from which to return the results.*/- search?: string;+ offset?: number;+ topic?: string;+ };++ export type EnvironmentsUserProductListListParams = {/**- * Filter by an exact trace ID.+ * Number of results to return per page.*/- trace_id?: string;+ limit?: number;/**- * Filter by multiple trace IDs separated by commas.+ * The initial index from which to return the results.*/- trace_id__in?: string;+ offset?: number;};- export type LlmAnalyticsReviewQueuesListParams = {+ export type EnvironmentsVisionObservationsListParams = {/*** Number of results to return per page.*/limit?: number;- name?: string;/*** The initial index from which to return the results.*/offset?: number;/**- * Order by `name`, `updated_at`, or `created_at`.- */- order_by?: string;- /**- * Search review queue names.+ * Session recording id to return observations for.*/- search?: string;+ session_id: string;};- export type LlmAnalyticsScoreDefinitionsListParams = {+ export type EnvironmentsVisionScannersListParams = {/**- * Filter by archived state.+ * Filter to scanners that emit Signals.*/- archived?: boolean;+ emits_signals?: boolean;/**- * Filter by scorer kind.+ * Filter to enabled vs disabled scanners.*/- kind?: string;+ enabled?: boolean;/*** Number of results to return per page.*/@@ -43081,48 +43592,40 @@ export namespace Schemas {*/offset?: number;/**- * Sort by name, kind, created_at, updated_at, or current_version.+ * Sort scanners by name, created_at, updated_at, or scanner_type. Prefix with `-` for descending.++ * `name` - Name+ * `-name` - Name (descending)+ * `created_at` - Created at+ * `-created_at` - Created at (descending)+ * `updated_at` - Updated at+ * `-updated_at` - Updated at (descending)+ * `scanner_type` - Scanner type+ * `-scanner_type` - Scanner type (descending)*/- order_by?: string;+ order_by?: string[];/**- * Search scorers by name or description.+ * Filter by scanner type (monitor, classifier, scorer, summarizer).++ * `monitor` - Monitor+ * `classifier` - Classifier+ * `scorer` - Scorer+ * `summarizer` - Summarizer*/- search?: string;+ scanner_type?: EnvironmentsVisionScannersListScannerType;};- export type LlmAnalyticsSentimentCreate400 = { [key: string]: unknown };-- export type LlmAnalyticsSentimentCreate500 = { [key: string]: unknown };-- export type LlmAnalyticsSentimentGenerationsCreate400 = { [key: string]: unknown };-- export type LlmAnalyticsSentimentGenerationsCreate500 = { [key: string]: unknown };-- export type LlmAnalyticsSummarizationCreate400 = { [key: string]: unknown };-- export type LlmAnalyticsSummarizationCreate403 = { [key: string]: unknown };-- export type LlmAnalyticsSummarizationCreate500 = { [key: string]: unknown };-- export type LlmAnalyticsSummarizationBatchCheckCreate400 = { [key: string]: unknown };-- export type LlmAnalyticsSummarizationBatchCheckCreate403 = { [key: string]: unknown };-- export type LlmAnalyticsTextReprCreate400 = { [key: string]: unknown };+ export type EnvironmentsVisionScannersListScannerType = typeof EnvironmentsVisionScannersListScannerType[keyof typeof EnvironmentsVisionScannersListScannerType];- export type LlmAnalyticsTextReprCreate500 = { [key: string]: unknown };- export type LlmAnalyticsTextReprCreate503 = { [key: string]: unknown };+ export const EnvironmentsVisionScannersListScannerType = {+ Classifier: 'classifier',+ Monitor: 'monitor',+ Scorer: 'scorer',+ Summarizer: 'summarizer',+ } as const;- export type LlmAnalyticsTraceReviewsListParams = {- /**- * Filter by a stable scorer definition ID.- */- definition_id?: string;- /**- * Filter by multiple scorer definition IDs separated by commas.- */- definition_id__in?: string;+ export type EnvironmentsVisionScannersObservationsListParams = {/*** Number of results to return per page.*/@@ -43132,121 +43635,83 @@ export namespace Schemas {*/offset?: number;/**- * Order by `updated_at` or `created_at`.+ * Sort observations by created_at, started_at, completed_at, or status. Prefix with `-` for descending.++ * `created_at` - Created at+ * `-created_at` - Created at (descending)+ * `started_at` - Started at+ * `-started_at` - Started at (descending)+ * `completed_at` - Completed at+ * `-completed_at` - Completed at (descending)+ * `status` - Status+ * `-status` - Status (descending)*/- order_by?: string;+ order_by?: string[];/**- * Search trace IDs and comments.+ * Filter to observations of a specific session recording.*/- search?: string;+ session_id?: string;/**- * Filter by an exact trace ID.+ * Filter by observation status.++ * `pending` - Pending+ * `running` - Running+ * `succeeded` - Succeeded+ * `failed` - Failed+ * `ineligible` - Ineligible*/- trace_id?: string;+ status?: EnvironmentsVisionScannersObservationsListStatus;/**- * Filter by multiple trace IDs separated by commas.+ * Filter by trigger source (schedule or on_demand).++ * `schedule` - Schedule+ * `on_demand` - On demand*/- trace_id__in?: string;+ triggered_by?: EnvironmentsVisionScannersObservationsListTriggeredBy;};- export type LlmAnalyticsTranslateCreate200 = { [key: string]: unknown };+ export type EnvironmentsVisionScannersObservationsListStatus = typeof EnvironmentsVisionScannersObservationsListStatus[keyof typeof EnvironmentsVisionScannersObservationsListStatus];- export type LlmPromptsListParams = {- /**- * Controls how much prompt content is included in the response. 'full' includes the full prompt, 'preview' includes a short prompt_preview, and 'none' omits prompt content entirely. The outline field is always included.- * `full` - full- * `preview` - preview- * `none` - none- * @minLength 1- */- content?: LlmPromptsListContent;- /**- * Filter prompts by the ID of the user who created them.- */- created_by_id?: number;- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- /**- * Optional substring filter applied to prompt names and prompt content.- */- search?: string;- };+ export const EnvironmentsVisionScannersObservationsListStatus = {+ Failed: 'failed',+ Ineligible: 'ineligible',+ Pending: 'pending',+ Running: 'running',+ Succeeded: 'succeeded',+ } as const;- export type LlmPromptsListContent = typeof LlmPromptsListContent[keyof typeof LlmPromptsListContent];+ export type EnvironmentsVisionScannersObservationsListTriggeredBy = typeof EnvironmentsVisionScannersObservationsListTriggeredBy[keyof typeof EnvironmentsVisionScannersObservationsListTriggeredBy];- export const LlmPromptsListContent = {- Full: 'full',- Preview: 'preview',- None: 'none',+ export const EnvironmentsVisionScannersObservationsListTriggeredBy = {+ OnDemand: 'on_demand',+ Schedule: 'schedule',} as const;- export type LlmPromptsNameRetrieveParams = {+ export type EnvironmentsWarehouseSavedQueriesListParams = {/**- * Controls how much prompt content is included in the response. 'full' includes the full prompt, 'preview' includes a short prompt_preview, and 'none' omits prompt content entirely. The outline field is always included.-- * `full` - full- * `preview` - preview- * `none` - none- * @minLength 1+ * A page number within the paginated result set.*/- content?: LlmPromptsNameRetrieveContent;+ page?: number;/**- * Specific prompt version to fetch. If omitted, the latest version is returned.- * @minimum 1+ * A search term.*/- version?: number;+ search?: string;};- export type LlmPromptsNameRetrieveContent = typeof LlmPromptsNameRetrieveContent[keyof typeof LlmPromptsNameRetrieveContent];--- export const LlmPromptsNameRetrieveContent = {- Full: 'full',- Preview: 'preview',- None: 'none',- } as const;-- export type LlmPromptsResolveNameRetrieveParams = {- /**- * Return versions older than this version number. Mutually exclusive with offset.- * @minimum 1- */- before_version?: number;+ export type EnvironmentsWarehouseSavedQueryDraftsListParams = {/**- * Maximum number of versions to return per page (1-100).- * @minimum 1- * @maximum 100+ * Number of results to return per page.*/limit?: number;/**- * Zero-based offset into version history for pagination. Mutually exclusive with before_version.- * @minimum 0+ * The initial index from which to return the results.*/offset?: number;- /**- * Specific prompt version to fetch. If omitted, the latest version is returned.- * @minimum 1- */- version?: number;- /**- * Exact prompt version UUID to resolve. Can be used together with version for extra safety.- */- version_id?: string;};- export type LlmSkillsListParams = {- /**- * Filter skills by the ID of the user who created them.- */- created_by_id?: number;+ export type EnvironmentsWarehouseTablesListParams = {/*** Number of results to return per page.*/@@ -43256,64 +43721,54 @@ export namespace Schemas {*/offset?: number;/**- * Optional substring filter applied to skill names and descriptions.+ * A search term.*/search?: string;};- export type LlmSkillsNameRetrieveParams = {+ export type EnvironmentsWarehouseViewLinkListParams = {/**- * Specific skill version to fetch. If omitted, the latest version is returned.- * @minimum 1+ * Number of results to return per page.*/- version?: number;- };-- export type LlmSkillsNameFilesRetrieveParams = {+ limit?: number;/**- * Specific skill version to fetch. If omitted, the latest version is returned.- * @minimum 1+ * The initial index from which to return the results.*/- version?: number;- };-- export type LlmSkillsNameFilesDestroyParams = {+ offset?: number;/**- * Latest version you are editing from. If provided, the request fails with 409 when another write has landed in the meantime.- * @minimum 1+ * A search term.*/- base_version?: number;+ search?: string;};- export type LlmSkillsResolveNameRetrieveParams = {- /**- * Return versions older than this version number. Mutually exclusive with offset.- * @minimum 1- */- before_version?: number;+ export type EnvironmentsWarehouseViewLinksListParams = {/**- * Maximum number of versions to return per page (1-100).- * @minimum 1- * @maximum 100+ * Number of results to return per page.*/limit?: number;/**- * Zero-based offset into version history for pagination. Mutually exclusive with before_version.- * @minimum 0+ * The initial index from which to return the results.*/offset?: number;/**- * Specific skill version to fetch. If omitted, the latest version is returned.- * @minimum 1+ * A search term.*/- version?: number;+ search?: string;+ };++ export type EnvironmentsWebAnalyticsWeeklyDigestParams = {/**- * Exact skill version UUID to resolve.+ * When true (default), include period-over-period change for each metric comparing against the prior equal-length period. Set to false to skip the comparison query (faster).*/- version_id?: string;+ compare?: boolean;+ /**+ * Lookback window in days (1–90). Defaults to 7.+ */+ days?: number;};- export type LogsViewsListParams = {+ export type EnvironmentsWebAnalyticsFilterPresetsListParams = {+ created_by?: number;/*** Number of results to return per page.*/@@ -43322,22 +43777,30 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ short_id?: string;};- export type MarketingAnalyticsUtmAuditRetrieveParams = {+ export type EnvironmentsWebVitalsRetrieveParams = {/**- * Start date for the audit period- * @minLength 1+ * Filter web vitals by pathname*/- date_from?: string;+ pathname: string;+ };++ export type EnvironmentsWebVitalsRetrieve200 = { [key: string]: unknown };++ export type ConversationsListParams = {/**- * End date for the audit period- * @nullable+ * Number of results to return per page.*/- date_to?: string | null;+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type MaterializedColumnSlotsListParams = {+ export type CoreMemoryListParams = {/*** Number of results to return per page.*/@@ -43404,62 +43867,81 @@ export namespace Schemas {offset?: number;};- export type McpServerInstallationsListParams = {- /**- * Number of results to return per page.- */- limit?: number;+ export type PropertyAccessControlsRetrieveParams = {/**- * The initial index from which to return the results.+ * The property definition ID to fetch access control rules for.*/- offset?: number;+ property_definition_id: string;};- export type McpServerInstallationsAuthorizeRetrieveParams = {+ export type PropertyAccessControlsDestroyParams = {/**- * * `posthog` - posthog- * `posthog-code` - posthog-code- * @minLength 1+ * The organization member UUID whose override should be deleted.*/- install_source?: McpServerInstallationsAuthorizeRetrieveInstallSource;- installation_id?: string;- posthog_code_callback_url?: string;- template_id?: string;- };-- export type McpServerInstallationsAuthorizeRetrieveInstallSource = typeof McpServerInstallationsAuthorizeRetrieveInstallSource[keyof typeof McpServerInstallationsAuthorizeRetrieveInstallSource];--- export const McpServerInstallationsAuthorizeRetrieveInstallSource = {- Posthog: 'posthog',- PosthogCode: 'posthog-code',- } as const;-- export type McpServersListParams = {+ organization_member?: string;/**- * Number of results to return per page.+ * The property definition ID the rule applies to.*/- limit?: number;+ property_definition_id: string;/**- * The initial index from which to return the results.+ * The role UUID whose override should be deleted.*/- offset?: number;+ role?: string;};- export type McpToolsCreate200 = { [key: string]: unknown };-- export type MessagingCategoriesListParams = {+ export type SubscriptionsDeliveriesListParams = {/**- * Number of results to return per page.+ * The pagination cursor value.*/- limit?: number;+ cursor?: string;/**- * The initial index from which to return the results.+ * Return only deliveries in this run status (starting, completed, failed, or skipped).*/- offset?: number;+ status?: SubscriptionsDeliveriesListStatus;};- export type MessagingTemplatesListParams = {+ export type SubscriptionsDeliveriesListStatus = typeof SubscriptionsDeliveriesListStatus[keyof typeof SubscriptionsDeliveriesListStatus];+++ export const SubscriptionsDeliveriesListStatus = {+ Completed: 'completed',+ Failed: 'failed',+ Skipped: 'skipped',+ Starting: 'starting',+ } as const;++ export type LlmAnalyticsPersonalSpendListParams = {+ /**+ * Start of the spend window. Accepts absolute dates (`2026-04-23`) or relative strings (`-7d`, `-1m`, etc.) — same parser used elsewhere in PostHog. Defaults to `-30d`. The window between `date_from` and `date_to` cannot exceed 90 days.+ * @minLength 1+ * @maxLength 32+ */+ date_from?: string;+ /**+ * End of the spend window. Accepts the same formats as `date_from`. Defaults to `now` when omitted.+ * @maxLength 32+ * @nullable+ */+ date_to?: string | null;+ /**+ * Maximum number of rows to return per breakdown (1-200, defaults to 50). Each breakdown returns up to this many rows ordered by cost descending. Per-breakdown `truncated: true` indicates more rows exist beyond the limit.+ * @minimum 1+ * @maximum 200+ */+ limit?: number;+ /**+ * Required `ai_product` key to scope the tool / model / trace breakdowns to a single product. Only the following products are currently supported: posthog_code.+ * @minLength 1+ * @maxLength 64+ */+ product: string;+ /**+ * If true, bypass the result cache and re-run the underlying queries against ClickHouse.+ */+ refresh?: boolean;+ };++ export type ListParams = {/*** Number of results to return per page.*/@@ -43470,68 +43952,122 @@ export namespace Schemas {offset?: number;};- export type NotificationsListParams = {+ export type OrgOrganizationsAdvancedActivityLogsListParams = {/**- * ISO 8601 timestamp; only events at or after this time+ * Filter by activity types (e.g. "created", "updated", "deleted").*/- created_after?: string;+ activities?: string[];/**- * ISO 8601 timestamp; only events strictly before this time+ * Filter by API clients that generated the activity (from x-posthog-client header).*/- created_before?: string;+ clients?: string[];/**- * Number of results to return per page.+ * JSON-encoded map of `detail` field paths to {operation, value} filters. Allowed operations: exact, contains, in.*/- limit?: number;+ detail_filters?: string;/**- * Filter by notification type+ * Upper bound on `created_at` (inclusive), ISO-8601.*/- notification_type?: string;+ end_date?: string;/**- * The initial index from which to return the results.+ * Reserved for future HogQL-based filtering.*/- offset?: number;+ hogql_filter?: string;/**- * Filter by the ID of the resource the notification refers to+ * Filter by client IP addresses. Accepts exact IPv4/IPv6 values or wildcard patterns using `*` (e.g. `203.0.113.*`). Multiple entries are OR-combined.*/- resource_id?: string;+ ip_addresses?: string[];/**- * Filter by the type of the resource the notification refers to (e.g. `insight`, `dashboard`)+ * When set, filters rows authored by the system (no user).+ * @nullable*/- resource_type?: string;+ is_system?: boolean | null;/**- * Filter by recipient target ID (e.g. a user ID)+ * Filter by the `item_id` of the affected resource(s).*/- target_id?: string;+ item_ids?: string[];/**- * Filter by recipient target type (e.g. `user`, `team`)+ * Page number for pagination. When provided, uses page-based pagination ordered by most recent first.+ * @minimum 1*/- target_type?: string;+ page?: number;+ /**+ * Number of results per page (default: 100, max: 1000). Only used with page-based pagination.+ * @minimum 1+ * @maximum 1000+ */+ page_size?: number;+ /**+ * Filter by activity scopes (e.g. "FeatureFlag", "Insight").+ */+ scopes?: string[];+ /**+ * Free-text search across the `detail` JSON column.+ */+ search_text?: string;+ /**+ * Lower bound on `created_at` (inclusive), ISO-8601.+ */+ start_date?: string;+ /**+ * Filter by project (team) IDs. Only honored on the organization-scoped endpoint; ignored on the project-scoped endpoint.+ */+ team_ids?: number[];+ /**+ * Filter by users who performed the activity (user UUIDs).+ */+ users?: string[];+ /**+ * When set, filters rows where the actor was impersonating another user.+ * @nullable+ */+ was_impersonated?: boolean | null;};- export type PropertyAccessControlsRetrieveParams = {+ export type OrgOrganizationsBatchExportsListParams = {/**- * The property definition ID to fetch access control rules for.+ * Number of results to return per page.*/- property_definition_id: string;+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type PropertyAccessControlsDestroyParams = {+ export type OrgOrganizationsBatchExportsLogsRetrieveParams = {/**- * The organization member UUID whose override should be deleted.+ * Only return entries after this ISO 8601 timestamp.*/- organization_member?: string;+ after?: string;/**- * The property definition ID the rule applies to.+ * Only return entries before this ISO 8601 timestamp.*/- property_definition_id: string;+ before?: string;/**- * The role UUID whose override should be deleted.+ * Filter logs to a specific execution instance.+ * @minLength 1*/- role?: string;+ instance_id?: string;+ /**+ * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.+ * @minLength 1+ */+ level?: string;+ /**+ * Maximum number of log entries to return (1-500, default 50).+ * @minimum 1+ * @maximum 500+ */+ limit?: number;+ /**+ * Case-insensitive substring search across log messages.+ * @minLength 1+ */+ search?: string;};- export type QuickFiltersListParams = {+ export type CimdVerificationTokensListParams = {/*** Number of results to return per page.*/@@ -43542,7 +44078,7 @@ export namespace Schemas {offset?: number;};- export type SessionRecordingExternalReferencesListParams = {+ export type DomainsListParams = {/*** Number of results to return per page.*/@@ -43553,36 +44089,40 @@ export namespace Schemas {offset?: number;};- export type SubscriptionsDeliveriesListParams = {+ export type OrgOrganizationsIntegrationsListParams = {/**- * The pagination cursor value.+ * Number of results to return per page.*/- cursor?: string;+ limit?: number;/**- * Return only deliveries in this run status (starting, completed, failed, or skipped).+ * The initial index from which to return the results.*/- status?: SubscriptionsDeliveriesListStatus;+ offset?: number;};- export type SubscriptionsDeliveriesListStatus = typeof SubscriptionsDeliveriesListStatus[keyof typeof SubscriptionsDeliveriesListStatus];--- export const SubscriptionsDeliveriesListStatus = {- Completed: 'completed',- Failed: 'failed',- Skipped: 'skipped',- Starting: 'starting',- } as const;+ export type InvitesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };- export type TaggersListParams = {+ export type LegalDocumentsListParams = {/**- * Filter by enabled status+ * Number of results to return per page.*/- enabled?: boolean;+ limit?: number;/**- * Multiple values may be separated by commas.+ * The initial index from which to return the results.*/- id__in?: string[];+ offset?: number;+ };++ export type MembersListParams = {/*** Number of results to return per page.*/@@ -43592,113 +44132,76 @@ export namespace Schemas {*/offset?: number;/**- * Ordering-- * `created_at` - Created At- * `-created_at` - Created At (descending)- * `updated_at` - Updated At- * `-updated_at` - Updated At (descending)- * `name` - Name- * `-name` - Name (descending)+ * Sort order. Defaults to `-joined_at`.*/- order_by?: string[];+ order?: string;/**- * Search in name or description+ * Fuzzy match against member `first_name`, `last_name`, and `email` using Postgres trigram word similarity. Supports typos and prefix-as-you-type. Capped at 200 characters.*/search?: string;};- export type TracingSpansAttributesRetrieveParams = {+ export type OauthApplicationsListParams = {/**- * Type of attributes: "span_attribute" for span-level attributes, "span_resource_attribute" for resource-level attributes.-- * `span_attribute` - span_attribute- * `span_resource_attribute` - span_resource_attribute- * @minLength 1+ * Number of results to return per page.*/- attribute_type?: TracingSpansAttributesRetrieveAttributeType;+ limit?: number;/**- * Max results (default: 100).- * @minimum 1- * @maximum 100+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type OrganizationsProjectsListParams = {+ /**+ * Number of results to return per page.*/limit?: number;/**- * Pagination offset (default: 0).- * @minimum 0+ * The initial index from which to return the results.*/offset?: number;/**- * Search filter for attribute names.- * @minLength 1+ * A search term.*/search?: string;};- export type TracingSpansAttributesRetrieveAttributeType = typeof TracingSpansAttributesRetrieveAttributeType[keyof typeof TracingSpansAttributesRetrieveAttributeType];--- export const TracingSpansAttributesRetrieveAttributeType = {- SpanAttribute: 'span_attribute',- SpanResourceAttribute: 'span_resource_attribute',- } as const;-- export type TracingSpansServiceNamesRetrieveParams = {+ export type RoleExternalReferencesListParams = {/**- * JSON-encoded date range, e.g. '{"date_from": "-1h"}'.- * @minLength 1+ * Number of results to return per page.*/- dateRange?: string;+ limit?: number;/**- * Search filter for service names.- * @minLength 1+ * The initial index from which to return the results.*/- search?: string;+ offset?: number;};- export type TracingSpansValuesRetrieveParams = {+ export type RoleExternalReferencesLookupRetrieveParams = {/**- * Type of attribute: "span" for built-in span fields (e.g. name), "span_attribute" for span-level attributes, "span_resource_attribute" for resource-level attributes.-- * `span` - span- * `span_attribute` - span_attribute- * `span_resource_attribute` - span_resource_attribute+ * Integration kind (e.g., github, linear, jira, slack).* @minLength 1*/- attribute_type?: TracingSpansValuesRetrieveAttributeType;+ provider: string;/**- * The attribute key to get values for.+ * Provider organization/workspace/site identifier.* @minLength 1*/- key: string;- /**- * Max results (default: 100).- * @minimum 1- * @maximum 100- */- limit?: number;+ provider_organization_id: string;/**- * Pagination offset (default: 0).- * @minimum 0+ * Stable provider role identifier.+ * @minLength 1*/- offset?: number;+ provider_role_id?: string;/**- * Search filter for attribute values.+ * Human-friendly provider role identifier.* @minLength 1*/- value?: string;+ provider_role_slug?: string;};- export type TracingSpansValuesRetrieveAttributeType = typeof TracingSpansValuesRetrieveAttributeType[keyof typeof TracingSpansValuesRetrieveAttributeType];--- export const TracingSpansValuesRetrieveAttributeType = {- Span: 'span',- SpanAttribute: 'span_attribute',- SpanResourceAttribute: 'span_resource_attribute',- } as const;-- export type UserInterviewTopicsListParams = {+ export type RolesListParams = {/*** Number of results to return per page.*/@@ -43707,13 +44210,9 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- /**- * A search term.- */- search?: string;};- export type UserInterviewTopicsIntervieweesListParams = {+ export type RolesRoleMembershipsListParams = {/*** Number of results to return per page.*/@@ -43724,19 +44223,23 @@ export namespace Schemas {offset?: number;};- export type UserInterviewsListParams = {+ export type AccountsListParams = {/**- * Number of results to return per page.+ * Filter by account executive. Use 'unassigned' or an integer user id.*/- limit?: number;+ account_executive?: string;/**- * The initial index from which to return the results.+ * Filter by account owner. Use 'unassigned' or an integer user id.*/- offset?: number;- topic?: string;- };-- export type VisionObservationsListParams = {+ account_owner?: string;+ /**+ * When true, returns only accounts where CSM, account executive, and account owner are all unset.+ */+ all_roles_unassigned?: boolean;+ /**+ * Filter by CSM. Use 'unassigned' for accounts with no CSM, or an integer user id.+ */+ csm?: string;/*** Number of results to return per page.*/@@ -43746,20 +44249,20 @@ export namespace Schemas {*/offset?: number;/**- * Session recording id to return observations for.+ * Sort order. Defaults to '-created_at'.*/- session_id: string;- };-- export type VisionScannersListParams = {+ ordering?: string;/**- * Filter to scanners that emit Signals.+ * Case-insensitive substring search across account name and external ID.*/- emits_signals?: boolean;+ search?: string;/**- * Filter to enabled vs disabled scanners.+ * JSON-encoded array of tag names to filter by, e.g. `["enterprise","priority"]`. Returns accounts that have any of the listed tags. Malformed values (not a JSON-encoded list of strings) return a 400.*/- enabled?: boolean;+ tags?: string;+ };++ export type AccountsNotebooksListParams = {/*** Number of results to return per page.*/@@ -43768,41 +44271,10 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- /**- * Sort scanners by name, created_at, updated_at, or scanner_type. Prefix with `-` for descending.-- * `name` - Name- * `-name` - Name (descending)- * `created_at` - Created at- * `-created_at` - Created at (descending)- * `updated_at` - Updated at- * `-updated_at` - Updated at (descending)- * `scanner_type` - Scanner type- * `-scanner_type` - Scanner type (descending)- */- order_by?: string[];- /**- * Filter by scanner type (monitor, classifier, scorer, summarizer).-- * `monitor` - Monitor- * `classifier` - Classifier- * `scorer` - Scorer- * `summarizer` - Summarizer- */- scanner_type?: VisionScannersListScannerType;};- export type VisionScannersListScannerType = typeof VisionScannersListScannerType[keyof typeof VisionScannersListScannerType];--- export const VisionScannersListScannerType = {- Classifier: 'classifier',- Monitor: 'monitor',- Scorer: 'scorer',- Summarizer: 'summarizer',- } as const;-- export type VisionScannersObservationsListParams = {+ export type ActionsListParams = {+ format?: ActionsListFormat;/*** Number of results to return per page.*/@@ -43811,181 +44283,106 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- /**- * Sort observations by created_at, started_at, completed_at, or status. Prefix with `-` for descending.+ };- * `created_at` - Created at- * `-created_at` - Created at (descending)- * `started_at` - Started at- * `-started_at` - Started at (descending)- * `completed_at` - Completed at- * `-completed_at` - Completed at (descending)- * `status` - Status- * `-status` - Status (descending)- */- order_by?: string[];- /**- * Filter to observations of a specific session recording.- */- session_id?: string;- /**- * Filter by observation status.+ export type ActionsListFormat = typeof ActionsListFormat[keyof typeof ActionsListFormat];- * `pending` - Pending- * `running` - Running- * `succeeded` - Succeeded- * `failed` - Failed- * `ineligible` - Ineligible- */- status?: VisionScannersObservationsListStatus;- /**- * Filter by trigger source (schedule or on_demand).- * `schedule` - Schedule- * `on_demand` - On demand- */- triggered_by?: VisionScannersObservationsListTriggeredBy;+ export const ActionsListFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type ActionsCreateParams = {+ format?: ActionsCreateFormat;};- export type VisionScannersObservationsListStatus = typeof VisionScannersObservationsListStatus[keyof typeof VisionScannersObservationsListStatus];+ export type ActionsCreateFormat = typeof ActionsCreateFormat[keyof typeof ActionsCreateFormat];- export const VisionScannersObservationsListStatus = {- Failed: 'failed',- Ineligible: 'ineligible',- Pending: 'pending',- Running: 'running',- Succeeded: 'succeeded',+ export const ActionsCreateFormat = {+ Csv: 'csv',+ Json: 'json',} as const;- export type VisionScannersObservationsListTriggeredBy = typeof VisionScannersObservationsListTriggeredBy[keyof typeof VisionScannersObservationsListTriggeredBy];+ export type ActionsRetrieveParams = {+ format?: ActionsRetrieveFormat;+ };+ export type ActionsRetrieveFormat = typeof ActionsRetrieveFormat[keyof typeof ActionsRetrieveFormat];- export const VisionScannersObservationsListTriggeredBy = {- OnDemand: 'on_demand',- Schedule: 'schedule',++ export const ActionsRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',} as const;- export type WarehouseSavedQueryDraftsListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;+ export type ActionsUpdateParams = {+ format?: ActionsUpdateFormat;};- export type WebAnalyticsWeeklyDigestParams = {- /**- * When true (default), include period-over-period change for each metric comparing against the prior equal-length period. Set to false to skip the comparison query (faster).- */- compare?: boolean;- /**- * Lookback window in days (1–90). Defaults to 7.- */- days?: number;- };+ export type ActionsUpdateFormat = typeof ActionsUpdateFormat[keyof typeof ActionsUpdateFormat];- export type WebAnalyticsFilterPresetsListParams = {- created_by?: number;- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- short_id?: string;++ export const ActionsUpdateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type ActionsPartialUpdateParams = {+ format?: ActionsPartialUpdateFormat;};- export type WebVitalsRetrieveParams = {- /**- * Filter web vitals by pathname- */- pathname: string;+ export type ActionsPartialUpdateFormat = typeof ActionsPartialUpdateFormat[keyof typeof ActionsPartialUpdateFormat];+++ export const ActionsPartialUpdateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type ActionsDestroyParams = {+ format?: ActionsDestroyFormat;};- export type WebVitalsRetrieve200 = { [key: string]: unknown };+ export type ActionsDestroyFormat = typeof ActionsDestroyFormat[keyof typeof ActionsDestroyFormat];- export type LlmAnalyticsPersonalSpendListParams = {- /**- * Start of the spend window. Accepts absolute dates (`2026-04-23`) or relative strings (`-7d`, `-1m`, etc.) — same parser used elsewhere in PostHog. Defaults to `-30d`. The window between `date_from` and `date_to` cannot exceed 90 days.- * @minLength 1- * @maxLength 32- */- date_from?: string;- /**- * End of the spend window. Accepts the same formats as `date_from`. Defaults to `now` when omitted.- * @maxLength 32- * @nullable- */- date_to?: string | null;- /**- * Maximum number of rows to return per breakdown (1-200, defaults to 50). Each breakdown returns up to this many rows ordered by cost descending. Per-breakdown `truncated: true` indicates more rows exist beyond the limit.- * @minimum 1- * @maximum 200- */- limit?: number;- /**- * Required `ai_product` key to scope the tool / model / trace breakdowns to a single product. Only the following products are currently supported: posthog_code.- * @minLength 1- * @maxLength 64- */- product: string;- /**- * If true, bypass the result cache and re-run the underlying queries against ClickHouse.- */- refresh?: boolean;++ export const ActionsDestroyFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type ActionsReferencesListParams = {+ format?: ActionsReferencesListFormat;};- export type ListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;+ export type ActionsReferencesListFormat = typeof ActionsReferencesListFormat[keyof typeof ActionsReferencesListFormat];+++ export const ActionsReferencesListFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type ActionsBulkUpdateTagsCreateParams = {+ format?: ActionsBulkUpdateTagsCreateFormat;};- export type OrgOrganizationsAdvancedActivityLogsListParams = {- /**- * Filter by activity types (e.g. "created", "updated", "deleted").- */- activities?: string[];- /**- * Filter by API clients that generated the activity (from x-posthog-client header).- */- clients?: string[];- /**- * JSON-encoded map of `detail` field paths to {operation, value} filters. Allowed operations: exact, contains, in.- */- detail_filters?: string;- /**- * Upper bound on `created_at` (inclusive), ISO-8601.- */- end_date?: string;- /**- * Reserved for future HogQL-based filtering.- */- hogql_filter?: string;- /**- * Filter by client IP addresses. Accepts exact IPv4/IPv6 values or wildcard patterns using `*` (e.g. `203.0.113.*`). Multiple entries are OR-combined.- */- ip_addresses?: string[];- /**- * When set, filters rows authored by the system (no user).- * @nullable- */- is_system?: boolean | null;+ export type ActionsBulkUpdateTagsCreateFormat = typeof ActionsBulkUpdateTagsCreateFormat[keyof typeof ActionsBulkUpdateTagsCreateFormat];+++ export const ActionsBulkUpdateTagsCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type ActivityLogListParams = {/**- * Filter by the `item_id` of the affected resource(s).+ * Filter by the ID of the affected resource.+ * @minLength 1*/- item_ids?: string[];+ item_id?: string;/*** Page number for pagination. When provided, uses page-based pagination ordered by most recent first.* @minimum 1@@ -43998,210 +44395,378 @@ export namespace Schemas {*/page_size?: number;/**- * Filter by activity scopes (e.g. "FeatureFlag", "Insight").- */- scopes?: string[];- /**- * Free-text search across the `detail` JSON column.- */- search_text?: string;- /**- * Lower bound on `created_at` (inclusive), ISO-8601.- */- start_date?: string;- /**- * Filter by project (team) IDs. Only honored on the organization-scoped endpoint; ignored on the project-scoped endpoint.- */- team_ids?: number[];- /**- * Filter by users who performed the activity (user UUIDs).- */- users?: string[];- /**- * When set, filters rows where the actor was impersonating another user.- * @nullable- */- was_impersonated?: boolean | null;- };-- export type OrgOrganizationsBatchExportsListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };+ * Filter by a single activity scope, e.g. "FeatureFlag", "Insight", "Dashboard", "Experiment".- export type OrgOrganizationsBatchExportsLogsRetrieveParams = {- /**- * Only return entries after this ISO 8601 timestamp.- */- after?: string;- /**- * Only return entries before this ISO 8601 timestamp.- */- before?: string;- /**- * Filter logs to a specific execution instance.- * @minLength 1- */- instance_id?: string;- /**- * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.- * @minLength 1- */- level?: string;- /**- * Maximum number of log entries to return (1-500, default 50).- * @minimum 1- * @maximum 500- */- limit?: number;- /**- * Case-insensitive substring search across log messages.+ * `Cohort` - Cohort+ * `FeatureFlag` - FeatureFlag+ * `Person` - Person+ * `Group` - Group+ * `Insight` - Insight+ * `Plugin` - Plugin+ * `PluginConfig` - PluginConfig+ * `HogFunction` - HogFunction+ * `HogFlow` - HogFlow+ * `DataManagement` - DataManagement+ * `EventDefinition` - EventDefinition+ * `PropertyDefinition` - PropertyDefinition+ * `Notebook` - Notebook+ * `Endpoint` - Endpoint+ * `EndpointVersion` - EndpointVersion+ * `Dashboard` - Dashboard+ * `Replay` - Replay+ * `Experiment` - Experiment+ * `ExperimentHoldout` - ExperimentHoldout+ * `ExperimentSavedMetric` - ExperimentSavedMetric+ * `Survey` - Survey+ * `EarlyAccessFeature` - EarlyAccessFeature+ * `SessionRecordingPlaylist` - SessionRecordingPlaylist+ * `Comment` - Comment+ * `Team` - Team+ * `Project` - Project+ * `ErrorTrackingIssue` - ErrorTrackingIssue+ * `DataWarehouseSavedQuery` - DataWarehouseSavedQuery+ * `LegalDocument` - LegalDocument+ * `Organization` - Organization+ * `OrganizationDomain` - OrganizationDomain+ * `OrganizationMembership` - OrganizationMembership+ * `Role` - Role+ * `UserGroup` - UserGroup+ * `BatchExport` - BatchExport+ * `BatchImport` - BatchImport+ * `Integration` - Integration+ * `Annotation` - Annotation+ * `Tag` - Tag+ * `TaggedItem` - TaggedItem+ * `Subscription` - Subscription+ * `PersonalAPIKey` - PersonalAPIKey+ * `ProjectSecretAPIKey` - ProjectSecretAPIKey+ * `User` - User+ * `Action` - Action+ * `AlertConfiguration` - AlertConfiguration+ * `Threshold` - Threshold+ * `AlertSubscription` - AlertSubscription+ * `ExternalDataSource` - ExternalDataSource+ * `ExternalDataSchema` - ExternalDataSchema+ * `Evaluation` - Evaluation+ * `LLMTrace` - LLMTrace+ * `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset+ * `CustomerProfileConfig` - CustomerProfileConfig+ * `Log` - Log+ * `LogsAlertConfiguration` - LogsAlertConfiguration+ * `LogsExclusionRule` - LogsExclusionRule+ * `ProductTour` - ProductTour+ * `Ticket` - Ticket+ * `InstanceSetting` - InstanceSetting* @minLength 1*/- search?: string;- };-- export type CimdVerificationTokensListParams = {+ scope?: ActivityLogListScope;/**- * Number of results to return per page.+ * Filter by multiple activity scopes, comma-separated. Values must be valid ActivityScope enum values. E.g. "FeatureFlag,Insight".*/- limit?: number;+ scopes?: ActivityLogListScopesItem[];/**- * The initial index from which to return the results.+ * Filter by user UUID who performed the action.*/- offset?: number;+ user?: string;};- export type DomainsListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };+ export type ActivityLogListScope = typeof ActivityLogListScope[keyof typeof ActivityLogListScope];- export type OrgOrganizationsIntegrationsListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };- export type InvitesListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };+ export const ActivityLogListScope = {+ Cohort: 'Cohort',+ FeatureFlag: 'FeatureFlag',+ Person: 'Person',+ Group: 'Group',+ Insight: 'Insight',+ Plugin: 'Plugin',+ PluginConfig: 'PluginConfig',+ HogFunction: 'HogFunction',+ HogFlow: 'HogFlow',+ DataManagement: 'DataManagement',+ EventDefinition: 'EventDefinition',+ PropertyDefinition: 'PropertyDefinition',+ Notebook: 'Notebook',+ Endpoint: 'Endpoint',+ EndpointVersion: 'EndpointVersion',+ Dashboard: 'Dashboard',+ Replay: 'Replay',+ Experiment: 'Experiment',+ ExperimentHoldout: 'ExperimentHoldout',+ ExperimentSavedMetric: 'ExperimentSavedMetric',+ Survey: 'Survey',+ EarlyAccessFeature: 'EarlyAccessFeature',+ SessionRecordingPlaylist: 'SessionRecordingPlaylist',+ Comment: 'Comment',+ Team: 'Team',+ Project: 'Project',+ ErrorTrackingIssue: 'ErrorTrackingIssue',+ DataWarehouseSavedQuery: 'DataWarehouseSavedQuery',+ LegalDocument: 'LegalDocument',+ Organization: 'Organization',+ OrganizationDomain: 'OrganizationDomain',+ OrganizationMembership: 'OrganizationMembership',+ Role: 'Role',+ UserGroup: 'UserGroup',+ BatchExport: 'BatchExport',+ BatchImport: 'BatchImport',+ Integration: 'Integration',+ Annotation: 'Annotation',+ Tag: 'Tag',+ TaggedItem: 'TaggedItem',+ Subscription: 'Subscription',+ PersonalAPIKey: 'PersonalAPIKey',+ ProjectSecretAPIKey: 'ProjectSecretAPIKey',+ User: 'User',+ Action: 'Action',+ AlertConfiguration: 'AlertConfiguration',+ Threshold: 'Threshold',+ AlertSubscription: 'AlertSubscription',+ ExternalDataSource: 'ExternalDataSource',+ ExternalDataSchema: 'ExternalDataSchema',+ Evaluation: 'Evaluation',+ LLMTrace: 'LLMTrace',+ WebAnalyticsFilterPreset: 'WebAnalyticsFilterPreset',+ CustomerProfileConfig: 'CustomerProfileConfig',+ Log: 'Log',+ LogsAlertConfiguration: 'LogsAlertConfiguration',+ LogsExclusionRule: 'LogsExclusionRule',+ ProductTour: 'ProductTour',+ Ticket: 'Ticket',+ InstanceSetting: 'InstanceSetting',+ } as const;- export type LegalDocumentsListParams = {- /**- * Number of results to return per page.- */- limit?: number;/**- * The initial index from which to return the results.+ * * `Cohort` - Cohort+ * `FeatureFlag` - FeatureFlag+ * `Person` - Person+ * `Group` - Group+ * `Insight` - Insight+ * `Plugin` - Plugin+ * `PluginConfig` - PluginConfig+ * `HogFunction` - HogFunction+ * `HogFlow` - HogFlow+ * `DataManagement` - DataManagement+ * `EventDefinition` - EventDefinition+ * `PropertyDefinition` - PropertyDefinition+ * `Notebook` - Notebook+ * `Endpoint` - Endpoint+ * `EndpointVersion` - EndpointVersion+ * `Dashboard` - Dashboard+ * `Replay` - Replay+ * `Experiment` - Experiment+ * `ExperimentHoldout` - ExperimentHoldout+ * `ExperimentSavedMetric` - ExperimentSavedMetric+ * `Survey` - Survey+ * `EarlyAccessFeature` - EarlyAccessFeature+ * `SessionRecordingPlaylist` - SessionRecordingPlaylist+ * `Comment` - Comment+ * `Team` - Team+ * `Project` - Project+ * `ErrorTrackingIssue` - ErrorTrackingIssue+ * `DataWarehouseSavedQuery` - DataWarehouseSavedQuery+ * `LegalDocument` - LegalDocument+ * `Organization` - Organization+ * `OrganizationDomain` - OrganizationDomain+ * `OrganizationMembership` - OrganizationMembership+ * `Role` - Role+ * `UserGroup` - UserGroup+ * `BatchExport` - BatchExport+ * `BatchImport` - BatchImport+ * `Integration` - Integration+ * `Annotation` - Annotation+ * `Tag` - Tag+ * `TaggedItem` - TaggedItem+ * `Subscription` - Subscription+ * `PersonalAPIKey` - PersonalAPIKey+ * `ProjectSecretAPIKey` - ProjectSecretAPIKey+ * `User` - User+ * `Action` - Action+ * `AlertConfiguration` - AlertConfiguration+ * `Threshold` - Threshold+ * `AlertSubscription` - AlertSubscription+ * `ExternalDataSource` - ExternalDataSource+ * `ExternalDataSchema` - ExternalDataSchema+ * `Evaluation` - Evaluation+ * `LLMTrace` - LLMTrace+ * `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset+ * `CustomerProfileConfig` - CustomerProfileConfig+ * `Log` - Log+ * `LogsAlertConfiguration` - LogsAlertConfiguration+ * `LogsExclusionRule` - LogsExclusionRule+ * `ProductTour` - ProductTour+ * `Ticket` - Ticket+ * `InstanceSetting` - InstanceSetting*/- offset?: number;- };+ export type ActivityLogListScopesItem = typeof ActivityLogListScopesItem[keyof typeof ActivityLogListScopesItem];- export type MembersListParams = {++ export const ActivityLogListScopesItem = {+ Cohort: 'Cohort',+ FeatureFlag: 'FeatureFlag',+ Person: 'Person',+ Group: 'Group',+ Insight: 'Insight',+ Plugin: 'Plugin',+ PluginConfig: 'PluginConfig',+ HogFunction: 'HogFunction',+ HogFlow: 'HogFlow',+ DataManagement: 'DataManagement',+ EventDefinition: 'EventDefinition',+ PropertyDefinition: 'PropertyDefinition',+ Notebook: 'Notebook',+ Endpoint: 'Endpoint',+ EndpointVersion: 'EndpointVersion',+ Dashboard: 'Dashboard',+ Replay: 'Replay',+ Experiment: 'Experiment',+ ExperimentHoldout: 'ExperimentHoldout',+ ExperimentSavedMetric: 'ExperimentSavedMetric',+ Survey: 'Survey',+ EarlyAccessFeature: 'EarlyAccessFeature',+ SessionRecordingPlaylist: 'SessionRecordingPlaylist',+ Comment: 'Comment',+ Team: 'Team',+ Project: 'Project',+ ErrorTrackingIssue: 'ErrorTrackingIssue',+ DataWarehouseSavedQuery: 'DataWarehouseSavedQuery',+ LegalDocument: 'LegalDocument',+ Organization: 'Organization',+ OrganizationDomain: 'OrganizationDomain',+ OrganizationMembership: 'OrganizationMembership',+ Role: 'Role',+ UserGroup: 'UserGroup',+ BatchExport: 'BatchExport',+ BatchImport: 'BatchImport',+ Integration: 'Integration',+ Annotation: 'Annotation',+ Tag: 'Tag',+ TaggedItem: 'TaggedItem',+ Subscription: 'Subscription',+ PersonalAPIKey: 'PersonalAPIKey',+ ProjectSecretAPIKey: 'ProjectSecretAPIKey',+ User: 'User',+ Action: 'Action',+ AlertConfiguration: 'AlertConfiguration',+ Threshold: 'Threshold',+ AlertSubscription: 'AlertSubscription',+ ExternalDataSource: 'ExternalDataSource',+ ExternalDataSchema: 'ExternalDataSchema',+ Evaluation: 'Evaluation',+ LLMTrace: 'LLMTrace',+ WebAnalyticsFilterPreset: 'WebAnalyticsFilterPreset',+ CustomerProfileConfig: 'CustomerProfileConfig',+ Log: 'Log',+ LogsAlertConfiguration: 'LogsAlertConfiguration',+ LogsExclusionRule: 'LogsExclusionRule',+ ProductTour: 'ProductTour',+ Ticket: 'Ticket',+ InstanceSetting: 'InstanceSetting',+ } as const;++ export type AdvancedActivityLogsListParams = {/**- * Number of results to return per page.+ * Filter by activity types (e.g. "created", "updated", "deleted").*/- limit?: number;+ activities?: string[];/**- * The initial index from which to return the results.+ * Filter by API clients that generated the activity (from x-posthog-client header).*/- offset?: number;+ clients?: string[];/**- * Sort order. Defaults to `-joined_at`.+ * JSON-encoded map of `detail` field paths to {operation, value} filters. Allowed operations: exact, contains, in.*/- order?: string;+ detail_filters?: string;/**- * Fuzzy match against member `first_name`, `last_name`, and `email` using Postgres trigram word similarity. Supports typos and prefix-as-you-type. Capped at 200 characters.+ * Upper bound on `created_at` (inclusive), ISO-8601.*/- search?: string;- };-- export type OauthApplicationsListParams = {+ end_date?: string;/**- * Number of results to return per page.+ * Reserved for future HogQL-based filtering.*/- limit?: number;+ hogql_filter?: string;/**- * The initial index from which to return the results.+ * Filter by client IP addresses. Accepts exact IPv4/IPv6 values or wildcard patterns using `*` (e.g. `203.0.113.*`). Multiple entries are OR-combined.*/- offset?: number;- };-- export type OrganizationsProjectsListParams = {+ ip_addresses?: string[];/**- * Number of results to return per page.+ * When set, filters rows authored by the system (no user).+ * @nullable*/- limit?: number;+ is_system?: boolean | null;/**- * The initial index from which to return the results.+ * Filter by the `item_id` of the affected resource(s).*/- offset?: number;+ item_ids?: string[];/**- * A search term.+ * Page number for pagination. When provided, uses page-based pagination ordered by most recent first.+ * @minimum 1*/- search?: string;- };-- export type RoleExternalReferencesListParams = {+ page?: number;/**- * Number of results to return per page.+ * Number of results per page (default: 100, max: 1000). Only used with page-based pagination.+ * @minimum 1+ * @maximum 1000*/- limit?: number;+ page_size?: number;/**- * The initial index from which to return the results.+ * Filter by activity scopes (e.g. "FeatureFlag", "Insight").*/- offset?: number;+ scopes?: string[];+ /**+ * Free-text search across the `detail` JSON column.+ */+ search_text?: string;+ /**+ * Lower bound on `created_at` (inclusive), ISO-8601.+ */+ start_date?: string;+ /**+ * Filter by project (team) IDs. Only honored on the organization-scoped endpoint; ignored on the project-scoped endpoint.+ */+ team_ids?: number[];+ /**+ * Filter by users who performed the activity (user UUIDs).+ */+ users?: string[];+ /**+ * When set, filters rows where the actor was impersonating another user.+ * @nullable+ */+ was_impersonated?: boolean | null;};- export type RoleExternalReferencesLookupRetrieveParams = {+ export type AlertsListParams = {/**- * Integration kind (e.g., github, linear, jira, slack).- * @minLength 1+ * Number of results to return per page.*/- provider: string;+ limit?: number;/**- * Provider organization/workspace/site identifier.- * @minLength 1+ * The initial index from which to return the results.*/- provider_organization_id: string;+ offset?: number;+ };++ export type AlertsRetrieveParams = {/**- * Stable provider role identifier.- * @minLength 1+ * Relative date string for the start of the check history window (e.g. '-24h', '-7d', '-14d'). Returns checks created after this time. Max retention is 14 days.*/- provider_role_id?: string;+ checks_date_from?: string;/**- * Human-friendly provider role identifier.- * @minLength 1+ * Relative date string for the end of the check history window (e.g. '-1h', '-1d'). Defaults to now if not specified.*/- provider_role_slug?: string;+ checks_date_to?: string;+ /**+ * Maximum number of check results to return (default 5, max 500). Applied after date filtering.+ */+ checks_limit?: number;+ /**+ * Number of newest checks to skip (0-based). Use with checks_limit for pagination. Default 0.+ */+ checks_offset?: number;};- export type RolesListParams = {+ export type AnnotationsListParams = {/*** Number of results to return per page.*/@@ -44210,9 +44775,13 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ /**+ * A search term.+ */+ search?: string;};- export type RolesRoleMembershipsListParams = {+ export type ApprovalPoliciesListParams = {/*** Number of results to return per page.*/@@ -44223,8 +44792,7 @@ export namespace Schemas {offset?: number;};- export type ActionsListParams = {- format?: ActionsListFormat;+ export type BatchExportsListParams = {/*** Number of results to return per page.*/@@ -44235,458 +44803,336 @@ export namespace Schemas {offset?: number;};- export type ActionsListFormat = typeof ActionsListFormat[keyof typeof ActionsListFormat];--- export const ActionsListFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type ActionsCreateParams = {- format?: ActionsCreateFormat;+ export type BatchExportsBackfillsListParams = {+ /**+ * The pagination cursor value.+ */+ cursor?: string;+ /**+ * Which field to use when ordering the results.+ */+ ordering?: string;};- export type ActionsCreateFormat = typeof ActionsCreateFormat[keyof typeof ActionsCreateFormat];--- export const ActionsCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type ActionsRetrieveParams = {- format?: ActionsRetrieveFormat;+ export type BatchExportsRunsListParams = {+ /**+ * The pagination cursor value.+ */+ cursor?: string;+ /**+ * Which field to use when ordering the results.+ */+ ordering?: string;};- export type ActionsRetrieveFormat = typeof ActionsRetrieveFormat[keyof typeof ActionsRetrieveFormat];--- export const ActionsRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type ActionsUpdateParams = {- format?: ActionsUpdateFormat;+ export type BatchExportsRunsLogsRetrieveParams = {+ /**+ * Only return entries after this ISO 8601 timestamp.+ */+ after?: string;+ /**+ * Only return entries before this ISO 8601 timestamp.+ */+ before?: string;+ /**+ * Filter logs to a specific execution instance.+ * @minLength 1+ */+ instance_id?: string;+ /**+ * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.+ * @minLength 1+ */+ level?: string;+ /**+ * Maximum number of log entries to return (1-500, default 50).+ * @minimum 1+ * @maximum 500+ */+ limit?: number;+ /**+ * Case-insensitive substring search across log messages.+ * @minLength 1+ */+ search?: string;};- export type ActionsUpdateFormat = typeof ActionsUpdateFormat[keyof typeof ActionsUpdateFormat];--- export const ActionsUpdateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type ActionsPartialUpdateParams = {- format?: ActionsPartialUpdateFormat;+ export type BatchExportsLogsRetrieveParams = {+ /**+ * Only return entries after this ISO 8601 timestamp.+ */+ after?: string;+ /**+ * Only return entries before this ISO 8601 timestamp.+ */+ before?: string;+ /**+ * Filter logs to a specific execution instance.+ * @minLength 1+ */+ instance_id?: string;+ /**+ * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.+ * @minLength 1+ */+ level?: string;+ /**+ * Maximum number of log entries to return (1-500, default 50).+ * @minimum 1+ * @maximum 500+ */+ limit?: number;+ /**+ * Case-insensitive substring search across log messages.+ * @minLength 1+ */+ search?: string;};- export type ActionsPartialUpdateFormat = typeof ActionsPartialUpdateFormat[keyof typeof ActionsPartialUpdateFormat];--- export const ActionsPartialUpdateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type ActionsDestroyParams = {- format?: ActionsDestroyFormat;+ export type BusinessKnowledgeSourcesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type ActionsDestroyFormat = typeof ActionsDestroyFormat[keyof typeof ActionsDestroyFormat];--- export const ActionsDestroyFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type ActionsReferencesListParams = {- format?: ActionsReferencesListFormat;+ export type BusinessKnowledgeSourcesTextRetrieve200 = {+ text?: string;};- export type ActionsReferencesListFormat = typeof ActionsReferencesListFormat[keyof typeof ActionsReferencesListFormat];-+ export type ChangeRequestsListParams = {+ action_key?: string;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ requester?: number;+ resource_id?: string;+ resource_type?: string;+ /**+ * Multiple values may be separated by commas.+ */+ state?: string[];+ };- export const ActionsReferencesListFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type CohortsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };- export type ActionsBulkUpdateTagsCreateParams = {- format?: ActionsBulkUpdateTagsCreateFormat;+ export type CohortsPersonsRetrieveParams = {+ format?: CohortsPersonsRetrieveFormat;+ /**+ * Maximum number of persons to return per page (defaults to 100).+ */+ limit?: number;+ /**+ * Number of persons to skip before starting to return results.+ */+ offset?: number;};- export type ActionsBulkUpdateTagsCreateFormat = typeof ActionsBulkUpdateTagsCreateFormat[keyof typeof ActionsBulkUpdateTagsCreateFormat];+ export type CohortsPersonsRetrieveFormat = typeof CohortsPersonsRetrieveFormat[keyof typeof CohortsPersonsRetrieveFormat];- export const ActionsBulkUpdateTagsCreateFormat = {+ export const CohortsPersonsRetrieveFormat = {Csv: 'csv',Json: 'json',} as const;- export type ActivityLogListParams = {- /**- * Filter by the ID of the affected resource.- * @minLength 1- */- item_id?: string;+ export type ColumnConfigurationsListParams = {/**- * Page number for pagination. When provided, uses page-based pagination ordered by most recent first.- * @minimum 1+ * Number of results to return per page.*/- page?: number;+ limit?: number;/**- * Number of results per page (default: 100, max: 1000). Only used with page-based pagination.- * @minimum 1- * @maximum 1000+ * The initial index from which to return the results.*/- page_size?: number;+ offset?: number;+ };++ export type CommentsListParams = {/**- * Filter by a single activity scope, e.g. "FeatureFlag", "Insight", "Dashboard", "Experiment".+ * When kind=task, restrict to open (incomplete) or completed tasks. Ignored when kind is not 'task'. Defaults to 'any' (no filter).- * `Cohort` - Cohort- * `FeatureFlag` - FeatureFlag- * `Person` - Person- * `Group` - Group- * `Insight` - Insight- * `Plugin` - Plugin- * `PluginConfig` - PluginConfig- * `HogFunction` - HogFunction- * `HogFlow` - HogFlow- * `DataManagement` - DataManagement- * `EventDefinition` - EventDefinition- * `PropertyDefinition` - PropertyDefinition- * `Notebook` - Notebook- * `Endpoint` - Endpoint- * `EndpointVersion` - EndpointVersion- * `Dashboard` - Dashboard- * `Replay` - Replay- * `Experiment` - Experiment- * `ExperimentHoldout` - ExperimentHoldout- * `ExperimentSavedMetric` - ExperimentSavedMetric- * `Survey` - Survey- * `EarlyAccessFeature` - EarlyAccessFeature- * `SessionRecordingPlaylist` - SessionRecordingPlaylist- * `Comment` - Comment- * `Team` - Team- * `Project` - Project- * `ErrorTrackingIssue` - ErrorTrackingIssue- * `DataWarehouseSavedQuery` - DataWarehouseSavedQuery- * `LegalDocument` - LegalDocument- * `Organization` - Organization- * `OrganizationDomain` - OrganizationDomain- * `OrganizationMembership` - OrganizationMembership- * `Role` - Role- * `UserGroup` - UserGroup- * `BatchExport` - BatchExport- * `BatchImport` - BatchImport- * `Integration` - Integration- * `Annotation` - Annotation- * `Tag` - Tag- * `TaggedItem` - TaggedItem- * `Subscription` - Subscription- * `PersonalAPIKey` - PersonalAPIKey- * `ProjectSecretAPIKey` - ProjectSecretAPIKey- * `User` - User- * `Action` - Action- * `AlertConfiguration` - AlertConfiguration- * `Threshold` - Threshold- * `AlertSubscription` - AlertSubscription- * `ExternalDataSource` - ExternalDataSource- * `ExternalDataSchema` - ExternalDataSchema- * `Evaluation` - Evaluation- * `LLMTrace` - LLMTrace- * `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset- * `CustomerProfileConfig` - CustomerProfileConfig- * `Log` - Log- * `LogsAlertConfiguration` - LogsAlertConfiguration- * `LogsExclusionRule` - LogsExclusionRule- * `ProductTour` - ProductTour- * `Ticket` - Ticket- * `InstanceSetting` - InstanceSetting+ * `any` - any+ * `open` - open+ * `completed` - completed* @minLength 1*/- scope?: ActivityLogListScope;+ completed?: CommentsListCompleted;/**- * Filter by multiple activity scopes, comma-separated. Values must be valid ActivityScope enum values. E.g. "FeatureFlag,Insight".+ * The pagination cursor value.*/- scopes?: ActivityLogListScopesItem[];+ cursor?: string;/**- * Filter by user UUID who performed the action.+ * Filter by the ID of the resource being commented on.+ * @minLength 1*/- user?: string;- };-- export type ActivityLogListScope = typeof ActivityLogListScope[keyof typeof ActivityLogListScope];--- export const ActivityLogListScope = {- Cohort: 'Cohort',- FeatureFlag: 'FeatureFlag',- Person: 'Person',- Group: 'Group',- Insight: 'Insight',- Plugin: 'Plugin',- PluginConfig: 'PluginConfig',- HogFunction: 'HogFunction',- HogFlow: 'HogFlow',- DataManagement: 'DataManagement',- EventDefinition: 'EventDefinition',- PropertyDefinition: 'PropertyDefinition',- Notebook: 'Notebook',- Endpoint: 'Endpoint',- EndpointVersion: 'EndpointVersion',- Dashboard: 'Dashboard',- Replay: 'Replay',- Experiment: 'Experiment',- ExperimentHoldout: 'ExperimentHoldout',- ExperimentSavedMetric: 'ExperimentSavedMetric',- Survey: 'Survey',- EarlyAccessFeature: 'EarlyAccessFeature',- SessionRecordingPlaylist: 'SessionRecordingPlaylist',- Comment: 'Comment',- Team: 'Team',- Project: 'Project',- ErrorTrackingIssue: 'ErrorTrackingIssue',- DataWarehouseSavedQuery: 'DataWarehouseSavedQuery',- LegalDocument: 'LegalDocument',- Organization: 'Organization',- OrganizationDomain: 'OrganizationDomain',- OrganizationMembership: 'OrganizationMembership',- Role: 'Role',- UserGroup: 'UserGroup',- BatchExport: 'BatchExport',- BatchImport: 'BatchImport',- Integration: 'Integration',- Annotation: 'Annotation',- Tag: 'Tag',- TaggedItem: 'TaggedItem',- Subscription: 'Subscription',- PersonalAPIKey: 'PersonalAPIKey',- ProjectSecretAPIKey: 'ProjectSecretAPIKey',- User: 'User',- Action: 'Action',- AlertConfiguration: 'AlertConfiguration',- Threshold: 'Threshold',- AlertSubscription: 'AlertSubscription',- ExternalDataSource: 'ExternalDataSource',- ExternalDataSchema: 'ExternalDataSchema',- Evaluation: 'Evaluation',- LLMTrace: 'LLMTrace',- WebAnalyticsFilterPreset: 'WebAnalyticsFilterPreset',- CustomerProfileConfig: 'CustomerProfileConfig',- Log: 'Log',- LogsAlertConfiguration: 'LogsAlertConfiguration',- LogsExclusionRule: 'LogsExclusionRule',- ProductTour: 'ProductTour',- Ticket: 'Ticket',- InstanceSetting: 'InstanceSetting',- } as const;-+ item_id?: string;/**- * * `Cohort` - Cohort- * `FeatureFlag` - FeatureFlag- * `Person` - Person- * `Group` - Group- * `Insight` - Insight- * `Plugin` - Plugin- * `PluginConfig` - PluginConfig- * `HogFunction` - HogFunction- * `HogFlow` - HogFlow- * `DataManagement` - DataManagement- * `EventDefinition` - EventDefinition- * `PropertyDefinition` - PropertyDefinition- * `Notebook` - Notebook- * `Endpoint` - Endpoint- * `EndpointVersion` - EndpointVersion- * `Dashboard` - Dashboard- * `Replay` - Replay- * `Experiment` - Experiment- * `ExperimentHoldout` - ExperimentHoldout- * `ExperimentSavedMetric` - ExperimentSavedMetric- * `Survey` - Survey- * `EarlyAccessFeature` - EarlyAccessFeature- * `SessionRecordingPlaylist` - SessionRecordingPlaylist- * `Comment` - Comment- * `Team` - Team- * `Project` - Project- * `ErrorTrackingIssue` - ErrorTrackingIssue- * `DataWarehouseSavedQuery` - DataWarehouseSavedQuery- * `LegalDocument` - LegalDocument- * `Organization` - Organization- * `OrganizationDomain` - OrganizationDomain- * `OrganizationMembership` - OrganizationMembership- * `Role` - Role- * `UserGroup` - UserGroup- * `BatchExport` - BatchExport- * `BatchImport` - BatchImport- * `Integration` - Integration- * `Annotation` - Annotation- * `Tag` - Tag- * `TaggedItem` - TaggedItem- * `Subscription` - Subscription- * `PersonalAPIKey` - PersonalAPIKey- * `ProjectSecretAPIKey` - ProjectSecretAPIKey- * `User` - User- * `Action` - Action- * `AlertConfiguration` - AlertConfiguration- * `Threshold` - Threshold- * `AlertSubscription` - AlertSubscription- * `ExternalDataSource` - ExternalDataSource- * `ExternalDataSchema` - ExternalDataSchema- * `Evaluation` - Evaluation- * `LLMTrace` - LLMTrace- * `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset- * `CustomerProfileConfig` - CustomerProfileConfig- * `Log` - Log- * `LogsAlertConfiguration` - LogsAlertConfiguration- * `LogsExclusionRule` - LogsExclusionRule- * `ProductTour` - ProductTour- * `Ticket` - Ticket- * `InstanceSetting` - InstanceSetting+ * Filter by comment kind. 'task' returns only items intentionally created as actionable. 'comment' excludes tasks. Defaults to 'any' (no filter).++ * `any` - any+ * `comment` - comment+ * `task` - task+ * @minLength 1*/- export type ActivityLogListScopesItem = typeof ActivityLogListScopesItem[keyof typeof ActivityLogListScopesItem];+ kind?: CommentsListKind;+ /**+ * Filter by resource type (e.g. Dashboard, FeatureFlag, Insight, Replay).+ * @minLength 1+ */+ scope?: string;+ /**+ * Full-text search within comment content.+ * @minLength 1+ */+ search?: string;+ /**+ * Filter replies to a specific parent comment.+ * @minLength 1+ */+ source_comment?: string;+ };+ export type CommentsListCompleted = typeof CommentsListCompleted[keyof typeof CommentsListCompleted];- export const ActivityLogListScopesItem = {- Cohort: 'Cohort',- FeatureFlag: 'FeatureFlag',- Person: 'Person',- Group: 'Group',- Insight: 'Insight',- Plugin: 'Plugin',- PluginConfig: 'PluginConfig',- HogFunction: 'HogFunction',- HogFlow: 'HogFlow',- DataManagement: 'DataManagement',- EventDefinition: 'EventDefinition',- PropertyDefinition: 'PropertyDefinition',- Notebook: 'Notebook',- Endpoint: 'Endpoint',- EndpointVersion: 'EndpointVersion',- Dashboard: 'Dashboard',- Replay: 'Replay',- Experiment: 'Experiment',- ExperimentHoldout: 'ExperimentHoldout',- ExperimentSavedMetric: 'ExperimentSavedMetric',- Survey: 'Survey',- EarlyAccessFeature: 'EarlyAccessFeature',- SessionRecordingPlaylist: 'SessionRecordingPlaylist',- Comment: 'Comment',- Team: 'Team',- Project: 'Project',- ErrorTrackingIssue: 'ErrorTrackingIssue',- DataWarehouseSavedQuery: 'DataWarehouseSavedQuery',- LegalDocument: 'LegalDocument',- Organization: 'Organization',- OrganizationDomain: 'OrganizationDomain',- OrganizationMembership: 'OrganizationMembership',- Role: 'Role',- UserGroup: 'UserGroup',- BatchExport: 'BatchExport',- BatchImport: 'BatchImport',- Integration: 'Integration',- Annotation: 'Annotation',- Tag: 'Tag',- TaggedItem: 'TaggedItem',- Subscription: 'Subscription',- PersonalAPIKey: 'PersonalAPIKey',- ProjectSecretAPIKey: 'ProjectSecretAPIKey',- User: 'User',- Action: 'Action',- AlertConfiguration: 'AlertConfiguration',- Threshold: 'Threshold',- AlertSubscription: 'AlertSubscription',- ExternalDataSource: 'ExternalDataSource',- ExternalDataSchema: 'ExternalDataSchema',- Evaluation: 'Evaluation',- LLMTrace: 'LLMTrace',- WebAnalyticsFilterPreset: 'WebAnalyticsFilterPreset',- CustomerProfileConfig: 'CustomerProfileConfig',- Log: 'Log',- LogsAlertConfiguration: 'LogsAlertConfiguration',- LogsExclusionRule: 'LogsExclusionRule',- ProductTour: 'ProductTour',- Ticket: 'Ticket',- InstanceSetting: 'InstanceSetting',++ export const CommentsListCompleted = {+ Any: 'any',+ Open: 'open',+ Completed: 'completed',} as const;- export type AdvancedActivityLogsListParams = {+ export type CommentsListKind = typeof CommentsListKind[keyof typeof CommentsListKind];+++ export const CommentsListKind = {+ Any: 'any',+ Comment: 'comment',+ Task: 'task',+ } as const;++ export type ConversationsTicketsListParams = {/**- * Filter by activity types (e.g. "created", "updated", "deleted").+ * Filter by assignee. Use `unassigned` for tickets with no assignee, `user:<user_id>` for a specific user, or `role:<role_uuid>` for a role.*/- activities?: string[];+ assignee?: string;/**- * Filter by API clients that generated the activity (from x-posthog-client header).+ * Filter by the channel sub-type (e.g. `widget_embedded`, `slack_bot_mention`).*/- clients?: string[];+ channel_detail?: ConversationsTicketsListChannelDetail;/**- * JSON-encoded map of `detail` field paths to {operation, value} filters. Allowed operations: exact, contains, in.+ * Filter by the channel the ticket originated from.*/- detail_filters?: string;+ channel_source?: ConversationsTicketsListChannelSource;/**- * Upper bound on `created_at` (inclusive), ISO-8601.+ * Only include tickets updated on or after this date. Accepts absolute dates (`2026-01-01`) or relative ones (`-7d`, `-1mStart`). Pass `all` to disable the filter.*/- end_date?: string;+ date_from?: string;/**- * Reserved for future HogQL-based filtering.+ * Only include tickets updated on or before this date. Same format as `date_from`.*/- hogql_filter?: string;+ date_to?: string;/**- * Filter by client IP addresses. Accepts exact IPv4/IPv6 values or wildcard patterns using `*` (e.g. `203.0.113.*`). Multiple entries are OR-combined.+ * Comma-separated list of person `distinct_id`s to filter by (max 100).*/- ip_addresses?: string[];+ distinct_ids?: string;/**- * When set, filters rows authored by the system (no user).- * @nullable+ * Number of results to return per page.*/- is_system?: boolean | null;+ limit?: number;/**- * Filter by the `item_id` of the affected resource(s).+ * The initial index from which to return the results.*/- item_ids?: string[];+ offset?: number;/**- * Page number for pagination. When provided, uses page-based pagination ordered by most recent first.- * @minimum 1+ * Sort order. Prefix with `-` for descending. Defaults to `-updated_at`.*/- page?: number;+ order_by?: string;/**- * Number of results per page (default: 100, max: 1000). Only used with page-based pagination.- * @minimum 1- * @maximum 1000+ * Filter by priority. Accepts a single value or a comma-separated list (e.g. `medium,high`). Valid values: `low`, `medium`, `high`.*/- page_size?: number;+ priority?: string;/**- * Filter by activity scopes (e.g. "FeatureFlag", "Insight").+ * Free-text search. A numeric value matches a ticket number exactly; otherwise matches against the customer's name or email (case-insensitive, partial match).*/- scopes?: string[];+ search?: string;/**- * Free-text search across the `detail` JSON column.+ * Filter by SLA state. `breached` = past `sla_due_at`, `at-risk` = due within the next hour, `on-track` = more than an hour remaining.*/- search_text?: string;+ sla?: ConversationsTicketsListSla;/**- * Lower bound on `created_at` (inclusive), ISO-8601.+ * Filter by status. Accepts a single value or a comma-separated list (e.g. `new,open,pending`). Valid values: `new`, `open`, `pending`, `on_hold`, `resolved`.*/- start_date?: string;+ status?: string;/**- * Filter by project (team) IDs. Only honored on the organization-scoped endpoint; ignored on the project-scoped endpoint.+ * JSON-encoded array of tag names to filter by, e.g. `["billing","urgent"]`.*/- team_ids?: number[];+ tags?: string;+ };++ export type ConversationsTicketsListChannelDetail = typeof ConversationsTicketsListChannelDetail[keyof typeof ConversationsTicketsListChannelDetail];+++ export const ConversationsTicketsListChannelDetail = {+ GithubIssue: 'github_issue',+ SlackBotMention: 'slack_bot_mention',+ SlackChannelMessage: 'slack_channel_message',+ SlackEmojiReaction: 'slack_emoji_reaction',+ TeamsBotMention: 'teams_bot_mention',+ TeamsChannelMessage: 'teams_channel_message',+ WidgetApi: 'widget_api',+ WidgetEmbedded: 'widget_embedded',+ } as const;++ export type ConversationsTicketsListChannelSource = typeof ConversationsTicketsListChannelSource[keyof typeof ConversationsTicketsListChannelSource];+++ export const ConversationsTicketsListChannelSource = {+ Email: 'email',+ Github: 'github',+ Slack: 'slack',+ Teams: 'teams',+ Widget: 'widget',+ } as const;++ export type ConversationsTicketsListSla = typeof ConversationsTicketsListSla[keyof typeof ConversationsTicketsListSla];+++ export const ConversationsTicketsListSla = {+ AtRisk: 'at-risk',+ Breached: 'breached',+ OnTrack: 'on-track',+ } as const;++ export type ConversationsViewsListParams = {/**- * Filter by users who performed the activity (user UUIDs).+ * Number of results to return per page.*/- users?: string[];+ limit?: number;/**- * When set, filters rows where the actor was impersonating another user.- * @nullable+ * The initial index from which to return the results.*/- was_impersonated?: boolean | null;+ offset?: number;};- export type AlertsListParams = {+ export type CoreEventsListParams = {/*** Number of results to return per page.*/@@ -44697,26 +45143,62 @@ export namespace Schemas {offset?: number;};- export type AlertsRetrieveParams = {+ export type CustomerJourneysListParams = {/**- * Relative date string for the start of the check history window (e.g. '-24h', '-7d', '-14d'). Returns checks created after this time. Max retention is 14 days.+ * Number of results to return per page.*/- checks_date_from?: string;+ limit?: number;/**- * Relative date string for the end of the check history window (e.g. '-1h', '-1d'). Defaults to now if not specified.+ * The initial index from which to return the results.*/- checks_date_to?: string;+ offset?: number;+ };++ export type CustomerProfileConfigsListParams = {/**- * Maximum number of check results to return (default 5, max 500). Applied after date filtering.+ * Number of results to return per page.*/- checks_limit?: number;+ limit?: number;/**- * Number of newest checks to skip (0-based). Use with checks_limit for pagination. Default 0.+ * The initial index from which to return the results.*/- checks_offset?: number;+ offset?: number;+ };++ export type DashboardTemplatesListParams = {+ /**+ * Omit for all templates. When set, filter by featured flag; parsed with str_to_bool (same as other API query booleans).+ */+ is_featured?: boolean;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Optional. When not using `search`, results are sorted with featured templates first (`is_featured=true`), then by `template_name` (case-insensitive A–Z; `-template_name` for Z–A) or by `created_at` (`-created_at` for newest first). When `search` is set, order is featured first, then relevance rank, then case-insensitive name for ties.+ */+ ordering?: string;+ /**+ * Optional. `global`: official templates only. `team`: this project's saved templates only (`scope=team` rows for the current project). `feature_flag`: feature-flag dashboard templates only. Omit for both official and this project's templates (default dashboard template picker behavior).+ */+ scope?: DashboardTemplatesListScope;};- export type AnnotationsListParams = {+ export type DashboardTemplatesListScope = typeof DashboardTemplatesListScope[keyof typeof DashboardTemplatesListScope];+++ export const DashboardTemplatesListScope = {+ FeatureFlag: 'feature_flag',+ Global: 'global',+ Team: 'team',+ } as const;++ export type DashboardsListParams = {+ format?: DashboardsListFormat;/*** Number of results to return per page.*/@@ -44726,109 +45208,285 @@ export namespace Schemas {*/offset?: number;/**- * A search term.+ * Optional. Fuzzy match against dashboard `name` and `description` using Postgres trigram word similarity (handles typos, transpositions, and prefix-as-you-type). `name` matches rank above `description` matches. Results are ordered by relevance, then pinned status, then name. When omitted, dashboards are ordered by pinned status then alphabetical name. Capped at 200 characters; longer queries return a 400 error.*/search?: string;};- export type BatchExportsListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;+ export type DashboardsListFormat = typeof DashboardsListFormat[keyof typeof DashboardsListFormat];+++ export const DashboardsListFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsCreateParams = {+ format?: DashboardsCreateFormat;};- export type BatchExportsBackfillsListParams = {+ export type DashboardsCreateFormat = typeof DashboardsCreateFormat[keyof typeof DashboardsCreateFormat];+++ export const DashboardsCreateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsRetrieveParams = {/**- * The pagination cursor value.+ * Object (or pre-encoded JSON string) to override dashboard filters for this request only (not persisted). Top-level keys replace; nested values are not deep-merged — pass the complete value for any key you override. Accepts the same keys as the dashboard filters schema (e.g., `date_from`, `date_to`, `properties`). Ignored when accessed via a sharing token.*/- cursor?: string;+ filters_override?: string;+ format?: DashboardsRetrieveFormat;/**- * Which field to use when ordering the results.+ * Object (or pre-encoded JSON string) to override dashboard variables for this request only (not persisted). Format: {"<variable_id>": {"code_name": "<code_name>", "variableId": "<variable_id>", "value": <new_value>}}. Each entry must include `code_name` — partial entries are silently dropped. The simplest workflow is to call `dashboard-get` first, copy the matching entry from the response, and mutate `value`. Top-level keys replace; nested values are not deep-merged. Ignored when accessed via a sharing token.*/- ordering?: string;+ variables_override?: string;};- export type BatchExportsRunsListParams = {- /**- * The pagination cursor value.- */- cursor?: string;- /**- * Which field to use when ordering the results.- */- ordering?: string;+ export type DashboardsRetrieveFormat = typeof DashboardsRetrieveFormat[keyof typeof DashboardsRetrieveFormat];+++ export const DashboardsRetrieveFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsUpdateParams = {+ format?: DashboardsUpdateFormat;};- export type BatchExportsRunsLogsRetrieveParams = {+ export type DashboardsUpdateFormat = typeof DashboardsUpdateFormat[keyof typeof DashboardsUpdateFormat];+++ export const DashboardsUpdateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsPartialUpdateParams = {+ format?: DashboardsPartialUpdateFormat;+ };++ export type DashboardsPartialUpdateFormat = typeof DashboardsPartialUpdateFormat[keyof typeof DashboardsPartialUpdateFormat];+++ export const DashboardsPartialUpdateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsDestroyParams = {+ format?: DashboardsDestroyFormat;+ };++ export type DashboardsDestroyFormat = typeof DashboardsDestroyFormat[keyof typeof DashboardsDestroyFormat];+++ export const DashboardsDestroyFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsAnalyzeRefreshResultCreateParams = {+ format?: DashboardsAnalyzeRefreshResultCreateFormat;+ };++ export type DashboardsAnalyzeRefreshResultCreateFormat = typeof DashboardsAnalyzeRefreshResultCreateFormat[keyof typeof DashboardsAnalyzeRefreshResultCreateFormat];+++ export const DashboardsAnalyzeRefreshResultCreateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsCopyTileCreateParams = {+ format?: DashboardsCopyTileCreateFormat;+ };++ export type DashboardsCopyTileCreateFormat = typeof DashboardsCopyTileCreateFormat[keyof typeof DashboardsCopyTileCreateFormat];+++ export const DashboardsCopyTileCreateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsCreateTextTileCreateParams = {+ format?: DashboardsCreateTextTileCreateFormat;+ };++ export type DashboardsCreateTextTileCreateFormat = typeof DashboardsCreateTextTileCreateFormat[keyof typeof DashboardsCreateTextTileCreateFormat];+++ export const DashboardsCreateTextTileCreateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsMoveTilePartialUpdateParams = {+ format?: DashboardsMoveTilePartialUpdateFormat;+ };++ export type DashboardsMoveTilePartialUpdateFormat = typeof DashboardsMoveTilePartialUpdateFormat[keyof typeof DashboardsMoveTilePartialUpdateFormat];+++ export const DashboardsMoveTilePartialUpdateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsReorderTilesCreateParams = {+ format?: DashboardsReorderTilesCreateFormat;+ };++ export type DashboardsReorderTilesCreateFormat = typeof DashboardsReorderTilesCreateFormat[keyof typeof DashboardsReorderTilesCreateFormat];+++ export const DashboardsReorderTilesCreateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsRunInsightsRetrieveParams = {/**- * Only return entries after this ISO 8601 timestamp.+ * Object (or pre-encoded JSON string) to override dashboard filters for this request only (not persisted). Top-level keys replace; nested values are not deep-merged — pass the complete value for any key you override. Accepts the same keys as the dashboard filters schema (e.g., `date_from`, `date_to`, `properties`). Ignored when accessed via a sharing token.*/- after?: string;+ filters_override?: string;+ format?: DashboardsRunInsightsRetrieveFormat;/**- * Only return entries before this ISO 8601 timestamp.+ * 'optimized' (default) returns LLM-friendly formatted text per insight. 'json' returns the raw query result objects.*/- before?: string;+ output_format?: DashboardsRunInsightsRetrieveOutputFormat;/**- * Filter logs to a specific execution instance.- * @minLength 1+ * Cache behavior. 'force_cache' (default) serves from cache even if stale. 'blocking' uses cache if fresh, otherwise recalculates. 'force_blocking' always recalculates.*/- instance_id?: string;+ refresh?: DashboardsRunInsightsRetrieveRefresh;/**- * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.- * @minLength 1+ * Object (or pre-encoded JSON string) to override dashboard variables for this request only (not persisted). Format: {"<variable_id>": {"code_name": "<code_name>", "variableId": "<variable_id>", "value": <new_value>}}. Each entry must include `code_name` — partial entries are silently dropped. The simplest workflow is to call `dashboard-get` first, copy the matching entry from the response, and mutate `value`. Top-level keys replace; nested values are not deep-merged. Ignored when accessed via a sharing token.*/- level?: string;+ variables_override?: string;+ };++ export type DashboardsRunInsightsRetrieveFormat = typeof DashboardsRunInsightsRetrieveFormat[keyof typeof DashboardsRunInsightsRetrieveFormat];+++ export const DashboardsRunInsightsRetrieveFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsRunInsightsRetrieveOutputFormat = typeof DashboardsRunInsightsRetrieveOutputFormat[keyof typeof DashboardsRunInsightsRetrieveOutputFormat];+++ export const DashboardsRunInsightsRetrieveOutputFormat = {+ Json: 'json',+ Optimized: 'optimized',+ } as const;++ export type DashboardsRunInsightsRetrieveRefresh = typeof DashboardsRunInsightsRetrieveRefresh[keyof typeof DashboardsRunInsightsRetrieveRefresh];+++ export const DashboardsRunInsightsRetrieveRefresh = {+ Blocking: 'blocking',+ ForceBlocking: 'force_blocking',+ ForceCache: 'force_cache',+ } as const;++ export type DashboardsSnapshotCreateParams = {+ format?: DashboardsSnapshotCreateFormat;+ };++ export type DashboardsSnapshotCreateFormat = typeof DashboardsSnapshotCreateFormat[keyof typeof DashboardsSnapshotCreateFormat];+++ export const DashboardsSnapshotCreateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsStreamTilesRetrieveParams = {/**- * Maximum number of log entries to return (1-500, default 50).- * @minimum 1- * @maximum 500+ * Object (or pre-encoded JSON string) to override dashboard filters for this request only (not persisted). Top-level keys replace; nested values are not deep-merged — pass the complete value for any key you override. Accepts the same keys as the dashboard filters schema (e.g., `date_from`, `date_to`, `properties`). Ignored when accessed via a sharing token.*/- limit?: number;+ filters_override?: string;+ format?: DashboardsStreamTilesRetrieveFormat;/**- * Case-insensitive substring search across log messages.- * @minLength 1+ * Layout size for tile positioning. 'sm' (default) for standard, 'xs' for mobile. The snake_case alias `layout_size` is also accepted for backward compatibility.*/- search?: string;+ layoutSize?: DashboardsStreamTilesRetrieveLayoutSize;+ /**+ * Object (or pre-encoded JSON string) to override dashboard variables for this request only (not persisted). Format: {"<variable_id>": {"code_name": "<code_name>", "variableId": "<variable_id>", "value": <new_value>}}. Each entry must include `code_name` — partial entries are silently dropped. The simplest workflow is to call `dashboard-get` first, copy the matching entry from the response, and mutate `value`. Top-level keys replace; nested values are not deep-merged. Ignored when accessed via a sharing token.+ */+ variables_override?: string;+ };++ export type DashboardsStreamTilesRetrieveFormat = typeof DashboardsStreamTilesRetrieveFormat[keyof typeof DashboardsStreamTilesRetrieveFormat];+++ export const DashboardsStreamTilesRetrieveFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsStreamTilesRetrieveLayoutSize = typeof DashboardsStreamTilesRetrieveLayoutSize[keyof typeof DashboardsStreamTilesRetrieveLayoutSize];+++ export const DashboardsStreamTilesRetrieveLayoutSize = {+ Sm: 'sm',+ Xs: 'xs',+ } as const;++ export type DashboardsUpdateTextTileCreateParams = {+ format?: DashboardsUpdateTextTileCreateFormat;+ };++ export type DashboardsUpdateTextTileCreateFormat = typeof DashboardsUpdateTextTileCreateFormat[keyof typeof DashboardsUpdateTextTileCreateFormat];+++ export const DashboardsUpdateTextTileCreateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsBulkUpdateTagsCreateParams = {+ format?: DashboardsBulkUpdateTagsCreateFormat;};- export type BatchExportsLogsRetrieveParams = {- /**- * Only return entries after this ISO 8601 timestamp.- */- after?: string;- /**- * Only return entries before this ISO 8601 timestamp.- */- before?: string;- /**- * Filter logs to a specific execution instance.- * @minLength 1- */- instance_id?: string;- /**- * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.- * @minLength 1- */- level?: string;- /**- * Maximum number of log entries to return (1-500, default 50).- * @minimum 1- * @maximum 500- */- limit?: number;- /**- * Case-insensitive substring search across log messages.- * @minLength 1- */- search?: string;+ export type DashboardsBulkUpdateTagsCreateFormat = typeof DashboardsBulkUpdateTagsCreateFormat[keyof typeof DashboardsBulkUpdateTagsCreateFormat];+++ export const DashboardsBulkUpdateTagsCreateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsCreateFromTemplateJsonCreateParams = {+ format?: DashboardsCreateFromTemplateJsonCreateFormat;};- export type BusinessKnowledgeSourcesListParams = {+ export type DashboardsCreateFromTemplateJsonCreateFormat = typeof DashboardsCreateFromTemplateJsonCreateFormat[keyof typeof DashboardsCreateFromTemplateJsonCreateFormat];+++ export const DashboardsCreateFromTemplateJsonCreateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DashboardsCreateUnlistedDashboardCreateParams = {+ format?: DashboardsCreateUnlistedDashboardCreateFormat;+ };++ export type DashboardsCreateUnlistedDashboardCreateFormat = typeof DashboardsCreateUnlistedDashboardCreateFormat[keyof typeof DashboardsCreateUnlistedDashboardCreateFormat];+++ export const DashboardsCreateUnlistedDashboardCreateFormat = {+ Json: 'json',+ Txt: 'txt',+ } as const;++ export type DataColorThemesListParams = {/*** Number of results to return per page.*/@@ -44839,11 +45497,7 @@ export namespace Schemas {offset?: number;};- export type BusinessKnowledgeSourcesTextRetrieve200 = {- text?: string;- };-- export type CohortsListParams = {+ export type DataModelingDagsListParams = {/*** Number of results to return per page.*/@@ -44854,114 +45508,68 @@ export namespace Schemas {offset?: number;};- export type CohortsPersonsRetrieveParams = {- format?: CohortsPersonsRetrieveFormat;+ export type DataModelingEdgesListParams = {/**- * Maximum number of persons to return per page (defaults to 100).+ * A page number within the paginated result set.*/- limit?: number;+ page?: number;/**- * Number of persons to skip before starting to return results.+ * A search term.*/- offset?: number;+ search?: string;};- export type CohortsPersonsRetrieveFormat = typeof CohortsPersonsRetrieveFormat[keyof typeof CohortsPersonsRetrieveFormat];--- export const CohortsPersonsRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type CommentsListParams = {- /**- * When kind=task, restrict to open (incomplete) or completed tasks. Ignored when kind is not 'task'. Defaults to 'any' (no filter).-- * `any` - any- * `open` - open- * `completed` - completed- * @minLength 1- */- completed?: CommentsListCompleted;+ export type DataModelingJobsListParams = {/*** The pagination cursor value.*/cursor?: string;/**- * Filter by the ID of the resource being commented on.- * @minLength 1+ * Number of results to return per page.*/- item_id?: string;- /**- * Filter by comment kind. 'task' returns only items intentionally created as actionable. 'comment' excludes tasks. Defaults to 'any' (no filter).+ limit?: number;+ saved_query_id?: string;+ };- * `any` - any- * `comment` - comment- * `task` - task- * @minLength 1- */- kind?: CommentsListKind;+ export type DataModelingNodesListParams = {/**- * Filter by resource type (e.g. Dashboard, FeatureFlag, Insight, Replay).- * @minLength 1+ * A page number within the paginated result set.*/- scope?: string;+ page?: number;/**- * Full-text search within comment content.- * @minLength 1+ * A search term.*/search?: string;+ };++ export type DataWarehouseCheckDatabaseNameRetrieveParams = {/**- * Filter replies to a specific parent comment.+ * Database name to check* @minLength 1*/- source_comment?: string;+ name: string;};- export type CommentsListCompleted = typeof CommentsListCompleted[keyof typeof CommentsListCompleted];--- export const CommentsListCompleted = {- Any: 'any',- Open: 'open',- Completed: 'completed',- } as const;-- export type CommentsListKind = typeof CommentsListKind[keyof typeof CommentsListKind];--- export const CommentsListKind = {- Any: 'any',- Comment: 'comment',- Task: 'task',- } as const;-- export type ConversationsTicketsListParams = {- /**- * Filter by assignee. Use `unassigned` for tickets with no assignee, `user:<user_id>` for a specific user, or `role:<role_uuid>` for a role.- */- assignee?: string;- /**- * Filter by the channel sub-type (e.g. `widget_embedded`, `slack_bot_mention`).- */- channel_detail?: ConversationsTicketsListChannelDetail;+ export type DatasetItemsListParams = {/**- * Filter by the channel the ticket originated from.+ * Filter by dataset ID*/- channel_source?: ConversationsTicketsListChannelSource;+ dataset?: string;/**- * Only include tickets updated on or after this date. Accepts absolute dates (`2026-01-01`) or relative ones (`-7d`, `-1mStart`). Pass `all` to disable the filter.+ * Number of results to return per page.*/- date_from?: string;+ limit?: number;/**- * Only include tickets updated on or before this date. Same format as `date_from`.+ * The initial index from which to return the results.*/- date_to?: string;+ offset?: number;+ };++ export type DatasetsListParams = {/**- * Comma-separated list of person `distinct_id`s to filter by (max 100).+ * Multiple values may be separated by commas.*/- distinct_ids?: string;+ id__in?: string[];/*** Number of results to return per page.*/@@ -44971,70 +45579,40 @@ export namespace Schemas {*/offset?: number;/**- * Sort order. Prefix with `-` for descending. Defaults to `-updated_at`.+ * Ordering++ * `created_at` - Created At+ * `-created_at` - Created At (descending)+ * `updated_at` - Updated At+ * `-updated_at` - Updated At (descending)*/- order_by?: string;+ order_by?: string[];/**- * Filter by priority. Accepts a single value or a comma-separated list (e.g. `medium,high`). Valid values: `low`, `medium`, `high`.+ * Search in name, description, or metadata*/- priority?: string;+ search?: string;+ };++ export type DeploymentProjectsListParams = {/**- * Free-text search. A numeric value matches a ticket number exactly; otherwise matches against the customer's name or email (case-insensitive, partial match).+ * Number of results to return per page.*/- search?: string;+ limit?: number;/**- * Filter by SLA state. `breached` = past `sla_due_at`, `at-risk` = due within the next hour, `on-track` = more than an hour remaining.+ * The initial index from which to return the results.*/- sla?: ConversationsTicketsListSla;+ offset?: number;/**- * Filter by status. Accepts a single value or a comma-separated list (e.g. `new,open,pending`). Valid values: `new`, `open`, `pending`, `on_hold`, `resolved`.+ * Which field to use when ordering the results.*/- status?: string;+ ordering?: string;/**- * JSON-encoded array of tag names to filter by, e.g. `["billing","urgent"]`.+ * A search term.*/- tags?: string;+ search?: string;};- export type ConversationsTicketsListChannelDetail = typeof ConversationsTicketsListChannelDetail[keyof typeof ConversationsTicketsListChannelDetail];--- export const ConversationsTicketsListChannelDetail = {- GithubIssue: 'github_issue',- SlackBotMention: 'slack_bot_mention',- SlackChannelMessage: 'slack_channel_message',- SlackEmojiReaction: 'slack_emoji_reaction',- TeamsBotMention: 'teams_bot_mention',- TeamsChannelMessage: 'teams_channel_message',- WidgetApi: 'widget_api',- WidgetEmbedded: 'widget_embedded',- } as const;-- export type ConversationsTicketsListChannelSource = typeof ConversationsTicketsListChannelSource[keyof typeof ConversationsTicketsListChannelSource];--- export const ConversationsTicketsListChannelSource = {- Email: 'email',- Github: 'github',- Slack: 'slack',- Teams: 'teams',- Widget: 'widget',- } as const;-- export type ConversationsTicketsListSla = typeof ConversationsTicketsListSla[keyof typeof ConversationsTicketsListSla];--- export const ConversationsTicketsListSla = {- AtRisk: 'at-risk',- Breached: 'breached',- OnTrack: 'on-track',- } as const;-- export type DashboardTemplatesListParams = {- /**- * Omit for all templates. When set, filter by featured flag; parsed with str_to_bool (same as other API query booleans).- */- is_featured?: boolean;+ export type DeploymentProjectsDeploymentsListParams = {/*** Number of results to return per page.*/@@ -45044,26 +45622,16 @@ export namespace Schemas {*/offset?: number;/**- * Optional. When not using `search`, results are sorted with featured templates first (`is_featured=true`), then by `template_name` (case-insensitive A–Z; `-template_name` for Z–A) or by `created_at` (`-created_at` for newest first). When `search` is set, order is featured first, then relevance rank, then case-insensitive name for ties.+ * Which field to use when ordering the results.*/ordering?: string;/**- * Optional. `global`: official templates only. `team`: this project's saved templates only (`scope=team` rows for the current project). `feature_flag`: feature-flag dashboard templates only. Omit for both official and this project's templates (default dashboard template picker behavior).+ * A search term.*/- scope?: DashboardTemplatesListScope;+ search?: string;};- export type DashboardTemplatesListScope = typeof DashboardTemplatesListScope[keyof typeof DashboardTemplatesListScope];--- export const DashboardTemplatesListScope = {- FeatureFlag: 'feature_flag',- Global: 'global',- Team: 'team',- } as const;-- export type DashboardsListParams = {- format?: DashboardsListFormat;+ export type DeploymentProjectsDeploymentsEventsListParams = {/*** Number of results to return per page.*/@@ -45073,285 +45641,452 @@ export namespace Schemas {*/offset?: number;/**- * Optional. Fuzzy match against dashboard `name` and `description` using Postgres trigram word similarity (handles typos, transpositions, and prefix-as-you-type). `name` matches rank above `description` matches. Results are ordered by relevance, then pinned status, then name. When omitted, dashboards are ordered by pinned status then alphabetical name. Capped at 200 characters; longer queries return a 400 error.+ * Which field to use when ordering the results.+ */+ ordering?: string;+ /**+ * A search term.*/search?: string;};- export type DashboardsListFormat = typeof DashboardsListFormat[keyof typeof DashboardsListFormat];--- export const DashboardsListFormat = {- Json: 'json',- Txt: 'txt',- } as const;-- export type DashboardsCreateParams = {- format?: DashboardsCreateFormat;+ export type DesktopRecordingsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type DashboardsCreateFormat = typeof DashboardsCreateFormat[keyof typeof DashboardsCreateFormat];--- export const DashboardsCreateFormat = {- Json: 'json',- Txt: 'txt',- } as const;-- export type DashboardsRetrieveParams = {+ export type EarlyAccessFeatureListParams = {/**- * Object (or pre-encoded JSON string) to override dashboard filters for this request only (not persisted). Top-level keys replace; nested values are not deep-merged — pass the complete value for any key you override. Accepts the same keys as the dashboard filters schema (e.g., `date_from`, `date_to`, `properties`). Ignored when accessed via a sharing token.+ * Number of results to return per page.*/- filters_override?: string;- format?: DashboardsRetrieveFormat;+ limit?: number;/**- * Object (or pre-encoded JSON string) to override dashboard variables for this request only (not persisted). Format: {"<variable_id>": {"code_name": "<code_name>", "variableId": "<variable_id>", "value": <new_value>}}. Each entry must include `code_name` — partial entries are silently dropped. The simplest workflow is to call `dashboard-get` first, copy the matching entry from the response, and mutate `value`. Top-level keys replace; nested values are not deep-merged. Ignored when accessed via a sharing token.+ * The initial index from which to return the results.*/- variables_override?: string;+ offset?: number;};- export type DashboardsRetrieveFormat = typeof DashboardsRetrieveFormat[keyof typeof DashboardsRetrieveFormat];--- export const DashboardsRetrieveFormat = {- Json: 'json',- Txt: 'txt',- } as const;-- export type DashboardsUpdateParams = {- format?: DashboardsUpdateFormat;+ export type ElementsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type DashboardsUpdateFormat = typeof DashboardsUpdateFormat[keyof typeof DashboardsUpdateFormat];--- export const DashboardsUpdateFormat = {- Json: 'json',- Txt: 'txt',- } as const;-- export type DashboardsPartialUpdateParams = {- format?: DashboardsPartialUpdateFormat;+ export type EndpointsListParams = {+ created_by?: number;+ is_active?: boolean;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type DashboardsPartialUpdateFormat = typeof DashboardsPartialUpdateFormat[keyof typeof DashboardsPartialUpdateFormat];--- export const DashboardsPartialUpdateFormat = {- Json: 'json',- Txt: 'txt',- } as const;-- export type DashboardsDestroyParams = {- format?: DashboardsDestroyFormat;+ export type EndpointsOpenapiSpecRetrieveParams = {+ /**+ * Specific endpoint version to generate the spec for. Defaults to latest.+ */+ version?: number;};- export type DashboardsDestroyFormat = typeof DashboardsDestroyFormat[keyof typeof DashboardsDestroyFormat];--- export const DashboardsDestroyFormat = {- Json: 'json',- Txt: 'txt',- } as const;-- export type DashboardsAnalyzeRefreshResultCreateParams = {- format?: DashboardsAnalyzeRefreshResultCreateFormat;+ export type EndpointsVersionsListParams = {+ created_by?: number;+ is_active?: boolean;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type DashboardsAnalyzeRefreshResultCreateFormat = typeof DashboardsAnalyzeRefreshResultCreateFormat[keyof typeof DashboardsAnalyzeRefreshResultCreateFormat];--- export const DashboardsAnalyzeRefreshResultCreateFormat = {- Json: 'json',- Txt: 'txt',- } as const;-- export type DashboardsCopyTileCreateParams = {- format?: DashboardsCopyTileCreateFormat;+ export type EnvironmentsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type DashboardsCopyTileCreateFormat = typeof DashboardsCopyTileCreateFormat[keyof typeof DashboardsCopyTileCreateFormat];--- export const DashboardsCopyTileCreateFormat = {- Json: 'json',- Txt: 'txt',- } as const;-- export type DashboardsCreateTextTileCreateParams = {- format?: DashboardsCreateTextTileCreateFormat;+ export type ErrorTrackingAssignmentRulesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type DashboardsCreateTextTileCreateFormat = typeof DashboardsCreateTextTileCreateFormat[keyof typeof DashboardsCreateTextTileCreateFormat];--- export const DashboardsCreateTextTileCreateFormat = {- Json: 'json',- Txt: 'txt',- } as const;-- export type DashboardsMoveTilePartialUpdateParams = {- format?: DashboardsMoveTilePartialUpdateFormat;+ export type ErrorTrackingExternalReferencesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type DashboardsMoveTilePartialUpdateFormat = typeof DashboardsMoveTilePartialUpdateFormat[keyof typeof DashboardsMoveTilePartialUpdateFormat];+ export type ErrorTrackingFingerprintsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+ export type ErrorTrackingGitProviderFileLinksResolveGithubRetrieveParams = {+ /**+ * Code snippet to search for in repository files.+ * @minLength 1+ */+ code_sample: string;+ /**+ * File name to match in search results.+ * @minLength 1+ */+ file_name: string;+ /**+ * Repository owner or namespace.+ * @minLength 1+ */+ owner: string;+ /**+ * Repository name.+ * @minLength 1+ */+ repository: string;+ };- export const DashboardsMoveTilePartialUpdateFormat = {- Json: 'json',- Txt: 'txt',- } as const;+ export type ErrorTrackingGitProviderFileLinksResolveGitlabRetrieveParams = {+ /**+ * Code snippet to search for in repository files.+ * @minLength 1+ */+ code_sample: string;+ /**+ * File name to match in search results.+ * @minLength 1+ */+ file_name: string;+ /**+ * Repository owner or namespace.+ * @minLength 1+ */+ owner: string;+ /**+ * Repository name.+ * @minLength 1+ */+ repository: string;+ };- export type DashboardsReorderTilesCreateParams = {- format?: DashboardsReorderTilesCreateFormat;+ export type ErrorTrackingIssuesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type DashboardsReorderTilesCreateFormat = typeof DashboardsReorderTilesCreateFormat[keyof typeof DashboardsReorderTilesCreateFormat];+ export type ErrorTrackingRecommendationsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+ export type ErrorTrackingReleasesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };- export const DashboardsReorderTilesCreateFormat = {- Json: 'json',- Txt: 'txt',- } as const;+ export type ErrorTrackingSpikeEventsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };- export type DashboardsRunInsightsRetrieveParams = {+ export type ErrorTrackingStackFramesListParams = {/**- * Object (or pre-encoded JSON string) to override dashboard filters for this request only (not persisted). Top-level keys replace; nested values are not deep-merged — pass the complete value for any key you override. Accepts the same keys as the dashboard filters schema (e.g., `date_from`, `date_to`, `properties`). Ignored when accessed via a sharing token.+ * Number of results to return per page.*/- filters_override?: string;- format?: DashboardsRunInsightsRetrieveFormat;+ limit?: number;/**- * 'optimized' (default) returns LLM-friendly formatted text per insight. 'json' returns the raw query result objects.+ * The initial index from which to return the results.*/- output_format?: DashboardsRunInsightsRetrieveOutputFormat;+ offset?: number;+ };++ export type ErrorTrackingSuppressionRulesListParams = {/**- * Cache behavior. 'force_cache' (default) serves from cache even if stale. 'blocking' uses cache if fresh, otherwise recalculates. 'force_blocking' always recalculates.+ * Number of results to return per page.*/- refresh?: DashboardsRunInsightsRetrieveRefresh;+ limit?: number;/**- * Object (or pre-encoded JSON string) to override dashboard variables for this request only (not persisted). Format: {"<variable_id>": {"code_name": "<code_name>", "variableId": "<variable_id>", "value": <new_value>}}. Each entry must include `code_name` — partial entries are silently dropped. The simplest workflow is to call `dashboard-get` first, copy the matching entry from the response, and mutate `value`. Top-level keys replace; nested values are not deep-merged. Ignored when accessed via a sharing token.+ * The initial index from which to return the results.*/- variables_override?: string;+ offset?: number;};- export type DashboardsRunInsightsRetrieveFormat = typeof DashboardsRunInsightsRetrieveFormat[keyof typeof DashboardsRunInsightsRetrieveFormat];+ export type ErrorTrackingSymbolSetsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Sort order for symbol sets. Prefix with `-` for descending order.+ * `created_at` - created_at+ * `-created_at` - -created_at+ * `ref` - ref+ * `-ref` - -ref+ * `last_used` - last_used+ * `-last_used` - -last_used+ * @minLength 1+ */+ order_by?: string;+ /**+ * Exact symbol set reference to filter by.+ * @minLength 1+ */+ ref?: string;+ /**+ * Upload status filter: `valid` has an uploaded file, `invalid` is missing a file, `all` returns both.- export const DashboardsRunInsightsRetrieveFormat = {- Json: 'json',- Txt: 'txt',- } as const;+ * `all` - all+ * `valid` - valid+ * `invalid` - invalid+ * @minLength 1+ */+ status?: ErrorTrackingSymbolSetsListStatus;+ };- export type DashboardsRunInsightsRetrieveOutputFormat = typeof DashboardsRunInsightsRetrieveOutputFormat[keyof typeof DashboardsRunInsightsRetrieveOutputFormat];+ export type ErrorTrackingSymbolSetsListStatus = typeof ErrorTrackingSymbolSetsListStatus[keyof typeof ErrorTrackingSymbolSetsListStatus];- export const DashboardsRunInsightsRetrieveOutputFormat = {- Json: 'json',- Optimized: 'optimized',+ export const ErrorTrackingSymbolSetsListStatus = {+ All: 'all',+ Valid: 'valid',+ Invalid: 'invalid',} as const;- export type DashboardsRunInsightsRetrieveRefresh = typeof DashboardsRunInsightsRetrieveRefresh[keyof typeof DashboardsRunInsightsRetrieveRefresh];-+ export type EvaluationRunsCreate200 = { [key: string]: unknown };- export const DashboardsRunInsightsRetrieveRefresh = {- Blocking: 'blocking',- ForceBlocking: 'force_blocking',- ForceCache: 'force_cache',- } as const;+ export type EvaluationsListParams = {+ /**+ * Filter by enabled status+ */+ enabled?: boolean;+ /**+ * Multiple values may be separated by commas.+ */+ id__in?: string[];+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Ordering- export type DashboardsSnapshotCreateParams = {- format?: DashboardsSnapshotCreateFormat;+ * `created_at` - Created At+ * `-created_at` - Created At (descending)+ * `updated_at` - Updated At+ * `-updated_at` - Updated At (descending)+ * `name` - Name+ * `-name` - Name (descending)+ */+ order_by?: string[];+ /**+ * Search in name or description+ */+ search?: string;};- export type DashboardsSnapshotCreateFormat = typeof DashboardsSnapshotCreateFormat[keyof typeof DashboardsSnapshotCreateFormat];--- export const DashboardsSnapshotCreateFormat = {- Json: 'json',- Txt: 'txt',- } as const;-- export type DashboardsStreamTilesRetrieveParams = {+ export type EventDefinitionsListParams = {/**- * Object (or pre-encoded JSON string) to override dashboard filters for this request only (not persisted). Top-level keys replace; nested values are not deep-merged — pass the complete value for any key you override. Accepts the same keys as the dashboard filters schema (e.g., `date_from`, `date_to`, `properties`). Ignored when accessed via a sharing token.+ * When true, omit events that have been explicitly hidden by a team admin (Enterprise only).*/- filters_override?: string;- format?: DashboardsStreamTilesRetrieveFormat;+ exclude_hidden?: boolean;/**- * Layout size for tile positioning. 'sm' (default) for standard, 'xs' for mobile. The snake_case alias `layout_size` is also accepted for backward compatibility.+ * When true, omit events whose last ingested occurrence is older than 30 days. Events that have never been seen (`last_seen_at` is null) are kept so newly-defined events remain discoverable. Default false. If a search returns zero results with this filter on, retry with `exclude_stale=false` and tell the user the matches are stale.*/- layoutSize?: DashboardsStreamTilesRetrieveLayoutSize;+ exclude_stale?: boolean;/**- * Object (or pre-encoded JSON string) to override dashboard variables for this request only (not persisted). Format: {"<variable_id>": {"code_name": "<code_name>", "variableId": "<variable_id>", "value": <new_value>}}. Each entry must include `code_name` — partial entries are silently dropped. The simplest workflow is to call `dashboard-get` first, copy the matching entry from the response, and mutate `value`. Top-level keys replace; nested values are not deep-merged. Ignored when accessed via a sharing token.+ * Number of results to return per page.*/- variables_override?: string;+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type DashboardsStreamTilesRetrieveFormat = typeof DashboardsStreamTilesRetrieveFormat[keyof typeof DashboardsStreamTilesRetrieveFormat];--- export const DashboardsStreamTilesRetrieveFormat = {- Json: 'json',- Txt: 'txt',- } as const;-- export type DashboardsStreamTilesRetrieveLayoutSize = typeof DashboardsStreamTilesRetrieveLayoutSize[keyof typeof DashboardsStreamTilesRetrieveLayoutSize];+ export type EventDefinitionsByNameRetrieveParams = {+ /**+ * The exact event name to look up+ */+ name: string;+ };+ export type EventDefinitionsPrimaryPropertiesRetrieveParams = {+ /**+ * Optional: restrict the response to these event names. Repeat the parameter for multiple names (e.g. `?names=a&names=b`). When omitted, returns every team-configured primary property.+ */+ names?: string[];+ };- export const DashboardsStreamTilesRetrieveLayoutSize = {- Sm: 'sm',- Xs: 'xs',- } as const;+ export type EventSchemasListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };- export type DashboardsUpdateTextTileCreateParams = {- format?: DashboardsUpdateTextTileCreateFormat;+ export type EventsListParams = {+ /**+ * Only return events with a timestamp after this time. Default: now() - 24 hours.+ */+ after?: string;+ /**+ * Only return events with a timestamp before this time. Default: now() + 5 seconds.+ */+ before?: string;+ /**+ * Filter list by distinct id.+ */+ distinct_id?: number;+ /**+ * Filter list by event. For example `user sign up` or `$pageview`.+ */+ event?: string;+ format?: EventsListFormat;+ /**+ * Include person details for each event. Default: false.+ */+ include_person?: boolean;+ /**+ * The maximum number of results to return+ */+ limit?: number;+ /**+ * Allows to skip first offset rows. Will fail for value larger than 100000. Read about proper way of paginating: https://posthog.com/docs/api/queries#5-use-timestamp-based-pagination-instead-of-offset+ */+ offset?: number;+ /**+ * Filter list by person id.+ */+ person_id?: number;+ /**+ * Filter events by event property, person property, cohort, groups and more.+ */+ properties?: Property[];+ /**+ * (Experimental) JSON-serialized array of HogQL expressions to return+ */+ select?: string[];+ /**+ * (Experimental) JSON-serialized array of HogQL expressions that must pass+ */+ where?: string[];};- export type DashboardsUpdateTextTileCreateFormat = typeof DashboardsUpdateTextTileCreateFormat[keyof typeof DashboardsUpdateTextTileCreateFormat];+ export type EventsListFormat = typeof EventsListFormat[keyof typeof EventsListFormat];- export const DashboardsUpdateTextTileCreateFormat = {+ export const EventsListFormat = {+ Csv: 'csv',Json: 'json',- Txt: 'txt',} as const;- export type DashboardsBulkUpdateTagsCreateParams = {- format?: DashboardsBulkUpdateTagsCreateFormat;+ export type EventsRetrieveParams = {+ format?: EventsRetrieveFormat;+ /**+ * Include person details for the event. Default: false.+ */+ include_person?: boolean;};- export type DashboardsBulkUpdateTagsCreateFormat = typeof DashboardsBulkUpdateTagsCreateFormat[keyof typeof DashboardsBulkUpdateTagsCreateFormat];+ export type EventsRetrieveFormat = typeof EventsRetrieveFormat[keyof typeof EventsRetrieveFormat];- export const DashboardsBulkUpdateTagsCreateFormat = {+ export const EventsRetrieveFormat = {+ Csv: 'csv',Json: 'json',- Txt: 'txt',} as const;- export type DashboardsCreateFromTemplateJsonCreateParams = {- format?: DashboardsCreateFromTemplateJsonCreateFormat;- };-- export type DashboardsCreateFromTemplateJsonCreateFormat = typeof DashboardsCreateFromTemplateJsonCreateFormat[keyof typeof DashboardsCreateFromTemplateJsonCreateFormat];-+ export type EventsRetrieve200One = { [key: string]: unknown };- export const DashboardsCreateFromTemplateJsonCreateFormat = {- Json: 'json',- Txt: 'txt',- } as const;+ export type EventsRetrieve200Two = { [key: string]: unknown };- export type DashboardsCreateUnlistedDashboardCreateParams = {- format?: DashboardsCreateUnlistedDashboardCreateFormat;+ export type EventsValuesRetrieveParams = {+ format?: EventsValuesRetrieveFormat;};- export type DashboardsCreateUnlistedDashboardCreateFormat = typeof DashboardsCreateUnlistedDashboardCreateFormat[keyof typeof DashboardsCreateUnlistedDashboardCreateFormat];+ export type EventsValuesRetrieveFormat = typeof EventsValuesRetrieveFormat[keyof typeof EventsValuesRetrieveFormat];- export const DashboardsCreateUnlistedDashboardCreateFormat = {+ export const EventsValuesRetrieveFormat = {+ Csv: 'csv',Json: 'json',- Txt: 'txt',} as const;- export type DataColorThemesListParams = {+ export type ExperimentHoldoutsListParams = {/*** Number of results to return per page.*/@@ -45362,46 +46097,30 @@ export namespace Schemas {offset?: number;};- export type DataModelingJobsListParams = {- /**- * The pagination cursor value.- */- cursor?: string;+ export type ExperimentSavedMetricsListParams = {/*** Number of results to return per page.*/limit?: number;- saved_query_id?: string;- };-- export type DataWarehouseCheckDatabaseNameRetrieveParams = {/**- * Database name to check- * @minLength 1+ * The initial index from which to return the results.*/- name: string;+ offset?: number;};- export type DatasetItemsListParams = {- /**- * Filter by dataset ID- */- dataset?: string;+ export type ExperimentsListParams = {/**- * Number of results to return per page.+ * Filter by archived state. Defaults to non-archived experiments only.*/- limit?: number;+ archived?: boolean;/**- * The initial index from which to return the results.+ * Filter to experiments created by the given user ID.*/- offset?: number;- };-- export type DatasetsListParams = {+ created_by_id?: number;/**- * Multiple values may be separated by commas.+ * Filter to experiments linked to the given feature flag ID.*/- id__in?: string[];+ feature_flag_id?: number;/*** Number of results to return per page.*/@@ -45411,40 +46130,53 @@ export namespace Schemas {*/offset?: number;/**- * Ordering-- * `created_at` - Created At- * `-created_at` - Created At (descending)- * `updated_at` - Updated At- * `-updated_at` - Updated At (descending)+ * Field to order by. Prefix with '-' for descending. Allowlisted fields include name, created_at, updated_at, start_date, end_date, duration, and status.*/- order_by?: string[];+ order?: string;/**- * Search in name, description, or metadata+ * Filter to experiments created from an LLM prompt with this name. Matches experiments whose parameters.prompt_metadata.name equals the given value.*/- search?: string;- };-- export type DeploymentProjectsListParams = {+ prompt_name?: string;/**- * Number of results to return per page.+ * Free-text search applied to the experiment name (case-insensitive).*/- limit?: number;+ search?: string;/**- * The initial index from which to return the results.+ * Filter by experiment status. "running" and "paused" are mutually exclusive: "running" returns launched experiments with an active feature flag, "paused" returns launched experiments whose feature flag is deactivated. "complete" is an alias for "stopped". "all" disables status filtering.*/- offset?: number;+ status?: ExperimentsListStatus;+ };++ export type ExperimentsListStatus = typeof ExperimentsListStatus[keyof typeof ExperimentsListStatus];+++ export const ExperimentsListStatus = {+ All: 'all',+ Complete: 'complete',+ Draft: 'draft',+ Paused: 'paused',+ Running: 'running',+ Stopped: 'stopped',+ } as const;++ export type ExperimentsTimeseriesResultsRetrieveParams = {/**- * Which field to use when ordering the results.+ * Fingerprint of the metric configuration. Available alongside metric_uuid on each metric in the experiment's metrics array.*/- ordering?: string;+ fingerprint: string;/**- * A search term.+ * UUID of the metric to fetch timeseries for. Available on each metric in the experiment's metrics array.*/- search?: string;+ metric_uuid: string;};- export type DeploymentProjectsDeploymentsListParams = {+ export type ExperimentsPromptTemplatesRetrieve200Item = {+ key: string;+ label: string;+ description: string;+ };++ export type ExportsListParams = {/*** Number of results to return per page.*/@@ -45453,17 +46185,9 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- /**- * Which field to use when ordering the results.- */- ordering?: string;- /**- * A search term.- */- search?: string;};- export type DeploymentProjectsDeploymentsEventsListParams = {+ export type ExternalDataSchemasListParams = {/*** Number of results to return per page.*/@@ -45472,17 +46196,13 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- /**- * Which field to use when ordering the results.- */- ordering?: string;/*** A search term.*/search?: string;};- export type EarlyAccessFeatureListParams = {+ export type ExternalDataSourcesListParams = {/*** Number of results to return per page.*/@@ -45491,22 +46211,13 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- };-- export type ElementsListParams = {- /**- * Number of results to return per page.- */- limit?: number;/**- * The initial index from which to return the results.+ * A search term.*/- offset?: number;+ search?: string;};- export type EndpointsListParams = {- created_by?: number;- is_active?: boolean;+ export type ExternalDataSourcesBulkUpdateSchemasPartialUpdateParams = {/*** Number of results to return per page.*/@@ -45515,18 +46226,18 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- };-- export type EndpointsOpenapiSpecRetrieveParams = {/**- * Specific endpoint version to generate the spec for. Defaults to latest.+ * A search term.*/- version?: number;+ search?: string;};- export type EndpointsVersionsListParams = {- created_by?: number;- is_active?: boolean;+ export type ExternalDataSourcesCheckCdcPrerequisitesCreate200 = {+ valid?: boolean;+ errors?: string[];+ };++ export type ExternalDataSourcesConnectionsListParams = {/*** Number of results to return per page.*/@@ -45535,31 +46246,30 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ /**+ * A search term.+ */+ search?: string;};- export type EnvironmentsListParams = {+ export type FeatureFlagsListParams = {+ active?: FeatureFlagsListActive;/**- * Number of results to return per page.+ * The User ID which initially created the feature flag.*/- limit?: number;+ created_by_id?: string;/**- * The initial index from which to return the results.+ * Filter feature flags by their evaluation runtime.*/- offset?: number;- };-- export type ErrorTrackingReleasesListParams = {+ evaluation_runtime?: FeatureFlagsListEvaluationRuntime;/**- * Number of results to return per page.+ * JSON-encoded list of feature flag keys to exclude from the results.*/- limit?: number;+ excluded_properties?: string;/**- * The initial index from which to return the results.+ * Filter feature flags by presence of evaluation contexts. 'true' returns only flags with at least one evaluation context, 'false' returns only flags without.*/- offset?: number;- };-- export type ErrorTrackingSymbolSetsListParams = {+ has_evaluation_contexts?: FeatureFlagsListHasEvaluationContexts;/*** Number of results to return per page.*/@@ -45569,76 +46279,106 @@ export namespace Schemas {*/offset?: number;/**- * Sort order for symbol sets. Prefix with `-` for descending order.-- * `created_at` - created_at- * `-created_at` - -created_at- * `ref` - ref- * `-ref` - -ref- * `last_used` - last_used- * `-last_used` - -last_used- * @minLength 1+ * Search by feature flag key or name. Case insensitive.*/- order_by?: string;+ search?: string;/**- * Exact symbol set reference to filter by.- * @minLength 1+ * JSON-encoded list of tag names to filter feature flags by.*/- ref?: string;- /**- * Upload status filter: `valid` has an uploaded file, `invalid` is missing a file, `all` returns both.+ tags?: string;+ type?: FeatureFlagsListType;+ };++ export type FeatureFlagsListActive = typeof FeatureFlagsListActive[keyof typeof FeatureFlagsListActive];+++ export const FeatureFlagsListActive = {+ Stale: 'STALE',+ False: 'false',+ True: 'true',+ } as const;++ export type FeatureFlagsListEvaluationRuntime = typeof FeatureFlagsListEvaluationRuntime[keyof typeof FeatureFlagsListEvaluationRuntime];+++ export const FeatureFlagsListEvaluationRuntime = {+ Both: 'both',+ Client: 'client',+ Server: 'server',+ } as const;- * `all` - all- * `valid` - valid- * `invalid` - invalid- * @minLength 1- */- status?: ErrorTrackingSymbolSetsListStatus;- };+ export type FeatureFlagsListHasEvaluationContexts = typeof FeatureFlagsListHasEvaluationContexts[keyof typeof FeatureFlagsListHasEvaluationContexts];- export type ErrorTrackingSymbolSetsListStatus = typeof ErrorTrackingSymbolSetsListStatus[keyof typeof ErrorTrackingSymbolSetsListStatus];+ export const FeatureFlagsListHasEvaluationContexts = {+ False: 'false',+ True: 'true',+ } as const;++ export type FeatureFlagsListType = typeof FeatureFlagsListType[keyof typeof FeatureFlagsListType];- export const ErrorTrackingSymbolSetsListStatus = {- All: 'all',- Valid: 'valid',- Invalid: 'invalid',++ export const FeatureFlagsListType = {+ Boolean: 'boolean',+ Experiment: 'experiment',+ Multivariant: 'multivariant',+ RemoteConfig: 'remote_config',} as const;- export type EventDefinitionsListParams = {+ export type FeatureFlagsActivityRetrieveParams = {/**- * When true, omit events that have been explicitly hidden by a team admin (Enterprise only).+ * Number of items per page+ * @minimum 1*/- exclude_hidden?: boolean;+ limit?: number;/**- * When true, omit events whose last ingested occurrence is older than 30 days. Events that have never been seen (`last_seen_at` is null) are kept so newly-defined events remain discoverable. Default false. If a search returns zero results with this filter on, retry with `exclude_stale=false` and tell the user the matches are stale.+ * Page number+ * @minimum 1*/- exclude_stale?: boolean;+ page?: number;+ };++ export type FeatureFlagsAllActivityRetrieveParams = {/**- * Number of results to return per page.+ * Number of items per page+ * @minimum 1*/limit?: number;/**- * The initial index from which to return the results.+ * Page number+ * @minimum 1*/- offset?: number;+ page?: number;};- export type EventDefinitionsByNameRetrieveParams = {+ export type FeatureFlagsEvaluationReasonsRetrieveParams = {/**- * The exact event name to look up+ * User distinct ID+ * @minLength 1*/- name: string;+ distinct_id: string;+ /**+ * Groups for feature flag evaluation (JSON object string)+ */+ groups?: string;};- export type EventDefinitionsPrimaryPropertiesRetrieveParams = {+ export type FeatureFlagsLocalEvaluationRetrieveParams = {/**- * Optional: restrict the response to these event names. Repeat the parameter for multiple names (e.g. `?names=a&names=b`). When omitted, returns every team-configured primary property.+ * Include cohorts in response+ * @nullable*/- names?: string[];+ send_cohorts?: boolean | null;};- export type EventSchemasListParams = {+ export type FeatureFlagsMyFlagsRetrieveParams = {+ /**+ * Groups for feature flag evaluation (JSON object string)+ */+ groups?: string;+ };++ export type FileDownloadBatchExportsListParams = {/*** Number of results to return per page.*/@@ -45649,95 +46389,54 @@ export namespace Schemas {offset?: number;};- export type EventsListParams = {+ export type FileDownloadBatchExportsLogsRetrieveParams = {/**- * Only return events with a timestamp after this time. Default: now() - 24 hours.+ * Only return entries after this ISO 8601 timestamp.*/after?: string;/**- * Only return events with a timestamp before this time. Default: now() + 5 seconds.+ * Only return entries before this ISO 8601 timestamp.*/before?: string;/**- * Filter list by distinct id.- */- distinct_id?: number;- /**- * Filter list by event. For example `user sign up` or `$pageview`.+ * Filter logs to a specific execution instance.+ * @minLength 1*/- event?: string;- format?: EventsListFormat;+ instance_id?: string;/**- * Include person details for each event. Default: false.+ * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.+ * @minLength 1*/- include_person?: boolean;+ level?: string;/**- * The maximum number of results to return+ * Maximum number of log entries to return (1-500, default 50).+ * @minimum 1+ * @maximum 500*/limit?: number;/**- * Allows to skip first offset rows. Will fail for value larger than 100000. Read about proper way of paginating: https://posthog.com/docs/api/queries#5-use-timestamp-based-pagination-instead-of-offset- */- offset?: number;- /**- * Filter list by person id.- */- person_id?: number;- /**- * Filter events by event property, person property, cohort, groups and more.+ * Case-insensitive substring search across log messages.+ * @minLength 1*/- properties?: Property[];+ search?: string;+ };++ export type FileSystemListParams = {/**- * (Experimental) JSON-serialized array of HogQL expressions to return+ * Number of results to return per page.*/- select?: string[];+ limit?: number;/**- * (Experimental) JSON-serialized array of HogQL expressions that must pass+ * The initial index from which to return the results.*/- where?: string[];- };-- export type EventsListFormat = typeof EventsListFormat[keyof typeof EventsListFormat];--- export const EventsListFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type EventsRetrieveParams = {- format?: EventsRetrieveFormat;+ offset?: number;/**- * Include person details for the event. Default: false.+ * A search term.*/- include_person?: boolean;- };-- export type EventsRetrieveFormat = typeof EventsRetrieveFormat[keyof typeof EventsRetrieveFormat];--- export const EventsRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type EventsRetrieve200One = { [key: string]: unknown };-- export type EventsRetrieve200Two = { [key: string]: unknown };-- export type EventsValuesRetrieveParams = {- format?: EventsValuesRetrieveFormat;+ search?: string;};- export type EventsValuesRetrieveFormat = typeof EventsValuesRetrieveFormat[keyof typeof EventsValuesRetrieveFormat];--- export const EventsValuesRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type ExperimentHoldoutsListParams = {+ export type FileSystemShortcutListParams = {/*** Number of results to return per page.*/@@ -45748,7 +46447,7 @@ export namespace Schemas {offset?: number;};- export type ExperimentSavedMetricsListParams = {+ export type FixHogqlListParams = {/*** Number of results to return per page.*/@@ -45759,75 +46458,88 @@ export namespace Schemas {offset?: number;};- export type ExperimentsListParams = {+ export type FlagValueValuesRetrieveParams = {/**- * Filter by archived state. Defaults to non-archived experiments only.+ * The flag ID*/- archived?: boolean;+ key?: string;+ };++ export type GroupsListParams = {/**- * Filter to experiments created by the given user ID.+ * Pagination cursor returned in the `next` URL of a previous response*/- created_by_id?: number;+ cursor?: string;/**- * Filter to experiments linked to the given feature flag ID.+ * Filter groups whose key contains this string (case-insensitive)*/- feature_flag_id?: number;+ group_key?: string;/**- * Number of results to return per page.+ * Specify the group type to list*/- limit?: number;+ group_type_index: number;/**- * The initial index from which to return the results.+ * Search the group name*/- offset?: number;+ search?: string;+ };++ export type GroupsActivityRetrieveParams = {/**- * Field to order by. Prefix with '-' for descending. Allowlisted fields include name, created_at, updated_at, start_date, end_date, duration, and status.+ * Specify the group type to find*/- order?: string;+ group_type_index: number;/**- * Filter to experiments created from an LLM prompt with this name. Matches experiments whose parameters.prompt_metadata.name equals the given value.+ * Specify the id of the user to find groups for*/- prompt_name?: string;+ id: string;+ };++ export type GroupsDeletePropertyCreateParams = {/**- * Free-text search applied to the experiment name (case-insensitive).+ * Specify the key of the group to find*/- search?: string;+ group_key: string;/**- * Filter by experiment status. "running" and "paused" are mutually exclusive: "running" returns launched experiments with an active feature flag, "paused" returns launched experiments whose feature flag is deactivated. "complete" is an alias for "stopped". "all" disables status filtering.+ * Specify the group type to find*/- status?: ExperimentsListStatus;+ group_type_index: number;};- export type ExperimentsListStatus = typeof ExperimentsListStatus[keyof typeof ExperimentsListStatus];-+ export type GroupsFindRetrieveParams = {+ /**+ * Specify the key of the group to find+ */+ group_key: string;+ /**+ * Specify the group type to find+ */+ group_type_index: number;+ };- export const ExperimentsListStatus = {- All: 'all',- Complete: 'complete',- Draft: 'draft',- Paused: 'paused',- Running: 'running',- Stopped: 'stopped',- } as const;+ export type GroupsRelatedRetrieveParams = {+ /**+ * Specify the group type to find+ */+ group_type_index: number;+ /**+ * Specify the id of the user to find groups for+ */+ id: string;+ };- export type ExperimentsTimeseriesResultsRetrieveParams = {+ export type GroupsUpdatePropertyCreateParams = {/**- * Fingerprint of the metric configuration. Available alongside metric_uuid on each metric in the experiment's metrics array.+ * Specify the key of the group to find*/- fingerprint: string;+ group_key: string;/**- * UUID of the metric to fetch timeseries for. Available on each metric in the experiment's metrics array.+ * Specify the group type to find*/- metric_uuid: string;- };-- export type ExperimentsPromptTemplatesRetrieve200Item = {- key: string;- label: string;- description: string;+ group_type_index: number;};- export type ExportsListParams = {+ export type GroupsTypesMetricsListParams = {/*** Number of results to return per page.*/@@ -45838,7 +46550,7 @@ export namespace Schemas {offset?: number;};- export type ExternalDataSchemasListParams = {+ export type HealthIssuesListParams = {/*** Number of results to return per page.*/@@ -45847,13 +46559,9 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- /**- * A search term.- */- search?: string;};- export type ExternalDataSourcesListParams = {+ export type HeatmapsListParams = {/*** Number of results to return per page.*/@@ -45862,13 +46570,9 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- /**- * A search term.- */- search?: string;};- export type ExternalDataSourcesBulkUpdateSchemasPartialUpdateParams = {+ export type HogFlowTemplatesListParams = {/*** Number of results to return per page.*/@@ -45877,18 +46581,44 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ };++ export type HogFlowTemplatesLogsRetrieveParams = {/**- * A search term.+ * Only return entries after this ISO 8601 timestamp.+ */+ after?: string;+ /**+ * Only return entries before this ISO 8601 timestamp.+ */+ before?: string;+ /**+ * Filter logs to a specific execution instance.+ * @minLength 1+ */+ instance_id?: string;+ /**+ * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.+ * @minLength 1+ */+ level?: string;+ /**+ * Maximum number of log entries to return (1-500, default 50).+ * @minimum 1+ * @maximum 500+ */+ limit?: number;+ /**+ * Case-insensitive substring search across log messages.+ * @minLength 1*/search?: string;};- export type ExternalDataSourcesCheckCdcPrerequisitesCreate200 = {- valid?: boolean;- errors?: string[];- };-- export type ExternalDataSourcesConnectionsListParams = {+ export type HogFlowsListParams = {+ created_at?: string;+ created_by?: number;+ id?: string;/*** Number of results to return per page.*/@@ -45897,139 +46627,223 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- /**- * A search term.- */- search?: string;+ updated_at?: string;};- export type FeatureFlagsListParams = {- active?: FeatureFlagsListActive;+ export type HogFlowsLogsRetrieveParams = {/**- * The User ID which initially created the feature flag.+ * Only return entries after this ISO 8601 timestamp.*/- created_by_id?: string;+ after?: string;/**- * Filter feature flags by their evaluation runtime.+ * Only return entries before this ISO 8601 timestamp.*/- evaluation_runtime?: FeatureFlagsListEvaluationRuntime;+ before?: string;/**- * JSON-encoded list of feature flag keys to exclude from the results.+ * Filter logs to a specific execution instance.+ * @minLength 1*/- excluded_properties?: string;+ instance_id?: string;/**- * Filter feature flags by presence of evaluation contexts. 'true' returns only flags with at least one evaluation context, 'false' returns only flags without.+ * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.+ * @minLength 1*/- has_evaluation_contexts?: FeatureFlagsListHasEvaluationContexts;+ level?: string;/**- * Number of results to return per page.+ * Maximum number of log entries to return (1-500, default 50).+ * @minimum 1+ * @maximum 500*/limit?: number;/**- * The initial index from which to return the results.+ * Case-insensitive substring search across log messages.+ * @minLength 1*/- offset?: number;+ search?: string;+ };++ export type HogFlowsMetricsRetrieveParams = {/**- * Search by feature flag key or name. Case insensitive.+ * Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'.+ * @minLength 1*/- search?: string;+ after?: string;/**- * JSON-encoded list of tag names to filter feature flags by.+ * End of the time range. Same format as 'after'. Defaults to now.+ * @minLength 1*/- tags?: string;- type?: FeatureFlagsListType;+ before?: string;+ /**+ * Group the series by metric 'name' or 'kind'. Defaults to 'kind'.++ * `name` - name+ * `kind` - kind+ * @minLength 1+ */+ breakdown_by?: HogFlowsMetricsRetrieveBreakdownBy;+ /**+ * Filter metrics to a specific execution instance.+ * @minLength 1+ */+ instance_id?: string;+ /**+ * Time bucket size for the series. One of: hour, day, week. Defaults to 'day'.++ * `hour` - hour+ * `day` - day+ * `week` - week+ * @minLength 1+ */+ interval?: HogFlowsMetricsRetrieveInterval;+ /**+ * Comma-separated metric kinds to filter by, e.g. 'success,failure'.+ * @minLength 1+ */+ kind?: string;+ /**+ * Comma-separated metric names to filter by.+ * @minLength 1+ */+ name?: string;};- export type FeatureFlagsListActive = typeof FeatureFlagsListActive[keyof typeof FeatureFlagsListActive];+ export type HogFlowsMetricsRetrieveBreakdownBy = typeof HogFlowsMetricsRetrieveBreakdownBy[keyof typeof HogFlowsMetricsRetrieveBreakdownBy];- export const FeatureFlagsListActive = {- Stale: 'STALE',- False: 'false',- True: 'true',+ export const HogFlowsMetricsRetrieveBreakdownBy = {+ Name: 'name',+ Kind: 'kind',} as const;- export type FeatureFlagsListEvaluationRuntime = typeof FeatureFlagsListEvaluationRuntime[keyof typeof FeatureFlagsListEvaluationRuntime];+ export type HogFlowsMetricsRetrieveInterval = typeof HogFlowsMetricsRetrieveInterval[keyof typeof HogFlowsMetricsRetrieveInterval];- export const FeatureFlagsListEvaluationRuntime = {- Both: 'both',- Client: 'client',- Server: 'server',+ export const HogFlowsMetricsRetrieveInterval = {+ Hour: 'hour',+ Day: 'day',+ Week: 'week',} as const;- export type FeatureFlagsListHasEvaluationContexts = typeof FeatureFlagsListHasEvaluationContexts[keyof typeof FeatureFlagsListHasEvaluationContexts];+ export type HogFlowsMetricsTotalsRetrieveParams = {+ /**+ * Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'.+ * @minLength 1+ */+ after?: string;+ /**+ * End of the time range. Same format as 'after'. Defaults to now.+ * @minLength 1+ */+ before?: string;+ /**+ * Group the series by metric 'name' or 'kind'. Defaults to 'kind'.+ * `name` - name+ * `kind` - kind+ * @minLength 1+ */+ breakdown_by?: HogFlowsMetricsTotalsRetrieveBreakdownBy;+ /**+ * Filter metrics to a specific execution instance.+ * @minLength 1+ */+ instance_id?: string;+ /**+ * Time bucket size for the series. One of: hour, day, week. Defaults to 'day'.- export const FeatureFlagsListHasEvaluationContexts = {- False: 'false',- True: 'true',+ * `hour` - hour+ * `day` - day+ * `week` - week+ * @minLength 1+ */+ interval?: HogFlowsMetricsTotalsRetrieveInterval;+ /**+ * Comma-separated metric kinds to filter by, e.g. 'success,failure'.+ * @minLength 1+ */+ kind?: string;+ /**+ * Comma-separated metric names to filter by.+ * @minLength 1+ */+ name?: string;+ };++ export type HogFlowsMetricsTotalsRetrieveBreakdownBy = typeof HogFlowsMetricsTotalsRetrieveBreakdownBy[keyof typeof HogFlowsMetricsTotalsRetrieveBreakdownBy];+++ export const HogFlowsMetricsTotalsRetrieveBreakdownBy = {+ Name: 'name',+ Kind: 'kind',} as const;- export type FeatureFlagsListType = typeof FeatureFlagsListType[keyof typeof FeatureFlagsListType];+ export type HogFlowsMetricsTotalsRetrieveInterval = typeof HogFlowsMetricsTotalsRetrieveInterval[keyof typeof HogFlowsMetricsTotalsRetrieveInterval];- export const FeatureFlagsListType = {- Boolean: 'boolean',- Experiment: 'experiment',- Multivariant: 'multivariant',- RemoteConfig: 'remote_config',+ export const HogFlowsMetricsTotalsRetrieveInterval = {+ Hour: 'hour',+ Day: 'day',+ Week: 'week',} as const;- export type FeatureFlagsActivityRetrieveParams = {+ export type HogFlowsSchedulesListParams = {+ created_at?: string;+ created_by?: number;+ id?: string;/**- * Number of items per page- * @minimum 1+ * Number of results to return per page.*/limit?: number;/**- * Page number- * @minimum 1+ * The initial index from which to return the results.*/- page?: number;+ offset?: number;+ updated_at?: string;};- export type FeatureFlagsAllActivityRetrieveParams = {+ export type HogFlowsSchedulesCreateParams = {+ created_at?: string;+ created_by?: number;+ id?: string;/**- * Number of items per page- * @minimum 1+ * Number of results to return per page.*/limit?: number;/**- * Page number- * @minimum 1+ * The initial index from which to return the results.*/- page?: number;+ offset?: number;+ updated_at?: string;};- export type FeatureFlagsEvaluationReasonsRetrieveParams = {+ export type HogFunctionTemplatesListParams = {/**- * User distinct ID- * @minLength 1+ * Number of results to return per page.*/- distinct_id: string;+ limit?: number;/**- * Groups for feature flag evaluation (JSON object string)+ * The initial index from which to return the results.*/- groups?: string;- };-- export type FeatureFlagsLocalEvaluationRetrieveParams = {+ offset?: number;/**- * Include cohorts in response- * @nullable+ * Filter to a specific template by its template_id. Deprecated templates are excluded from list results; use the retrieve endpoint to look up a template by ID regardless of status.*/- send_cohorts?: boolean | null;- };-- export type FeatureFlagsMyFlagsRetrieveParams = {+ template_id?: string;/**- * Groups for feature flag evaluation (JSON object string)+ * Filter by template type (e.g. destination, email, sms_provider, broadcast). Defaults to destination if neither type nor types is provided.*/- groups?: string;+ type?: string;+ /**+ * Comma-separated list of template types to include (e.g. destination,email,sms_provider).+ */+ types?: string;};- export type FileDownloadBatchExportsListParams = {+ export type HogFunctionsListParams = {+ created_at?: string;+ created_by?: number;+ enabled?: boolean;+ id?: string;/*** Number of results to return per page.*/@@ -46038,9 +46852,14 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ /**+ * Multiple values may be separated by commas.+ */+ type?: string[];+ updated_at?: string;};- export type FileDownloadBatchExportsLogsRetrieveParams = {+ export type HogFunctionsLogsRetrieveParams = {/*** Only return entries after this ISO 8601 timestamp.*/@@ -46072,182 +46891,183 @@ export namespace Schemas {search?: string;};- export type FileSystemListParams = {+ export type HogFunctionsMetricsRetrieveParams = {/**- * Number of results to return per page.+ * Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'.+ * @minLength 1*/- limit?: number;+ after?: string;/**- * The initial index from which to return the results.+ * End of the time range. Same format as 'after'. Defaults to now.+ * @minLength 1*/- offset?: number;+ before?: string;/**- * A search term.- */- search?: string;- };+ * Group the series by metric 'name' or 'kind'. Defaults to 'kind'.- export type FileSystemShortcutListParams = {- /**- * Number of results to return per page.+ * `name` - name+ * `kind` - kind+ * @minLength 1*/- limit?: number;+ breakdown_by?: HogFunctionsMetricsRetrieveBreakdownBy;/**- * The initial index from which to return the results.+ * Filter metrics to a specific execution instance.+ * @minLength 1*/- offset?: number;- };-- export type FlagValueValuesRetrieveParams = {+ instance_id?: string;/**- * The flag ID- */- key?: string;- };+ * Time bucket size for the series. One of: hour, day, week. Defaults to 'day'.- export type GroupsListParams = {- /**- * Pagination cursor returned in the `next` URL of a previous response- */- cursor?: string;- /**- * Filter groups whose key contains this string (case-insensitive)+ * `hour` - hour+ * `day` - day+ * `week` - week+ * @minLength 1*/- group_key?: string;+ interval?: HogFunctionsMetricsRetrieveInterval;/**- * Specify the group type to list+ * Comma-separated metric kinds to filter by, e.g. 'success,failure'.+ * @minLength 1*/- group_type_index: number;+ kind?: string;/**- * Search the group name+ * Comma-separated metric names to filter by.+ * @minLength 1*/- search?: string;+ name?: string;};- export type GroupsActivityRetrieveParams = {- /**- * Specify the group type to find- */- group_type_index: number;- /**- * Specify the id of the user to find groups for- */- id: string;- };+ export type HogFunctionsMetricsRetrieveBreakdownBy = typeof HogFunctionsMetricsRetrieveBreakdownBy[keyof typeof HogFunctionsMetricsRetrieveBreakdownBy];- export type GroupsDeletePropertyCreateParams = {++ export const HogFunctionsMetricsRetrieveBreakdownBy = {+ Name: 'name',+ Kind: 'kind',+ } as const;++ export type HogFunctionsMetricsRetrieveInterval = typeof HogFunctionsMetricsRetrieveInterval[keyof typeof HogFunctionsMetricsRetrieveInterval];+++ export const HogFunctionsMetricsRetrieveInterval = {+ Hour: 'hour',+ Day: 'day',+ Week: 'week',+ } as const;++ export type HogFunctionsMetricsTotalsRetrieveParams = {/**- * Specify the key of the group to find+ * Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'.+ * @minLength 1*/- group_key: string;+ after?: string;/**- * Specify the group type to find+ * End of the time range. Same format as 'after'. Defaults to now.+ * @minLength 1*/- group_type_index: number;- };-- export type GroupsFindRetrieveParams = {+ before?: string;/**- * Specify the key of the group to find+ * Group the series by metric 'name' or 'kind'. Defaults to 'kind'.++ * `name` - name+ * `kind` - kind+ * @minLength 1*/- group_key: string;+ breakdown_by?: HogFunctionsMetricsTotalsRetrieveBreakdownBy;/**- * Specify the group type to find+ * Filter metrics to a specific execution instance.+ * @minLength 1*/- group_type_index: number;- };+ instance_id?: string;+ /**+ * Time bucket size for the series. One of: hour, day, week. Defaults to 'day'.- export type GroupsRelatedRetrieveParams = {+ * `hour` - hour+ * `day` - day+ * `week` - week+ * @minLength 1+ */+ interval?: HogFunctionsMetricsTotalsRetrieveInterval;/**- * Specify the group type to find+ * Comma-separated metric kinds to filter by, e.g. 'success,failure'.+ * @minLength 1*/- group_type_index: number;+ kind?: string;/**- * Specify the id of the user to find groups for+ * Comma-separated metric names to filter by.+ * @minLength 1*/- id: string;+ name?: string;};- export type GroupsUpdatePropertyCreateParams = {- /**- * Specify the key of the group to find- */- group_key: string;+ export type HogFunctionsMetricsTotalsRetrieveBreakdownBy = typeof HogFunctionsMetricsTotalsRetrieveBreakdownBy[keyof typeof HogFunctionsMetricsTotalsRetrieveBreakdownBy];+++ export const HogFunctionsMetricsTotalsRetrieveBreakdownBy = {+ Name: 'name',+ Kind: 'kind',+ } as const;++ export type HogFunctionsMetricsTotalsRetrieveInterval = typeof HogFunctionsMetricsTotalsRetrieveInterval[keyof typeof HogFunctionsMetricsTotalsRetrieveInterval];+++ export const HogFunctionsMetricsTotalsRetrieveInterval = {+ Hour: 'hour',+ Day: 'day',+ Week: 'week',+ } as const;++ export type InsightVariablesListParams = {/**- * Specify the group type to find+ * A page number within the paginated result set.*/- group_type_index: number;+ page?: number;};- export type GroupsTypesMetricsListParams = {- /**- * Number of results to return per page.- */- limit?: number;+ export type InsightsListParams = {/**- * The initial index from which to return the results.+ * Return basic insight metadata only (no results, faster).*/- offset?: number;- };-- export type HeatmapsListParams = {+ basic?: boolean;/**- * Number of results to return per page.+ * JSON-encoded array of user IDs. Only returns insights whose `created_by` is in the list, e.g. `[1,42]`.*/- limit?: number;+ created_by?: string;/**- * The initial index from which to return the results.+ * Filter by `created_at > created_date_from`. Accepts absolute or relative dates.*/- offset?: number;- };-- export type HogFlowTemplatesListParams = {+ created_date_from?: string;/**- * Number of results to return per page.+ * Filter by `created_at < created_date_to`. Accepts absolute or relative dates.*/- limit?: number;+ created_date_to?: string;/**- * The initial index from which to return the results.+ * JSON-encoded array of dashboard IDs. Returns insights attached to every listed dashboard (AND).*/- offset?: number;- };-- export type HogFlowTemplatesLogsRetrieveParams = {+ dashboards?: string;/**- * Only return entries after this ISO 8601 timestamp.+ * Filter by `last_modified_at > date_from`. Accepts absolute dates (`2025-04-23`) or relative strings (`-7d`, `-1m`).*/- after?: string;+ date_from?: string;/**- * Only return entries before this ISO 8601 timestamp.+ * Filter by `last_modified_at < date_to`. Accepts absolute dates or relative strings.*/- before?: string;+ date_to?: string;/**- * Filter logs to a specific execution instance.- * @minLength 1+ * Include this parameter (any value) to restrict results to insights marked as favorited.*/- instance_id?: string;+ favorited?: boolean;+ format?: InsightsListFormat;/**- * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.- * @minLength 1+ * Restrict to a single insight type. `JSON` matches non-wrapper query insights; `SQL` matches HogQL queries.*/- level?: string;+ insight?: InsightsListInsight;/**- * Maximum number of log entries to return (1-500, default 50).- * @minimum 1- * @maximum 500+ * Filter by `last_viewed_at > last_viewed_date_from`. Accepts absolute or relative dates.*/- limit?: number;+ last_viewed_date_from?: string;/**- * Case-insensitive substring search across log messages.- * @minLength 1+ * Filter by `last_viewed_at < last_viewed_date_to`. Accepts absolute or relative dates.*/- search?: string;- };-- export type HogFlowsListParams = {- created_at?: string;- created_by?: number;- id?: string;+ last_viewed_date_to?: string;/*** Number of results to return per page.*/@@ -46256,447 +47076,381 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- updated_at?: string;- };-- export type HogFlowsLogsRetrieveParams = {/**- * Only return entries after this ISO 8601 timestamp.- */- after?: string;- /**- * Only return entries before this ISO 8601 timestamp.+ *+ Whether to refresh the retrieved insights, how aggressively, and if sync or async:+ - `'force_cache'` - return cached data or a cache miss; always completes immediately as it never calculates+ - `'blocking'` - calculate synchronously (returning only when the query is done), UNLESS there are very fresh results in the cache+ - `'async'` - kick off background calculation (returning immediately with a query status), UNLESS there are very fresh results in the cache+ - `'lazy_async'` - kick off background calculation, UNLESS there are somewhat fresh results in the cache+ - `'force_blocking'` - calculate synchronously, even if fresh results are already cached+ - `'force_async'` - kick off background calculation, even if fresh results are already cached+ Background calculation can be tracked using the `query_status` response field.*/- before?: string;+ refresh?: InsightsListRefresh;/**- * Filter logs to a specific execution instance.- * @minLength 1+ * When truthy, restricts results to insights that are saved (or attached to a visible dashboard). When falsy, only unsaved insights.*/- instance_id?: string;+ saved?: boolean;/**- * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.- * @minLength 1+ * Case-insensitive substring match across name, derived_name, description, and tag names.*/- level?: string;+ search?: string;+ short_id?: string;/**- * Maximum number of log entries to return (1-500, default 50).- * @minimum 1- * @maximum 500+ * JSON-encoded array of tag names. Returns insights with any of the listed tags.*/- limit?: number;+ tags?: string;/**- * Case-insensitive substring search across log messages.- * @minLength 1+ * Include this parameter (any value) to restrict results to insights created by the authenticated user.*/- search?: string;+ user?: boolean;};- export type HogFlowsMetricsRetrieveParams = {+ export type InsightsListFormat = typeof InsightsListFormat[keyof typeof InsightsListFormat];+++ export const InsightsListFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type InsightsListInsight = typeof InsightsListInsight[keyof typeof InsightsListInsight];+++ export const InsightsListInsight = {+ Funnels: 'FUNNELS',+ Json: 'JSON',+ Lifecycle: 'LIFECYCLE',+ Paths: 'PATHS',+ Retention: 'RETENTION',+ Sql: 'SQL',+ Stickiness: 'STICKINESS',+ Trends: 'TRENDS',+ } as const;++ export type InsightsListRefresh = typeof InsightsListRefresh[keyof typeof InsightsListRefresh];+++ export const InsightsListRefresh = {+ Async: 'async',+ AsyncExceptOnCacheMiss: 'async_except_on_cache_miss',+ Blocking: 'blocking',+ ForceAsync: 'force_async',+ ForceBlocking: 'force_blocking',+ ForceCache: 'force_cache',+ LazyAsync: 'lazy_async',+ } as const;++ export type InsightsCreateParams = {+ format?: InsightsCreateFormat;+ };++ export type InsightsCreateFormat = typeof InsightsCreateFormat[keyof typeof InsightsCreateFormat];+++ export const InsightsCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type InsightsThresholdsListParams = {/**- * Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'.- * @minLength 1+ * Number of results to return per page.*/- after?: string;+ limit?: number;/**- * End of the time range. Same format as 'after'. Defaults to now.- * @minLength 1+ * The initial index from which to return the results.*/- before?: string;- /**- * Group the series by metric 'name' or 'kind'. Defaults to 'kind'.+ offset?: number;+ };- * `name` - name- * `kind` - kind- * @minLength 1- */- breakdown_by?: HogFlowsMetricsRetrieveBreakdownBy;+ export type InsightsRetrieveParams = {/**- * Filter metrics to a specific execution instance.- * @minLength 1+ * Object (or pre-encoded JSON string) to override the insight's filters for this request only (not persisted). Top-level keys replace; nested values are not deep-merged — pass the complete value for any key you override. Accepts the same keys as the dashboard filters schema (e.g., `date_from`, `date_to`, `properties`). Ignored when accessed via a sharing token.*/- instance_id?: string;+ filters_override?: string;+ format?: InsightsRetrieveFormat;/**- * Time bucket size for the series. One of: hour, day, week. Defaults to 'day'.-- * `hour` - hour- * `day` - day- * `week` - week- * @minLength 1+ *+ Only if loading an insight in the context of a dashboard: The relevant dashboard's ID.+ When set, the specified dashboard's filters and date range override will be applied.*/- interval?: HogFlowsMetricsRetrieveInterval;+ from_dashboard?: number;/**- * Comma-separated metric kinds to filter by, e.g. 'success,failure'.- * @minLength 1+ *+ Whether to refresh the insight, how aggresively, and if sync or async:+ - `'force_cache'` - return cached data or a cache miss; always completes immediately as it never calculates+ - `'blocking'` - calculate synchronously (returning only when the query is done), UNLESS there are very fresh results in the cache+ - `'async'` - kick off background calculation (returning immediately with a query status), UNLESS there are very fresh results in the cache+ - `'lazy_async'` - kick off background calculation, UNLESS there are somewhat fresh results in the cache+ - `'force_blocking'` - calculate synchronously, even if fresh results are already cached+ - `'force_async'` - kick off background calculation, even if fresh results are already cached+ Background calculation can be tracked using the `query_status` response field.*/- kind?: string;+ refresh?: InsightsRetrieveRefresh;/**- * Comma-separated metric names to filter by.- * @minLength 1+ * Object (or pre-encoded JSON string) to override the insight's HogQL variables for this request only (not persisted). Format: {"<variable_id>": {"code_name": "<code_name>", "variableId": "<variable_id>", "value": <new_value>}}. Each entry must include `code_name` — partial entries are silently dropped. The simplest workflow is to call `insight-get` first, copy the matching entry from the response, and mutate `value`. Top-level keys replace; nested values are not deep-merged. Ignored when accessed via a sharing token.*/- name?: string;+ variables_override?: string;};- export type HogFlowsMetricsRetrieveBreakdownBy = typeof HogFlowsMetricsRetrieveBreakdownBy[keyof typeof HogFlowsMetricsRetrieveBreakdownBy];+ export type InsightsRetrieveFormat = typeof InsightsRetrieveFormat[keyof typeof InsightsRetrieveFormat];- export const HogFlowsMetricsRetrieveBreakdownBy = {- Name: 'name',- Kind: 'kind',+ export const InsightsRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',} as const;- export type HogFlowsMetricsRetrieveInterval = typeof HogFlowsMetricsRetrieveInterval[keyof typeof HogFlowsMetricsRetrieveInterval];+ export type InsightsRetrieveRefresh = typeof InsightsRetrieveRefresh[keyof typeof InsightsRetrieveRefresh];- export const HogFlowsMetricsRetrieveInterval = {- Hour: 'hour',- Day: 'day',- Week: 'week',+ export const InsightsRetrieveRefresh = {+ Async: 'async',+ AsyncExceptOnCacheMiss: 'async_except_on_cache_miss',+ Blocking: 'blocking',+ ForceAsync: 'force_async',+ ForceBlocking: 'force_blocking',+ ForceCache: 'force_cache',+ LazyAsync: 'lazy_async',} as const;- export type HogFlowsMetricsTotalsRetrieveParams = {- /**- * Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'.- * @minLength 1- */- after?: string;- /**- * End of the time range. Same format as 'after'. Defaults to now.- * @minLength 1- */- before?: string;- /**- * Group the series by metric 'name' or 'kind'. Defaults to 'kind'.+ export type InsightsUpdateParams = {+ format?: InsightsUpdateFormat;+ };- * `name` - name- * `kind` - kind- * @minLength 1- */- breakdown_by?: HogFlowsMetricsTotalsRetrieveBreakdownBy;- /**- * Filter metrics to a specific execution instance.- * @minLength 1- */- instance_id?: string;- /**- * Time bucket size for the series. One of: hour, day, week. Defaults to 'day'.+ export type InsightsUpdateFormat = typeof InsightsUpdateFormat[keyof typeof InsightsUpdateFormat];- * `hour` - hour- * `day` - day- * `week` - week- * @minLength 1- */- interval?: HogFlowsMetricsTotalsRetrieveInterval;++ export const InsightsUpdateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type InsightsPartialUpdateParams = {+ format?: InsightsPartialUpdateFormat;+ };++ export type InsightsPartialUpdateFormat = typeof InsightsPartialUpdateFormat[keyof typeof InsightsPartialUpdateFormat];+++ export const InsightsPartialUpdateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type InsightsDestroyParams = {+ format?: InsightsDestroyFormat;+ };++ export type InsightsDestroyFormat = typeof InsightsDestroyFormat[keyof typeof InsightsDestroyFormat];+++ export const InsightsDestroyFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type InsightsActivityRetrieveParams = {+ format?: InsightsActivityRetrieveFormat;/**- * Comma-separated metric kinds to filter by, e.g. 'success,failure'.- * @minLength 1+ * Page size. Defaults to 10.*/- kind?: string;+ limit?: number;/**- * Comma-separated metric names to filter by.- * @minLength 1+ * 1-indexed page number. Defaults to 1.*/- name?: string;+ page?: number;};- export type HogFlowsMetricsTotalsRetrieveBreakdownBy = typeof HogFlowsMetricsTotalsRetrieveBreakdownBy[keyof typeof HogFlowsMetricsTotalsRetrieveBreakdownBy];+ export type InsightsActivityRetrieveFormat = typeof InsightsActivityRetrieveFormat[keyof typeof InsightsActivityRetrieveFormat];- export const HogFlowsMetricsTotalsRetrieveBreakdownBy = {- Name: 'name',- Kind: 'kind',+ export const InsightsActivityRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',} as const;- export type HogFlowsMetricsTotalsRetrieveInterval = typeof HogFlowsMetricsTotalsRetrieveInterval[keyof typeof HogFlowsMetricsTotalsRetrieveInterval];+ export type InsightsAnalyzeRetrieveParams = {+ format?: InsightsAnalyzeRetrieveFormat;+ };+ export type InsightsAnalyzeRetrieveFormat = typeof InsightsAnalyzeRetrieveFormat[keyof typeof InsightsAnalyzeRetrieveFormat];- export const HogFlowsMetricsTotalsRetrieveInterval = {- Hour: 'hour',- Day: 'day',- Week: 'week',++ export const InsightsAnalyzeRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',} as const;- export type HogFlowsSchedulesListParams = {- created_at?: string;- created_by?: number;- id?: string;- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- updated_at?: string;+ export type InsightsSuggestionsRetrieveParams = {+ format?: InsightsSuggestionsRetrieveFormat;};- export type HogFlowsSchedulesCreateParams = {- created_at?: string;- created_by?: number;- id?: string;- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- updated_at?: string;- };+ export type InsightsSuggestionsRetrieveFormat = typeof InsightsSuggestionsRetrieveFormat[keyof typeof InsightsSuggestionsRetrieveFormat];- export type HogFunctionTemplatesListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- /**- * Filter to a specific template by its template_id. Deprecated templates are excluded from list results; use the retrieve endpoint to look up a template by ID regardless of status.- */- template_id?: string;- /**- * Filter by template type (e.g. destination, email, sms_provider, broadcast). Defaults to destination if neither type nor types is provided.- */- type?: string;- /**- * Comma-separated list of template types to include (e.g. destination,email,sms_provider).- */- types?: string;++ export const InsightsSuggestionsRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type InsightsSuggestionsCreateParams = {+ format?: InsightsSuggestionsCreateFormat;};- export type HogFunctionsListParams = {- created_at?: string;- created_by?: number;- enabled?: boolean;- id?: string;+ export type InsightsSuggestionsCreateFormat = typeof InsightsSuggestionsCreateFormat[keyof typeof InsightsSuggestionsCreateFormat];+++ export const InsightsSuggestionsCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type InsightsAllActivityRetrieveParams = {+ format?: InsightsAllActivityRetrieveFormat;/**- * Number of results to return per page.+ * Page size. Defaults to 10.*/limit?: number;/**- * The initial index from which to return the results.- */- offset?: number;- /**- * Multiple values may be separated by commas.+ * 1-indexed page number. Defaults to 1.*/- type?: string[];- updated_at?: string;+ page?: number;};- export type HogFunctionsLogsRetrieveParams = {- /**- * Only return entries after this ISO 8601 timestamp.- */- after?: string;- /**- * Only return entries before this ISO 8601 timestamp.- */- before?: string;- /**- * Filter logs to a specific execution instance.- * @minLength 1- */- instance_id?: string;- /**- * Comma-separated log levels to include, e.g. 'WARN,ERROR'. Valid levels: DEBUG, LOG, INFO, WARN, ERROR.- * @minLength 1- */- level?: string;- /**- * Maximum number of log entries to return (1-500, default 50).- * @minimum 1- * @maximum 500- */- limit?: number;- /**- * Case-insensitive substring search across log messages.- * @minLength 1- */- search?: string;+ export type InsightsAllActivityRetrieveFormat = typeof InsightsAllActivityRetrieveFormat[keyof typeof InsightsAllActivityRetrieveFormat];+++ export const InsightsAllActivityRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type InsightsBulkUpdateTagsCreateParams = {+ format?: InsightsBulkUpdateTagsCreateFormat;};- export type HogFunctionsMetricsRetrieveParams = {- /**- * Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'.- * @minLength 1- */- after?: string;- /**- * End of the time range. Same format as 'after'. Defaults to now.- * @minLength 1- */- before?: string;- /**- * Group the series by metric 'name' or 'kind'. Defaults to 'kind'.+ export type InsightsBulkUpdateTagsCreateFormat = typeof InsightsBulkUpdateTagsCreateFormat[keyof typeof InsightsBulkUpdateTagsCreateFormat];- * `name` - name- * `kind` - kind- * @minLength 1- */- breakdown_by?: HogFunctionsMetricsRetrieveBreakdownBy;- /**- * Filter metrics to a specific execution instance.- * @minLength 1- */- instance_id?: string;- /**- * Time bucket size for the series. One of: hour, day, week. Defaults to 'day'.- * `hour` - hour- * `day` - day- * `week` - week- * @minLength 1- */- interval?: HogFunctionsMetricsRetrieveInterval;- /**- * Comma-separated metric kinds to filter by, e.g. 'success,failure'.- * @minLength 1- */- kind?: string;- /**- * Comma-separated metric names to filter by.- * @minLength 1- */- name?: string;+ export const InsightsBulkUpdateTagsCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type InsightsCancelCreateParams = {+ format?: InsightsCancelCreateFormat;};- export type HogFunctionsMetricsRetrieveBreakdownBy = typeof HogFunctionsMetricsRetrieveBreakdownBy[keyof typeof HogFunctionsMetricsRetrieveBreakdownBy];+ export type InsightsCancelCreateFormat = typeof InsightsCancelCreateFormat[keyof typeof InsightsCancelCreateFormat];- export const HogFunctionsMetricsRetrieveBreakdownBy = {- Name: 'name',- Kind: 'kind',+ export const InsightsCancelCreateFormat = {+ Csv: 'csv',+ Json: 'json',} as const;- export type HogFunctionsMetricsRetrieveInterval = typeof HogFunctionsMetricsRetrieveInterval[keyof typeof HogFunctionsMetricsRetrieveInterval];+ export type InsightsGenerateMetadataCreateParams = {+ format?: InsightsGenerateMetadataCreateFormat;+ };++ export type InsightsGenerateMetadataCreateFormat = typeof InsightsGenerateMetadataCreateFormat[keyof typeof InsightsGenerateMetadataCreateFormat];- export const HogFunctionsMetricsRetrieveInterval = {- Hour: 'hour',- Day: 'day',- Week: 'week',+ export const InsightsGenerateMetadataCreateFormat = {+ Csv: 'csv',+ Json: 'json',} as const;- export type HogFunctionsMetricsTotalsRetrieveParams = {- /**- * Start of the time range. Accepts relative formats like '-7d', '-24h' or ISO 8601 timestamps. Defaults to '-7d'.- * @minLength 1- */- after?: string;- /**- * End of the time range. Same format as 'after'. Defaults to now.- * @minLength 1- */- before?: string;- /**- * Group the series by metric 'name' or 'kind'. Defaults to 'kind'.+ export type InsightsMyLastViewedRetrieveParams = {+ format?: InsightsMyLastViewedRetrieveFormat;+ };- * `name` - name- * `kind` - kind- * @minLength 1- */- breakdown_by?: HogFunctionsMetricsTotalsRetrieveBreakdownBy;- /**- * Filter metrics to a specific execution instance.- * @minLength 1- */- instance_id?: string;- /**- * Time bucket size for the series. One of: hour, day, week. Defaults to 'day'.+ export type InsightsMyLastViewedRetrieveFormat = typeof InsightsMyLastViewedRetrieveFormat[keyof typeof InsightsMyLastViewedRetrieveFormat];+++ export const InsightsMyLastViewedRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;- * `hour` - hour- * `day` - day- * `week` - week- * @minLength 1+ export type InsightsTrendingRetrieveParams = {+ /**+ * Time window in days to compute view counts over. Defaults to 7. Larger windows surface consistently popular insights; smaller windows surface what's hot right now.*/- interval?: HogFunctionsMetricsTotalsRetrieveInterval;+ days?: number;+ format?: InsightsTrendingRetrieveFormat;/**- * Comma-separated metric kinds to filter by, e.g. 'success,failure'.- * @minLength 1+ * Maximum number of insights to return. Defaults to 10. Capped at 100.*/- kind?: string;+ limit?: number;/**- * Comma-separated metric names to filter by.- * @minLength 1+ * The initial index from which to return the results.*/- name?: string;+ offset?: number;};- export type HogFunctionsMetricsTotalsRetrieveBreakdownBy = typeof HogFunctionsMetricsTotalsRetrieveBreakdownBy[keyof typeof HogFunctionsMetricsTotalsRetrieveBreakdownBy];+ export type InsightsTrendingRetrieveFormat = typeof InsightsTrendingRetrieveFormat[keyof typeof InsightsTrendingRetrieveFormat];- export const HogFunctionsMetricsTotalsRetrieveBreakdownBy = {- Name: 'name',- Kind: 'kind',+ export const InsightsTrendingRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',} as const;- export type HogFunctionsMetricsTotalsRetrieveInterval = typeof HogFunctionsMetricsTotalsRetrieveInterval[keyof typeof HogFunctionsMetricsTotalsRetrieveInterval];+ export type InsightsViewedCreateParams = {+ format?: InsightsViewedCreateFormat;+ };+ export type InsightsViewedCreateFormat = typeof InsightsViewedCreateFormat[keyof typeof InsightsViewedCreateFormat];- export const HogFunctionsMetricsTotalsRetrieveInterval = {- Hour: 'hour',- Day: 'day',- Week: 'week',- } as const;- export type InsightVariablesListParams = {- /**- * A page number within the paginated result set.- */- page?: number;- };+ export const InsightsViewedCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;- export type InsightsListParams = {- /**- * Return basic insight metadata only (no results, faster).- */- basic?: boolean;- /**- * JSON-encoded array of user IDs. Only returns insights whose `created_by` is in the list, e.g. `[1,42]`.- */- created_by?: string;- /**- * Filter by `created_at > created_date_from`. Accepts absolute or relative dates.- */- created_date_from?: string;- /**- * Filter by `created_at < created_date_to`. Accepts absolute or relative dates.- */- created_date_to?: string;- /**- * JSON-encoded array of dashboard IDs. Returns insights attached to every listed dashboard (AND).- */- dashboards?: string;- /**- * Filter by `last_modified_at > date_from`. Accepts absolute dates (`2025-04-23`) or relative strings (`-7d`, `-1m`).- */- date_from?: string;- /**- * Filter by `last_modified_at < date_to`. Accepts absolute dates or relative strings.- */- date_to?: string;- /**- * Include this parameter (any value) to restrict results to insights marked as favorited.- */- favorited?: boolean;- format?: InsightsListFormat;- /**- * Restrict to a single insight type. `JSON` matches non-wrapper query insights; `SQL` matches HogQL queries.- */- insight?: InsightsListInsight;- /**- * Filter by `last_viewed_at > last_viewed_date_from`. Accepts absolute or relative dates.- */- last_viewed_date_from?: string;+ export type IntegrationsListParams = {/**- * Filter by `last_viewed_at < last_viewed_date_to`. Accepts absolute or relative dates.+ * * `anthropic` - Anthropic+ * `apns` - Apple Push+ * `azure-blob` - Azure Blob+ * `bing-ads` - Bing Ads+ * `clickup` - Clickup+ * `customerio-app` - Customerio App+ * `customerio-track` - Customerio Track+ * `customerio-webhook` - Customerio Webhook+ * `databricks` - Databricks+ * `email` - Email+ * `firebase` - Firebase+ * `github` - Github+ * `gitlab` - Gitlab+ * `google-ads` - Google Ads+ * `google-cloud-service-account` - Google Cloud Service Account+ * `google-cloud-storage` - Google Cloud Storage+ * `google-pubsub` - Google Pubsub+ * `google-sheets` - Google Sheets+ * `hubspot` - Hubspot+ * `intercom` - Intercom+ * `jira` - Jira+ * `linear` - Linear+ * `linkedin-ads` - Linkedin Ads+ * `meta-ads` - Meta Ads+ * `pinterest-ads` - Pinterest Ads+ * `postgresql` - Postgresql+ * `reddit-ads` - Reddit Ads+ * `salesforce` - Salesforce+ * `slack` - Slack+ * `slack-posthog-code` - Slack Posthog Code+ * `snapchat` - Snapchat+ * `stripe` - Stripe+ * `tiktok-ads` - Tiktok Ads+ * `twilio` - Twilio+ * `vercel` - Vercel*/- last_viewed_date_to?: string;+ kind?: IntegrationsListKind;/*** Number of results to return per page.*/@@ -46705,381 +47459,321 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ };++ export type IntegrationsListKind = typeof IntegrationsListKind[keyof typeof IntegrationsListKind];+++ export const IntegrationsListKind = {+ Anthropic: 'anthropic',+ Apns: 'apns',+ AzureBlob: 'azure-blob',+ BingAds: 'bing-ads',+ Clickup: 'clickup',+ CustomerioApp: 'customerio-app',+ CustomerioTrack: 'customerio-track',+ CustomerioWebhook: 'customerio-webhook',+ Databricks: 'databricks',+ Email: 'email',+ Firebase: 'firebase',+ Github: 'github',+ Gitlab: 'gitlab',+ GoogleAds: 'google-ads',+ GoogleCloudServiceAccount: 'google-cloud-service-account',+ GoogleCloudStorage: 'google-cloud-storage',+ GooglePubsub: 'google-pubsub',+ GoogleSheets: 'google-sheets',+ Hubspot: 'hubspot',+ Intercom: 'intercom',+ Jira: 'jira',+ Linear: 'linear',+ LinkedinAds: 'linkedin-ads',+ MetaAds: 'meta-ads',+ PinterestAds: 'pinterest-ads',+ Postgresql: 'postgresql',+ RedditAds: 'reddit-ads',+ Salesforce: 'salesforce',+ Slack: 'slack',+ SlackPosthogCode: 'slack-posthog-code',+ Snapchat: 'snapchat',+ Stripe: 'stripe',+ TiktokAds: 'tiktok-ads',+ Twilio: 'twilio',+ Vercel: 'vercel',+ } as const;++ export type IntegrationsChannelsRetrieveParams = {/**- *- Whether to refresh the retrieved insights, how aggressively, and if sync or async:- - `'force_cache'` - return cached data or a cache miss; always completes immediately as it never calculates- - `'blocking'` - calculate synchronously (returning only when the query is done), UNLESS there are very fresh results in the cache- - `'async'` - kick off background calculation (returning immediately with a query status), UNLESS there are very fresh results in the cache- - `'lazy_async'` - kick off background calculation, UNLESS there are somewhat fresh results in the cache- - `'force_blocking'` - calculate synchronously, even if fresh results are already cached- - `'force_async'` - kick off background calculation, even if fresh results are already cached- Background calculation can be tracked using the `query_status` response field.+ * Maximum number of channels to return per request (max 200).+ * @minimum 1+ * @maximum 200*/- refresh?: InsightsListRefresh;+ limit?: number;/**- * When truthy, restricts results to insights that are saved (or attached to a visible dashboard). When falsy, only unsaved insights.+ * Number of channels to skip before returning results.+ * @minimum 0*/- saved?: boolean;+ offset?: number;/**- * Case-insensitive substring match across name, derived_name, description, and tag names.+ * Optional case-insensitive channel name or ID search query.*/search?: string;- short_id?: string;+ };++ export type IntegrationsGithubBranchesRetrieveParams = {/**- * JSON-encoded array of tag names. Returns insights with any of the listed tags.+ * Maximum number of branches to return+ * @minimum 1+ * @maximum 1000*/- tags?: string;+ limit?: number;/**- * Include this parameter (any value) to restrict results to insights created by the authenticated user.+ * Number of branches to skip+ * @minimum 0*/- user?: boolean;- };-- export type InsightsListFormat = typeof InsightsListFormat[keyof typeof InsightsListFormat];--- export const InsightsListFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type InsightsListInsight = typeof InsightsListInsight[keyof typeof InsightsListInsight];--- export const InsightsListInsight = {- Funnels: 'FUNNELS',- Json: 'JSON',- Lifecycle: 'LIFECYCLE',- Paths: 'PATHS',- Retention: 'RETENTION',- Sql: 'SQL',- Stickiness: 'STICKINESS',- Trends: 'TRENDS',- } as const;-- export type InsightsListRefresh = typeof InsightsListRefresh[keyof typeof InsightsListRefresh];--- export const InsightsListRefresh = {- Async: 'async',- AsyncExceptOnCacheMiss: 'async_except_on_cache_miss',- Blocking: 'blocking',- ForceAsync: 'force_async',- ForceBlocking: 'force_blocking',- ForceCache: 'force_cache',- LazyAsync: 'lazy_async',- } as const;-- export type InsightsCreateParams = {- format?: InsightsCreateFormat;+ offset?: number;+ /**+ * Repository in owner/repo format+ * @minLength 1+ */+ repo: string;+ /**+ * Optional case-insensitive branch name search query.+ */+ search?: string;};- export type InsightsCreateFormat = typeof InsightsCreateFormat[keyof typeof InsightsCreateFormat];--- export const InsightsCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type InsightsThresholdsListParams = {+ export type IntegrationsGithubReposRetrieveParams = {/**- * Number of results to return per page.+ * Maximum number of repositories to return per request (max 500).+ * @minimum 1+ * @maximum 500*/limit?: number;/**- * The initial index from which to return the results.+ * Number of repositories to skip before returning results.+ * @minimum 0*/offset?: number;- };-- export type InsightsRetrieveParams = {/**- * Object (or pre-encoded JSON string) to override the insight's filters for this request only (not persisted). Top-level keys replace; nested values are not deep-merged — pass the complete value for any key you override. Accepts the same keys as the dashboard filters schema (e.g., `date_from`, `date_to`, `properties`). Ignored when accessed via a sharing token.+ * Optional case-insensitive repository name search query.*/- filters_override?: string;- format?: InsightsRetrieveFormat;+ search?: string;+ };++ export type IntegrationsGithubTeamsRetrieveParams = {/**- *- Only if loading an insight in the context of a dashboard: The relevant dashboard's ID.- When set, the specified dashboard's filters and date range override will be applied.+ * Maximum number of teams to return per request (max 500).+ * @minimum 1+ * @maximum 500*/- from_dashboard?: number;+ limit?: number;/**- *- Whether to refresh the insight, how aggresively, and if sync or async:- - `'force_cache'` - return cached data or a cache miss; always completes immediately as it never calculates- - `'blocking'` - calculate synchronously (returning only when the query is done), UNLESS there are very fresh results in the cache- - `'async'` - kick off background calculation (returning immediately with a query status), UNLESS there are very fresh results in the cache- - `'lazy_async'` - kick off background calculation, UNLESS there are somewhat fresh results in the cache- - `'force_blocking'` - calculate synchronously, even if fresh results are already cached- - `'force_async'` - kick off background calculation, even if fresh results are already cached- Background calculation can be tracked using the `query_status` response field.+ * Number of teams to skip before returning results.+ * @minimum 0*/- refresh?: InsightsRetrieveRefresh;+ offset?: number;/**- * Object (or pre-encoded JSON string) to override the insight's HogQL variables for this request only (not persisted). Format: {"<variable_id>": {"code_name": "<code_name>", "variableId": "<variable_id>", "value": <new_value>}}. Each entry must include `code_name` — partial entries are silently dropped. The simplest workflow is to call `insight-get` first, copy the matching entry from the response, and mutate `value`. Top-level keys replace; nested values are not deep-merged. Ignored when accessed via a sharing token.+ * Optional case-insensitive team name or slug search query.*/- variables_override?: string;- };-- export type InsightsRetrieveFormat = typeof InsightsRetrieveFormat[keyof typeof InsightsRetrieveFormat];--- export const InsightsRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type InsightsRetrieveRefresh = typeof InsightsRetrieveRefresh[keyof typeof InsightsRetrieveRefresh];--- export const InsightsRetrieveRefresh = {- Async: 'async',- AsyncExceptOnCacheMiss: 'async_except_on_cache_miss',- Blocking: 'blocking',- ForceAsync: 'force_async',- ForceBlocking: 'force_blocking',- ForceCache: 'force_cache',- LazyAsync: 'lazy_async',- } as const;-- export type InsightsUpdateParams = {- format?: InsightsUpdateFormat;- };-- export type InsightsUpdateFormat = typeof InsightsUpdateFormat[keyof typeof InsightsUpdateFormat];--- export const InsightsUpdateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type InsightsPartialUpdateParams = {- format?: InsightsPartialUpdateFormat;- };-- export type InsightsPartialUpdateFormat = typeof InsightsPartialUpdateFormat[keyof typeof InsightsPartialUpdateFormat];--- export const InsightsPartialUpdateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type InsightsDestroyParams = {- format?: InsightsDestroyFormat;+ search?: string;};- export type InsightsDestroyFormat = typeof InsightsDestroyFormat[keyof typeof InsightsDestroyFormat];+ export type JsSnippetResolveRetrieve200 = { [key: string]: unknown };+ export type JsSnippetVersionRetrieve200 = { [key: string]: unknown };- export const InsightsDestroyFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type JsSnippetVersionPartialUpdate200 = { [key: string]: unknown };- export type InsightsActivityRetrieveParams = {- format?: InsightsActivityRetrieveFormat;+ export type LiveDebuggerBreakpointsListParams = {+ filename?: string;/**- * Page size. Defaults to 10.+ * Number of results to return per page.*/limit?: number;/**- * 1-indexed page number. Defaults to 1.+ * The initial index from which to return the results.*/- page?: number;+ offset?: number;+ repository?: string;};- export type InsightsActivityRetrieveFormat = typeof InsightsActivityRetrieveFormat[keyof typeof InsightsActivityRetrieveFormat];--- export const InsightsActivityRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type InsightsAnalyzeRetrieveParams = {- format?: InsightsAnalyzeRetrieveFormat;+ export type LiveDebuggerBreakpointsActiveRetrieveParams = {+ /**+ * Only return enabled breakpoints+ */+ enabled?: boolean;+ /**+ * Filter breakpoints for a specific file+ */+ filename?: string;+ /**+ * Filter breakpoints for a specific repository (e.g., 'PostHog/posthog')+ */+ repository?: string;};- export type InsightsAnalyzeRetrieveFormat = typeof InsightsAnalyzeRetrieveFormat[keyof typeof InsightsAnalyzeRetrieveFormat];--- export const InsightsAnalyzeRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type InsightsSuggestionsRetrieveParams = {- format?: InsightsSuggestionsRetrieveFormat;+ export type LiveDebuggerBreakpointsBreakpointHitsRetrieveParams = {+ /**+ * Filter hits for specific breakpoints (repeat parameter for multiple IDs, e.g., ?breakpoint_ids=uuid1&breakpoint_ids=uuid2)+ */+ breakpoint_ids?: string;+ /**+ * Number of hits to return (default: 100, max: 1000)+ */+ limit?: number;+ /**+ * Pagination offset for retrieving additional results (default: 0)+ */+ offset?: number;};- export type InsightsSuggestionsRetrieveFormat = typeof InsightsSuggestionsRetrieveFormat[keyof typeof InsightsSuggestionsRetrieveFormat];-+ export type LlmAnalyticsClusteringConfigRetrieve200 = { [key: string]: unknown };- export const InsightsSuggestionsRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type LlmAnalyticsClusteringConfigSetEventFiltersCreate200 = { [key: string]: unknown };- export type InsightsSuggestionsCreateParams = {- format?: InsightsSuggestionsCreateFormat;+ export type LlmAnalyticsClusteringJobsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type InsightsSuggestionsCreateFormat = typeof InsightsSuggestionsCreateFormat[keyof typeof InsightsSuggestionsCreateFormat];--- export const InsightsSuggestionsCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type InsightsAllActivityRetrieveParams = {- format?: InsightsAllActivityRetrieveFormat;+ export type LlmAnalyticsEvaluationReportsListParams = {/**- * Page size. Defaults to 10.+ * Number of results to return per page.*/limit?: number;/**- * 1-indexed page number. Defaults to 1.+ * The initial index from which to return the results.*/- page?: number;+ offset?: number;};- export type InsightsAllActivityRetrieveFormat = typeof InsightsAllActivityRetrieveFormat[keyof typeof InsightsAllActivityRetrieveFormat];--- export const InsightsAllActivityRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type InsightsBulkUpdateTagsCreateParams = {- format?: InsightsBulkUpdateTagsCreateFormat;+ export type LlmAnalyticsEvaluationReportsRunsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type InsightsBulkUpdateTagsCreateFormat = typeof InsightsBulkUpdateTagsCreateFormat[keyof typeof InsightsBulkUpdateTagsCreateFormat];--- export const InsightsBulkUpdateTagsCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type InsightsCancelCreateParams = {- format?: InsightsCancelCreateFormat;- };+ export type LlmAnalyticsEvaluationSummaryCreate400 = { [key: string]: unknown };- export type InsightsCancelCreateFormat = typeof InsightsCancelCreateFormat[keyof typeof InsightsCancelCreateFormat];+ export type LlmAnalyticsEvaluationSummaryCreate403 = { [key: string]: unknown };+ export type LlmAnalyticsEvaluationSummaryCreate404 = { [key: string]: unknown };- export const InsightsCancelCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type LlmAnalyticsEvaluationSummaryCreate500 = { [key: string]: unknown };- export type InsightsGenerateMetadataCreateParams = {- format?: InsightsGenerateMetadataCreateFormat;+ export type LlmAnalyticsModelsRetrieveParams = {+ /**+ * Optional provider key UUID. When supplied, models reachable with that specific key are returned (useful for Azure OpenAI, where the deployment list depends on the configured endpoint). Must belong to the same provider as the `provider` parameter.+ */+ key_id?: string;+ /**+ * LLM provider to list models for. Must be one of the supported providers.+ */+ provider: LlmAnalyticsModelsRetrieveProvider;};- export type InsightsGenerateMetadataCreateFormat = typeof InsightsGenerateMetadataCreateFormat[keyof typeof InsightsGenerateMetadataCreateFormat];+ export type LlmAnalyticsModelsRetrieveProvider = typeof LlmAnalyticsModelsRetrieveProvider[keyof typeof LlmAnalyticsModelsRetrieveProvider];- export const InsightsGenerateMetadataCreateFormat = {- Csv: 'csv',- Json: 'json',+ export const LlmAnalyticsModelsRetrieveProvider = {+ Anthropic: 'anthropic',+ AzureOpenai: 'azure_openai',+ Fireworks: 'fireworks',+ Gemini: 'gemini',+ Openai: 'openai',+ Openrouter: 'openrouter',+ TogetherAi: 'together_ai',} as const;- export type InsightsMyLastViewedRetrieveParams = {- format?: InsightsMyLastViewedRetrieveFormat;- };-- export type InsightsMyLastViewedRetrieveFormat = typeof InsightsMyLastViewedRetrieveFormat[keyof typeof InsightsMyLastViewedRetrieveFormat];+ export type LlmAnalyticsOfflineEvaluationsExperimentItemsCreate400 = { [key: string]: unknown };+ export type LlmAnalyticsOfflineEvaluationsExperimentItemsCreate500 = { [key: string]: unknown };- export const InsightsMyLastViewedRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type LlmAnalyticsProviderKeyValidationsCreate200 = { [key: string]: unknown };- export type InsightsTrendingRetrieveParams = {+ export type LlmAnalyticsProviderKeysListParams = {/**- * Time window in days to compute view counts over. Defaults to 7. Larger windows surface consistently popular insights; smaller windows surface what's hot right now.+ * Number of results to return per page.*/- days?: number;- format?: InsightsTrendingRetrieveFormat;+ limit?: number;/**- * Maximum number of insights to return. Defaults to 10. Capped at 100.+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type LlmAnalyticsReviewQueueItemsListParams = {+ /**+ * Number of results to return per page.*/limit?: number;/*** The initial index from which to return the results.*/offset?: number;+ /**+ * Order by `created_at` or `updated_at`.+ */+ order_by?: string;+ /**+ * Filter by a specific review queue ID.+ */+ queue_id?: string;+ /**+ * Search pending trace IDs.+ */+ search?: string;+ /**+ * Filter by an exact trace ID.+ */+ trace_id?: string;+ /**+ * Filter by multiple trace IDs separated by commas.+ */+ trace_id__in?: string;};- export type InsightsTrendingRetrieveFormat = typeof InsightsTrendingRetrieveFormat[keyof typeof InsightsTrendingRetrieveFormat];--- export const InsightsTrendingRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type InsightsViewedCreateParams = {- format?: InsightsViewedCreateFormat;+ export type LlmAnalyticsReviewQueuesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ name?: string;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Order by `name`, `updated_at`, or `created_at`.+ */+ order_by?: string;+ /**+ * Search review queue names.+ */+ search?: string;};- export type InsightsViewedCreateFormat = typeof InsightsViewedCreateFormat[keyof typeof InsightsViewedCreateFormat];--- export const InsightsViewedCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type IntegrationsListParams = {+ export type LlmAnalyticsScoreDefinitionsListParams = {/**- * * `anthropic` - Anthropic- * `apns` - Apple Push- * `azure-blob` - Azure Blob- * `bing-ads` - Bing Ads- * `clickup` - Clickup- * `customerio-app` - Customerio App- * `customerio-track` - Customerio Track- * `customerio-webhook` - Customerio Webhook- * `databricks` - Databricks- * `email` - Email- * `firebase` - Firebase- * `github` - Github- * `gitlab` - Gitlab- * `google-ads` - Google Ads- * `google-cloud-service-account` - Google Cloud Service Account- * `google-cloud-storage` - Google Cloud Storage- * `google-pubsub` - Google Pubsub- * `google-sheets` - Google Sheets- * `hubspot` - Hubspot- * `intercom` - Intercom- * `jira` - Jira- * `linear` - Linear- * `linkedin-ads` - Linkedin Ads- * `meta-ads` - Meta Ads- * `pinterest-ads` - Pinterest Ads- * `postgresql` - Postgresql- * `reddit-ads` - Reddit Ads- * `salesforce` - Salesforce- * `slack` - Slack- * `slack-posthog-code` - Slack Posthog Code- * `snapchat` - Snapchat- * `stripe` - Stripe- * `tiktok-ads` - Tiktok Ads- * `twilio` - Twilio- * `vercel` - Vercel+ * Filter by archived state.*/- kind?: IntegrationsListKind;+ archived?: boolean;+ /**+ * Filter by scorer kind.+ */+ kind?: string;/*** Number of results to return per page.*/@@ -47088,134 +47782,173 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ /**+ * Sort by name, kind, created_at, updated_at, or current_version.+ */+ order_by?: string;+ /**+ * Search scorers by name or description.+ */+ search?: string;};- export type IntegrationsListKind = typeof IntegrationsListKind[keyof typeof IntegrationsListKind];+ export type LlmAnalyticsSentimentCreate400 = { [key: string]: unknown };+ export type LlmAnalyticsSentimentCreate500 = { [key: string]: unknown };- export const IntegrationsListKind = {- Anthropic: 'anthropic',- Apns: 'apns',- AzureBlob: 'azure-blob',- BingAds: 'bing-ads',- Clickup: 'clickup',- CustomerioApp: 'customerio-app',- CustomerioTrack: 'customerio-track',- CustomerioWebhook: 'customerio-webhook',- Databricks: 'databricks',- Email: 'email',- Firebase: 'firebase',- Github: 'github',- Gitlab: 'gitlab',- GoogleAds: 'google-ads',- GoogleCloudServiceAccount: 'google-cloud-service-account',- GoogleCloudStorage: 'google-cloud-storage',- GooglePubsub: 'google-pubsub',- GoogleSheets: 'google-sheets',- Hubspot: 'hubspot',- Intercom: 'intercom',- Jira: 'jira',- Linear: 'linear',- LinkedinAds: 'linkedin-ads',- MetaAds: 'meta-ads',- PinterestAds: 'pinterest-ads',- Postgresql: 'postgresql',- RedditAds: 'reddit-ads',- Salesforce: 'salesforce',- Slack: 'slack',- SlackPosthogCode: 'slack-posthog-code',- Snapchat: 'snapchat',- Stripe: 'stripe',- TiktokAds: 'tiktok-ads',- Twilio: 'twilio',- Vercel: 'vercel',- } as const;+ export type LlmAnalyticsSentimentGenerationsCreate400 = { [key: string]: unknown };- export type IntegrationsChannelsRetrieveParams = {+ export type LlmAnalyticsSentimentGenerationsCreate500 = { [key: string]: unknown };++ export type LlmAnalyticsSummarizationCreate400 = { [key: string]: unknown };++ export type LlmAnalyticsSummarizationCreate403 = { [key: string]: unknown };++ export type LlmAnalyticsSummarizationCreate500 = { [key: string]: unknown };++ export type LlmAnalyticsSummarizationBatchCheckCreate400 = { [key: string]: unknown };++ export type LlmAnalyticsSummarizationBatchCheckCreate403 = { [key: string]: unknown };++ export type LlmAnalyticsTextReprCreate400 = { [key: string]: unknown };++ export type LlmAnalyticsTextReprCreate500 = { [key: string]: unknown };++ export type LlmAnalyticsTextReprCreate503 = { [key: string]: unknown };++ export type LlmAnalyticsTraceReviewsListParams = {/**- * Maximum number of channels to return per request (max 200).- * @minimum 1- * @maximum 200+ * Filter by a stable scorer definition ID.+ */+ definition_id?: string;+ /**+ * Filter by multiple scorer definition IDs separated by commas.+ */+ definition_id__in?: string;+ /**+ * Number of results to return per page.*/limit?: number;/**- * Number of channels to skip before returning results.- * @minimum 0+ * The initial index from which to return the results.*/offset?: number;/**- * Optional case-insensitive channel name or ID search query.+ * Order by `updated_at` or `created_at`.+ */+ order_by?: string;+ /**+ * Search trace IDs and comments.*/search?: string;+ /**+ * Filter by an exact trace ID.+ */+ trace_id?: string;+ /**+ * Filter by multiple trace IDs separated by commas.+ */+ trace_id__in?: string;};- export type IntegrationsGithubBranchesRetrieveParams = {+ export type LlmAnalyticsTranslateCreate200 = { [key: string]: unknown };++ export type LlmPromptsListParams = {+ /**+ * Controls how much prompt content is included in the response. 'full' includes the full prompt, 'preview' includes a short prompt_preview, and 'none' omits prompt content entirely. The outline field is always included.++ * `full` - full+ * `preview` - preview+ * `none` - none+ * @minLength 1+ */+ content?: LlmPromptsListContent;+ /**+ * Filter prompts by the ID of the user who created them.+ */+ created_by_id?: number;/**- * Maximum number of branches to return- * @minimum 1- * @maximum 1000+ * Number of results to return per page.*/limit?: number;/**- * Number of branches to skip- * @minimum 0+ * The initial index from which to return the results.*/offset?: number;/**- * Repository in owner/repo format- * @minLength 1- */- repo: string;- /**- * Optional case-insensitive branch name search query.+ * Optional substring filter applied to prompt names and prompt content.*/search?: string;};- export type IntegrationsGithubReposRetrieveParams = {- /**- * Maximum number of repositories to return per request (max 500).- * @minimum 1- * @maximum 500- */- limit?: number;+ export type LlmPromptsListContent = typeof LlmPromptsListContent[keyof typeof LlmPromptsListContent];+++ export const LlmPromptsListContent = {+ Full: 'full',+ Preview: 'preview',+ None: 'none',+ } as const;++ export type LlmPromptsNameRetrieveParams = {/**- * Number of repositories to skip before returning results.- * @minimum 0+ * Controls how much prompt content is included in the response. 'full' includes the full prompt, 'preview' includes a short prompt_preview, and 'none' omits prompt content entirely. The outline field is always included.++ * `full` - full+ * `preview` - preview+ * `none` - none+ * @minLength 1*/- offset?: number;+ content?: LlmPromptsNameRetrieveContent;/**- * Optional case-insensitive repository name search query.+ * Specific prompt version to fetch. If omitted, the latest version is returned.+ * @minimum 1*/- search?: string;+ version?: number;};- export type IntegrationsGithubTeamsRetrieveParams = {+ export type LlmPromptsNameRetrieveContent = typeof LlmPromptsNameRetrieveContent[keyof typeof LlmPromptsNameRetrieveContent];+++ export const LlmPromptsNameRetrieveContent = {+ Full: 'full',+ Preview: 'preview',+ None: 'none',+ } as const;++ export type LlmPromptsResolveNameRetrieveParams = {/**- * Maximum number of teams to return per request (max 500).+ * Return versions older than this version number. Mutually exclusive with offset.* @minimum 1- * @maximum 500+ */+ before_version?: number;+ /**+ * Maximum number of versions to return per page (1-100).+ * @minimum 1+ * @maximum 100*/limit?: number;/**- * Number of teams to skip before returning results.+ * Zero-based offset into version history for pagination. Mutually exclusive with before_version.* @minimum 0*/offset?: number;/**- * Optional case-insensitive team name or slug search query.+ * Specific prompt version to fetch. If omitted, the latest version is returned.+ * @minimum 1*/- search?: string;+ version?: number;+ /**+ * Exact prompt version UUID to resolve. Can be used together with version for extra safety.+ */+ version_id?: string;};- export type JsSnippetResolveRetrieve200 = { [key: string]: unknown };-- export type JsSnippetVersionRetrieve200 = { [key: string]: unknown };-- export type JsSnippetVersionPartialUpdate200 = { [key: string]: unknown };-- export type LiveDebuggerBreakpointsListParams = {- filename?: string;+ export type LlmSkillsListParams = {+ /**+ * Filter skills by the ID of the user who created them.+ */+ created_by_id?: number;/*** Number of results to return per page.*/@@ -47224,37 +47957,62 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- repository?: string;+ /**+ * Optional substring filter applied to skill names and descriptions.+ */+ search?: string;};- export type LiveDebuggerBreakpointsActiveRetrieveParams = {+ export type LlmSkillsNameRetrieveParams = {/**- * Only return enabled breakpoints+ * Specific skill version to fetch. If omitted, the latest version is returned.+ * @minimum 1*/- enabled?: boolean;+ version?: number;+ };++ export type LlmSkillsNameFilesRetrieveParams = {/**- * Filter breakpoints for a specific file+ * Specific skill version to fetch. If omitted, the latest version is returned.+ * @minimum 1*/- filename?: string;+ version?: number;+ };++ export type LlmSkillsNameFilesDestroyParams = {/**- * Filter breakpoints for a specific repository (e.g., 'PostHog/posthog')+ * Latest version you are editing from. If provided, the request fails with 409 when another write has landed in the meantime.+ * @minimum 1*/- repository?: string;+ base_version?: number;};- export type LiveDebuggerBreakpointsBreakpointHitsRetrieveParams = {+ export type LlmSkillsResolveNameRetrieveParams = {/**- * Filter hits for specific breakpoints (repeat parameter for multiple IDs, e.g., ?breakpoint_ids=uuid1&breakpoint_ids=uuid2)+ * Return versions older than this version number. Mutually exclusive with offset.+ * @minimum 1*/- breakpoint_ids?: string;+ before_version?: number;/**- * Number of hits to return (default: 100, max: 1000)+ * Maximum number of versions to return per page (1-100).+ * @minimum 1+ * @maximum 100*/limit?: number;/**- * Pagination offset for retrieving additional results (default: 0)+ * Zero-based offset into version history for pagination. Mutually exclusive with before_version.+ * @minimum 0*/offset?: number;+ /**+ * Specific skill version to fetch. If omitted, the latest version is returned.+ * @minimum 1+ */+ version?: number;+ /**+ * Exact skill version UUID to resolve.+ */+ version_id?: string;};export type LogsAlertsListParams = {@@ -47397,7 +48155,122 @@ export namespace Schemas {Resource: 'resource',} as const;- export type ManagedMigrationsListParams = {+ export type LogsViewsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type ManagedMigrationsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Which field to use when ordering the results.+ */+ ordering?: string;+ /**+ * A search term.+ */+ search?: string;+ /**+ * * `completed` - Completed+ * `failed` - Failed+ * `paused` - Paused+ * `running` - Running+ */+ status?: ManagedMigrationsListStatus;+ };++ export type ManagedMigrationsListStatus = typeof ManagedMigrationsListStatus[keyof typeof ManagedMigrationsListStatus];+++ export const ManagedMigrationsListStatus = {+ Completed: 'completed',+ Failed: 'failed',+ Paused: 'paused',+ Running: 'running',+ } as const;++ export type MarketingAnalyticsUtmAuditRetrieveParams = {+ /**+ * Start date for the audit period+ * @minLength 1+ */+ date_from?: string;+ /**+ * End date for the audit period+ * @nullable+ */+ date_to?: string | null;+ };++ export type MaterializedColumnSlotsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type McpServerInstallationsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type McpServerInstallationsAuthorizeRetrieveParams = {+ /**+ * * `posthog` - posthog+ * `posthog-code` - posthog-code+ * @minLength 1+ */+ install_source?: McpServerInstallationsAuthorizeRetrieveInstallSource;+ installation_id?: string;+ posthog_code_callback_url?: string;+ template_id?: string;+ };++ export type McpServerInstallationsAuthorizeRetrieveInstallSource = typeof McpServerInstallationsAuthorizeRetrieveInstallSource[keyof typeof McpServerInstallationsAuthorizeRetrieveInstallSource];+++ export const McpServerInstallationsAuthorizeRetrieveInstallSource = {+ Posthog: 'posthog',+ PosthogCode: 'posthog-code',+ } as const;++ export type McpServersListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };++ export type McpToolsCreate200 = { [key: string]: unknown };++ export type MessagingCategoriesListParams = {/*** Number of results to return per page.*/@@ -47406,33 +48279,19 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ };++ export type MessagingTemplatesListParams = {/**- * Which field to use when ordering the results.- */- ordering?: string;- /**- * A search term.+ * Number of results to return per page.*/- search?: string;+ limit?: number;/**- * * `completed` - Completed- * `failed` - Failed- * `paused` - Paused- * `running` - Running+ * The initial index from which to return the results.*/- status?: ManagedMigrationsListStatus;+ offset?: number;};- export type ManagedMigrationsListStatus = typeof ManagedMigrationsListStatus[keyof typeof ManagedMigrationsListStatus];--- export const ManagedMigrationsListStatus = {- Completed: 'completed',- Failed: 'failed',- Paused: 'paused',- Running: 'running',- } as const;-export type MetricsHasMetricsRetrieve200 = { [key: string]: unknown };export type MetricsValuesRetrieveParams = {@@ -47479,6 +48338,45 @@ export namespace Schemas {user?: string;};+ export type NotificationsListParams = {+ /**+ * ISO 8601 timestamp; only events at or after this time+ */+ created_after?: string;+ /**+ * ISO 8601 timestamp; only events strictly before this time+ */+ created_before?: string;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * Filter by notification type+ */+ notification_type?: string;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Filter by the ID of the resource the notification refers to+ */+ resource_id?: string;+ /**+ * Filter by the type of the resource the notification refers to (e.g. `insight`, `dashboard`)+ */+ resource_type?: string;+ /**+ * Filter by recipient target ID (e.g. a user ID)+ */+ target_id?: string;+ /**+ * Filter by recipient target type (e.g. `user`, `team`)+ */+ target_type?: string;+ };+export type ObjectMediaPreviewsListParams = {/*** Number of results to return per page.@@ -47520,185 +48418,482 @@ export namespace Schemas {*/offset?: number;/**- * Filter Persons by person properties.+ * Filter Persons by person properties.+ */+ properties?: Property[];+ /**+ * Search persons, either by email (full text search) or distinct_id (exact match).+ */+ search?: string;+ };++ export type PersonsListFormat = typeof PersonsListFormat[keyof typeof PersonsListFormat];+++ export const PersonsListFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsRetrieveParams = {+ format?: PersonsRetrieveFormat;+ };++ export type PersonsRetrieveFormat = typeof PersonsRetrieveFormat[keyof typeof PersonsRetrieveFormat];+++ export const PersonsRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsUpdateParams = {+ format?: PersonsUpdateFormat;+ };++ export type PersonsUpdateFormat = typeof PersonsUpdateFormat[keyof typeof PersonsUpdateFormat];+++ export const PersonsUpdateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsPartialUpdateParams = {+ format?: PersonsPartialUpdateFormat;+ };++ export type PersonsPartialUpdateFormat = typeof PersonsPartialUpdateFormat[keyof typeof PersonsPartialUpdateFormat];+++ export const PersonsPartialUpdateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsActivityRetrieveParams = {+ format?: PersonsActivityRetrieveFormat;+ };++ export type PersonsActivityRetrieveFormat = typeof PersonsActivityRetrieveFormat[keyof typeof PersonsActivityRetrieveFormat];+++ export const PersonsActivityRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsDeletePropertyCreateParams = {+ format?: PersonsDeletePropertyCreateFormat;+ };++ export type PersonsDeletePropertyCreateFormat = typeof PersonsDeletePropertyCreateFormat[keyof typeof PersonsDeletePropertyCreateFormat];+++ export const PersonsDeletePropertyCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsPropertiesTimelineRetrieveParams = {+ format?: PersonsPropertiesTimelineRetrieveFormat;+ };++ export type PersonsPropertiesTimelineRetrieveFormat = typeof PersonsPropertiesTimelineRetrieveFormat[keyof typeof PersonsPropertiesTimelineRetrieveFormat];+++ export const PersonsPropertiesTimelineRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsSplitCreateParams = {+ format?: PersonsSplitCreateFormat;+ };++ export type PersonsSplitCreateFormat = typeof PersonsSplitCreateFormat[keyof typeof PersonsSplitCreateFormat];+++ export const PersonsSplitCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsUpdatePropertyCreateParams = {+ format?: PersonsUpdatePropertyCreateFormat;+ };++ export type PersonsUpdatePropertyCreateFormat = typeof PersonsUpdatePropertyCreateFormat[keyof typeof PersonsUpdatePropertyCreateFormat];+++ export const PersonsUpdatePropertyCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsAllActivityRetrieveParams = {+ format?: PersonsAllActivityRetrieveFormat;+ };++ export type PersonsAllActivityRetrieveFormat = typeof PersonsAllActivityRetrieveFormat[keyof typeof PersonsAllActivityRetrieveFormat];+++ export const PersonsAllActivityRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsBatchByDistinctIdsCreateParams = {+ format?: PersonsBatchByDistinctIdsCreateFormat;+ };++ export type PersonsBatchByDistinctIdsCreateFormat = typeof PersonsBatchByDistinctIdsCreateFormat[keyof typeof PersonsBatchByDistinctIdsCreateFormat];+++ export const PersonsBatchByDistinctIdsCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsBatchByUuidsCreateParams = {+ format?: PersonsBatchByUuidsCreateFormat;+ };++ export type PersonsBatchByUuidsCreateFormat = typeof PersonsBatchByUuidsCreateFormat[keyof typeof PersonsBatchByUuidsCreateFormat];+++ export const PersonsBatchByUuidsCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsBulkDeleteCreateParams = {+ format?: PersonsBulkDeleteCreateFormat;+ };++ export type PersonsBulkDeleteCreateFormat = typeof PersonsBulkDeleteCreateFormat[keyof typeof PersonsBulkDeleteCreateFormat];+++ export const PersonsBulkDeleteCreateFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsCohortsRetrieveParams = {+ format?: PersonsCohortsRetrieveFormat;+ /**+ * The person ID or UUID to get cohorts for.+ */+ person_id: string;+ };++ export type PersonsCohortsRetrieveFormat = typeof PersonsCohortsRetrieveFormat[keyof typeof PersonsCohortsRetrieveFormat];+++ export const PersonsCohortsRetrieveFormat = {+ Csv: 'csv',+ Json: 'json',+ } as const;++ export type PersonsDeletionStatusListParams = {+ format?: PersonsDeletionStatusListFormat;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Filter by a specific person UUID.*/- properties?: Property[];+ person_uuid?: string;/**- * Search persons, either by email (full text search) or distinct_id (exact match).+ * Filter by deletion status: 'pending', 'completed', or 'all'.*/- search?: string;+ status?: PersonsDeletionStatusListStatus;};- export type PersonsListFormat = typeof PersonsListFormat[keyof typeof PersonsListFormat];+ export type PersonsDeletionStatusListFormat = typeof PersonsDeletionStatusListFormat[keyof typeof PersonsDeletionStatusListFormat];- export const PersonsListFormat = {+ export const PersonsDeletionStatusListFormat = {Csv: 'csv',Json: 'json',} as const;- export type PersonsRetrieveParams = {- format?: PersonsRetrieveFormat;- };-- export type PersonsRetrieveFormat = typeof PersonsRetrieveFormat[keyof typeof PersonsRetrieveFormat];+ export type PersonsDeletionStatusListStatus = typeof PersonsDeletionStatusListStatus[keyof typeof PersonsDeletionStatusListStatus];- export const PersonsRetrieveFormat = {- Csv: 'csv',- Json: 'json',+ export const PersonsDeletionStatusListStatus = {+ All: 'all',+ Completed: 'completed',+ Pending: 'pending',} as const;- export type PersonsUpdateParams = {- format?: PersonsUpdateFormat;+ export type PersonsFunnelRetrieveParams = {+ format?: PersonsFunnelRetrieveFormat;};- export type PersonsUpdateFormat = typeof PersonsUpdateFormat[keyof typeof PersonsUpdateFormat];+ export type PersonsFunnelRetrieveFormat = typeof PersonsFunnelRetrieveFormat[keyof typeof PersonsFunnelRetrieveFormat];- export const PersonsUpdateFormat = {+ export const PersonsFunnelRetrieveFormat = {Csv: 'csv',Json: 'json',} as const;- export type PersonsPartialUpdateParams = {- format?: PersonsPartialUpdateFormat;+ export type PersonsFunnelCreateParams = {+ format?: PersonsFunnelCreateFormat;};- export type PersonsPartialUpdateFormat = typeof PersonsPartialUpdateFormat[keyof typeof PersonsPartialUpdateFormat];+ export type PersonsFunnelCreateFormat = typeof PersonsFunnelCreateFormat[keyof typeof PersonsFunnelCreateFormat];- export const PersonsPartialUpdateFormat = {+ export const PersonsFunnelCreateFormat = {Csv: 'csv',Json: 'json',} as const;- export type PersonsActivityRetrieveParams = {- format?: PersonsActivityRetrieveFormat;+ export type PersonsFunnelCorrelationRetrieveParams = {+ format?: PersonsFunnelCorrelationRetrieveFormat;};- export type PersonsActivityRetrieveFormat = typeof PersonsActivityRetrieveFormat[keyof typeof PersonsActivityRetrieveFormat];+ export type PersonsFunnelCorrelationRetrieveFormat = typeof PersonsFunnelCorrelationRetrieveFormat[keyof typeof PersonsFunnelCorrelationRetrieveFormat];- export const PersonsActivityRetrieveFormat = {+ export const PersonsFunnelCorrelationRetrieveFormat = {Csv: 'csv',Json: 'json',} as const;- export type PersonsDeletePropertyCreateParams = {- format?: PersonsDeletePropertyCreateFormat;+ export type PersonsFunnelCorrelationCreateParams = {+ format?: PersonsFunnelCorrelationCreateFormat;};- export type PersonsDeletePropertyCreateFormat = typeof PersonsDeletePropertyCreateFormat[keyof typeof PersonsDeletePropertyCreateFormat];+ export type PersonsFunnelCorrelationCreateFormat = typeof PersonsFunnelCorrelationCreateFormat[keyof typeof PersonsFunnelCorrelationCreateFormat];- export const PersonsDeletePropertyCreateFormat = {+ export const PersonsFunnelCorrelationCreateFormat = {Csv: 'csv',Json: 'json',} as const;- export type PersonsPropertiesTimelineRetrieveParams = {- format?: PersonsPropertiesTimelineRetrieveFormat;+ export type PersonsLifecycleRetrieveParams = {+ format?: PersonsLifecycleRetrieveFormat;};- export type PersonsPropertiesTimelineRetrieveFormat = typeof PersonsPropertiesTimelineRetrieveFormat[keyof typeof PersonsPropertiesTimelineRetrieveFormat];+ export type PersonsLifecycleRetrieveFormat = typeof PersonsLifecycleRetrieveFormat[keyof typeof PersonsLifecycleRetrieveFormat];- export const PersonsPropertiesTimelineRetrieveFormat = {+ export const PersonsLifecycleRetrieveFormat = {Csv: 'csv',Json: 'json',} as const;- export type PersonsSplitCreateParams = {- format?: PersonsSplitCreateFormat;+ export type PersonsPropertiesAtTimeRetrieveParams = {+ /**+ * The distinct_id of the person (mutually exclusive with person_id)+ */+ distinct_id?: string;+ format?: PersonsPropertiesAtTimeRetrieveFormat;+ /**+ * Whether to handle $set_once operations (default: false)+ */+ include_set_once?: boolean;+ /**+ * The person_id (UUID) to build properties for (mutually exclusive with distinct_id)+ */+ person_id?: string;+ /**+ * ISO datetime string for the point in time (e.g., '2023-06-15T14:30:00Z')+ */+ timestamp: string;};- export type PersonsSplitCreateFormat = typeof PersonsSplitCreateFormat[keyof typeof PersonsSplitCreateFormat];+ export type PersonsPropertiesAtTimeRetrieveFormat = typeof PersonsPropertiesAtTimeRetrieveFormat[keyof typeof PersonsPropertiesAtTimeRetrieveFormat];- export const PersonsSplitCreateFormat = {+ export const PersonsPropertiesAtTimeRetrieveFormat = {Csv: 'csv',Json: 'json',} as const;- export type PersonsUpdatePropertyCreateParams = {- format?: PersonsUpdatePropertyCreateFormat;+ export type PersonsResetPersonDistinctIdCreateParams = {+ format?: PersonsResetPersonDistinctIdCreateFormat;};- export type PersonsUpdatePropertyCreateFormat = typeof PersonsUpdatePropertyCreateFormat[keyof typeof PersonsUpdatePropertyCreateFormat];+ export type PersonsResetPersonDistinctIdCreateFormat = typeof PersonsResetPersonDistinctIdCreateFormat[keyof typeof PersonsResetPersonDistinctIdCreateFormat];- export const PersonsUpdatePropertyCreateFormat = {+ export const PersonsResetPersonDistinctIdCreateFormat = {Csv: 'csv',Json: 'json',} as const;- export type PersonsAllActivityRetrieveParams = {- format?: PersonsAllActivityRetrieveFormat;+ export type PersonsTrendsRetrieveParams = {+ format?: PersonsTrendsRetrieveFormat;};- export type PersonsAllActivityRetrieveFormat = typeof PersonsAllActivityRetrieveFormat[keyof typeof PersonsAllActivityRetrieveFormat];+ export type PersonsTrendsRetrieveFormat = typeof PersonsTrendsRetrieveFormat[keyof typeof PersonsTrendsRetrieveFormat];- export const PersonsAllActivityRetrieveFormat = {+ export const PersonsTrendsRetrieveFormat = {Csv: 'csv',Json: 'json',} as const;- export type PersonsBatchByDistinctIdsCreateParams = {- format?: PersonsBatchByDistinctIdsCreateFormat;+ export type PersonsValuesRetrieveParams = {+ format?: PersonsValuesRetrieveFormat;+ /**+ * The person property key to get values for (e.g., 'email', 'plan', 'role').+ */+ key: string;+ /**+ * Optional search string to filter values (case-insensitive substring match).+ */+ value?: string;};- export type PersonsBatchByDistinctIdsCreateFormat = typeof PersonsBatchByDistinctIdsCreateFormat[keyof typeof PersonsBatchByDistinctIdsCreateFormat];+ export type PersonsValuesRetrieveFormat = typeof PersonsValuesRetrieveFormat[keyof typeof PersonsValuesRetrieveFormat];- export const PersonsBatchByDistinctIdsCreateFormat = {+ export const PersonsValuesRetrieveFormat = {Csv: 'csv',Json: 'json',} as const;- export type PersonsBatchByUuidsCreateParams = {- format?: PersonsBatchByUuidsCreateFormat;+ export type PluginConfigsLogsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type PersonsBatchByUuidsCreateFormat = typeof PersonsBatchByUuidsCreateFormat[keyof typeof PersonsBatchByUuidsCreateFormat];--- export const PersonsBatchByUuidsCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type PersonsBulkDeleteCreateParams = {- format?: PersonsBulkDeleteCreateFormat;+ export type ProductToursListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Fuzzy match against product tour `name` and `description` using Postgres trigram word similarity. Supports typos and prefix-as-you-type.+ */+ search?: string;};- export type PersonsBulkDeleteCreateFormat = typeof PersonsBulkDeleteCreateFormat[keyof typeof PersonsBulkDeleteCreateFormat];-+ export type ProjectSecretApiKeysListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };- export const PersonsBulkDeleteCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type PropertyDefinitionsListParams = {+ /**+ * If sent, response value will have `is_seen_on_filtered_events` populated. JSON-encoded+ * @minLength 1+ */+ event_names?: string;+ /**+ * Whether to exclude core properties+ */+ exclude_core_properties?: boolean;+ /**+ * Whether to exclude properties marked as hidden+ */+ exclude_hidden?: boolean;+ /**+ * Whether to exclude properties that the current user does not have read access to via field-level access control+ */+ exclude_restricted?: boolean;+ /**+ * JSON-encoded list of excluded properties+ * @minLength 1+ */+ excluded_properties?: string;+ /**+ * Whether to return only properties for events in `event_names`+ * @nullable+ */+ filter_by_event_names?: boolean | null;+ /**+ * What group type is the property for. Only should be set if `type=group`+ */+ group_type_index?: number;+ /**+ * Whether to return only (or excluding) feature flag properties+ * @nullable+ */+ is_feature_flag?: boolean | null;+ /**+ * Whether to return only (or excluding) numerical property definitions+ * @nullable+ */+ is_numerical?: boolean | null;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Comma-separated list of properties to filter+ * @minLength 1+ */+ properties?: string;+ /**+ * Searches properties by name+ */+ search?: string;+ /**+ * What property definitions to return- export type PersonsCohortsRetrieveParams = {- format?: PersonsCohortsRetrieveFormat;+ * `event` - event+ * `person` - person+ * `group` - group+ * `session` - session+ * @minLength 1+ */+ type?: PropertyDefinitionsListType;/**- * The person ID or UUID to get cohorts for.+ * Filter by verified status. True returns only verified, false returns only unverified.+ * @nullable*/- person_id: string;+ verified?: boolean | null;};- export type PersonsCohortsRetrieveFormat = typeof PersonsCohortsRetrieveFormat[keyof typeof PersonsCohortsRetrieveFormat];+ export type PropertyDefinitionsListType = typeof PropertyDefinitionsListType[keyof typeof PropertyDefinitionsListType];+++ export const PropertyDefinitionsListType = {+ Event: 'event',+ Person: 'person',+ Group: 'group',+ Session: 'session',+ } as const;++ export type QueryLogRetrieve200 = { [key: string]: unknown };+ export type QueryCheckAuthForAsyncCreate200 = { [key: string]: unknown };- export const PersonsCohortsRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type QueryDraftSqlRetrieve200 = { [key: string]: unknown };- export type PersonsDeletionStatusListParams = {- format?: PersonsDeletionStatusListFormat;+ export type QueryTabStateListParams = {/*** Number of results to return per page.*/@@ -47707,192 +48902,209 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ };++ export type QuickFiltersListParams = {/**- * Filter by a specific person UUID.+ * Number of results to return per page.*/- person_uuid?: string;+ limit?: number;/**- * Filter by deletion status: 'pending', 'completed', or 'all'.+ * The initial index from which to return the results.*/- status?: PersonsDeletionStatusListStatus;+ offset?: number;};- export type PersonsDeletionStatusListFormat = typeof PersonsDeletionStatusListFormat[keyof typeof PersonsDeletionStatusListFormat];--- export const PersonsDeletionStatusListFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type PersonsDeletionStatusListStatus = typeof PersonsDeletionStatusListStatus[keyof typeof PersonsDeletionStatusListStatus];--- export const PersonsDeletionStatusListStatus = {- All: 'all',- Completed: 'completed',- Pending: 'pending',- } as const;-- export type PersonsFunnelRetrieveParams = {- format?: PersonsFunnelRetrieveFormat;+ export type SandboxListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type PersonsFunnelRetrieveFormat = typeof PersonsFunnelRetrieveFormat[keyof typeof PersonsFunnelRetrieveFormat];--- export const PersonsFunnelRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type PersonsFunnelCreateParams = {- format?: PersonsFunnelCreateFormat;+ export type SavedListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type PersonsFunnelCreateFormat = typeof PersonsFunnelCreateFormat[keyof typeof PersonsFunnelCreateFormat];--- export const PersonsFunnelCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type PersonsFunnelCorrelationRetrieveParams = {- format?: PersonsFunnelCorrelationRetrieveFormat;+ export type ScheduledChangesListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * Filter by model type. Use "FeatureFlag" to see feature flag schedules.+ */+ model_name?: string;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Filter by the ID of a specific feature flag.+ */+ record_id?: string;};- export type PersonsFunnelCorrelationRetrieveFormat = typeof PersonsFunnelCorrelationRetrieveFormat[keyof typeof PersonsFunnelCorrelationRetrieveFormat];--- export const PersonsFunnelCorrelationRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type PersonsFunnelCorrelationCreateParams = {- format?: PersonsFunnelCorrelationCreateFormat;+ export type SchemaPropertyGroupsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type PersonsFunnelCorrelationCreateFormat = typeof PersonsFunnelCorrelationCreateFormat[keyof typeof PersonsFunnelCorrelationCreateFormat];--- export const PersonsFunnelCorrelationCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type PersonsLifecycleRetrieveParams = {- format?: PersonsLifecycleRetrieveFormat;+ export type SdkDoctorReportRetrieveParams = {+ /**+ * When true, bypasses the Redis cache and re-queries ClickHouse for SDK usage. Use sparingly — data is refreshed every 12 hours by a background job.+ */+ force_refresh?: boolean;};- export type PersonsLifecycleRetrieveFormat = typeof PersonsLifecycleRetrieveFormat[keyof typeof PersonsLifecycleRetrieveFormat];--- export const PersonsLifecycleRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type PersonsPropertiesAtTimeRetrieveParams = {+ export type SessionGroupSummariesListParams = {/**- * The distinct_id of the person (mutually exclusive with person_id)+ * Number of results to return per page.*/- distinct_id?: string;- format?: PersonsPropertiesAtTimeRetrieveFormat;+ limit?: number;/**- * Whether to handle $set_once operations (default: false)+ * The initial index from which to return the results.*/- include_set_once?: boolean;+ offset?: number;+ };++ export type SessionRecordingExternalReferencesListParams = {/**- * The person_id (UUID) to build properties for (mutually exclusive with distinct_id)+ * Number of results to return per page.*/- person_id?: string;+ limit?: number;/**- * ISO datetime string for the point in time (e.g., '2023-06-15T14:30:00Z')+ * The initial index from which to return the results.*/- timestamp: string;+ offset?: number;};- export type PersonsPropertiesAtTimeRetrieveFormat = typeof PersonsPropertiesAtTimeRetrieveFormat[keyof typeof PersonsPropertiesAtTimeRetrieveFormat];--- export const PersonsPropertiesAtTimeRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type PersonsResetPersonDistinctIdCreateParams = {- format?: PersonsResetPersonDistinctIdCreateFormat;+ export type SessionRecordingPlaylistsListParams = {+ created_by?: number;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ short_id?: string;};- export type PersonsResetPersonDistinctIdCreateFormat = typeof PersonsResetPersonDistinctIdCreateFormat[keyof typeof PersonsResetPersonDistinctIdCreateFormat];--- export const PersonsResetPersonDistinctIdCreateFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type PersonsTrendsRetrieveParams = {- format?: PersonsTrendsRetrieveFormat;+ export type SessionRecordingsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;};- export type PersonsTrendsRetrieveFormat = typeof PersonsTrendsRetrieveFormat[keyof typeof PersonsTrendsRetrieveFormat];-+ export type SignalsProcessingListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };- export const PersonsTrendsRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;+ export type SignalsReportsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ /**+ * Comma-separated ordering clauses. Each clause is a field name optionally prefixed with '-' for descending. Allowed fields: status, is_suggested_reviewer, signal_count, total_weight, priority, created_at, updated_at, id. Defaults to '-is_suggested_reviewer,status,-updated_at'.+ */+ ordering?: string;+ /**+ * Case-insensitive substring match against report title and summary.+ */+ search?: string;+ /**+ * Comma-separated list of source products to include. Reports are kept if at least one of their contributing signals comes from one of these products (e.g. error_tracking, session_replay).+ */+ source_product?: string;+ /**+ * Comma-separated list of statuses to include. Valid values: potential, candidate, in_progress, pending_input, ready, failed, suppressed. Defaults to all statuses except suppressed.+ */+ status?: string;+ /**+ * Comma-separated list of PostHog user UUIDs. Reports are kept if their suggested reviewers include any of the given users.+ */+ suggested_reviewers?: string;+ };- export type PersonsValuesRetrieveParams = {- format?: PersonsValuesRetrieveFormat;+ export type SignalsScoutProjectProfileGetParams = {+ /**+ * When true, skip the cache and rebuild the profile from authoritative sources before responding. Use after seeding events, importing data, or any other change the caller knows just landed but hasn't surfaced through natural cache expiry yet. Honored only for the internal scout token — public read callers get the cached profile regardless. Concurrent forced rebuilds are serialized by the team-keyed advisory lock — at most one extra `build_inventory` per simultaneous request.+ */+ force_refresh?: boolean;+ };++ export type SignalsScoutRunsListParams = {/**- * The person property key to get values for (e.g., 'email', 'plan', 'role').+ * ISO-8601 inclusive lower bound on `created_at`. Omit to skip the lower bound.*/- key: string;+ date_from?: string;/**- * Optional search string to filter values (case-insensitive substring match).+ * ISO-8601 exclusive upper bound on `created_at`. Pass to walk back past the result cap on subsequent calls (cursor-style: set to the `started_at` of the oldest run from the prior page).*/- value?: string;- };-- export type PersonsValuesRetrieveFormat = typeof PersonsValuesRetrieveFormat[keyof typeof PersonsValuesRetrieveFormat];--- export const PersonsValuesRetrieveFormat = {- Csv: 'csv',- Json: 'json',- } as const;-- export type PluginConfigsLogsListParams = {+ date_to?: string;/**- * Number of results to return per page.+ * Max rows to return (default 20, hard cap 100).+ * @minimum 1+ * @maximum 100*/limit?: number;/**- * The initial index from which to return the results.+ * Case-insensitive substring match on the scout's end-of-run `summary`. Omit to skip the filter.+ * @minLength 1*/- offset?: number;+ text?: string;};- export type ProductToursListParams = {+ export type SignalsScoutScratchpadSearchParams = {/**- * Number of results to return per page.+ * Max rows to return (default 20, hard cap 100).+ * @minimum 1+ * @maximum 100*/limit?: number;/**- * The initial index from which to return the results.- */- offset?: number;- /**- * Fuzzy match against product tour `name` and `description` using Postgres trigram word similarity. Supports typos and prefix-as-you-type.+ * ILIKE substring match against `content`. Omit to return the most recent entries.*/- search?: string;+ text?: string;};- export type ProjectSecretApiKeysListParams = {+ export type SignalsSourceConfigsListParams = {/*** Number of results to return per page.*/@@ -47903,48 +49115,71 @@ export namespace Schemas {offset?: number;};- export type PropertyDefinitionsListParams = {+ export type SubscriptionsListParams = {/**- * If sent, response value will have `is_seen_on_filtered_events` populated. JSON-encoded- * @minLength 1+ * Filter by creator user UUID.*/- event_names?: string;+ created_by?: string;/**- * Whether to exclude core properties+ * Filter by dashboard ID.*/- exclude_core_properties?: boolean;+ dashboard?: number;/**- * Whether to exclude properties marked as hidden+ * Filter by insight ID.*/- exclude_hidden?: boolean;+ insight?: number;/**- * Whether to exclude properties that the current user does not have read access to via field-level access control+ * Number of results to return per page.*/- exclude_restricted?: boolean;+ limit?: number;/**- * JSON-encoded list of excluded properties- * @minLength 1+ * The initial index from which to return the results.*/- excluded_properties?: string;+ offset?: number;/**- * Whether to return only properties for events in `event_names`- * @nullable+ * Which field to use when ordering the results.*/- filter_by_event_names?: boolean | null;+ ordering?: string;/**- * What group type is the property for. Only should be set if `type=group`+ * Filter by subscription resource: insight vs dashboard export.*/- group_type_index?: number;+ resource_type?: SubscriptionsListResourceType;/**- * Whether to return only (or excluding) feature flag properties- * @nullable+ * A search term.*/- is_feature_flag?: boolean | null;+ search?: string;/**- * Whether to return only (or excluding) numerical property definitions- * @nullable+ * Filter by delivery channel (email, Slack, or webhook).*/- is_numerical?: boolean | null;+ target_type?: SubscriptionsListTargetType;+ };++ export type SubscriptionsListResourceType = typeof SubscriptionsListResourceType[keyof typeof SubscriptionsListResourceType];+++ export const SubscriptionsListResourceType = {+ Dashboard: 'dashboard',+ Insight: 'insight',+ } as const;++ export type SubscriptionsListTargetType = typeof SubscriptionsListTargetType[keyof typeof SubscriptionsListTargetType];+++ export const SubscriptionsListTargetType = {+ Email: 'email',+ Slack: 'slack',+ Webhook: 'webhook',+ } as const;++ export type SubscriptionsSummaryQuotaRetrieve200 = {+ active_count: number;+ /** @nullable */+ limit: number | null;+ at_limit: boolean;+ };++ export type SurveysListParams = {+ archived?: boolean;/*** Number of results to return per page.*/@@ -47954,48 +49189,42 @@ export namespace Schemas {*/offset?: number;/**- * Comma-separated list of properties to filter- * @minLength 1+ * Fuzzy match against survey `name` and `description` using Postgres trigram word similarity. Supports typos and prefix-as-you-type.*/- properties?: string;+ search?: string;+ };++ export type SurveysStatsRetrieveParams = {/**- * Searches properties by name+ * Optional ISO timestamp for start date (e.g. 2024-01-01T00:00:00Z)*/- search?: string;+ date_from?: string;/**- * What property definitions to return+ * Optional ISO timestamp for end date (e.g. 2024-01-31T23:59:59Z)+ */+ date_to?: string;+ };- * `event` - event- * `person` - person- * `group` - group- * `session` - session- * @minLength 1+ export type SurveysGlobalStatsRetrieveParams = {+ /**+ * Optional ISO timestamp for start date (e.g. 2024-01-01T00:00:00Z)*/- type?: PropertyDefinitionsListType;+ date_from?: string;/**- * Filter by verified status. True returns only verified, false returns only unverified.- * @nullable+ * Optional ISO timestamp for end date (e.g. 2024-01-31T23:59:59Z)*/- verified?: boolean | null;+ date_to?: string;};- export type PropertyDefinitionsListType = typeof PropertyDefinitionsListType[keyof typeof PropertyDefinitionsListType];--- export const PropertyDefinitionsListType = {- Event: 'event',- Person: 'person',- Group: 'group',- Session: 'session',- } as const;-- export type QueryLogRetrieve200 = { [key: string]: unknown };-- export type QueryCheckAuthForAsyncCreate200 = { [key: string]: unknown };-- export type QueryDraftSqlRetrieve200 = { [key: string]: unknown };-- export type QueryTabStateListParams = {+ export type TaggersListParams = {+ /**+ * Filter by enabled status+ */+ enabled?: boolean;+ /**+ * Multiple values may be separated by commas.+ */+ id__in?: string[];/*** Number of results to return per page.*/@@ -48004,9 +49233,24 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ /**+ * Ordering++ * `created_at` - Created At+ * `-created_at` - Created At (descending)+ * `updated_at` - Updated At+ * `-updated_at` - Updated At (descending)+ * `name` - Name+ * `-name` - Name (descending)+ */+ order_by?: string[];+ /**+ * Search in name or description+ */+ search?: string;};- export type SandboxListParams = {+ export type TagsListParams = {/*** Number of results to return per page.*/@@ -48017,7 +49261,7 @@ export namespace Schemas {offset?: number;};- export type SavedListParams = {+ export type TaskAutomationsListParams = {/*** Number of results to return per page.*/@@ -48028,26 +49272,92 @@ export namespace Schemas {offset?: number;};- export type ScheduledChangesListParams = {+ export type TasksListParams = {/**- * Number of results to return per page.+ * Filter by archived state. Defaults to excluding archived tasks. Use 'true' to list only archived tasks, 'false' for the default, or 'all' to include both.++ * `true` - true+ * `false` - false+ * `all` - all+ * @minLength 1*/- limit?: number;+ archived?: TasksListArchived;/**- * Filter by model type. Use "FeatureFlag" to see feature flag schedules.+ * Filter by creator user ID*/- model_name?: string;+ created_by?: number;+ /**+ * When true, list internal tasks instead of user-facing ones. Honored in debug environments or for staff users; ignored for non-staff users in production. Defaults to excluding internal tasks.+ */+ internal?: boolean;+ /**+ * Number of results to return per page.+ */+ limit?: number;/*** The initial index from which to return the results.*/offset?: number;/**- * Filter by the ID of a specific feature flag.+ * Filter by repository organization+ * @minLength 1*/- record_id?: string;+ organization?: string;+ /**+ * Filter by origin product+ * @minLength 1+ */+ origin_product?: string;+ /**+ * Filter by repository name (can include org/repo format)+ * @minLength 1+ */+ repository?: string;+ /**+ * Case-insensitive substring search over task title and description. A numeric value also matches the task number. An empty value disables the filter.+ */+ search?: string;+ /**+ * Filter by task run stage+ * @minLength 1+ */+ stage?: string;+ /**+ * Filter tasks by the status of their most recent run.++ * `not_started` - not_started+ * `queued` - queued+ * `in_progress` - in_progress+ * `completed` - completed+ * `failed` - failed+ * `cancelled` - cancelled+ * @minLength 1+ */+ status?: TasksListStatus;};- export type SchemaPropertyGroupsListParams = {+ export type TasksListArchived = typeof TasksListArchived[keyof typeof TasksListArchived];+++ export const TasksListArchived = {+ True: 'true',+ False: 'false',+ All: 'all',+ } as const;++ export type TasksListStatus = typeof TasksListStatus[keyof typeof TasksListStatus];+++ export const TasksListStatus = {+ NotStarted: 'not_started',+ Queued: 'queued',+ InProgress: 'in_progress',+ Completed: 'completed',+ Failed: 'failed',+ Cancelled: 'cancelled',+ } as const;++ export type TasksRunsListParams = {/*** Number of results to return per page.*/@@ -48058,208 +49368,160 @@ export namespace Schemas {offset?: number;};- export type SdkDoctorReportRetrieveParams = {+ export type TasksRunsSessionLogsRetrieveParams = {/**- * When true, bypasses the Redis cache and re-queries ClickHouse for SDK usage. Use sparingly — data is refreshed every 12 hours by a background job.+ * Only return events after this ISO8601 timestamp*/- force_refresh?: boolean;- };-- export type SessionGroupSummariesListParams = {+ after?: string;/**- * Number of results to return per page.+ * Comma-separated list of event types to include+ * @minLength 1*/- limit?: number;+ event_types?: string;/**- * The initial index from which to return the results.+ * Comma-separated list of event types to exclude+ * @minLength 1*/- offset?: number;- };-- export type SessionRecordingPlaylistsListParams = {- created_by?: number;+ exclude_types?: string;/**- * Number of results to return per page.+ * Maximum number of entries to return (default 1000, max 5000)+ * @minimum 1+ * @maximum 5000*/limit?: number;/**- * The initial index from which to return the results.+ * Zero-based offset into the filtered log entries+ * @minimum 0*/offset?: number;- short_id?: string;};- export type SessionRecordingsListParams = {+ export type TasksRepositoryReadinessRetrieveParams = {+ refresh?: boolean;/**- * Number of results to return per page.+ * Repository in org/repo format+ * @minLength 1*/- limit?: number;+ repository: string;/**- * The initial index from which to return the results.+ * @minimum 1+ * @maximum 30*/- offset?: number;+ window_days?: number;};- export type SignalsProcessingListParams = {- /**- * Number of results to return per page.- */- limit?: number;+ export type TasksSlackThreadContextRetrieveParams = {/**- * The initial index from which to return the results.+ * Full Slack permalink to any message in the thread (e.g. https://posthog.slack.com/archives/C…/p1779956938619299). Replies inside the thread are accepted too — the `thread_ts` query param (when present) takes precedence over the in-path message ts.+ * @minLength 1*/- offset?: number;+ url: string;};- export type SignalsReportsListParams = {+ export type TasksSummariesCreateParams = {/**- * Number of results to return per page.+ * Page size for the paginated response.*/limit?: number;/**- * The initial index from which to return the results.+ * Offset into the result set for pagination.*/offset?: number;- /**- * Comma-separated ordering clauses. Each clause is a field name optionally prefixed with '-' for descending. Allowed fields: status, is_suggested_reviewer, signal_count, total_weight, priority, created_at, updated_at, id. Defaults to '-is_suggested_reviewer,status,-updated_at'.- */- ordering?: string;- /**- * Case-insensitive substring match against report title and summary.- */- search?: string;- /**- * Comma-separated list of source products to include. Reports are kept if at least one of their contributing signals comes from one of these products (e.g. error_tracking, session_replay).- */- source_product?: string;- /**- * Comma-separated list of statuses to include. Valid values: potential, candidate, in_progress, pending_input, ready, failed, suppressed. Defaults to all statuses except suppressed.- */- status?: string;- /**- * Comma-separated list of PostHog user UUIDs. Reports are kept if their suggested reviewers include any of the given users.- */- suggested_reviewers?: string;};- export type SignalsScoutProjectProfileGetParams = {+ export type TracingSpansAttributesRetrieveParams = {/**- * When true, skip the cache and rebuild the profile from authoritative sources before responding. Use after seeding events, importing data, or any other change the caller knows just landed but hasn't surfaced through natural cache expiry yet. Honored only for the internal scout token — public read callers get the cached profile regardless. Concurrent forced rebuilds are serialized by the team-keyed advisory lock — at most one extra `build_inventory` per simultaneous request.- */- force_refresh?: boolean;- };+ * Type of attributes: "span_attribute" for span-level attributes, "span_resource_attribute" for resource-level attributes.- export type SignalsScoutRunsListParams = {- /**- * ISO-8601 inclusive lower bound on `created_at`. Omit to skip the lower bound.- */- date_from?: string;- /**- * ISO-8601 exclusive upper bound on `created_at`. Pass to walk back past the result cap on subsequent calls (cursor-style: set to the `started_at` of the oldest run from the prior page).+ * `span_attribute` - span_attribute+ * `span_resource_attribute` - span_resource_attribute+ * @minLength 1*/- date_to?: string;+ attribute_type?: TracingSpansAttributesRetrieveAttributeType;/**- * Max rows to return (default 20, hard cap 100).+ * Max results (default: 100).* @minimum 1* @maximum 100*/limit?: number;/**- * Case-insensitive substring match on the scout's end-of-run `summary`. Omit to skip the filter.- * @minLength 1- */- text?: string;- };-- export type SignalsScoutScratchpadSearchParams = {- /**- * Max rows to return (default 20, hard cap 100).- * @minimum 1- * @maximum 100+ * Pagination offset (default: 0).+ * @minimum 0*/- limit?: number;+ offset?: number;/**- * ILIKE substring match against `content`. Omit to return the most recent entries.+ * Search filter for attribute names.+ * @minLength 1*/- text?: string;+ search?: string;};- export type SignalsSourceConfigsListParams = {+ export type TracingSpansAttributesRetrieveAttributeType = typeof TracingSpansAttributesRetrieveAttributeType[keyof typeof TracingSpansAttributesRetrieveAttributeType];+++ export const TracingSpansAttributesRetrieveAttributeType = {+ SpanAttribute: 'span_attribute',+ SpanResourceAttribute: 'span_resource_attribute',+ } as const;++ export type TracingSpansServiceNamesRetrieveParams = {/**- * Number of results to return per page.+ * JSON-encoded date range, e.g. '{"date_from": "-1h"}'.+ * @minLength 1*/- limit?: number;+ dateRange?: string;/**- * The initial index from which to return the results.+ * Search filter for service names.+ * @minLength 1*/- offset?: number;+ search?: string;};- export type SubscriptionsListParams = {- /**- * Filter by creator user UUID.- */- created_by?: string;+ export type TracingSpansValuesRetrieveParams = {/**- * Filter by dashboard ID.+ * Type of attribute: "span" for built-in span fields (e.g. name), "span_attribute" for span-level attributes, "span_resource_attribute" for resource-level attributes.++ * `span` - span+ * `span_attribute` - span_attribute+ * `span_resource_attribute` - span_resource_attribute+ * @minLength 1*/- dashboard?: number;+ attribute_type?: TracingSpansValuesRetrieveAttributeType;/**- * Filter by insight ID.+ * The attribute key to get values for.+ * @minLength 1*/- insight?: number;+ key: string;/**- * Number of results to return per page.+ * Max results (default: 100).+ * @minimum 1+ * @maximum 100*/limit?: number;/**- * The initial index from which to return the results.+ * Pagination offset (default: 0).+ * @minimum 0*/offset?: number;/**- * Which field to use when ordering the results.- */- ordering?: string;- /**- * Filter by subscription resource: insight vs dashboard export.- */- resource_type?: SubscriptionsListResourceType;- /**- * A search term.- */- search?: string;- /**- * Filter by delivery channel (email, Slack, or webhook).+ * Search filter for attribute values.+ * @minLength 1*/- target_type?: SubscriptionsListTargetType;+ value?: string;};- export type SubscriptionsListResourceType = typeof SubscriptionsListResourceType[keyof typeof SubscriptionsListResourceType];--- export const SubscriptionsListResourceType = {- Dashboard: 'dashboard',- Insight: 'insight',- } as const;-- export type SubscriptionsListTargetType = typeof SubscriptionsListTargetType[keyof typeof SubscriptionsListTargetType];+ export type TracingSpansValuesRetrieveAttributeType = typeof TracingSpansValuesRetrieveAttributeType[keyof typeof TracingSpansValuesRetrieveAttributeType];- export const SubscriptionsListTargetType = {- Email: 'email',- Slack: 'slack',- Webhook: 'webhook',+ export const TracingSpansValuesRetrieveAttributeType = {+ Span: 'span',+ SpanAttribute: 'span_attribute',+ SpanResourceAttribute: 'span_resource_attribute',} as const;- export type SubscriptionsSummaryQuotaRetrieve200 = {- active_count: number;- /** @nullable */- limit: number | null;- at_limit: boolean;- };+ export type UploadedMediaCreate201 = { [key: string]: unknown };- export type SurveysListParams = {- archived?: boolean;+ export type UserInterviewTopicsListParams = {/*** Number of results to return per page.*/@@ -48269,34 +49531,12 @@ export namespace Schemas {*/offset?: number;/**- * Fuzzy match against survey `name` and `description` using Postgres trigram word similarity. Supports typos and prefix-as-you-type.- */- search?: string;- };-- export type SurveysStatsRetrieveParams = {- /**- * Optional ISO timestamp for start date (e.g. 2024-01-01T00:00:00Z)- */- date_from?: string;- /**- * Optional ISO timestamp for end date (e.g. 2024-01-31T23:59:59Z)- */- date_to?: string;- };-- export type SurveysGlobalStatsRetrieveParams = {- /**- * Optional ISO timestamp for start date (e.g. 2024-01-01T00:00:00Z)- */- date_from?: string;- /**- * Optional ISO timestamp for end date (e.g. 2024-01-31T23:59:59Z)+ * A search term.*/- date_to?: string;+ search?: string;};- export type TagsListParams = {+ export type UserInterviewTopicsIntervieweesListParams = {/*** Number of results to return per page.*/@@ -48307,7 +49547,7 @@ export namespace Schemas {offset?: number;};- export type TaskAutomationsListParams = {+ export type UserInterviewsListParams = {/*** Number of results to return per page.*/@@ -48316,26 +49556,21 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;+ topic?: string;};- export type TasksListParams = {- /**- * Filter by archived state. Defaults to excluding archived tasks. Use 'true' to list only archived tasks, 'false' for the default, or 'all' to include both.-- * `true` - true- * `false` - false- * `all` - all- * @minLength 1- */- archived?: TasksListArchived;+ export type UserProductListListParams = {/**- * Filter by creator user ID+ * Number of results to return per page.*/- created_by?: number;+ limit?: number;/**- * When true, list internal tasks instead of user-facing ones. Honored in debug environments or for staff users; ignored for non-staff users in production. Defaults to excluding internal tasks.+ * The initial index from which to return the results.*/- internal?: boolean;+ offset?: number;+ };++ export type VisionObservationsListParams = {/*** Number of results to return per page.*/@@ -48345,65 +49580,63 @@ export namespace Schemas {*/offset?: number;/**- * Filter by repository organization- * @minLength 1+ * Session recording id to return observations for.*/- organization?: string;+ session_id: string;+ };++ export type VisionScannersListParams = {/**- * Filter by origin product- * @minLength 1+ * Filter to scanners that emit Signals.*/- origin_product?: string;+ emits_signals?: boolean;/**- * Filter by repository name (can include org/repo format)- * @minLength 1+ * Filter to enabled vs disabled scanners.*/- repository?: string;+ enabled?: boolean;/**- * Case-insensitive substring search over task title and description. A numeric value also matches the task number. An empty value disables the filter.+ * Number of results to return per page.*/- search?: string;+ limit?: number;/**- * Filter by task run stage- * @minLength 1+ * The initial index from which to return the results.*/- stage?: string;+ offset?: number;/**- * Filter tasks by the status of their most recent run.+ * Sort scanners by name, created_at, updated_at, or scanner_type. Prefix with `-` for descending.- * `not_started` - not_started- * `queued` - queued- * `in_progress` - in_progress- * `completed` - completed- * `failed` - failed- * `cancelled` - cancelled- * @minLength 1+ * `name` - Name+ * `-name` - Name (descending)+ * `created_at` - Created at+ * `-created_at` - Created at (descending)+ * `updated_at` - Updated at+ * `-updated_at` - Updated at (descending)+ * `scanner_type` - Scanner type+ * `-scanner_type` - Scanner type (descending)*/- status?: TasksListStatus;- };-- export type TasksListArchived = typeof TasksListArchived[keyof typeof TasksListArchived];-+ order_by?: string[];+ /**+ * Filter by scanner type (monitor, classifier, scorer, summarizer).- export const TasksListArchived = {- True: 'true',- False: 'false',- All: 'all',- } as const;+ * `monitor` - Monitor+ * `classifier` - Classifier+ * `scorer` - Scorer+ * `summarizer` - Summarizer+ */+ scanner_type?: VisionScannersListScannerType;+ };- export type TasksListStatus = typeof TasksListStatus[keyof typeof TasksListStatus];+ export type VisionScannersListScannerType = typeof VisionScannersListScannerType[keyof typeof VisionScannersListScannerType];- export const TasksListStatus = {- NotStarted: 'not_started',- Queued: 'queued',- InProgress: 'in_progress',- Completed: 'completed',- Failed: 'failed',- Cancelled: 'cancelled',+ export const VisionScannersListScannerType = {+ Classifier: 'classifier',+ Monitor: 'monitor',+ Scorer: 'scorer',+ Summarizer: 'summarizer',} as const;- export type TasksRunsListParams = {+ export type VisionScannersObservationsListParams = {/*** Number of results to return per page.*/@@ -48412,81 +49645,60 @@ export namespace Schemas {* The initial index from which to return the results.*/offset?: number;- };-- export type TasksRunsSessionLogsRetrieveParams = {- /**- * Only return events after this ISO8601 timestamp- */- after?: string;- /**- * Comma-separated list of event types to include- * @minLength 1- */- event_types?: string;/**- * Comma-separated list of event types to exclude- * @minLength 1+ * Sort observations by created_at, started_at, completed_at, or status. Prefix with `-` for descending.++ * `created_at` - Created at+ * `-created_at` - Created at (descending)+ * `started_at` - Started at+ * `-started_at` - Started at (descending)+ * `completed_at` - Completed at+ * `-completed_at` - Completed at (descending)+ * `status` - Status+ * `-status` - Status (descending)*/- exclude_types?: string;+ order_by?: string[];/**- * Maximum number of entries to return (default 1000, max 5000)- * @minimum 1- * @maximum 5000+ * Filter to observations of a specific session recording.*/- limit?: number;+ session_id?: string;/**- * Zero-based offset into the filtered log entries- * @minimum 0- */- offset?: number;- };+ * Filter by observation status.- export type TasksRepositoryReadinessRetrieveParams = {- refresh?: boolean;- /**- * Repository in org/repo format- * @minLength 1+ * `pending` - Pending+ * `running` - Running+ * `succeeded` - Succeeded+ * `failed` - Failed+ * `ineligible` - Ineligible*/- repository: string;+ status?: VisionScannersObservationsListStatus;/**- * @minimum 1- * @maximum 30- */- window_days?: number;- };+ * Filter by trigger source (schedule or on_demand).- export type TasksSlackThreadContextRetrieveParams = {- /**- * Full Slack permalink to any message in the thread (e.g. https://posthog.slack.com/archives/C…/p1779956938619299). Replies inside the thread are accepted too — the `thread_ts` query param (when present) takes precedence over the in-path message ts.- * @minLength 1+ * `schedule` - Schedule+ * `on_demand` - On demand*/- url: string;+ triggered_by?: VisionScannersObservationsListTriggeredBy;};- export type TasksSummariesCreateParams = {- /**- * Page size for the paginated response.- */- limit?: number;- /**- * Offset into the result set for pagination.- */- offset?: number;- };+ export type VisionScannersObservationsListStatus = typeof VisionScannersObservationsListStatus[keyof typeof VisionScannersObservationsListStatus];- export type UploadedMediaCreate201 = { [key: string]: unknown };- export type UserProductListListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };+ export const VisionScannersObservationsListStatus = {+ Failed: 'failed',+ Ineligible: 'ineligible',+ Pending: 'pending',+ Running: 'running',+ Succeeded: 'succeeded',+ } as const;++ export type VisionScannersObservationsListTriggeredBy = typeof VisionScannersObservationsListTriggeredBy[keyof typeof VisionScannersObservationsListTriggeredBy];+++ export const VisionScannersObservationsListTriggeredBy = {+ OnDemand: 'on_demand',+ Schedule: 'schedule',+ } as const;export type VisualReviewReposListParams = {/**@@ -48634,6 +49846,17 @@ export namespace Schemas {search?: string;};+ export type WarehouseSavedQueryDraftsListParams = {+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ };+export type WarehouseTablesListParams = {/*** Number of results to return per page.@@ -48679,6 +49902,30 @@ export namespace Schemas {search?: string;};+ export type WebAnalyticsWeeklyDigestParams = {+ /**+ * When true (default), include period-over-period change for each metric comparing against the prior equal-length period. Set to false to skip the comparison query (faster).+ */+ compare?: boolean;+ /**+ * Lookback window in days (1–90). Defaults to 7.+ */+ days?: number;+ };++ export type WebAnalyticsFilterPresetsListParams = {+ created_by?: number;+ /**+ * Number of results to return per page.+ */+ limit?: number;+ /**+ * The initial index from which to return the results.+ */+ offset?: number;+ short_id?: string;+ };+export type WebExperimentsListParams = {/*** Number of results to return per page.@@ -48690,6 +49937,15 @@ export namespace Schemas {offset?: number;};+ export type WebVitalsRetrieveParams = {+ /**+ * Filter web vitals by pathname+ */+ pathname: string;+ };++ export type WebVitalsRetrieve200 = { [key: string]: unknown };+export type WizardSessionsListParams = {/*** Number of results to return per page.diff --git a/services/mcp/src/generated/ai_observability/api.ts b/services/mcp/src/generated/ai_observability/api.tsindex 02c77567df2c..76fc80d30467 100644--- a/services/mcp/src/generated/ai_observability/api.ts+++ b/services/mcp/src/generated/ai_observability/api.ts@@ -8,6 +8,56 @@*/import * as zod from 'zod'+/**+ * Return a structured personal LLM spend analysis for the requesting user. Pass `date_from` / `date_to` (absolute like `2026-04-23` or relative like `-7d`) to bound the window — defaults to the last 30 days, max 90 days. The `product=<ai_product>` query param is required and scopes the tool / model / trace breakdowns to a single product; supported values: posthog_code. `by_product` is always returned for cross-product visibility. Use `refresh=true` to bypass the 5-minute response cache.+ */+export const llmAnalyticsPersonalSpendListQueryDateFromDefault = `-30d`+export const llmAnalyticsPersonalSpendListQueryDateFromMax = 32++export const llmAnalyticsPersonalSpendListQueryDateToMax = 32++export const llmAnalyticsPersonalSpendListQueryLimitDefault = 50+export const llmAnalyticsPersonalSpendListQueryLimitMax = 200++export const llmAnalyticsPersonalSpendListQueryProductMax = 64++export const llmAnalyticsPersonalSpendListQueryRefreshDefault = false++export const LlmAnalyticsPersonalSpendListQueryParams = /* @__PURE__ */ zod.object({+ date_from: zod+ .string()+ .min(1)+ .max(llmAnalyticsPersonalSpendListQueryDateFromMax)+ .default(llmAnalyticsPersonalSpendListQueryDateFromDefault)+ .describe(+ 'Start of the spend window. Accepts absolute dates (`2026-04-23`) or relative strings (`-7d`, `-1m`, etc.) — same parser used elsewhere in PostHog. Defaults to `-30d`. The window between `date_from` and `date_to` cannot exceed 90 days.'+ ),+ date_to: zod+ .string()+ .max(llmAnalyticsPersonalSpendListQueryDateToMax)+ .nullish()+ .describe('End of the spend window. Accepts the same formats as `date_from`. Defaults to `now` when omitted.'),+ limit: zod+ .number()+ .min(1)+ .max(llmAnalyticsPersonalSpendListQueryLimitMax)+ .default(llmAnalyticsPersonalSpendListQueryLimitDefault)+ .describe(+ 'Maximum number of rows to return per breakdown (1-200, defaults to 50). Each breakdown returns up to this many rows ordered by cost descending. Per-breakdown `truncated: true` indicates more rows exist beyond the limit.'+ ),+ product: zod+ .string()+ .min(1)+ .max(llmAnalyticsPersonalSpendListQueryProductMax)+ .describe(+ 'Required `ai_product` key to scope the tool / model / trace breakdowns to a single product. Only the following products are currently supported: posthog_code.'+ ),+ refresh: zod+ .boolean()+ .default(llmAnalyticsPersonalSpendListQueryRefreshDefault)+ .describe('If true, bypass the result cache and re-run the underlying queries against ClickHouse.'),+})+/*** Create a new evaluation run.@@ -1984,53 +2034,3 @@ export const TaggersTestHogCreateBody = /* @__PURE__ */ zod.object({.optional().describe('Optional tag whitelist. Returned tags outside this list are filtered out.'),})--/**- * Return a structured personal LLM spend analysis for the requesting user. Pass `date_from` / `date_to` (absolute like `2026-04-23` or relative like `-7d`) to bound the window — defaults to the last 30 days, max 90 days. The `product=<ai_product>` query param is required and scopes the tool / model / trace breakdowns to a single product; supported values: posthog_code. `by_product` is always returned for cross-product visibility. Use `refresh=true` to bypass the 5-minute response cache.- */-export const llmAnalyticsPersonalSpendListQueryDateFromDefault = `-30d`-export const llmAnalyticsPersonalSpendListQueryDateFromMax = 32--export const llmAnalyticsPersonalSpendListQueryDateToMax = 32--export const llmAnalyticsPersonalSpendListQueryLimitDefault = 50-export const llmAnalyticsPersonalSpendListQueryLimitMax = 200--export const llmAnalyticsPersonalSpendListQueryProductMax = 64--export const llmAnalyticsPersonalSpendListQueryRefreshDefault = false--export const LlmAnalyticsPersonalSpendListQueryParams = /* @__PURE__ */ zod.object({- date_from: zod- .string()- .min(1)- .max(llmAnalyticsPersonalSpendListQueryDateFromMax)- .default(llmAnalyticsPersonalSpendListQueryDateFromDefault)- .describe(- 'Start of the spend window. Accepts absolute dates (`2026-04-23`) or relative strings (`-7d`, `-1m`, etc.) — same parser used elsewhere in PostHog. Defaults to `-30d`. The window between `date_from` and `date_to` cannot exceed 90 days.'- ),- date_to: zod- .string()- .max(llmAnalyticsPersonalSpendListQueryDateToMax)- .nullish()- .describe('End of the spend window. Accepts the same formats as `date_from`. Defaults to `now` when omitted.'),- limit: zod- .number()- .min(1)- .max(llmAnalyticsPersonalSpendListQueryLimitMax)- .default(llmAnalyticsPersonalSpendListQueryLimitDefault)- .describe(- 'Maximum number of rows to return per breakdown (1-200, defaults to 50). Each breakdown returns up to this many rows ordered by cost descending. Per-breakdown `truncated: true` indicates more rows exist beyond the limit.'- ),- product: zod- .string()- .min(1)- .max(llmAnalyticsPersonalSpendListQueryProductMax)- .describe(- 'Required `ai_product` key to scope the tool / model / trace breakdowns to a single product. Only the following products are currently supported: posthog_code.'- ),- refresh: zod- .boolean()- .default(llmAnalyticsPersonalSpendListQueryRefreshDefault)- .describe('If true, bypass the result cache and re-run the underlying queries against ClickHouse.'),-})diff --git a/services/mcp/src/generated/platform_features/api.ts b/services/mcp/src/generated/platform_features/api.tsindex 6193fd947e7e..1540929fca59 100644--- a/services/mcp/src/generated/platform_features/api.ts+++ b/services/mcp/src/generated/platform_features/api.ts@@ -8,55 +8,6 @@*/import * as zod from 'zod'-export const ApprovalPoliciesListParams = /* @__PURE__ */ zod.object({- project_id: zod- .string()- .describe(- "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."- ),-})--export const ApprovalPoliciesListQueryParams = /* @__PURE__ */ zod.object({- limit: zod.number().optional().describe('Number of results to return per page.'),- offset: zod.number().optional().describe('The initial index from which to return the results.'),-})--export const ApprovalPoliciesRetrieveParams = /* @__PURE__ */ zod.object({- id: zod.string().describe('A UUID string identifying this approval policy.'),- project_id: zod- .string()- .describe(- "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."- ),-})--export const ChangeRequestsListParams = /* @__PURE__ */ zod.object({- project_id: zod- .string()- .describe(- "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."- ),-})--export const ChangeRequestsListQueryParams = /* @__PURE__ */ zod.object({- action_key: zod.string().optional(),- limit: zod.number().optional().describe('Number of results to return per page.'),- offset: zod.number().optional().describe('The initial index from which to return the results.'),- requester: zod.number().optional(),- resource_id: zod.string().optional(),- resource_type: zod.string().optional(),- state: zod.array(zod.string()).optional().describe('Multiple values may be separated by commas.'),-})--export const ChangeRequestsRetrieveParams = /* @__PURE__ */ zod.object({- id: zod.string().describe('A UUID string identifying this change request.'),- project_id: zod- .string()- .describe(- "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."- ),-})-export const ListQueryParams = /* @__PURE__ */ zod.object({limit: zod.number().optional().describe('Number of results to return per page.'),offset: zod.number().optional().describe('The initial index from which to return the results.'),@@ -387,6 +338,55 @@ export const AdvancedActivityLogsAvailableFiltersRetrieveParams = /* @__PURE__ *),})+export const ApprovalPoliciesListParams = /* @__PURE__ */ zod.object({+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."+ ),+})++export const ApprovalPoliciesListQueryParams = /* @__PURE__ */ zod.object({+ limit: zod.number().optional().describe('Number of results to return per page.'),+ offset: zod.number().optional().describe('The initial index from which to return the results.'),+})++export const ApprovalPoliciesRetrieveParams = /* @__PURE__ */ zod.object({+ id: zod.string().describe('A UUID string identifying this approval policy.'),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."+ ),+})++export const ChangeRequestsListParams = /* @__PURE__ */ zod.object({+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."+ ),+})++export const ChangeRequestsListQueryParams = /* @__PURE__ */ zod.object({+ action_key: zod.string().optional(),+ limit: zod.number().optional().describe('Number of results to return per page.'),+ offset: zod.number().optional().describe('The initial index from which to return the results.'),+ requester: zod.number().optional(),+ resource_id: zod.string().optional(),+ resource_type: zod.string().optional(),+ state: zod.array(zod.string()).optional().describe('Multiple values may be separated by commas.'),+})++export const ChangeRequestsRetrieveParams = /* @__PURE__ */ zod.object({+ id: zod.string().describe('A UUID string identifying this change request.'),+ project_id: zod+ .string()+ .describe(+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."+ ),+})+export const CommentsListParams = /* @__PURE__ */ zod.object({project_id: zod.string()diff --git a/services/mcp/src/tools/generated/ai_observability.ts b/services/mcp/src/tools/generated/ai_observability.tsindex 7a7b5632ac24..2040b1830be9 100644--- a/services/mcp/src/tools/generated/ai_observability.ts+++ b/services/mcp/src/tools/generated/ai_observability.ts@@ -94,7 +94,7 @@ const llmaClusteringJobGet = (): ToolBase<typeof LlmaClusteringJobGetSchema, Schconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.ClusteringJob>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/clustering_jobs/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/clustering_jobs/${encodeURIComponent(String(params.id))}/`,})return result},@@ -109,7 +109,7 @@ const llmaClusteringJobList = (): ToolBase<typeof LlmaClusteringJobListSchema, Sconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedClusteringJobList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/clustering_jobs/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/clustering_jobs/`,query: {limit: params.limit,offset: params.offset,@@ -129,7 +129,7 @@ const llmaEvaluationConfigGet = (): ToolBase<typeof LlmaEvaluationConfigGetSchemconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.EvaluationConfig>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_config/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_config/`,})return result},@@ -151,7 +151,7 @@ const llmaEvaluationConfigSetActiveKey = (): ToolBase<}const result = await context.api.request<Schemas.EvaluationConfig>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_config/set_active_key/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_config/set_active_key/`,body,})return result@@ -198,7 +198,7 @@ const llmaEvaluationCreate = (): ToolBase<typeof LlmaEvaluationCreateSchema, Sch}const result = await context.api.request<Schemas.Evaluation>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/evaluations/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/evaluations/`,body,})return result@@ -214,7 +214,7 @@ const llmaEvaluationDelete = (): ToolBase<typeof LlmaEvaluationDeleteSchema, Schconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.Evaluation>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/evaluations/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/evaluations/${encodeURIComponent(String(params.id))}/`,body: { deleted: true },})return result@@ -230,7 +230,7 @@ const llmaEvaluationGet = (): ToolBase<typeof LlmaEvaluationGetSchema, Schemas.Econst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.Evaluation>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/evaluations/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/evaluations/${encodeURIComponent(String(params.id))}/`,})return result},@@ -248,7 +248,7 @@ const llmaEvaluationJudgeModels = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.LLMModelsListResponse>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/models/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/models/`,query: {key_id: params.key_id,provider: params.provider,@@ -267,7 +267,7 @@ const llmaEvaluationList = (): ToolBase<typeof LlmaEvaluationListSchema, Schemasconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedEvaluationList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/evaluations/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/evaluations/`,query: {enabled: params.enabled,id__in: params.id__in,@@ -327,7 +327,7 @@ const llmaEvaluationReportCreate = (): ToolBase<typeof LlmaEvaluationReportCreat}const result = await context.api.request<Schemas.EvaluationReport>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/`,body,})return result@@ -343,7 +343,7 @@ const llmaEvaluationReportDelete = (): ToolBase<typeof LlmaEvaluationReportDeletconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.EvaluationReport>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/${encodeURIComponent(String(params.id))}/`,body: { deleted: true },})return result@@ -359,7 +359,7 @@ const llmaEvaluationReportGenerate = (): ToolBase<typeof LlmaEvaluationReportGenconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/${encodeURIComponent(String(params.id))}/generate/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/${encodeURIComponent(String(params.id))}/generate/`,})return result},@@ -374,7 +374,7 @@ const llmaEvaluationReportGet = (): ToolBase<typeof LlmaEvaluationReportGetSchemconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.EvaluationReport>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/${encodeURIComponent(String(params.id))}/`,})return result},@@ -392,7 +392,7 @@ const llmaEvaluationReportList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedEvaluationReportList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/`,query: {limit: params.limit,offset: params.offset,@@ -416,7 +416,7 @@ const llmaEvaluationReportRunList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedEvaluationReportRunList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/${encodeURIComponent(String(params.id))}/runs/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/${encodeURIComponent(String(params.id))}/runs/`,query: {limit: params.limit,offset: params.offset,@@ -477,7 +477,7 @@ const llmaEvaluationReportUpdate = (): ToolBase<typeof LlmaEvaluationReportUpdat}const result = await context.api.request<Schemas.EvaluationReport>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_reports/${encodeURIComponent(String(params.id))}/`,body,})return result@@ -509,7 +509,7 @@ const llmaEvaluationRun = (): ToolBase<typeof LlmaEvaluationRunSchema, unknown>}const result = await context.api.request<unknown>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/evaluation_runs/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/evaluation_runs/`,body,})return result@@ -541,7 +541,7 @@ const llmaEvaluationSummaryCreate = (): ToolBase<}const result = await context.api.request<Schemas.EvaluationSummaryResponse>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_summary/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/evaluation_summary/`,body,})return result@@ -570,7 +570,7 @@ const llmaEvaluationTestHog = (): ToolBase<typeof LlmaEvaluationTestHogSchema, S}const result = await context.api.request<Schemas.TestHogResponse>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/evaluations/test_hog/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/evaluations/test_hog/`,body,})return result@@ -619,7 +619,7 @@ const llmaEvaluationUpdate = (): ToolBase<typeof LlmaEvaluationUpdateSchema, Sch}const result = await context.api.request<Schemas.Evaluation>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/evaluations/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/evaluations/${encodeURIComponent(String(params.id))}/`,body,})return result@@ -663,7 +663,7 @@ const llmaPromptCreate = (): ToolBase<typeof LlmaPromptCreateSchema, Schemas.LLM}const result = await context.api.request<Schemas.LLMPrompt>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_prompts/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_prompts/`,body,})return result@@ -685,7 +685,7 @@ const llmaPromptDuplicate = (): ToolBase<typeof LlmaPromptDuplicateSchema, Schem}const result = await context.api.request<Schemas.LLMPrompt>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_prompts/name/${encodeURIComponent(String(params.prompt_name))}/duplicate/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_prompts/name/${encodeURIComponent(String(params.prompt_name))}/duplicate/`,body,})return result@@ -703,7 +703,7 @@ const llmaPromptGet = (): ToolBase<typeof LlmaPromptGetSchema, Schemas.LLMPromptconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.LLMPromptPublic>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_prompts/name/${encodeURIComponent(String(params.prompt_name))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_prompts/name/${encodeURIComponent(String(params.prompt_name))}/`,query: {content: params.content,version: params.version,@@ -732,7 +732,7 @@ const llmaPromptList = (): ToolBase<}>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_prompts/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_prompts/`,query: parsedParams,})return result@@ -760,7 +760,7 @@ const llmaPromptUpdate = (): ToolBase<typeof LlmaPromptUpdateSchema, Schemas.LLM}const result = await context.api.request<Schemas.LLMPrompt>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_prompts/name/${encodeURIComponent(String(params.prompt_name))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_prompts/name/${encodeURIComponent(String(params.prompt_name))}/`,body,})return result@@ -783,7 +783,7 @@ const llmaReviewQueueCreate = (): ToolBase<}const result = await context.api.request<Schemas.ReviewQueue>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/review_queues/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/review_queues/`,body,})return await withPostHogUrl(context, result, `/ai-observability/reviews?queue_id=${result.id}`)@@ -799,7 +799,7 @@ const llmaReviewQueueDelete = (): ToolBase<typeof LlmaReviewQueueDeleteSchema, uconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'DELETE',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/review_queues/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/review_queues/${encodeURIComponent(String(params.id))}/`,})return result},@@ -815,7 +815,7 @@ const llmaReviewQueueGet = (): ToolBase<typeof LlmaReviewQueueGetSchema, WithPosconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.ReviewQueue>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/review_queues/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/review_queues/${encodeURIComponent(String(params.id))}/`,})return await withPostHogUrl(context, result, `/ai-observability/reviews?queue_id=${result.id}`)},@@ -840,7 +840,7 @@ const llmaReviewQueueItemCreate = (): ToolBase<}const result = await context.api.request<Schemas.ReviewQueueItem>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/review_queue_items/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/review_queue_items/`,body,})return await withPostHogUrl(context, result, `/ai-observability/traces/${result.trace_id}`)@@ -856,7 +856,7 @@ const llmaReviewQueueItemDelete = (): ToolBase<typeof LlmaReviewQueueItemDeleteSconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'DELETE',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/review_queue_items/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/review_queue_items/${encodeURIComponent(String(params.id))}/`,})return result},@@ -875,7 +875,7 @@ const llmaReviewQueueItemGet = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.ReviewQueueItem>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/review_queue_items/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/review_queue_items/${encodeURIComponent(String(params.id))}/`,})return await withPostHogUrl(context, result, `/ai-observability/traces/${result.trace_id}`)},@@ -894,7 +894,7 @@ const llmaReviewQueueItemList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedReviewQueueItemList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/review_queue_items/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/review_queue_items/`,query: {limit: params.limit,offset: params.offset,@@ -938,7 +938,7 @@ const llmaReviewQueueItemUpdate = (): ToolBase<}const result = await context.api.request<Schemas.ReviewQueueItem>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/review_queue_items/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/review_queue_items/${encodeURIComponent(String(params.id))}/`,body,})return await withPostHogUrl(context, result, `/ai-observability/traces/${result.trace_id}`)@@ -958,7 +958,7 @@ const llmaReviewQueueList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedReviewQueueList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/review_queues/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/review_queues/`,query: {limit: params.limit,name: params.name,@@ -1000,7 +1000,7 @@ const llmaReviewQueueUpdate = (): ToolBase<}const result = await context.api.request<Schemas.ReviewQueue>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/review_queues/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/review_queues/${encodeURIComponent(String(params.id))}/`,body,})return await withPostHogUrl(context, result, `/ai-observability/reviews?queue_id=${result.id}`)@@ -1034,7 +1034,7 @@ const llmaScoreDefinitionCreate = (): ToolBase<typeof LlmaScoreDefinitionCreateS}const result = await context.api.request<Schemas.ScoreDefinition>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/score_definitions/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/score_definitions/`,body,})return result@@ -1050,7 +1050,7 @@ const llmaScoreDefinitionGet = (): ToolBase<typeof LlmaScoreDefinitionGetSchema,const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.ScoreDefinition>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/score_definitions/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/score_definitions/${encodeURIComponent(String(params.id))}/`,})return result},@@ -1069,7 +1069,7 @@ const llmaScoreDefinitionList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedScoreDefinitionList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/score_definitions/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/score_definitions/`,query: {archived: params.archived,kind: params.kind,@@ -1106,7 +1106,7 @@ const llmaScoreDefinitionNewVersion = (): ToolBase<}const result = await context.api.request<Schemas.ScoreDefinition>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/score_definitions/${encodeURIComponent(String(params.id))}/new_version/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/score_definitions/${encodeURIComponent(String(params.id))}/new_version/`,body,})return result@@ -1134,7 +1134,7 @@ const llmaScoreDefinitionUpdate = (): ToolBase<typeof LlmaScoreDefinitionUpdateS}const result = await context.api.request<Schemas.ScoreDefinition>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/score_definitions/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/score_definitions/${encodeURIComponent(String(params.id))}/`,body,})return result@@ -1166,7 +1166,7 @@ const llmaSentimentCreate = (): ToolBase<typeof LlmaSentimentCreateSchema, Schem}const result = await context.api.request<Schemas.SentimentBatchResponse>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/sentiment/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/sentiment/`,body,})return result@@ -1186,7 +1186,7 @@ const llmaSkillArchive = (): ToolBase<typeof LlmaSkillArchiveSchema, unknown> =>const projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/archive/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/archive/`,})return result},@@ -1226,7 +1226,7 @@ const llmaSkillCreate = (): ToolBase<typeof LlmaSkillCreateSchema, Schemas.LLMSk}const result = await context.api.request<Schemas.LLMSkillCreate>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_skills/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_skills/`,body,})return result@@ -1248,7 +1248,7 @@ const llmaSkillDuplicate = (): ToolBase<typeof LlmaSkillDuplicateSchema, Schemas}const result = await context.api.request<Schemas.LLMSkill>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/duplicate/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/duplicate/`,body,})return result@@ -1279,7 +1279,7 @@ const llmaSkillFileCreate = (): ToolBase<typeof LlmaSkillFileCreateSchema, Schem}const result = await context.api.request<Schemas.LLMSkill>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/files/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/files/`,body,})return result@@ -1297,7 +1297,7 @@ const llmaSkillFileDelete = (): ToolBase<typeof LlmaSkillFileDeleteSchema, Schemconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.LLMSkill>({method: 'DELETE',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/files/${encodeURIComponent(String(params.file_path))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/files/${encodeURIComponent(String(params.file_path))}/`,query: {base_version: params.base_version,},@@ -1317,7 +1317,7 @@ const llmaSkillFileGet = (): ToolBase<typeof LlmaSkillFileGetSchema, Schemas.LLMconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.LLMSkillFile>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/files/${encodeURIComponent(String(params.file_path))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/files/${encodeURIComponent(String(params.file_path))}/`,query: {version: params.version,},@@ -1347,7 +1347,7 @@ const llmaSkillFileRename = (): ToolBase<typeof LlmaSkillFileRenameSchema, Schem}const result = await context.api.request<Schemas.LLMSkill>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/files-rename/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/files-rename/`,body,})return result@@ -1365,7 +1365,7 @@ const llmaSkillGet = (): ToolBase<typeof LlmaSkillGetSchema, Schemas.LLMSkill> =const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.LLMSkill>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/`,query: {version: params.version,},@@ -1383,7 +1383,7 @@ const llmaSkillList = (): ToolBase<typeof LlmaSkillListSchema, Schemas.Paginatedconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedLLMSkillListList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_skills/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_skills/`,query: {created_by_id: params.created_by_id,limit: params.limit,@@ -1437,7 +1437,7 @@ const llmaSkillUpdate = (): ToolBase<typeof LlmaSkillUpdateSchema, Schemas.LLMSk}const result = await context.api.request<Schemas.LLMSkill>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_skills/name/${encodeURIComponent(String(params.skill_name))}/`,body,})return result@@ -1481,7 +1481,7 @@ const llmaSummarizationCreate = (): ToolBase<typeof LlmaSummarizationCreateSchem}const result = await context.api.request<Schemas.SummarizeResponse>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/summarization/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/summarization/`,body,})return result@@ -1519,7 +1519,7 @@ const llmaTaggerCreate = (): ToolBase<typeof LlmaTaggerCreateSchema, WithPostHog}const result = await context.api.request<Schemas.Tagger>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/taggers/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/taggers/`,body,})return await withPostHogUrl(context, result, `/ai-evals/taggers/${result.id}`)@@ -1535,7 +1535,7 @@ const llmaTaggerList = (): ToolBase<typeof LlmaTaggerListSchema, WithPostHogUrl<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedTaggerList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/taggers/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/taggers/`,query: {enabled: params.enabled,id__in: params.id__in,@@ -1577,7 +1577,7 @@ const llmaTaggerTestHog = (): ToolBase<typeof LlmaTaggerTestHogSchema, Schemas.T}const result = await context.api.request<Schemas.TestHogTaggerResponse>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/taggers/test_hog/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/taggers/test_hog/`,body,})return result@@ -1609,7 +1609,7 @@ const llmaTraceReviewCreate = (): ToolBase<}const result = await context.api.request<Schemas.TraceReview>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/trace_reviews/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/trace_reviews/`,body,})return await withPostHogUrl(context, result, `/ai-observability/traces/${result.trace_id}`)@@ -1625,7 +1625,7 @@ const llmaTraceReviewDelete = (): ToolBase<typeof LlmaTraceReviewDeleteSchema, uconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'DELETE',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/trace_reviews/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/trace_reviews/${encodeURIComponent(String(params.id))}/`,})return result},@@ -1641,7 +1641,7 @@ const llmaTraceReviewGet = (): ToolBase<typeof LlmaTraceReviewGetSchema, WithPosconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.TraceReview>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/trace_reviews/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/trace_reviews/${encodeURIComponent(String(params.id))}/`,})return await withPostHogUrl(context, result, `/ai-observability/traces/${result.trace_id}`)},@@ -1660,7 +1660,7 @@ const llmaTraceReviewList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedTraceReviewList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/trace_reviews/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/trace_reviews/`,query: {definition_id: params.definition_id,definition_id__in: params.definition_id__in,@@ -1714,7 +1714,7 @@ const llmaTraceReviewUpdate = (): ToolBase<}const result = await context.api.request<Schemas.TraceReview>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/llm_analytics/trace_reviews/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/llm_analytics/trace_reviews/${encodeURIComponent(String(params.id))}/`,body,})return await withPostHogUrl(context, result, `/ai-observability/traces/${result.trace_id}`)diff --git a/services/mcp/src/tools/generated/customer_analytics.ts b/services/mcp/src/tools/generated/customer_analytics.tsindex ed7731816462..fd896cd3dc3c 100644--- a/services/mcp/src/tools/generated/customer_analytics.ts+++ b/services/mcp/src/tools/generated/customer_analytics.ts@@ -57,7 +57,7 @@ const accountsCreate = (): ToolBase<typeof AccountsCreateSchema, Schemas.Account}const result = await context.api.request<Schemas.Account>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/accounts/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/accounts/`,body,})return result@@ -73,7 +73,7 @@ const accountsDestroy = (): ToolBase<typeof AccountsDestroySchema, unknown> => (const projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'DELETE',- path: `/api/environments/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.id))}/`,})return result},@@ -93,7 +93,7 @@ const accountsList = (): ToolBase<typeof AccountsListSchema, WithPostHogUrl<Scheconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedAccountList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/accounts/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/accounts/`,query: {account_executive: params.account_executive,account_owner: params.account_owner,@@ -131,7 +131,7 @@ const accountsNotebooksCreate = (): ToolBase<typeof AccountsNotebooksCreateSchem}const result = await context.api.request<Schemas.AccountNotebook>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.account_id))}/notebooks/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.account_id))}/notebooks/`,body,})return result@@ -147,7 +147,7 @@ const accountsNotebooksDestroy = (): ToolBase<typeof AccountsNotebooksDestroySchconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'DELETE',- path: `/api/environments/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.account_id))}/notebooks/${encodeURIComponent(String(params.short_id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.account_id))}/notebooks/${encodeURIComponent(String(params.short_id))}/`,})return result},@@ -168,7 +168,7 @@ const accountsNotebooksList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedAccountNotebookList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.account_id))}/notebooks/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.account_id))}/notebooks/`,query: {limit: params.limit,offset: params.offset,@@ -188,7 +188,7 @@ const accountsNotebooksRetrieve = (): ToolBase<typeof AccountsNotebooksRetrieveSconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.AccountNotebook>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.account_id))}/notebooks/${encodeURIComponent(String(params.short_id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.account_id))}/notebooks/${encodeURIComponent(String(params.short_id))}/`,})return result},@@ -225,7 +225,7 @@ const accountsPartialUpdate = (): ToolBase<typeof AccountsPartialUpdateSchema, S}const result = await context.api.request<Schemas.Account>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.id))}/`,body,})return result@@ -242,7 +242,7 @@ const accountsRetrieve = (): ToolBase<typeof AccountsRetrieveSchema, Schemas.Accconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.Account>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/accounts/${encodeURIComponent(String(params.id))}/`,})return result},diff --git a/services/mcp/src/tools/generated/docs.ts b/services/mcp/src/tools/generated/docs.tsindex 8be80a411d76..5c196ff3806f 100644--- a/services/mcp/src/tools/generated/docs.ts+++ b/services/mcp/src/tools/generated/docs.ts@@ -18,7 +18,7 @@ const docsSearch = (): ToolBase<typeof DocsSearchSchema, Schemas.DocsSearchRespo}const result = await context.api.request<Schemas.DocsSearchResponse>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/mcp_tools/docs_search/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/mcp_tools/docs_search/`,body,})return resultdiff --git a/services/mcp/src/tools/generated/error_tracking.ts b/services/mcp/src/tools/generated/error_tracking.tsindex 076ec3ccd70d..9f7f03acddfd 100644--- a/services/mcp/src/tools/generated/error_tracking.ts+++ b/services/mcp/src/tools/generated/error_tracking.ts@@ -48,7 +48,7 @@ const errorTrackingAssignmentRulesCreate = (): ToolBase<}const result = await context.api.request<Schemas.ErrorTrackingAssignmentRule>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/assignment_rules/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/assignment_rules/`,body,})return result@@ -67,7 +67,7 @@ const errorTrackingAssignmentRulesList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedErrorTrackingAssignmentRuleList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/assignment_rules/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/assignment_rules/`,query: {limit: params.limit,offset: params.offset,@@ -99,7 +99,7 @@ const errorTrackingGroupingRulesCreate = (): ToolBase<}const result = await context.api.request<Schemas.ErrorTrackingGroupingRule>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/grouping_rules/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/grouping_rules/`,body,})return result@@ -119,7 +119,7 @@ const errorTrackingGroupingRulesList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.ErrorTrackingGroupingRuleListResponse>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/grouping_rules/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/grouping_rules/`,})return result},@@ -140,7 +140,7 @@ const errorTrackingGroupingRulesUpdate = (): ToolBase<typeof ErrorTrackingGroupi}const result = await context.api.request<unknown>({method: 'PUT',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/grouping_rules/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/grouping_rules/${encodeURIComponent(String(params.id))}/`,body,})return result@@ -165,7 +165,7 @@ const errorTrackingIssuesMergeCreate = (): ToolBase<}const result = await context.api.request<Schemas.ErrorTrackingIssueMergeResponse>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/issues/${encodeURIComponent(String(params.id))}/merge/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/issues/${encodeURIComponent(String(params.id))}/merge/`,body,})return result@@ -206,7 +206,7 @@ const errorTrackingIssuesPartialUpdate = (): ToolBase<}const result = await context.api.request<Schemas.ErrorTrackingIssueFull>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/issues/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/issues/${encodeURIComponent(String(params.id))}/`,body,})return await withPostHogUrl(context, result, `/error_tracking/${result.id}`)@@ -231,7 +231,7 @@ const errorTrackingIssuesSplitCreate = (): ToolBase<}const result = await context.api.request<Schemas.ErrorTrackingIssueSplitResponse>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/issues/${encodeURIComponent(String(params.id))}/split/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/issues/${encodeURIComponent(String(params.id))}/split/`,body,})return result@@ -257,7 +257,7 @@ const errorTrackingSuppressionRulesCreate = (): ToolBase<}const result = await context.api.request<Schemas.ErrorTrackingSuppressionRule>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/suppression_rules/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/suppression_rules/`,body,})return result@@ -276,7 +276,7 @@ const errorTrackingSuppressionRulesList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedErrorTrackingSuppressionRuleList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/suppression_rules/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/suppression_rules/`,query: {limit: params.limit,offset: params.offset,@@ -307,7 +307,7 @@ const errorTrackingSuppressionRulesUpdate = (): ToolBase<}const result = await context.api.request<unknown>({method: 'PUT',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/suppression_rules/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/suppression_rules/${encodeURIComponent(String(params.id))}/`,body,})return result@@ -429,7 +429,7 @@ const queryErrorTrackingIssue = (): ToolBase<}const result = await context.api.request<Schemas.ErrorTrackingIssueDetail>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/query/issue/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/query/issue/`,body,})return await withPostHogUrl(context, result, `/error_tracking/${params.issueId}`)@@ -480,7 +480,7 @@ const queryErrorTrackingIssueEvents = (): ToolBase<}const result = await context.api.request<Schemas.ErrorTrackingIssueEventsResponse>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/query/issue_events/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/query/issue_events/`,body,})return await withPostHogUrl(context, result, `/error_tracking/${params.issueId}`)@@ -555,7 +555,7 @@ const queryErrorTrackingIssuesList = (): ToolBase<}const result = await context.api.request<Schemas.ErrorTrackingIssuesListResponse>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/error_tracking/query/issues/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/query/issues/`,body,})const filtered = {diff --git a/services/mcp/src/tools/generated/platform_features.ts b/services/mcp/src/tools/generated/platform_features.tsindex e6434bd799c6..30f7a8c2a3fa 100644--- a/services/mcp/src/tools/generated/platform_features.ts+++ b/services/mcp/src/tools/generated/platform_features.ts@@ -163,7 +163,7 @@ const approvalPoliciesList = (): ToolBase<typeof ApprovalPoliciesListSchema, Schconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedApprovalPolicyList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/approval_policies/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/approval_policies/`,query: {limit: params.limit,offset: params.offset,@@ -182,7 +182,7 @@ const approvalPolicyGet = (): ToolBase<typeof ApprovalPolicyGetSchema, Schemas.Aconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.ApprovalPolicy>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/approval_policies/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/approval_policies/${encodeURIComponent(String(params.id))}/`,})return result},@@ -197,7 +197,7 @@ const changeRequestGet = (): ToolBase<typeof ChangeRequestGetSchema, Schemas.Chaconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.ChangeRequest>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/change_requests/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/change_requests/${encodeURIComponent(String(params.id))}/`,})return result},@@ -212,7 +212,7 @@ const changeRequestsList = (): ToolBase<typeof ChangeRequestsListSchema, Schemasconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedChangeRequestList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/change_requests/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/change_requests/`,query: {action_key: params.action_key,limit: params.limit,diff --git a/services/mcp/src/tools/generated/replay_vision.ts b/services/mcp/src/tools/generated/replay_vision.tsindex a7c31d693d31..139ab7bf84a5 100644--- a/services/mcp/src/tools/generated/replay_vision.ts+++ b/services/mcp/src/tools/generated/replay_vision.ts@@ -58,7 +58,7 @@ const visionScannersCreate = (): ToolBase<typeof VisionScannersCreateSchema, Sch}const result = await context.api.request<Schemas.ReplayScanner>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/vision/scanners/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/vision/scanners/`,body,})return result@@ -74,7 +74,7 @@ const visionScannersDelete = (): ToolBase<typeof VisionScannersDeleteSchema, unkconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'DELETE',- path: `/api/environments/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.id))}/`,})return result},@@ -89,7 +89,7 @@ const visionScannersGet = (): ToolBase<typeof VisionScannersGetSchema, Schemas.Rconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.ReplayScanner>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.id))}/`,})return result},@@ -107,7 +107,7 @@ const visionScannersList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedReplayScannerList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/vision/scanners/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/vision/scanners/`,query: {emits_signals: params.emits_signals,enabled: params.enabled,@@ -133,7 +133,7 @@ const visionScannersObservationsGet = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.ReplayObservation>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.scanner_id))}/observations/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.scanner_id))}/observations/${encodeURIComponent(String(params.id))}/`,})return result},@@ -153,7 +153,7 @@ const visionScannersObservationsList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedReplayObservationList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.scanner_id))}/observations/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.scanner_id))}/observations/`,query: {limit: params.limit,offset: params.offset,@@ -182,7 +182,7 @@ const visionScannersScanSession = (): ToolBase<typeof VisionScannersScanSessionS}const result = await context.api.request<unknown>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.id))}/observe/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.id))}/observe/`,body,})return result@@ -231,7 +231,7 @@ const visionScannersUpdate = (): ToolBase<typeof VisionScannersUpdateSchema, Sch}const result = await context.api.request<Schemas.ReplayScanner>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/vision/scanners/${encodeURIComponent(String(params.id))}/`,body,})return resultdiff --git a/services/mcp/src/tools/generated/tracing.ts b/services/mcp/src/tools/generated/tracing.tsindex f74af240ec81..9b3f973b53ec 100644--- a/services/mcp/src/tools/generated/tracing.ts+++ b/services/mcp/src/tools/generated/tracing.ts@@ -24,7 +24,7 @@ const apmAttributeValuesList = (): ToolBase<typeof ApmAttributeValuesListSchema,const projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/tracing/spans/values/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/tracing/spans/values/`,query: {attribute_type: params.attribute_type,key: params.key,@@ -47,7 +47,7 @@ const apmAttributesList = (): ToolBase<typeof ApmAttributesListSchema, unknown>const projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/tracing/spans/attributes/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/tracing/spans/attributes/`,query: {attribute_type: params.attribute_type,limit: params.limit,@@ -69,7 +69,7 @@ const apmServicesList = (): ToolBase<typeof ApmServicesListSchema, unknown> => (const projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/tracing/spans/service-names/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/tracing/spans/service-names/`,query: {dateRange: params.dateRange,search: params.search,@@ -93,7 +93,7 @@ const apmSpansAggregate = (): ToolBase<typeof ApmSpansAggregateSchema, unknown>}const result = await context.api.request<unknown>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/tracing/spans/aggregate/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/tracing/spans/aggregate/`,body,})const filtered = pickResponseFields(result, ['results', 'compare']) as typeof result@@ -114,7 +114,7 @@ const apmSpansTree = (): ToolBase<typeof ApmSpansTreeSchema, unknown> => ({}const result = await context.api.request<unknown>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/tracing/spans/tree/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/tracing/spans/tree/`,body,})const filtered = pickResponseFields(result, ['results', 'compare']) as typeof result@@ -138,7 +138,7 @@ const apmTraceGet = (): ToolBase<typeof ApmTraceGetSchema, unknown> =>}const result = await context.api.request<unknown>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/tracing/spans/trace/${encodeURIComponent(String(params.trace_id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/tracing/spans/trace/${encodeURIComponent(String(params.trace_id))}/`,body,})const filtered = pickResponseFields(result, ['results']) as typeof result@@ -160,7 +160,7 @@ const queryApmSpans = (): ToolBase<typeof QueryApmSpansSchema, unknown> =>}const result = await context.api.request<unknown>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/tracing/spans/query/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/tracing/spans/query/`,body,})const filtered = pickResponseFields(result, ['results']) as typeof resultdiff --git a/services/mcp/src/tools/generated/user_interviews.ts b/services/mcp/src/tools/generated/user_interviews.tsindex a186da4d0797..46727080ef42 100644--- a/services/mcp/src/tools/generated/user_interviews.ts+++ b/services/mcp/src/tools/generated/user_interviews.ts@@ -50,7 +50,7 @@ const userInterviewTopicsAddInterviewee = (): ToolBase<}const result = await context.api.request<Schemas.UserInterviewTopic>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/add_interviewee/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/add_interviewee/`,body,})return result@@ -82,7 +82,7 @@ const userInterviewTopicsCreate = (): ToolBase<typeof UserInterviewTopicsCreateS}const result = await context.api.request<Schemas.UserInterviewTopic>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/`,body,})return result@@ -101,7 +101,7 @@ const userInterviewTopicsGenerateLinks = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedInterviewLinkList>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/generate_links/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/generate_links/`,})return result},@@ -125,7 +125,7 @@ const userInterviewTopicsIntervieweesBulkCreate = (): ToolBase<}const result = await context.api.request<Schemas.BulkIntervieweeContextResponse>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.topic_id))}/interviewees/bulk/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.topic_id))}/interviewees/bulk/`,body,})return result@@ -153,7 +153,7 @@ const userInterviewTopicsIntervieweesCreate = (): ToolBase<}const result = await context.api.request<Schemas.IntervieweeContext>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.topic_id))}/interviewees/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.topic_id))}/interviewees/`,body,})return result@@ -174,7 +174,7 @@ const userInterviewTopicsIntervieweesDestroy = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'DELETE',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.topic_id))}/interviewees/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.topic_id))}/interviewees/${encodeURIComponent(String(params.id))}/`,})return result},@@ -194,7 +194,7 @@ const userInterviewTopicsIntervieweesList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedIntervieweeContextList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.topic_id))}/interviewees/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.topic_id))}/interviewees/`,query: {limit: params.limit,offset: params.offset,@@ -222,7 +222,7 @@ const userInterviewTopicsIntervieweesPartialUpdate = (): ToolBase<}const result = await context.api.request<Schemas.IntervieweeContext>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.topic_id))}/interviewees/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.topic_id))}/interviewees/${encodeURIComponent(String(params.id))}/`,body,})return result@@ -238,7 +238,7 @@ const userInterviewTopicsLinksCsv = (): ToolBase<typeof UserInterviewTopicsLinksconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/links_csv/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/links_csv/`,})return result},@@ -256,7 +256,7 @@ const userInterviewTopicsList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedUserInterviewTopicList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/`,query: {limit: params.limit,offset: params.offset,@@ -297,7 +297,7 @@ const userInterviewTopicsPartialUpdate = (): ToolBase<}const result = await context.api.request<Schemas.UserInterviewTopic>({method: 'PATCH',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/`,body,})return result@@ -322,7 +322,7 @@ const userInterviewTopicsRemoveInterviewee = (): ToolBase<}const result = await context.api.request<Schemas.UserInterviewTopic>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/remove_interviewee/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/remove_interviewee/`,body,})return result@@ -341,7 +341,7 @@ const userInterviewTopicsRetrieve = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.UserInterviewTopic>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/`,})return result},@@ -371,7 +371,7 @@ const userInterviewTopicsSendInvites = (): ToolBase<}const result = await context.api.request<Schemas.PaginatedInterviewInviteResultList>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/send_invites/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interview_topics/${encodeURIComponent(String(params.id))}/send_invites/`,body,})return result@@ -390,7 +390,7 @@ const userInterviewsList = (): ToolBase<const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedUserInterviewList>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interviews/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interviews/`,query: {limit: params.limit,offset: params.offset,@@ -410,7 +410,7 @@ const userInterviewsRetrieve = (): ToolBase<typeof UserInterviewsRetrieveSchema,const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.UserInterview>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interviews/${encodeURIComponent(String(params.id))}/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interviews/${encodeURIComponent(String(params.id))}/`,})return result},@@ -438,7 +438,7 @@ const userInterviewsSearch = (): ToolBase<typeof UserInterviewsSearchSchema, Sch}const result = await context.api.request<Schemas.UserInterviewSearchResult[]>({method: 'POST',- path: `/api/environments/${encodeURIComponent(String(projectId))}/user_interviews/search/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/user_interviews/search/`,body,})return resultdiff --git a/services/mcp/src/tools/generated/web_analytics.ts b/services/mcp/src/tools/generated/web_analytics.tsindex 76ad436eed2f..ca6fef86eeee 100644--- a/services/mcp/src/tools/generated/web_analytics.ts+++ b/services/mcp/src/tools/generated/web_analytics.ts@@ -14,7 +14,7 @@ const webAnalyticsWeeklyDigest = (): ToolBase<typeof WebAnalyticsWeeklyDigestSchconst projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.WeeklyDigestResponse>({method: 'GET',- path: `/api/environments/${encodeURIComponent(String(projectId))}/web_analytics/weekly_digest/`,+ path: `/api/projects/${encodeURIComponent(String(projectId))}/web_analytics/weekly_digest/`,query: {compare: params.compare,days: params.days,diff --git a/services/mcp/tests/unit/prompts-generated.test.ts b/services/mcp/tests/unit/prompts-generated.test.tsindex d65adc8f3314..5832fdacae67 100644--- a/services/mcp/tests/unit/prompts-generated.test.ts+++ b/services/mcp/tests/unit/prompts-generated.test.ts@@ -65,7 +65,7 @@ describe('Generated llma-prompt-* tools', () => {expect(requestMock).toHaveBeenCalledWith({method: 'GET',- path: '/api/environments/17/llm_prompts/',+ path: '/api/projects/17/llm_prompts/',query: { search: 'checkout', content: 'none' },})expect(result).toEqual(paginated)@@ -79,7 +79,7 @@ describe('Generated llma-prompt-* tools', () => {expect(requestMock).toHaveBeenCalledWith({method: 'GET',- path: '/api/environments/17/llm_prompts/',+ path: '/api/projects/17/llm_prompts/',query: { search: 'checkout', content: 'preview' },})})@@ -93,7 +93,7 @@ describe('Generated llma-prompt-* tools', () => {expect(requestMock).toHaveBeenCalledWith({method: 'GET',- path: '/api/environments/17/llm_prompts/name/checkout_prompt/',+ path: '/api/projects/17/llm_prompts/name/checkout_prompt/',query: { version: 2 },})})@@ -106,7 +106,7 @@ describe('Generated llma-prompt-* tools', () => {expect(requestMock).toHaveBeenCalledWith({method: 'POST',- path: '/api/environments/17/llm_prompts/',+ path: '/api/projects/17/llm_prompts/',body: { name: 'new_prompt', prompt: { text: 'hello' } },})})@@ -119,7 +119,7 @@ describe('Generated llma-prompt-* tools', () => {expect(requestMock).toHaveBeenCalledWith({method: 'PATCH',- path: '/api/environments/17/llm_prompts/name/new_prompt/',+ path: '/api/projects/17/llm_prompts/name/new_prompt/',body: { prompt: { text: 'v2' }, base_version: 1 },})})@@ -141,7 +141,7 @@ describe('Generated llma-prompt-* tools', () => {expect(requestMock).toHaveBeenCalledWith({method: 'POST',- path: '/api/environments/17/llm_prompts/name/original_prompt/duplicate/',+ path: '/api/projects/17/llm_prompts/name/original_prompt/duplicate/',body: { new_name: 'copy_of_prompt' },})expect(result).toEqual(response)diff --git a/services/mcp/tests/unit/skills-generated.test.ts b/services/mcp/tests/unit/skills-generated.test.tsindex 306bf3fbbde3..894cdf716f01 100644--- a/services/mcp/tests/unit/skills-generated.test.ts+++ b/services/mcp/tests/unit/skills-generated.test.ts@@ -36,7 +36,7 @@ describe('Generated llma-skill-* tools', () => {expect(requestMock).toHaveBeenCalledWith({method: 'POST',- path: '/api/environments/17/llm_skills/name/skills-store/archive/',+ path: '/api/projects/17/llm_skills/name/skills-store/archive/',})expect(result).toBeUndefined()})