: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
feat(flags): deprecate usage dashboard endpoints (#90613)
Phil Haack255870a32fe2
diff --git a/docs/internal/feature-flags/django-api-endpoints.md b/docs/internal/feature-flags/django-api-endpoints.mdindex 13c731d2a468..356ee5c6ed60 100644--- a/docs/internal/feature-flags/django-api-endpoints.md+++ b/docs/internal/feature-flags/django-api-endpoints.md@@ -59,7 +59,8 @@ Standard REST on `/api/projects/{id}/feature_flags/`. Hard `DELETE` is blocked| `POST` | `.../feature_flags/{pk}/create_static_cohort_for_flag/` | Create a static cohort from matched users || `GET` | `.../feature_flags/{pk}/status/` | Flag status (ACTIVE, STALE, DELETED, UNKNOWN) || `GET` | `.../feature_flags/{pk}/dependent_flags/` | Flags that depend on this flag |-| `POST` | `.../feature_flags/{pk}/dashboard/` | Create a usage dashboard for the flag |+| `POST` | `.../feature_flags/{pk}/dashboard/` | Deprecated: create a usage dashboard (sunsets September 25, 2026) |+| `POST` | `.../feature_flags/{pk}/enrich_usage_dashboard/` | Deprecated: enrich an existing legacy usage dashboard (no removal date set) || `POST` | `.../feature_flags/{pk}/enable/` | Set `active: true` only || `POST` | `.../feature_flags/{pk}/disable/` | Set `active: false` only || `POST` | `.../feature_flags/{pk}/archive/` | Set `archived: true`, disabling the flag in the same write when needed |diff --git a/products/feature_flags/backend/api/feature_flag.py b/products/feature_flags/backend/api/feature_flag.pyindex 1ae6f7c51d41..e9f788f67607 100644--- a/products/feature_flags/backend/api/feature_flag.py+++ b/products/feature_flags/backend/api/feature_flag.py@@ -9,7 +9,7 @@ import functoolsfrom collections.abc import Iterable, Iterator, Sequencefrom dataclasses import asdictfrom datetime import datetime, timedelta-from typing import Any, NoReturn, Optional, cast+from typing import Any, Literal, NoReturn, Optional, castfrom django.conf import settingsfrom django.contrib.postgres.aggregates import ArrayAgg@@ -150,6 +150,8 @@ scope_audit_logger = structlog.get_logger("posthog.feature_flag_scope_audit")# the violations that would have been 400s while the #50084 enforcement kill switch is off.filters_enforcement_logger = structlog.get_logger("posthog.feature_flag_filters_enforcement")+FEATURE_FLAG_USAGE_DASHBOARD_SUNSET = "Fri, 25 Sep 2026 00:00:00 GMT"+# DRF error messages echo caller-controlled input (a ChoiceField repeats the rejected value)# and bodies up to 20MB reach validation before the filter-size check runs, so an unbounded# log line is one PATCH away. The bake depends on these logs staying countable.@@ -1204,6 +1206,14 @@ class FeatureFlagExperimentSetMetadataSerializer(serializers.Serializer):)+class FeatureFlagUsageDashboardSuccessSerializer(serializers.Serializer):+ success = serializers.BooleanField(help_text="Whether the usage dashboard operation completed successfully.")+++class FeatureFlagUsageDashboardErrorSerializer(FeatureFlagUsageDashboardSuccessSerializer):+ error = serializers.CharField(help_text="Why the usage dashboard operation failed.")++class FeatureFlagSerializer(TaggedItemSerializerMixin,EvaluationContextSerializerMixin,@@ -1234,9 +1244,9 @@ class FeatureFlagSerializer(read_only=True,allow_null=True,help_text=(- "Dashboard of saved usage insights for this flag, or null if it has none. "- "Flags do not get one on creation; create it with "- "POST /api/projects/{project_id}/feature_flags/{id}/dashboard/."+ "Legacy dashboard of saved usage insights for this flag, or null if it has none. "+ "New flags show usage charts inline instead. The dashboard creation endpoint is deprecated "+ "and will be removed after September 25, 2026."),)analytics_dashboards = TeamScopedPrimaryKeyRelatedField(@@ -3525,17 +3535,56 @@ class FeatureFlagViewSet(status=400,)- # No UI surface calls this, since the Usage tab renders its charts inline. It exists for API- # users who want a saved usage dashboard.- @extend_schema(request=None)+ @staticmethod+ def _with_usage_dashboard_deprecation_headers(response: Response, *, include_sunset: bool = True) -> Response:+ response["Deprecation"] = "true"+ if include_sunset:+ response["Sunset"] = FEATURE_FLAG_USAGE_DASHBOARD_SUNSET+ return response++ def _report_usage_dashboard_endpoint_call(+ self,+ request: request.Request,+ endpoint: Literal["dashboard", "enrich_usage_dashboard"],+ outcome: Literal["created", "existing", "success", "error"],+ ) -> None:+ try:+ report_user_action(+ request.user,+ "deprecated feature flag usage dashboard endpoint called",+ {"endpoint": endpoint, "outcome": outcome},+ team=self.team,+ organization=self.team.organization,+ )+ except Exception:+ logger.exception("Failed to report deprecated feature flag usage dashboard endpoint call")++ # No UI surface calls this, since the Usage tab renders its charts inline.+ # Without required_scopes, APIScopePermission rejects every personal API key, OAuth, and+ # project secret key caller, so only a session-authenticated request reaches this action.+ # It remains functional until the announced sunset.+ @extend_schema(+ request=None,+ responses={+ status.HTTP_200_OK: FeatureFlagUsageDashboardSuccessSerializer,+ status.HTTP_400_BAD_REQUEST: FeatureFlagUsageDashboardErrorSerializer,+ },+ deprecated=True,+ description=(+ "Deprecated. Ensures a saved usage dashboard exists for a feature flag. "+ "This endpoint will be removed after September 25, 2026; usage charts remain available "+ "on the feature flag Usage tab."+ ),+ )@action(methods=["POST"], detail=True)- def dashboard(self, request: request.Request, **kwargs):+ def dashboard(self, request: request.Request, **kwargs: Any) -> Response:from products.dashboards.backend.models.dashboard import Dashboardfeature_flag: FeatureFlag = self.get_object()rejection = self._deleted_flag_rejection(feature_flag, "generating a usage dashboard")if rejection is not None:- return rejection+ self._report_usage_dashboard_endpoint_call(request, "dashboard", "error")+ return self._with_usage_dashboard_deprecation_headers(rejection)try:# The FK on the flag isn't cleared by a dashboard soft-delete, so look the id up# through the manager that excludes deleted rows rather than via the FK accessor,@@ -3549,73 +3598,112 @@ class FeatureFlagViewSet()if usage_dashboard is None:usage_dashboard = _create_usage_dashboard(feature_flag, request.user)+ outcome: Literal["created", "existing"] = "created"+ else:+ outcome = "existing"if feature_flag.has_enriched_analytics and not feature_flag.usage_dashboard_has_enriched_insights:add_enriched_insights_to_feature_flag_dashboard(feature_flag, usage_dashboard)except Exception as e:capture_exception(e)- return Response(- {- "success": False,- "error": f"Unable to generate usage dashboard",- },- status=400,+ self._report_usage_dashboard_endpoint_call(request, "dashboard", "error")+ return self._with_usage_dashboard_deprecation_headers(+ Response(+ {+ "success": False,+ "error": "Unable to generate usage dashboard",+ },+ status=status.HTTP_400_BAD_REQUEST,+ ))- return Response({"success": True}, status=200)+ self._report_usage_dashboard_endpoint_call(request, "dashboard", outcome)+ return self._with_usage_dashboard_deprecation_headers(Response({"success": True}, status=status.HTTP_200_OK))- @extend_schema(request=None)+ # Unlike `dashboard` above, the main app does call this: featureFlagLogic.ts's+ # enrichUsageDashboard listener calls it automatically once a flag gains enriched+ # analytics. As with `dashboard`, token callers are rejected before reaching this+ # action, so nearly every call the telemetry below sees is that automatic one.+ @extend_schema(+ request=None,+ responses={+ status.HTTP_200_OK: FeatureFlagUsageDashboardSuccessSerializer,+ status.HTTP_400_BAD_REQUEST: FeatureFlagUsageDashboardErrorSerializer,+ },+ deprecated=True,+ description=(+ "Deprecated. Adds enriched insights to an existing legacy feature flag usage dashboard. "+ "No removal date has been set; usage charts remain available on the feature flag Usage tab."+ ),+ )@action(methods=["POST"], detail=True)- def enrich_usage_dashboard(self, request: request.Request, **kwargs):+ def enrich_usage_dashboard(self, request: request.Request, **kwargs: Any) -> Response:feature_flag: FeatureFlag = self.get_object()rejection = self._deleted_flag_rejection(feature_flag, "enriching its usage dashboard")if rejection is not None:- return rejection+ self._report_usage_dashboard_endpoint_call(request, "enrich_usage_dashboard", "error")+ return self._with_usage_dashboard_deprecation_headers(rejection, include_sunset=False)usage_dashboard = feature_flag.usage_dashboardif not usage_dashboard:- return Response(- {- "success": False,- "error": (- "Usage dashboard not found. Create one first with "- "POST /api/projects/{project_id}/feature_flags/{id}/dashboard/"- ),- },- status=400,+ self._report_usage_dashboard_endpoint_call(request, "enrich_usage_dashboard", "error")+ return self._with_usage_dashboard_deprecation_headers(+ Response(+ {+ "success": False,+ "error": "Usage dashboard not found. Usage charts are available on the feature flag Usage tab.",+ },+ status=status.HTTP_400_BAD_REQUEST,+ ),+ include_sunset=False,)if feature_flag.usage_dashboard_has_enriched_insights:- return Response(- {- "success": False,- "error": f"Usage dashboard already has enriched data",- },- status=400,+ self._report_usage_dashboard_endpoint_call(request, "enrich_usage_dashboard", "error")+ return self._with_usage_dashboard_deprecation_headers(+ Response(+ {+ "success": False,+ "error": "Usage dashboard already has enriched data",+ },+ status=status.HTTP_400_BAD_REQUEST,+ ),+ include_sunset=False,)if not feature_flag.has_enriched_analytics:- return Response(- {- "success": False,- "error": f"No enriched analytics available for this feature flag",- },- status=400,+ self._report_usage_dashboard_endpoint_call(request, "enrich_usage_dashboard", "error")+ return self._with_usage_dashboard_deprecation_headers(+ Response(+ {+ "success": False,+ "error": "No enriched analytics available for this feature flag",+ },+ status=status.HTTP_400_BAD_REQUEST,+ ),+ include_sunset=False,)try:add_enriched_insights_to_feature_flag_dashboard(feature_flag, usage_dashboard)except Exception as e:capture_exception(e)- return Response(- {- "success": False,- "error": f"Unable to enrich usage dashboard",- },- status=400,+ self._report_usage_dashboard_endpoint_call(request, "enrich_usage_dashboard", "error")+ return self._with_usage_dashboard_deprecation_headers(+ Response(+ {+ "success": False,+ "error": "Unable to enrich usage dashboard",+ },+ status=status.HTTP_400_BAD_REQUEST,+ ),+ include_sunset=False,)- return Response({"success": True}, status=200)+ self._report_usage_dashboard_endpoint_call(request, "enrich_usage_dashboard", "success")+ return self._with_usage_dashboard_deprecation_headers(+ Response({"success": True}, status=status.HTTP_200_OK), include_sunset=False+ )@extend_schema(responses={200: DependentFlagSerializer(many=True)},diff --git a/products/feature_flags/backend/api/test/test_feature_flag.py b/products/feature_flags/backend/api/test/test_feature_flag.pyindex ba78b4db041b..c600de95af1b 100644--- a/products/feature_flags/backend/api/test/test_feature_flag.py+++ b/products/feature_flags/backend/api/test/test_feature_flag.py@@ -5087,23 +5087,43 @@ class TestFeatureFlag(APIBaseTest, ClickhouseTestMixin):# now enable enriched analyticsinstance.has_enriched_analytics = Trueinstance.save()+ mock_report_user_action.reset_mock()response = self.client.post(f"/api/projects/{self.team.id}/feature_flags/{flag_id}/enrich_usage_dashboard",format="json",)self.assertEqual(response.status_code, status.HTTP_200_OK)+ self.assertEqual(response["Deprecation"], "true")+ self.assertNotIn("Sunset", response)+ mock_report_user_action.assert_called_once_with(+ self.user,+ "deprecated feature flag usage dashboard endpoint called",+ {"endpoint": "enrich_usage_dashboard", "outcome": "success"},+ team=instance.team,+ organization=self.organization,+ )# now try enriching again+ mock_report_user_action.reset_mock()response = self.client.post(f"/api/projects/{self.team.id}/feature_flags/{flag_id}/enrich_usage_dashboard",format="json",)self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)+ self.assertEqual(response["Deprecation"], "true")+ self.assertNotIn("Sunset", response)self.assertEqual(response.json(),{"error": "Usage dashboard already has enriched data", "success": False},)+ mock_report_user_action.assert_called_once_with(+ self.user,+ "deprecated feature flag usage dashboard endpoint called",+ {"endpoint": "enrich_usage_dashboard", "outcome": "error"},+ team=instance.team,+ organization=self.organization,+ )@patch("products.feature_flags.backend.api.feature_flag.report_user_action")def test_dashboard_enrichment_fails_if_no_enriched_data(self, mock_report_user_action):@@ -5148,22 +5168,30 @@ class TestFeatureFlag(APIBaseTest, ClickhouseTestMixin):)self.assertEqual(response.status_code, status.HTTP_201_CREATED)flag_id = response.json()["id"]+ flag = FeatureFlag.objects.get(id=flag_id)+ mock_report_user_action.reset_mock()response = self.client.post(f"/api/projects/{self.team.id}/feature_flags/{flag_id}/enrich_usage_dashboard",format="json",)self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)+ self.assertEqual(response["Deprecation"], "true")+ self.assertNotIn("Sunset", response)self.assertEqual(response.json(),{- "error": (- "Usage dashboard not found. Create one first with "- "POST /api/projects/{project_id}/feature_flags/{id}/dashboard/"- ),+ "error": "Usage dashboard not found. Usage charts are available on the feature flag Usage tab.","success": False,},)+ mock_report_user_action.assert_called_once_with(+ self.user,+ "deprecated feature flag usage dashboard endpoint called",+ {"endpoint": "enrich_usage_dashboard", "outcome": "error"},+ team=flag.team,+ organization=self.organization,+ )def test_dashboard_endpoint_is_idempotent(self) -> None:response = self.client.post(@@ -5184,6 +5212,81 @@ class TestFeatureFlag(APIBaseTest, ClickhouseTestMixin):self.assertEqual(instance.usage_dashboard_id, first_dashboard_id)self.assertTrue(Dashboard.objects.filter(id=first_dashboard_id, deleted=False).exists())+ @patch("products.feature_flags.backend.api.feature_flag.report_user_action")+ def test_dashboard_endpoint_announces_deprecation_and_reports_usage(+ self, mock_report_user_action: MagicMock+ ) -> None:+ flag = FeatureFlag.objects.create(team=self.team, created_by=self.user, key="deprecated-dashboard-endpoint")++ response = self.client.post(f"/api/projects/{self.team.id}/feature_flags/{flag.id}/dashboard")++ self.assertEqual(response.status_code, status.HTTP_200_OK)+ self.assertEqual(response.json(), {"success": True})+ self.assertEqual(response["Deprecation"], "true")+ self.assertEqual(response["Sunset"], "Fri, 25 Sep 2026 00:00:00 GMT")+ mock_report_user_action.assert_called_once_with(+ self.user,+ "deprecated feature flag usage dashboard endpoint called",+ {"endpoint": "dashboard", "outcome": "created"},+ team=flag.team,+ organization=self.organization,+ )++ mock_report_user_action.reset_mock()+ response = self.client.post(f"/api/projects/{self.team.id}/feature_flags/{flag.id}/dashboard")++ self.assertEqual(response.status_code, status.HTTP_200_OK)+ mock_report_user_action.assert_called_once_with(+ self.user,+ "deprecated feature flag usage dashboard endpoint called",+ {"endpoint": "dashboard", "outcome": "existing"},+ team=flag.team,+ organization=self.organization,+ )++ @patch("products.feature_flags.backend.api.feature_flag.capture_exception")+ @patch("products.feature_flags.backend.api.feature_flag.report_user_action")+ @patch("products.feature_flags.backend.api.feature_flag._create_usage_dashboard", side_effect=RuntimeError)+ def test_dashboard_endpoint_deprecation_headers_are_returned_on_error(+ self,+ mock_create_usage_dashboard: MagicMock,+ mock_report_user_action: MagicMock,+ mock_capture_exception: MagicMock,+ ) -> None:+ flag = FeatureFlag.objects.create(team=self.team, created_by=self.user, key="dashboard-generation-error")++ response = self.client.post(f"/api/projects/{self.team.id}/feature_flags/{flag.id}/dashboard")++ self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)+ self.assertEqual(response.json(), {"success": False, "error": "Unable to generate usage dashboard"})+ self.assertEqual(response["Deprecation"], "true")+ self.assertEqual(response["Sunset"], "Fri, 25 Sep 2026 00:00:00 GMT")+ mock_report_user_action.assert_called_once_with(+ self.user,+ "deprecated feature flag usage dashboard endpoint called",+ {"endpoint": "dashboard", "outcome": "error"},+ team=flag.team,+ organization=self.organization,+ )+ mock_capture_exception.assert_called_once()+ mock_create_usage_dashboard.assert_called_once()++ @patch(+ "products.feature_flags.backend.api.feature_flag.report_user_action",+ side_effect=RuntimeError("telemetry unavailable"),+ )+ def test_dashboard_endpoint_ignores_telemetry_failures(self, mock_report_user_action: MagicMock) -> None:+ flag = FeatureFlag.objects.create(team=self.team, created_by=self.user, key="dashboard-telemetry-error")++ response = self.client.post(f"/api/projects/{self.team.id}/feature_flags/{flag.id}/dashboard")++ self.assertEqual(response.status_code, status.HTTP_200_OK)+ self.assertEqual(response["Deprecation"], "true")+ self.assertEqual(response["Sunset"], "Fri, 25 Sep 2026 00:00:00 GMT")+ flag.refresh_from_db()+ self.assertIsNotNone(flag.usage_dashboard_id)+ mock_report_user_action.assert_called_once()+def test_dashboard_endpoint_regenerates_after_dashboard_is_deleted(self) -> None:response = self.client.post(f"/api/projects/{self.team.id}/feature_flags/",@@ -5214,6 +5317,11 @@ class TestFeatureFlag(APIBaseTest, ClickhouseTestMixin):self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)self.assertIn("has been deleted", response.json()["error"])+ self.assertEqual(response["Deprecation"], "true")+ if endpoint == "dashboard":+ self.assertEqual(response["Sunset"], "Fri, 25 Sep 2026 00:00:00 GMT")+ else:+ self.assertNotIn("Sunset", response)flag.refresh_from_db()self.assertIsNone(flag.usage_dashboard_id)diff --git a/products/feature_flags/frontend/generated/api.schemas.ts b/products/feature_flags/frontend/generated/api.schemas.tsindex 83bac7d8784e..0a61157dd8fe 100644--- a/products/feature_flags/frontend/generated/api.schemas.ts+++ b/products/feature_flags/frontend/generated/api.schemas.ts@@ -575,7 +575,7 @@ export interface FeatureFlagApi {tags?: unknown[]evaluation_contexts?: unknown[]/**- * Dashboard of saved usage insights for this flag, or null if it has none. Flags do not get one on creation; create it with POST /api/projects/{project_id}/feature_flags/{id}/dashboard/.+ * Legacy dashboard of saved usage insights for this flag, or null if it has none. New flags show usage charts inline instead. The dashboard creation endpoint is deprecated and will be removed after September 25, 2026.* @nullable*/readonly usage_dashboard: number | nulldiff --git a/products/feature_flags/frontend/generated/api.ts b/products/feature_flags/frontend/generated/api.tsindex 39ef4e3c1387..2a6a110d5904 100644--- a/products/feature_flags/frontend/generated/api.ts+++ b/products/feature_flags/frontend/generated/api.ts@@ -745,26 +745,6 @@ export const featureFlagsCreateStaticCohortForFlagCreate = async (})}-export const getFeatureFlagsDashboardCreateUrl = (projectId: string, id: number) => {- return `/api/projects/${projectId}/feature_flags/${id}/dashboard/`-}--/**- * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.- *- * If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.- */-export const featureFlagsDashboardCreate = async (- projectId: string,- id: number,- options?: RequestInit-): Promise<void> => {- return apiMutator<void>(getFeatureFlagsDashboardCreateUrl(projectId, id), {- ...options,- method: 'POST',- })-}-export const getFeatureFlagsDependentFlagsListUrl = (projectId: string, id: number) => {return `/api/projects/${projectId}/feature_flags/${id}/dependent_flags/`}@@ -831,26 +811,6 @@ export const featureFlagsEnableCreate = async (})}-export const getFeatureFlagsEnrichUsageDashboardCreateUrl = (projectId: string, id: number) => {- return `/api/projects/${projectId}/feature_flags/${id}/enrich_usage_dashboard/`-}--/**- * Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.- *- * If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.- */-export const featureFlagsEnrichUsageDashboardCreate = async (- projectId: string,- id: number,- options?: RequestInit-): Promise<void> => {- return apiMutator<void>(getFeatureFlagsEnrichUsageDashboardCreateUrl(projectId, id), {- ...options,- method: 'POST',- })-}-export const getFeatureFlagsRemoteConfigRetrieveUrl = (projectId: string, id: number) => {return `/api/projects/${projectId}/feature_flags/${id}/remote_config/`}diff --git a/products/feature_flags/mcp/tools.yaml b/products/feature_flags/mcp/tools.yamlindex 0eb60edbd986..88b547154484 100644--- a/products/feature_flags/mcp/tools.yaml+++ b/products/feature_flags/mcp/tools.yaml@@ -428,9 +428,6 @@ tools:feature-flags-create-static-cohort-for-flag-create:operation: feature_flags_create_static_cohort_for_flag_createenabled: false- feature-flags-dashboard-create:- operation: feature_flags_dashboard_create- enabled: falsefeature-flags-dependent-flags-retrieve:operation: feature_flags_dependent_flags_listenabled: true@@ -447,9 +444,6 @@ tools:param_overrides:id:cast: string-int- feature-flags-enrich-usage-dashboard-create:- operation: feature_flags_enrich_usage_dashboard_create- enabled: falsefeature-flags-evaluation-reasons-retrieve:operation: feature_flags_evaluation_reasons_retrieveenabled: truediff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 3f50fe544738..1857dd34ba74 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -39944,7 +39944,7 @@ export namespace Schemas {tags?: unknown[];evaluation_contexts?: unknown[];/**- * Dashboard of saved usage insights for this flag, or null if it has none. Flags do not get one on creation; create it with POST /api/projects/{project_id}/feature_flags/{id}/dashboard/.+ * Legacy dashboard of saved usage insights for this flag, or null if it has none. New flags show usage charts inline instead. The dashboard creation endpoint is deprecated and will be removed after September 25, 2026.* @nullable*/readonly usage_dashboard: number | null;@@ -40217,6 +40217,18 @@ export namespace Schemas {conditions: FeatureFlagConditionAnalysis[];}+ export interface FeatureFlagUsageDashboardError {+ /** Whether the usage dashboard operation completed successfully. */+ success: boolean;+ /** Why the usage dashboard operation failed. */+ error: string;+ }++ export interface FeatureFlagUsageDashboardSuccess {+ /** Whether the usage dashboard operation completed successfully. */+ success: boolean;+ }+export type FeatureFlagVersionResponseFilters = { [key: string]: unknown };/**