: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(oauth): activity log for OAuthApplication scope changes (#61940)
Matt Brooker0fcf78a50cfe
diff --git a/ee/api/agentic_provisioning/views.py b/ee/api/agentic_provisioning/views.pyindex 0480b8f7d40b..243218ea4ac5 100644--- a/ee/api/agentic_provisioning/views.py+++ b/ee/api/agentic_provisioning/views.py@@ -1011,7 +1011,7 @@ def oauth_token(request: Request) -> Response:)-def _lock_application(application_id: int) -> OAuthApplication | None:+def _lock_application(application_id: uuid.UUID) -> OAuthApplication | None:"""Row-lock the OAuthApplication so direct-mint serializes with revoke_application_sessions.The revoke updates this row first and holds the lock for its whole transaction beforediff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.tsindex f857b1c12894..64ca1b4e8dfa 100644--- a/frontend/src/lib/api.ts+++ b/frontend/src/lib/api.ts@@ -2624,6 +2624,7 @@ const api = {ActivityScope.PRODUCT_TOUR,ActivityScope.TICKET,ActivityScope.COHORT,+ ActivityScope.OAUTH_APPLICATION,].includes(scopes[0]) ||scopes.length > 1) {diff --git a/frontend/src/lib/components/ActivityLog/activityLogLogic.tsx b/frontend/src/lib/components/ActivityLog/activityLogLogic.tsxindex 8abe59dab21f..9d8b3f4b7e2a 100644--- a/frontend/src/lib/components/ActivityLog/activityLogLogic.tsx+++ b/frontend/src/lib/components/ActivityLog/activityLogLogic.tsx@@ -41,7 +41,10 @@ import {organizationDomainActivityDescriber,} from 'scenes/settings/organization/activityDescriptions'import { projectSecretAPIKeyActivityDescriber } from 'scenes/settings/project/activityDescriptions'-import { personalAPIKeyActivityDescriber } from 'scenes/settings/user/activityDescriptions'+import {+ oauthApplicationActivityDescriber,+ personalAPIKeyActivityDescriber,+} from 'scenes/settings/user/activityDescriptions'import { surveyActivityDescriber } from 'scenes/surveys/surveyActivityDescriber'import { teamActivityDescriber } from 'scenes/team-activity/teamActivityDescriber'import { urls } from 'scenes/urls'@@ -159,6 +162,8 @@ export const describerFor = (logItem?: ActivityLogItem): Describer | undefined =return organizationActivityDescribercase ActivityScope.ORGANIZATION_DOMAIN:return organizationDomainActivityDescriber+ case ActivityScope.OAUTH_APPLICATION:+ return oauthApplicationActivityDescribercase ActivityScope.LEGAL_DOCUMENT:return legalDocumentActivityDescribercase ActivityScope.SURVEY:diff --git a/frontend/src/scenes/settings/settingsSceneLogic.ts b/frontend/src/scenes/settings/settingsSceneLogic.tsindex 140ecb7bea55..006c1cdf8dac 100644--- a/frontend/src/scenes/settings/settingsSceneLogic.ts+++ b/frontend/src/scenes/settings/settingsSceneLogic.ts@@ -97,6 +97,11 @@ export const settingsSceneLogic = kea<settingsSceneLogicType>([activity_scope: ActivityScope.PERSONAL_API_KEY,}}+ if (selectedSectionId === 'user-connected-apps') {+ return {+ activity_scope: ActivityScope.OAUTH_APPLICATION,+ }+ }return null},],diff --git a/frontend/src/scenes/settings/user/activityDescriptions.tsx b/frontend/src/scenes/settings/user/activityDescriptions.tsxindex 0665f5fe182c..365adba75252 100644--- a/frontend/src/scenes/settings/user/activityDescriptions.tsx+++ b/frontend/src/scenes/settings/user/activityDescriptions.tsx@@ -86,3 +86,109 @@ export const personalAPIKeyActivityDescriber: Describer = (logItem: ActivityLogIreturn defaultDescriber(logItem)}++function asScopeList(value: unknown): string[] {+ return Array.isArray(value) ? value.map(String) : []+}++function ScopeList({ scopes }: { scopes: string[] }): JSX.Element {+ return (+ <>+ {scopes.map((scope, index) => (+ <span key={scope}>+ {index > 0 && ', '}+ <code>{scope}</code>+ </span>+ ))}+ </>+ )+}++export const oauthApplicationActivityDescriber: Describer = (logItem: ActivityLogItem): HumanizedChange => {+ if (logItem.scope !== 'OAuthApplication') {+ console.error('oauthApplicationActivityDescriber received a non-OAuthApplication activity')+ return { description: null }+ }++ const appName = logItem.detail.name || 'an OAuth application'+ const scopesChange = logItem.detail.changes?.find((change) => change.field === 'scopes')+ if (!scopesChange) {+ return defaultDescriber(logItem)+ }++ const actor = <strong className="ph-no-capture">{userNameForLogItem(logItem)}</strong>+ const before = asScopeList(scopesChange.before)+ const after = asScopeList(scopesChange.after)++ if (logItem.activity === 'created') {+ return {+ description: (+ <>+ {actor} registered OAuth application <strong>{appName}</strong> with scope ceiling{' '}+ <ScopeList scopes={after} />+ </>+ ),+ }+ }++ if (logItem.activity === 'updated') {+ if (after.length === 0 && before.length > 0) {+ return {+ description: (+ <>+ {actor} removed the scope ceiling on <strong>{appName}</strong> (was{' '}+ <ScopeList scopes={before} />; default unprivileged scopes now apply)+ </>+ ),+ }+ }++ if (before.length === 0 && after.length > 0) {+ return {+ description: (+ <>+ {actor} set the scope ceiling on <strong>{appName}</strong> to <ScopeList scopes={after} />+ </>+ ),+ }+ }++ const added = after.filter((scope) => !before.includes(scope))+ const removed = before.filter((scope) => !after.includes(scope))++ if (added.length > 0 && removed.length > 0) {+ return {+ description: (+ <>+ {actor} changed the scope ceiling on <strong>{appName}</strong>: added{' '}+ <ScopeList scopes={added} />, removed <ScopeList scopes={removed} />+ </>+ ),+ }+ }+ if (added.length > 0) {+ return {+ description: (+ <>+ {actor} widened the scope ceiling on <strong>{appName}</strong>: added{' '}+ <ScopeList scopes={added} />+ </>+ ),+ }+ }+ if (removed.length > 0) {+ return {+ description: (+ <>+ {actor} narrowed the scope ceiling on <strong>{appName}</strong>: removed{' '}+ <ScopeList scopes={removed} />+ </>+ ),+ }+ }++ return defaultDescriber(logItem)+ }++ return defaultDescriber(logItem)+}diff --git a/frontend/src/types.ts b/frontend/src/types.tsindex 83f84ce44dab..8029c513fc33 100644--- a/frontend/src/types.ts+++ b/frontend/src/types.ts@@ -5707,6 +5707,7 @@ export enum ActivityScope {ORGANIZATION_MEMBERSHIP = 'OrganizationMembership',ORGANIZATION_INVITE = 'OrganizationInvite',ORGANIZATION_DOMAIN = 'OrganizationDomain',+ OAUTH_APPLICATION = 'OAuthApplication',LEGAL_DOCUMENT = 'LegalDocument',ERROR_TRACKING_ISSUE = 'ErrorTrackingIssue',DATA_WAREHOUSE_SAVED_QUERY = 'DataWarehouseSavedQuery',diff --git a/posthog/api/oauth/views.py b/posthog/api/oauth/views.pyindex b653247071f2..d36877fb2baa 100644--- a/posthog/api/oauth/views.py+++ b/posthog/api/oauth/views.py@@ -517,7 +517,7 @@ class OAuthValidator(OAuth2Validator):"sub": str(request.user.uuid),}- def _sessions_revoked_at(self, application_id: int) -> datetime | None:+ def _sessions_revoked_at(self, application_id: uuid.UUID) -> datetime | None:return OAuthApplication.objects.filter(pk=application_id).values_list("sessions_revoked_at", flat=True).first()def _reject_refresh_racing_revoke(self, request, source_refresh_token):diff --git a/posthog/models/activity_logging/activity_log.py b/posthog/models/activity_logging/activity_log.pyindex ed814b38cda5..32b44de6c0bc 100644--- a/posthog/models/activity_logging/activity_log.py+++ b/posthog/models/activity_logging/activity_log.py@@ -69,6 +69,7 @@ ActivityScope = Literal["Subscription","PersonalAPIKey","ProjectSecretAPIKey",+ "OAuthApplication","User","Action","AlertConfiguration",@@ -645,6 +646,25 @@ field_exclusions: dict[AuditableScope, list[str]] = {# Reverse relations auto-managed by FK creates, not user-initiated config changes."runs",],+ "OAuthApplication": [+ # Secrets — never diff these, even masked.+ "client_secret",+ "hash_client_secret",+ "provisioning_signing_secret",+ # Reverse token relations can hold tens of thousands of rows; reading+ # through them in `changes_between` would scan the token tables.+ "oauthaccesstoken",+ "oauthidtoken",+ "oauthrefreshtoken",+ "oauthgrant",+ # Bookkeeping timestamps and FKs, not scope-ceiling intent.+ "created",+ "updated",+ "cimd_metadata_last_fetched",+ "dcr_client_id_issued_at",+ "organization",+ "user",+ ],}diff --git a/posthog/models/activity_logging/signal_handlers.py b/posthog/models/activity_logging/signal_handlers.pyindex ee47d4455944..cbbd61ea658b 100644--- a/posthog/models/activity_logging/signal_handlers.py+++ b/posthog/models/activity_logging/signal_handlers.py@@ -42,6 +42,7 @@ from posthog.models.activity_logging.personal_api_key_utils import (from posthog.models.activity_logging.project_secret_api_key_utils import log_project_secret_api_key_activityfrom posthog.models.activity_logging.tag_utils import get_tagged_item_related_object_infofrom posthog.models.activity_logging.utils import activity_storage+from posthog.models.oauth import OAuthApplicationfrom posthog.models.organization import OrganizationMembershipfrom posthog.models.organization_domain import OrganizationDomainfrom posthog.models.organization_invite import OrganizationInvite@@ -392,6 +393,83 @@ def handle_experiment_holdout_delete(sender, instance, **kwargs):)[email protected](frozen=True)+class OAuthApplicationScopesContext(ActivityContextBase):+ client_id: str+ is_cimd_client: bool+ is_dcr_client: bool+ is_first_party: bool+++@mutable_receiver(model_activity_signal, sender=OAuthApplication)+def handle_oauth_application_scopes_change(+ sender: type[OAuthApplication],+ scope: ActivityScope,+ before_update: OAuthApplication | None,+ after_update: OAuthApplication | None,+ activity: str,+ user: User | None,+ was_impersonated: bool = False,+ **kwargs,+) -> None:+ application = after_update or before_update+ if application is None:+ return++ if activity == "created":+ if not application.scopes:+ return+ changes = [Change(type=scope, action="created", field="scopes", after=list(application.scopes or []))]+ else:+ if before_update is None or after_update is None:+ return+ # `scopes` is an ordered ArrayField but semantically a set (a permission ceiling),+ # so a pure reorder is not an auditable change.+ if set(before_update.scopes or []) == set(after_update.scopes or []):+ return+ # Only the scope ceiling is audited for OAuth apps; other fields changed in the+ # same save are deliberately left out of the entry.+ changes = [+ change+ for change in changes_between(scope, previous=before_update, current=after_update)+ if change.field == "scopes"+ ]+ if not changes:+ return++ organization_id = application.organization_id or (user.current_organization_id if user else None)+ if organization_id is None:+ # ActivityLog rows must carry an organization or team. Apps registered anonymously+ # (e.g. DCR) have neither until they are linked to an organization — and without an+ # organization there is nobody who could view the entry anyway.+ logger.warning(+ "oauth_application_scopes_change_not_logged",+ application_id=str(application.pk),+ activity=activity,+ )+ return++ log_activity(+ organization_id=organization_id,+ team_id=None,+ user=user,+ was_impersonated=was_impersonated,+ item_id=application.pk,+ scope=scope,+ activity=activity,+ detail=Detail(+ name=application.name,+ changes=changes,+ context=OAuthApplicationScopesContext(+ client_id=application.client_id,+ is_cimd_client=application.is_cimd_client,+ is_dcr_client=application.is_dcr_client,+ is_first_party=application.is_first_party,+ ),+ ),+ )++@mutable_receiver(model_activity_signal, sender=ExperimentToSavedMetric)def handle_experiment_to_saved_metric_change(sender, scope, before_update, after_update, activity, user, was_impersonated=False, **kwargsdiff --git a/posthog/models/oauth.py b/posthog/models/oauth.pyindex 86ac329b1131..373e8812059b 100644--- a/posthog/models/oauth.py+++ b/posthog/models/oauth.py@@ -20,6 +20,7 @@ from oauth2_provider.models import ()from posthog.helpers.encrypted_fields import EncryptedCharField+from posthog.models.activity_logging.model_activity import ModelActivityMixinfrom posthog.models.utils import UUIDT, generate_random_token, hash_key_value, mask_key_valueif TYPE_CHECKING:@@ -51,7 +52,7 @@ def is_loopback_host(hostname: str | None) -> bool:return False-class OAuthApplication(AbstractApplication):+class OAuthApplication(ModelActivityMixin, AbstractApplication): # type: ignore[django-manager-missing]id: models.UUIDField = models.UUIDField(primary_key=True, default=UUIDT, editable=False)# NOTE: By default an application should be linked to the organization that created it.diff --git a/posthog/models/organization.py b/posthog/models/organization.pyindex 5596d3791d12..a64b821683ef 100644--- a/posthog/models/organization.py+++ b/posthog/models/organization.py@@ -143,7 +143,7 @@ def default_is_ai_training_opted_in():return getattr(settings, "CLOUD_DEPLOYMENT", None) != "EU"-class Organization(ModelActivityMixin, UUIDTModel): # type: ignore[django-manager-missing]+class Organization(ModelActivityMixin, UUIDTModel):class Meta:constraints = [models.UniqueConstraint(diff --git a/posthog/test/activity_logging/test_oauth_application_activity_logging.py b/posthog/test/activity_logging/test_oauth_application_activity_logging.pynew file mode 100644index 000000000000..09af67f4164c--- /dev/null+++ b/posthog/test/activity_logging/test_oauth_application_activity_logging.py@@ -0,0 +1,216 @@+from posthog.test.base import BaseTest++from parameterized import parameterized++from posthog.models.activity_logging.activity_log import ActivityLog+from posthog.models.activity_logging.utils import activity_storage+from posthog.models.oauth import OAuthApplication+from posthog.models.organization import Organization+++class TestOAuthApplicationActivityLogging(BaseTest):+ def setUp(self):+ super().setUp()+ activity_storage.set_user(self.user)++ def tearDown(self):+ activity_storage.clear_all()+ super().tearDown()++ def _create_application(self, scopes: list[str] | None = None, **overrides) -> OAuthApplication:+ defaults = {+ "name": "Test App",+ "client_secret": "test_client_secret",+ "client_type": OAuthApplication.CLIENT_CONFIDENTIAL,+ "authorization_grant_type": OAuthApplication.GRANT_AUTHORIZATION_CODE,+ "redirect_uris": "https://example.com/callback",+ "organization": self.organization,+ "algorithm": "RS256",+ "scopes": scopes or [],+ }+ defaults.update(overrides)+ return OAuthApplication.objects.create(**defaults)++ def _scope_logs(self, application: OAuthApplication, activity: str | None = None):+ logs = ActivityLog.objects.filter(scope="OAuthApplication", item_id=str(application.pk))+ if activity:+ logs = logs.filter(activity=activity)+ return logs++ def test_creating_application_with_scopes_logs_created_activity(self):+ application = self._create_application(scopes=["insight:read"])++ log = self._scope_logs(application, "created").first()+ assert log is not None+ self.assertEqual(log.organization_id, self.organization.id)+ self.assertIsNone(log.team_id)+ self.assertEqual(log.user, self.user)+ self.assertFalse(log.is_system)+ assert log.detail is not None+ self.assertEqual(log.detail["name"], "Test App")+ self.assertEqual(+ log.detail["changes"],+ [+ {+ "type": "OAuthApplication",+ "action": "created",+ "field": "scopes",+ "before": None,+ "after": ["insight:read"],+ }+ ],+ )++ def test_creating_application_without_scopes_logs_nothing(self):+ application = self._create_application(scopes=[])++ self.assertEqual(self._scope_logs(application).count(), 0)++ @parameterized.expand(+ [+ ("widened", ["insight:read"], ["insight:read", "llm_gateway:read"], "changed"),+ ("narrowed", ["insight:read", "llm_gateway:read"], ["insight:read"], "changed"),+ ("ceiling_set", [], ["llm_gateway:read"], "created"),+ ("ceiling_removed", ["llm_gateway:read"], [], "deleted"),+ ]+ )+ def test_scopes_change_logs_updated_activity_with_old_and_new_values(+ self, _name: str, before_scopes: list[str], after_scopes: list[str], expected_action: str+ ):+ application = self._create_application(scopes=before_scopes)+ self._scope_logs(application).delete()++ application.scopes = after_scopes+ application.save()++ log = self._scope_logs(application, "updated").first()+ assert log is not None+ assert log.detail is not None+ self.assertEqual(log.user, self.user)+ self.assertEqual(log.organization_id, self.organization.id)++ changes = log.detail["changes"]+ self.assertEqual(len(changes), 1)+ change = changes[0]+ self.assertEqual(change["field"], "scopes")+ self.assertEqual(change["action"], expected_action)+ if expected_action in ("changed", "deleted"):+ self.assertEqual(change["before"], before_scopes)+ if expected_action in ("changed", "created"):+ self.assertEqual(change["after"], after_scopes)++ def test_non_scope_changes_log_nothing(self):+ application = self._create_application(scopes=["insight:read"])+ self._scope_logs(application).delete()++ application.name = "Renamed App"+ application.save()++ self.assertEqual(self._scope_logs(application).count(), 0)++ def test_only_scopes_change_appears_when_other_fields_change_in_same_save(self):+ application = self._create_application(scopes=["insight:read"])+ self._scope_logs(application).delete()++ application.name = "Renamed App"+ application.client_secret = "new_secret_value"+ application.scopes = ["insight:read", "insight:write"]+ application.save()++ log = self._scope_logs(application, "updated").first()+ assert log is not None+ assert log.detail is not None+ fields = [change["field"] for change in log.detail["changes"]]+ self.assertEqual(fields, ["scopes"])+ self.assertNotIn("new_secret_value", str(log.detail))++ def test_scope_reorder_logs_nothing(self):+ application = self._create_application(scopes=["insight:read", "query:read"])+ self._scope_logs(application).delete()++ application.scopes = ["query:read", "insight:read"]+ application.save()++ self.assertEqual(self._scope_logs(application).count(), 0)++ def test_save_with_update_fields_excluding_scopes_logs_nothing(self):+ application = self._create_application(scopes=["insight:read"])+ self._scope_logs(application).delete()++ application.provisioning_active = True+ application.save(update_fields=["provisioning_active"])++ self.assertEqual(self._scope_logs(application).count(), 0)++ def test_save_with_update_fields_including_scopes_logs_change(self):+ application = self._create_application(scopes=["insight:read"])+ self._scope_logs(application).delete()++ application.scopes = ["insight:read", "query:read"]+ application.save(update_fields=["scopes"])++ self.assertEqual(self._scope_logs(application, "updated").count(), 1)++ def test_system_change_without_user_is_logged_as_system(self):+ application = self._create_application(scopes=["insight:read"], is_cimd_client=True)+ self._scope_logs(application).delete()+ activity_storage.clear_user()++ application.scopes = ["insight:read", "query:read"]+ application.save()++ log = self._scope_logs(application, "updated").first()+ assert log is not None+ self.assertIsNone(log.user)+ self.assertTrue(log.is_system)+ assert log.detail is not None+ self.assertTrue(log.detail["context"]["is_cimd_client"])++ def test_impersonated_change_is_flagged(self):+ application = self._create_application(scopes=["insight:read"])+ self._scope_logs(application).delete()+ activity_storage.set_was_impersonated(True)++ application.scopes = ["insight:read", "query:read"]+ application.save()++ log = self._scope_logs(application, "updated").first()+ assert log is not None+ self.assertTrue(log.was_impersonated)++ def test_context_captures_client_id_and_registration_channel(self):+ application = self._create_application(+ scopes=["insight:read"], is_dcr_client=True, is_first_party=False, client_id="test_client_id_123"+ )++ log = self._scope_logs(application, "created").first()+ assert log is not None+ assert log.detail is not None+ context = log.detail["context"]+ self.assertEqual(context["client_id"], "test_client_id_123")+ self.assertEqual(log.detail["name"], "Test App")+ self.assertTrue(context["is_dcr_client"])+ self.assertFalse(context["is_cimd_client"])+ self.assertFalse(context["is_first_party"])++ def test_orgless_application_falls_back_to_acting_users_organization(self):+ application = self._create_application(scopes=["insight:read"], organization=None)++ log = self._scope_logs(application, "created").first()+ assert log is not None+ self.assertEqual(log.organization_id, self.organization.id)++ def test_orgless_application_without_user_is_skipped_without_error(self):+ activity_storage.clear_user()++ application = self._create_application(scopes=["insight:read"], organization=None)++ self.assertEqual(self._scope_logs(application).count(), 0)++ def test_application_org_takes_precedence_over_acting_users_organization(self):+ other_organization = Organization.objects.create(name="Other Org")+ application = self._create_application(scopes=["insight:read"], organization=other_organization)++ log = self._scope_logs(application, "created").first()+ assert log is not None+ self.assertEqual(log.organization_id, other_organization.id)diff --git a/posthog/test/setup_receivers_baseline.txt b/posthog/test/setup_receivers_baseline.txtindex 6e1000a6b9bd..bdb42f1829f0 100644--- a/posthog/test/setup_receivers_baseline.txt+++ b/posthog/test/setup_receivers_baseline.txt@@ -6,6 +6,7 @@model_activity:posthog.models.activity_logging.signal_handlers.handle_experiment_holdout_changemodel_activity:posthog.models.activity_logging.signal_handlers.handle_experiment_saved_metric_changemodel_activity:posthog.models.activity_logging.signal_handlers.handle_experiment_to_saved_metric_change+model_activity:posthog.models.activity_logging.signal_handlers.handle_oauth_application_scopes_changemodel_activity:posthog.models.activity_logging.signal_handlers.handle_organization_changemodel_activity:posthog.models.activity_logging.signal_handlers.handle_organization_domain_changemodel_activity:posthog.models.activity_logging.signal_handlers.handle_organization_invite_changediff --git a/products/platform_features/frontend/generated/api.schemas.ts b/products/platform_features/frontend/generated/api.schemas.tsindex ba545555e165..c57d4b3e2173 100644--- a/products/platform_features/frontend/generated/api.schemas.ts+++ b/products/platform_features/frontend/generated/api.schemas.ts@@ -968,6 +968,7 @@ export type ActivityLogListParams = {* * `Subscription` - Subscription* * `PersonalAPIKey` - PersonalAPIKey* * `ProjectSecretAPIKey` - ProjectSecretAPIKey+ * * `OAuthApplication` - OAuthApplication* * `User` - User* * `Action` - Action* * `AlertConfiguration` - AlertConfiguration@@ -1046,6 +1047,7 @@ export const ActivityLogListScope = {Subscription: 'Subscription',PersonalAPIKey: 'PersonalAPIKey',ProjectSecretAPIKey: 'ProjectSecretAPIKey',+ OAuthApplication: 'OAuthApplication',User: 'User',Action: 'Action',AlertConfiguration: 'AlertConfiguration',@@ -1111,6 +1113,7 @@ export const ActivityLogListScope = {* * `Subscription` - Subscription* * `PersonalAPIKey` - PersonalAPIKey* * `ProjectSecretAPIKey` - ProjectSecretAPIKey+ * * `OAuthApplication` - OAuthApplication* * `User` - User* * `Action` - Action* * `AlertConfiguration` - AlertConfiguration@@ -1177,6 +1180,7 @@ export const ActivityLogListScopesItem = {Subscription: 'Subscription',PersonalAPIKey: 'PersonalAPIKey',ProjectSecretAPIKey: 'ProjectSecretAPIKey',+ OAuthApplication: 'OAuthApplication',User: 'User',Action: 'Action',AlertConfiguration: 'AlertConfiguration',diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex f64f899709fe..e60287d2a71c 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -48971,6 +48971,7 @@ export namespace Schemas {* * `Subscription` - Subscription* * `PersonalAPIKey` - PersonalAPIKey* * `ProjectSecretAPIKey` - ProjectSecretAPIKey+ * * `OAuthApplication` - OAuthApplication* * `User` - User* * `Action` - Action* * `AlertConfiguration` - AlertConfiguration@@ -49050,6 +49051,7 @@ export namespace Schemas {Subscription: 'Subscription',PersonalAPIKey: 'PersonalAPIKey',ProjectSecretAPIKey: 'ProjectSecretAPIKey',+ OAuthApplication: 'OAuthApplication',User: 'User',Action: 'Action',AlertConfiguration: 'AlertConfiguration',@@ -49115,6 +49117,7 @@ export namespace Schemas {* * `Subscription` - Subscription* * `PersonalAPIKey` - PersonalAPIKey* * `ProjectSecretAPIKey` - ProjectSecretAPIKey+ * * `OAuthApplication` - OAuthApplication* * `User` - User* * `Action` - Action* * `AlertConfiguration` - AlertConfiguration@@ -49182,6 +49185,7 @@ export namespace Schemas {Subscription: 'Subscription',PersonalAPIKey: 'PersonalAPIKey',ProjectSecretAPIKey: 'ProjectSecretAPIKey',+ OAuthApplication: 'OAuthApplication',User: 'User',Action: 'Action',AlertConfiguration: 'AlertConfiguration',diff --git a/services/mcp/src/generated/platform_features/api.ts b/services/mcp/src/generated/platform_features/api.tsindex be2882452a0f..1a819d4a8b59 100644--- a/services/mcp/src/generated/platform_features/api.ts+++ b/services/mcp/src/generated/platform_features/api.ts@@ -144,6 +144,7 @@ export const ActivityLogListQueryParams = /* @__PURE__ */ zod.object({'Subscription','PersonalAPIKey','ProjectSecretAPIKey',+ 'OAuthApplication','User','Action','AlertConfiguration',@@ -166,7 +167,7 @@ export const ActivityLogListQueryParams = /* @__PURE__ */ zod.object({]).optional().describe(- 'Filter by a single activity scope, e.g. "FeatureFlag", "Insight", "Dashboard", "Experiment".\n\n* `Cohort` - Cohort\n* `FeatureFlag` - FeatureFlag\n* `Person` - Person\n* `Group` - Group\n* `Insight` - Insight\n* `Plugin` - Plugin\n* `PluginConfig` - PluginConfig\n* `HogFunction` - HogFunction\n* `HogFlow` - HogFlow\n* `DataManagement` - DataManagement\n* `EventDefinition` - EventDefinition\n* `PropertyDefinition` - PropertyDefinition\n* `Notebook` - Notebook\n* `Endpoint` - Endpoint\n* `EndpointVersion` - EndpointVersion\n* `Dashboard` - Dashboard\n* `Replay` - Replay\n* `Experiment` - Experiment\n* `ExperimentHoldout` - ExperimentHoldout\n* `ExperimentSavedMetric` - ExperimentSavedMetric\n* `Survey` - Survey\n* `EarlyAccessFeature` - EarlyAccessFeature\n* `SessionRecordingPlaylist` - SessionRecordingPlaylist\n* `Comment` - Comment\n* `Team` - Team\n* `Project` - Project\n* `ErrorTrackingIssue` - ErrorTrackingIssue\n* `DataWarehouseSavedQuery` - DataWarehouseSavedQuery\n* `LegalDocument` - LegalDocument\n* `Organization` - Organization\n* `OrganizationDomain` - OrganizationDomain\n* `OrganizationMembership` - OrganizationMembership\n* `Role` - Role\n* `UserGroup` - UserGroup\n* `BatchExport` - BatchExport\n* `BatchImport` - BatchImport\n* `Integration` - Integration\n* `Annotation` - Annotation\n* `Tag` - Tag\n* `TaggedItem` - TaggedItem\n* `Subscription` - Subscription\n* `PersonalAPIKey` - PersonalAPIKey\n* `ProjectSecretAPIKey` - ProjectSecretAPIKey\n* `User` - User\n* `Action` - Action\n* `AlertConfiguration` - AlertConfiguration\n* `Threshold` - Threshold\n* `AlertSubscription` - AlertSubscription\n* `ExternalDataSource` - ExternalDataSource\n* `ExternalDataSchema` - ExternalDataSchema\n* `Evaluation` - Evaluation\n* `LLMTrace` - LLMTrace\n* `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset\n* `CustomerProfileConfig` - CustomerProfileConfig\n* `Log` - Log\n* `LogsAlertConfiguration` - LogsAlertConfiguration\n* `LogsExclusionRule` - LogsExclusionRule\n* `DashboardWidget` - DashboardWidget\n* `ProductTour` - ProductTour\n* `Ticket` - Ticket\n* `InstanceSetting` - InstanceSetting\n* `SignalScoutConfig` - SignalScoutConfig'+ 'Filter by a single activity scope, e.g. "FeatureFlag", "Insight", "Dashboard", "Experiment".\n\n* `Cohort` - Cohort\n* `FeatureFlag` - FeatureFlag\n* `Person` - Person\n* `Group` - Group\n* `Insight` - Insight\n* `Plugin` - Plugin\n* `PluginConfig` - PluginConfig\n* `HogFunction` - HogFunction\n* `HogFlow` - HogFlow\n* `DataManagement` - DataManagement\n* `EventDefinition` - EventDefinition\n* `PropertyDefinition` - PropertyDefinition\n* `Notebook` - Notebook\n* `Endpoint` - Endpoint\n* `EndpointVersion` - EndpointVersion\n* `Dashboard` - Dashboard\n* `Replay` - Replay\n* `Experiment` - Experiment\n* `ExperimentHoldout` - ExperimentHoldout\n* `ExperimentSavedMetric` - ExperimentSavedMetric\n* `Survey` - Survey\n* `EarlyAccessFeature` - EarlyAccessFeature\n* `SessionRecordingPlaylist` - SessionRecordingPlaylist\n* `Comment` - Comment\n* `Team` - Team\n* `Project` - Project\n* `ErrorTrackingIssue` - ErrorTrackingIssue\n* `DataWarehouseSavedQuery` - DataWarehouseSavedQuery\n* `LegalDocument` - LegalDocument\n* `Organization` - Organization\n* `OrganizationDomain` - OrganizationDomain\n* `OrganizationMembership` - OrganizationMembership\n* `Role` - Role\n* `UserGroup` - UserGroup\n* `BatchExport` - BatchExport\n* `BatchImport` - BatchImport\n* `Integration` - Integration\n* `Annotation` - Annotation\n* `Tag` - Tag\n* `TaggedItem` - TaggedItem\n* `Subscription` - Subscription\n* `PersonalAPIKey` - PersonalAPIKey\n* `ProjectSecretAPIKey` - ProjectSecretAPIKey\n* `OAuthApplication` - OAuthApplication\n* `User` - User\n* `Action` - Action\n* `AlertConfiguration` - AlertConfiguration\n* `Threshold` - Threshold\n* `AlertSubscription` - AlertSubscription\n* `ExternalDataSource` - ExternalDataSource\n* `ExternalDataSchema` - ExternalDataSchema\n* `Evaluation` - Evaluation\n* `LLMTrace` - LLMTrace\n* `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset\n* `CustomerProfileConfig` - CustomerProfileConfig\n* `Log` - Log\n* `LogsAlertConfiguration` - LogsAlertConfiguration\n* `LogsExclusionRule` - LogsExclusionRule\n* `DashboardWidget` - DashboardWidget\n* `ProductTour` - ProductTour\n* `Ticket` - Ticket\n* `InstanceSetting` - InstanceSetting\n* `SignalScoutConfig` - SignalScoutConfig'),scopes: zod.array(@@ -215,6 +216,7 @@ export const ActivityLogListQueryParams = /* @__PURE__ */ zod.object({'Subscription','PersonalAPIKey','ProjectSecretAPIKey',+ 'OAuthApplication','User','Action','AlertConfiguration',@@ -236,7 +238,7 @@ export const ActivityLogListQueryParams = /* @__PURE__ */ zod.object({'SignalScoutConfig',]).describe(- '* `Cohort` - Cohort\n* `FeatureFlag` - FeatureFlag\n* `Person` - Person\n* `Group` - Group\n* `Insight` - Insight\n* `Plugin` - Plugin\n* `PluginConfig` - PluginConfig\n* `HogFunction` - HogFunction\n* `HogFlow` - HogFlow\n* `DataManagement` - DataManagement\n* `EventDefinition` - EventDefinition\n* `PropertyDefinition` - PropertyDefinition\n* `Notebook` - Notebook\n* `Endpoint` - Endpoint\n* `EndpointVersion` - EndpointVersion\n* `Dashboard` - Dashboard\n* `Replay` - Replay\n* `Experiment` - Experiment\n* `ExperimentHoldout` - ExperimentHoldout\n* `ExperimentSavedMetric` - ExperimentSavedMetric\n* `Survey` - Survey\n* `EarlyAccessFeature` - EarlyAccessFeature\n* `SessionRecordingPlaylist` - SessionRecordingPlaylist\n* `Comment` - Comment\n* `Team` - Team\n* `Project` - Project\n* `ErrorTrackingIssue` - ErrorTrackingIssue\n* `DataWarehouseSavedQuery` - DataWarehouseSavedQuery\n* `LegalDocument` - LegalDocument\n* `Organization` - Organization\n* `OrganizationDomain` - OrganizationDomain\n* `OrganizationMembership` - OrganizationMembership\n* `Role` - Role\n* `UserGroup` - UserGroup\n* `BatchExport` - BatchExport\n* `BatchImport` - BatchImport\n* `Integration` - Integration\n* `Annotation` - Annotation\n* `Tag` - Tag\n* `TaggedItem` - TaggedItem\n* `Subscription` - Subscription\n* `PersonalAPIKey` - PersonalAPIKey\n* `ProjectSecretAPIKey` - ProjectSecretAPIKey\n* `User` - User\n* `Action` - Action\n* `AlertConfiguration` - AlertConfiguration\n* `Threshold` - Threshold\n* `AlertSubscription` - AlertSubscription\n* `ExternalDataSource` - ExternalDataSource\n* `ExternalDataSchema` - ExternalDataSchema\n* `Evaluation` - Evaluation\n* `LLMTrace` - LLMTrace\n* `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset\n* `CustomerProfileConfig` - CustomerProfileConfig\n* `Log` - Log\n* `LogsAlertConfiguration` - LogsAlertConfiguration\n* `LogsExclusionRule` - LogsExclusionRule\n* `DashboardWidget` - DashboardWidget\n* `ProductTour` - ProductTour\n* `Ticket` - Ticket\n* `InstanceSetting` - InstanceSetting\n* `SignalScoutConfig` - SignalScoutConfig'+ '* `Cohort` - Cohort\n* `FeatureFlag` - FeatureFlag\n* `Person` - Person\n* `Group` - Group\n* `Insight` - Insight\n* `Plugin` - Plugin\n* `PluginConfig` - PluginConfig\n* `HogFunction` - HogFunction\n* `HogFlow` - HogFlow\n* `DataManagement` - DataManagement\n* `EventDefinition` - EventDefinition\n* `PropertyDefinition` - PropertyDefinition\n* `Notebook` - Notebook\n* `Endpoint` - Endpoint\n* `EndpointVersion` - EndpointVersion\n* `Dashboard` - Dashboard\n* `Replay` - Replay\n* `Experiment` - Experiment\n* `ExperimentHoldout` - ExperimentHoldout\n* `ExperimentSavedMetric` - ExperimentSavedMetric\n* `Survey` - Survey\n* `EarlyAccessFeature` - EarlyAccessFeature\n* `SessionRecordingPlaylist` - SessionRecordingPlaylist\n* `Comment` - Comment\n* `Team` - Team\n* `Project` - Project\n* `ErrorTrackingIssue` - ErrorTrackingIssue\n* `DataWarehouseSavedQuery` - DataWarehouseSavedQuery\n* `LegalDocument` - LegalDocument\n* `Organization` - Organization\n* `OrganizationDomain` - OrganizationDomain\n* `OrganizationMembership` - OrganizationMembership\n* `Role` - Role\n* `UserGroup` - UserGroup\n* `BatchExport` - BatchExport\n* `BatchImport` - BatchImport\n* `Integration` - Integration\n* `Annotation` - Annotation\n* `Tag` - Tag\n* `TaggedItem` - TaggedItem\n* `Subscription` - Subscription\n* `PersonalAPIKey` - PersonalAPIKey\n* `ProjectSecretAPIKey` - ProjectSecretAPIKey\n* `OAuthApplication` - OAuthApplication\n* `User` - User\n* `Action` - Action\n* `AlertConfiguration` - AlertConfiguration\n* `Threshold` - Threshold\n* `AlertSubscription` - AlertSubscription\n* `ExternalDataSource` - ExternalDataSource\n* `ExternalDataSchema` - ExternalDataSchema\n* `Evaluation` - Evaluation\n* `LLMTrace` - LLMTrace\n* `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset\n* `CustomerProfileConfig` - CustomerProfileConfig\n* `Log` - Log\n* `LogsAlertConfiguration` - LogsAlertConfiguration\n* `LogsExclusionRule` - LogsExclusionRule\n* `DashboardWidget` - DashboardWidget\n* `ProductTour` - ProductTour\n* `Ticket` - Ticket\n* `InstanceSetting` - InstanceSetting\n* `SignalScoutConfig` - SignalScoutConfig')).optional()diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/activity-log-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/activity-log-list.jsonindex 0ee6c7d3f4bf..b100d59e6469 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/activity-log-list.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/activity-log-list.json@@ -19,7 +19,7 @@"type": "number"},"scope": {- "description": "Filter by a single activity scope, e.g. \"FeatureFlag\", \"Insight\", \"Dashboard\", \"Experiment\".\n\n* `Cohort` - Cohort\n* `FeatureFlag` - FeatureFlag\n* `Person` - Person\n* `Group` - Group\n* `Insight` - Insight\n* `Plugin` - Plugin\n* `PluginConfig` - PluginConfig\n* `HogFunction` - HogFunction\n* `HogFlow` - HogFlow\n* `DataManagement` - DataManagement\n* `EventDefinition` - EventDefinition\n* `PropertyDefinition` - PropertyDefinition\n* `Notebook` - Notebook\n* `Endpoint` - Endpoint\n* `EndpointVersion` - EndpointVersion\n* `Dashboard` - Dashboard\n* `Replay` - Replay\n* `Experiment` - Experiment\n* `ExperimentHoldout` - ExperimentHoldout\n* `ExperimentSavedMetric` - ExperimentSavedMetric\n* `Survey` - Survey\n* `EarlyAccessFeature` - EarlyAccessFeature\n* `SessionRecordingPlaylist` - SessionRecordingPlaylist\n* `Comment` - Comment\n* `Team` - Team\n* `Project` - Project\n* `ErrorTrackingIssue` - ErrorTrackingIssue\n* `DataWarehouseSavedQuery` - DataWarehouseSavedQuery\n* `LegalDocument` - LegalDocument\n* `Organization` - Organization\n* `OrganizationDomain` - OrganizationDomain\n* `OrganizationMembership` - OrganizationMembership\n* `Role` - Role\n* `UserGroup` - UserGroup\n* `BatchExport` - BatchExport\n* `BatchImport` - BatchImport\n* `Integration` - Integration\n* `Annotation` - Annotation\n* `Tag` - Tag\n* `TaggedItem` - TaggedItem\n* `Subscription` - Subscription\n* `PersonalAPIKey` - PersonalAPIKey\n* `ProjectSecretAPIKey` - ProjectSecretAPIKey\n* `User` - User\n* `Action` - Action\n* `AlertConfiguration` - AlertConfiguration\n* `Threshold` - Threshold\n* `AlertSubscription` - AlertSubscription\n* `ExternalDataSource` - ExternalDataSource\n* `ExternalDataSchema` - ExternalDataSchema\n* `Evaluation` - Evaluation\n* `LLMTrace` - LLMTrace\n* `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset\n* `CustomerProfileConfig` - CustomerProfileConfig\n* `Log` - Log\n* `LogsAlertConfiguration` - LogsAlertConfiguration\n* `LogsExclusionRule` - LogsExclusionRule\n* `DashboardWidget` - DashboardWidget\n* `ProductTour` - ProductTour\n* `Ticket` - Ticket\n* `InstanceSetting` - InstanceSetting\n* `SignalScoutConfig` - SignalScoutConfig",+ "description": "Filter by a single activity scope, e.g. \"FeatureFlag\", \"Insight\", \"Dashboard\", \"Experiment\".\n\n* `Cohort` - Cohort\n* `FeatureFlag` - FeatureFlag\n* `Person` - Person\n* `Group` - Group\n* `Insight` - Insight\n* `Plugin` - Plugin\n* `PluginConfig` - PluginConfig\n* `HogFunction` - HogFunction\n* `HogFlow` - HogFlow\n* `DataManagement` - DataManagement\n* `EventDefinition` - EventDefinition\n* `PropertyDefinition` - PropertyDefinition\n* `Notebook` - Notebook\n* `Endpoint` - Endpoint\n* `EndpointVersion` - EndpointVersion\n* `Dashboard` - Dashboard\n* `Replay` - Replay\n* `Experiment` - Experiment\n* `ExperimentHoldout` - ExperimentHoldout\n* `ExperimentSavedMetric` - ExperimentSavedMetric\n* `Survey` - Survey\n* `EarlyAccessFeature` - EarlyAccessFeature\n* `SessionRecordingPlaylist` - SessionRecordingPlaylist\n* `Comment` - Comment\n* `Team` - Team\n* `Project` - Project\n* `ErrorTrackingIssue` - ErrorTrackingIssue\n* `DataWarehouseSavedQuery` - DataWarehouseSavedQuery\n* `LegalDocument` - LegalDocument\n* `Organization` - Organization\n* `OrganizationDomain` - OrganizationDomain\n* `OrganizationMembership` - OrganizationMembership\n* `Role` - Role\n* `UserGroup` - UserGroup\n* `BatchExport` - BatchExport\n* `BatchImport` - BatchImport\n* `Integration` - Integration\n* `Annotation` - Annotation\n* `Tag` - Tag\n* `TaggedItem` - TaggedItem\n* `Subscription` - Subscription\n* `PersonalAPIKey` - PersonalAPIKey\n* `ProjectSecretAPIKey` - ProjectSecretAPIKey\n* `OAuthApplication` - OAuthApplication\n* `User` - User\n* `Action` - Action\n* `AlertConfiguration` - AlertConfiguration\n* `Threshold` - Threshold\n* `AlertSubscription` - AlertSubscription\n* `ExternalDataSource` - ExternalDataSource\n* `ExternalDataSchema` - ExternalDataSchema\n* `Evaluation` - Evaluation\n* `LLMTrace` - LLMTrace\n* `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset\n* `CustomerProfileConfig` - CustomerProfileConfig\n* `Log` - Log\n* `LogsAlertConfiguration` - LogsAlertConfiguration\n* `LogsExclusionRule` - LogsExclusionRule\n* `DashboardWidget` - DashboardWidget\n* `ProductTour` - ProductTour\n* `Ticket` - Ticket\n* `InstanceSetting` - InstanceSetting\n* `SignalScoutConfig` - SignalScoutConfig","enum": ["Cohort","FeatureFlag",@@ -64,6 +64,7 @@"Subscription","PersonalAPIKey","ProjectSecretAPIKey",+ "OAuthApplication","User","Action","AlertConfiguration",@@ -89,7 +90,7 @@"scopes": {"description": "Filter by multiple activity scopes, comma-separated. Values must be valid ActivityScope enum values. E.g. \"FeatureFlag,Insight\".","items": {- "description": "* `Cohort` - Cohort\n* `FeatureFlag` - FeatureFlag\n* `Person` - Person\n* `Group` - Group\n* `Insight` - Insight\n* `Plugin` - Plugin\n* `PluginConfig` - PluginConfig\n* `HogFunction` - HogFunction\n* `HogFlow` - HogFlow\n* `DataManagement` - DataManagement\n* `EventDefinition` - EventDefinition\n* `PropertyDefinition` - PropertyDefinition\n* `Notebook` - Notebook\n* `Endpoint` - Endpoint\n* `EndpointVersion` - EndpointVersion\n* `Dashboard` - Dashboard\n* `Replay` - Replay\n* `Experiment` - Experiment\n* `ExperimentHoldout` - ExperimentHoldout\n* `ExperimentSavedMetric` - ExperimentSavedMetric\n* `Survey` - Survey\n* `EarlyAccessFeature` - EarlyAccessFeature\n* `SessionRecordingPlaylist` - SessionRecordingPlaylist\n* `Comment` - Comment\n* `Team` - Team\n* `Project` - Project\n* `ErrorTrackingIssue` - ErrorTrackingIssue\n* `DataWarehouseSavedQuery` - DataWarehouseSavedQuery\n* `LegalDocument` - LegalDocument\n* `Organization` - Organization\n* `OrganizationDomain` - OrganizationDomain\n* `OrganizationMembership` - OrganizationMembership\n* `Role` - Role\n* `UserGroup` - UserGroup\n* `BatchExport` - BatchExport\n* `BatchImport` - BatchImport\n* `Integration` - Integration\n* `Annotation` - Annotation\n* `Tag` - Tag\n* `TaggedItem` - TaggedItem\n* `Subscription` - Subscription\n* `PersonalAPIKey` - PersonalAPIKey\n* `ProjectSecretAPIKey` - ProjectSecretAPIKey\n* `User` - User\n* `Action` - Action\n* `AlertConfiguration` - AlertConfiguration\n* `Threshold` - Threshold\n* `AlertSubscription` - AlertSubscription\n* `ExternalDataSource` - ExternalDataSource\n* `ExternalDataSchema` - ExternalDataSchema\n* `Evaluation` - Evaluation\n* `LLMTrace` - LLMTrace\n* `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset\n* `CustomerProfileConfig` - CustomerProfileConfig\n* `Log` - Log\n* `LogsAlertConfiguration` - LogsAlertConfiguration\n* `LogsExclusionRule` - LogsExclusionRule\n* `DashboardWidget` - DashboardWidget\n* `ProductTour` - ProductTour\n* `Ticket` - Ticket\n* `InstanceSetting` - InstanceSetting\n* `SignalScoutConfig` - SignalScoutConfig",+ "description": "* `Cohort` - Cohort\n* `FeatureFlag` - FeatureFlag\n* `Person` - Person\n* `Group` - Group\n* `Insight` - Insight\n* `Plugin` - Plugin\n* `PluginConfig` - PluginConfig\n* `HogFunction` - HogFunction\n* `HogFlow` - HogFlow\n* `DataManagement` - DataManagement\n* `EventDefinition` - EventDefinition\n* `PropertyDefinition` - PropertyDefinition\n* `Notebook` - Notebook\n* `Endpoint` - Endpoint\n* `EndpointVersion` - EndpointVersion\n* `Dashboard` - Dashboard\n* `Replay` - Replay\n* `Experiment` - Experiment\n* `ExperimentHoldout` - ExperimentHoldout\n* `ExperimentSavedMetric` - ExperimentSavedMetric\n* `Survey` - Survey\n* `EarlyAccessFeature` - EarlyAccessFeature\n* `SessionRecordingPlaylist` - SessionRecordingPlaylist\n* `Comment` - Comment\n* `Team` - Team\n* `Project` - Project\n* `ErrorTrackingIssue` - ErrorTrackingIssue\n* `DataWarehouseSavedQuery` - DataWarehouseSavedQuery\n* `LegalDocument` - LegalDocument\n* `Organization` - Organization\n* `OrganizationDomain` - OrganizationDomain\n* `OrganizationMembership` - OrganizationMembership\n* `Role` - Role\n* `UserGroup` - UserGroup\n* `BatchExport` - BatchExport\n* `BatchImport` - BatchImport\n* `Integration` - Integration\n* `Annotation` - Annotation\n* `Tag` - Tag\n* `TaggedItem` - TaggedItem\n* `Subscription` - Subscription\n* `PersonalAPIKey` - PersonalAPIKey\n* `ProjectSecretAPIKey` - ProjectSecretAPIKey\n* `OAuthApplication` - OAuthApplication\n* `User` - User\n* `Action` - Action\n* `AlertConfiguration` - AlertConfiguration\n* `Threshold` - Threshold\n* `AlertSubscription` - AlertSubscription\n* `ExternalDataSource` - ExternalDataSource\n* `ExternalDataSchema` - ExternalDataSchema\n* `Evaluation` - Evaluation\n* `LLMTrace` - LLMTrace\n* `WebAnalyticsFilterPreset` - WebAnalyticsFilterPreset\n* `CustomerProfileConfig` - CustomerProfileConfig\n* `Log` - Log\n* `LogsAlertConfiguration` - LogsAlertConfiguration\n* `LogsExclusionRule` - LogsExclusionRule\n* `DashboardWidget` - DashboardWidget\n* `ProductTour` - ProductTour\n* `Ticket` - Ticket\n* `InstanceSetting` - InstanceSetting\n* `SignalScoutConfig` - SignalScoutConfig","enum": ["Cohort","FeatureFlag",@@ -134,6 +135,7 @@"Subscription","PersonalAPIKey","ProjectSecretAPIKey",+ "OAuthApplication","User","Action","AlertConfiguration",