Skip to content

: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.

fix: update openapi specs after dashboard update (#66060)

Matt Puafade181bccbd
diff --git a/products/dashboards/frontend/generated/api.zod.ts b/products/dashboards/frontend/generated/api.zod.ts
index 749e4fe6f1e0..9eecad352fef 100644
--- a/products/dashboards/frontend/generated/api.zod.ts
+++ b/products/dashboards/frontend/generated/api.zod.ts
@@ -1695,6 +1695,10 @@ export const DashboardsUpdateWidgetsBatchBody = /* @__PURE__ */ zod
.max(dashboardsUpdateWidgetsBatchBodyWidgetsItemOneConfigOneLimitMax)
.default(dashboardsUpdateWidgetsBatchBodyWidgetsItemOneConfigOneLimitDefault)
.describe('Maximum number of events to return.'),
+ eventName: zod
+ .union([zod.string().min(1), zod.null()])
+ .optional()
+ .describe('Limit the feed to a single event name. Omit or null for all events.'),
})
.optional()
.describe('New configuration for the recent events widget. Omit to leave unchanged.'),
diff --git a/services/mcp/src/generated/dashboards/api.ts b/services/mcp/src/generated/dashboards/api.ts
index 5fa2e84fce18..6253e8ed59b1 100644
--- a/services/mcp/src/generated/dashboards/api.ts
+++ b/services/mcp/src/generated/dashboards/api.ts
@@ -1762,6 +1762,10 @@ export const DashboardsUpdateWidgetsBatchBody = /* @__PURE__ */ zod
.max(dashboardsUpdateWidgetsBatchBodyWidgetsItemOneConfigOneLimitMax)
.default(dashboardsUpdateWidgetsBatchBodyWidgetsItemOneConfigOneLimitDefault)
.describe('Maximum number of events to return.'),
+ eventName: zod
+ .union([zod.string().min(1), zod.null()])
+ .optional()
+ .describe('Limit the feed to a single event name. Omit or null for all events.'),
})
.optional()
.describe('New configuration for the recent events widget. Omit to leave unchanged.'),
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-widgets-batch-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-widgets-batch-update.json
index 39765a9deec6..6aaf5e331351 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-widgets-batch-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-widgets-batch-update.json
@@ -47,6 +47,18 @@
}
]
},
+ "eventName": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Limit the feed to a single event name. Omit or null for all events."
+ },
"filterTestAccounts": {
"anyOf": [
{