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(scopes): generate the frontend scope object type from the backend list (#106173)

Alex Lider9b16d9493368
diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/accessControlsLogic.ts b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/accessControlsLogic.ts
index 89cc525e64b6..f83ceaceb5ad 100644
--- a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/accessControlsLogic.ts
+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/accessControlsLogic.ts
@@ -38,6 +38,8 @@ import {
SidePanelTab,
} from '~/types'
+import type { ScopeObjectEnumApi } from 'products/access_control/frontend/generated/api.schemas'
+
import type { FeatureFlagsSet } from '../../../../../../lib/logic/featureFlagLogic'
import type { AccessControlUIVersion } from '../../../../../../lib/utils/accessControlUtils'
import type { AccessControlResponseType, AccessControlUpdateType, RoleType } from '../../../../../../types'
@@ -386,130 +388,7 @@ export interface accessControlsLogicActions {
scopeType: ScopeType
}) => {
projectLevel: AccessControlLevel | null
- resourceLevels: Record<
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session',
- AccessControlLevel | null
- >
+ resourceLevels: Record<ScopeObjectEnumApi, AccessControlLevel | null>
scopeId: string
scopeType: ScopeType
}
@@ -565,129 +444,7 @@ export interface accessControlsLogicMeta {
availableResourceLevels: (defaults: AccessControlDefaultsResponse | null) => AccessControlLevel[]
resourceKeys: (
defaults: AccessControlDefaultsResponse | null,
- resources: (
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- )[],
+ resources: ScopeObjectEnumApi[],
featureFlags: FeatureFlagsSet
) => {
key: APIScopeObject
@@ -721,257 +478,13 @@ export interface accessControlsLogicMeta {
searchText: string,
filters: AccessControlFilters,
canUseRoles: boolean,
- visibleResourceKeySet: Set<
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- >
+ visibleResourceKeySet: Set<ScopeObjectEnumApi>
) => AccessControlRoleEntry[]
filteredMembers: (
membersData: AccessControlMembersResponse | null,
searchText: string,
filters: AccessControlFilters,
- visibleResourceKeySet: Set<
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- >
+ visibleResourceKeySet: Set<ScopeObjectEnumApi>
) => AccessControlMemberEntry[]
loading: (defaultsLoading: boolean, rolesDataLoading: boolean, membersDataLoading: boolean) => boolean
}
diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/accessDetailLogic.ts b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/accessDetailLogic.ts
index 58568d556c89..87fa3d7fb226 100644
--- a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/accessDetailLogic.ts
+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/accessDetailLogic.ts
@@ -12,6 +12,7 @@ import {
propertyAccessControlsCreate,
propertyAccessControlsDestroy,
} from 'products/access_control/frontend/generated/api'
+import type { ScopeObjectEnumApi } from 'products/access_control/frontend/generated/api.schemas'
import { AccessLevelEnumApi } from 'products/access_control/frontend/generated/api.schemas'
import type { ScopeType } from './types'
@@ -211,128 +212,7 @@ export interface accessDetailLogicActions {
level: AccessControlLevel | null
) => {
level: AccessControlLevel | null
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
+ resource: ScopeObjectEnumApi
resourceId: string
}
setPropertyRule: (
diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/addObjectOverrideModalLogic.ts b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/addObjectOverrideModalLogic.ts
index efd50094476c..fd2ef257baf2 100644
--- a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/addObjectOverrideModalLogic.ts
+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/addObjectOverrideModalLogic.ts
@@ -21,6 +21,8 @@ import api from 'lib/api'
import { APIScopeObject, AccessControlLevel } from '~/types'
+import type { ScopeObjectEnumApi } from 'products/access_control/frontend/generated/api.schemas'
+
import type { ObjectRuleResource } from '../../../../../../types'
import { accessControlsLogic } from './accessControlsLogic'
import { AccessObjectRule, accessDetailLogic, parseObjectRuleUrl } from './accessDetailLogic'
@@ -57,254 +59,12 @@ export interface addObjectOverrideModalLogicValues {
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface addObjectOverrideModalLogicActions {
setObjectRule: (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session',
+ resource: ScopeObjectEnumApi,
resourceId: string,
level: AccessControlLevel | null
) => {
level: AccessControlLevel | null
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
+ resource: ScopeObjectEnumApi
resourceId: string
} // accessDetailLogic
closeModal: () => {
@@ -330,128 +90,7 @@ export interface addObjectOverrideModalLogicActions {
resource: APIScopeObject
) => {
option: ObjectOption
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
+ resource: ScopeObjectEnumApi
}
openModal: () => {
value: true
@@ -461,128 +100,7 @@ export interface addObjectOverrideModalLogicActions {
lookupId: string
) => {
lookupId: string
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
+ resource: ScopeObjectEnumApi
}
setLevel: (level: AccessControlLevel) => {
level: AccessControlLevel
@@ -591,128 +109,7 @@ export interface addObjectOverrideModalLogicActions {
objectId: string | null
}
setResource: (resource: APIScopeObject) => {
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
+ resource: ScopeObjectEnumApi
}
setSearch: (search: string) => {
search: string
@@ -742,128 +139,7 @@ export interface addObjectOverrideModalLogicMeta {
__keaTypeGenInternalSelectorTypes: {
existingRule: (
objects: AccessObjectRule[],
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session',
+ resource: ScopeObjectEnumApi,
objectId: string | null
) => AccessObjectRule | null
displayObjectOptions: (objectOptions: ObjectOption[], selectedObject: ObjectOption | null) => ObjectOption[]
diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/groupedAccessControlRuleModalLogic.ts b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/groupedAccessControlRuleModalLogic.ts
index 55069b397da5..b31cdb605d7a 100644
--- a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/groupedAccessControlRuleModalLogic.ts
+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/ResourceAccessControlsV2/groupedAccessControlRuleModalLogic.ts
@@ -2,6 +2,8 @@ import { MakeLogicType, actions, connect, kea, key, listeners, path, props, redu
import { APIScopeObject, AccessControlLevel, EffectiveAccessControlEntry } from '~/types'
+import type { ScopeObjectEnumApi } from 'products/access_control/frontend/generated/api.schemas'
+
import { accessControlsLogic } from './accessControlsLogic'
import { getEntryId, getInheritedReasonTooltip, getLevelOptionsForResource, inheritedReasonOf } from './helpers'
import { FormAccessLevel, GroupedAccessControlRuleModalLogicProps } from './types'
@@ -19,130 +21,7 @@ export interface groupedAccessControlRuleModalLogicValues {
formResourceLevels: Record<APIScopeObject, FormAccessLevel>
isOrgAdmin: boolean
isProjectLevelShowingInherited: boolean
- isResourceLevelShowingInherited: (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- ) => boolean
+ isResourceLevelShowingInherited: (resource: ScopeObjectEnumApi) => boolean
modalTitle: 'Update default access' | 'Update member access' | 'Update role access'
productsDisabledReason:
| 'Cannot edit'
@@ -156,253 +35,9 @@ export interface groupedAccessControlRuleModalLogicValues {
label: string
value: AccessControlLevel
}[]
- resourceInheritedReasonTooltip: (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- ) => string | undefined
+ resourceInheritedReasonTooltip: (resource: ScopeObjectEnumApi) => string | undefined
resourceLevelOptions: (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session',
+ resource: ScopeObjectEnumApi,
resourceLabel: string
) => (
| {
@@ -417,130 +52,7 @@ export interface groupedAccessControlRuleModalLogicValues {
}
)[]
scopeType: ScopeType
- showResourceAddOverrideButton: (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- ) => boolean
+ showResourceAddOverrideButton: (resource: ScopeObjectEnumApi) => boolean
}
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
@@ -555,130 +67,7 @@ export interface groupedAccessControlRuleModalLogicActions {
scopeType: ScopeType
}) => {
projectLevel: AccessControlLevel | null
- resourceLevels: Record<
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session',
- AccessControlLevel | null
- >
+ resourceLevels: Record<ScopeObjectEnumApi, AccessControlLevel | null>
scopeId: string
scopeType: ScopeType
} // accessControlsLogic
@@ -699,254 +88,10 @@ export interface groupedAccessControlRuleModalLogicActions {
level: AccessControlLevel | null
) => {
level: AccessControlLevel | null
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
+ resource: ScopeObjectEnumApi
}
setResourceLevels: (levels: Record<APIScopeObject, FormAccessLevel>) => {
- levels: Record<
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session',
- FormAccessLevel
- >
+ levels: Record<ScopeObjectEnumApi, FormAccessLevel>
}
}
@@ -986,755 +131,19 @@ export interface groupedAccessControlRuleModalLogicMeta {
isOrgAdmin: boolean
) => 'Cannot edit' | 'Loading...' | 'User is an organization admin' | undefined
isResourceLevelShowingInherited: (
- formResourceLevels: Record<
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session',
- FormAccessLevel
- >,
+ formResourceLevels: Record<ScopeObjectEnumApi, FormAccessLevel>,
entry: AccessControlSettingsEntry
- ) => (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- ) => boolean
+ ) => (resource: ScopeObjectEnumApi) => boolean
resourceInheritedReasonTooltip: (
- isResourceLevelShowingInherited: (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- ) => boolean,
+ isResourceLevelShowingInherited: (resource: ScopeObjectEnumApi) => boolean,
entry: AccessControlSettingsEntry
- ) => (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- ) => string | undefined
+ ) => (resource: ScopeObjectEnumApi) => string | undefined
resourceLevelOptions: (
availableResourceLevels: AccessControlLevel[],
entry: AccessControlSettingsEntry,
- formResourceLevels: Record<
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session',
- FormAccessLevel
- >
+ formResourceLevels: Record<ScopeObjectEnumApi, FormAccessLevel>
) => (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session',
+ resource: ScopeObjectEnumApi,
resourceLabel: string
) => (
| {
@@ -1749,254 +158,8 @@ export interface groupedAccessControlRuleModalLogicMeta {
}
)[]
showResourceAddOverrideButton: (
- formResourceLevels: Record<
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session',
- FormAccessLevel
- >
- ) => (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- ) => boolean
+ formResourceLevels: Record<ScopeObjectEnumApi, FormAccessLevel>
+ ) => (resource: ScopeObjectEnumApi) => boolean
}
}
diff --git a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/accessControlLogic.ts b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/accessControlLogic.ts
index 95f01b49a3ba..d9bf38e656f8 100644
--- a/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/accessControlLogic.ts
+++ b/frontend/src/layout/navigation-3000/sidepanel/panels/access_control/accessControlLogic.ts
@@ -27,6 +27,8 @@ import {
RoleType,
} from '~/types'
+import type { ScopeObjectEnumApi } from 'products/access_control/frontend/generated/api.schemas'
+
import type { GuardAvailableFeatureFn } from '../../../../../lib/components/UpgradeModal/upgradeModalLogic'
import { humanizeAccessControlLevel } from './ResourceAccessControlsV2/helpers'
import { roleAccessControlLogic } from './roleAccessControlLogic'
@@ -69,111 +71,7 @@ export interface accessControlLogicValues {
minimumAccessLevel: AccessControlLevel | null
organizationAdmins: OrganizationMemberType[]
organizationAdminsAsAccessControlMember: AccessControlTypeOrganizationAdmins
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'batch_export'
- | 'batch_import'
- | 'business_knowledge'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'metrics'
- | 'notebook'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_session'
+ resource: ScopeObjectEnumApi
rolesById: Record<string, RoleType>
}
@@ -311,484 +209,9 @@ export interface accessControlLogicActions {
export interface accessControlLogicMeta {
key: string
__keaTypeGenInternalSelectorTypes: {
- resource: (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- ) =>
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'batch_export'
- | 'batch_import'
- | 'business_knowledge'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'metrics'
- | 'notebook'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_session'
- endpoint: (
- currentProjectId: number | string,
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session',
- resource_id: string
- ) => string
- humanReadableResource: (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'ai_observability_clusters'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'autoresearch'
- | 'batch_export'
- | 'batch_import'
- | 'batch_import_support'
- | 'billing'
- | 'business_knowledge'
- | 'canvas'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'context_layer_internal'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'customer_task'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_flow_proposal'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_playground'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'loop'
- | 'marketing_analytics'
- | 'mcp_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_registry'
- | 'metrics'
- | 'notebook'
- | 'offline_evaluation_ingestion'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'signal_scratchpad_internal'
- | 'stamphog'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'toolbar'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'vision_alert'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_run'
- | 'wizard_session'
- ) => string
+ resource: (resource: ScopeObjectEnumApi) => ScopeObjectEnumApi
+ endpoint: (currentProjectId: number | string, resource: ScopeObjectEnumApi, resource_id: string) => string
+ humanReadableResource: (resource: ScopeObjectEnumApi) => string
minimumAccessLevel: (accessControls: AccessControlResponseType | null) => AccessControlLevel | null
availableLevelsWithNone: (accessControls: AccessControlResponseType | null) => AccessControlLevel[]
availableLevels: (availableLevelsWithNone: AccessControlLevel[]) => AccessControlLevel[]
@@ -958,228 +381,11 @@ export const accessControlLogic = kea<accessControlLogicType>([
updateAccessControlMembersSuccess: () => actions.loadAccessControls(),
})),
selectors({
- resource: [
- (_, p) => [p.resource],
- (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'batch_export'
- | 'batch_import'
- | 'business_knowledge'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'marketing_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_analytics'
- | 'metrics'
- | 'notebook'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_session'
- ) => resource,
- ],
+ resource: [(_, p) => [p.resource], (resource: ScopeObjectEnumApi) => resource],
endpoint: [
(s, p) => [s.currentProjectId, p.resource, p.resource_id],
- (
- currentProjectId: number | string,
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'batch_export'
- | 'batch_import'
- | 'business_knowledge'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'marketing_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_analytics'
- | 'metrics'
- | 'notebook'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_session',
- resource_id: string
- ): string => {
+ (currentProjectId: number | string, resource: ScopeObjectEnumApi, resource_id: string): string => {
// TODO: This is far from perfect... but it's a start
if (resource === 'project') {
return `api/projects/${currentProjectId}/access_controls`
@@ -1188,116 +394,7 @@ export const accessControlLogic = kea<accessControlLogicType>([
},
],
- humanReadableResource: [
- (_, p) => [p.resource],
- (
- resource:
- | 'access_control'
- | 'account'
- | 'action'
- | 'activity_log'
- | 'alert'
- | 'annotation'
- | 'approvals'
- | 'batch_export'
- | 'batch_import'
- | 'business_knowledge'
- | 'clickhouse_test_cluster_perf'
- | 'cohort'
- | 'comment'
- | 'conversation'
- | 'customer_analytics'
- | 'customer_journey'
- | 'customer_profile_config'
- | 'dashboard'
- | 'dashboard_template'
- | 'data_catalog'
- | 'data_catalog_approval'
- | 'data_deletion'
- | 'dataset'
- | 'early_access_feature'
- | 'element'
- | 'endpoint'
- | 'engineering_analytics'
- | 'error_tracking'
- | 'evaluation'
- | 'event_definition'
- | 'event_filter'
- | 'experiment'
- | 'experiment_holdout'
- | 'experiment_saved_metric'
- | 'export'
- | 'external_data_schema'
- | 'external_data_source'
- | 'feature_flag'
- | 'field_note'
- | 'file_system'
- | 'file_system_shortcut'
- | 'group'
- | 'health_issue'
- | 'heatmap'
- | 'hog_flow'
- | 'hog_function'
- | 'ingestion_warning'
- | 'insight'
- | 'insight_variable'
- | 'integration'
- | 'internal_run'
- | 'legal_document'
- | 'link'
- | 'live_debugger'
- | 'llm_analytics'
- | 'llm_gateway'
- | 'llm_prompt'
- | 'llm_provider_key'
- | 'llm_skill'
- | 'logs'
- | 'marketing_analytics'
- | 'mcp_builtin_agent'
- | 'mcp_analytics'
- | 'metrics'
- | 'notebook'
- | 'organization'
- | 'organization_integration'
- | 'organization_member'
- | 'person'
- | 'plugin'
- | 'product_enablement'
- | 'product_tour'
- | 'project'
- | 'property_definition'
- | 'query'
- | 'query_performance'
- | 'replay_scanner'
- | 'revenue_analytics'
- | 'review_hog'
- | 'session_recording'
- | 'session_recording_playlist'
- | 'sharing_configuration'
- | 'signal_scout'
- | 'signal_scout_internal'
- | 'signal_scout_report'
- | 'streamlit_app'
- | 'subscription'
- | 'survey'
- | 'tagger'
- | 'task'
- | 'ticket'
- | 'tracing'
- | 'uploaded_media'
- | 'usage_metric'
- | 'user'
- | 'user_interview'
- | 'vision_action'
- | 'visual_review'
- | 'warehouse_objects'
- | 'warehouse_table'
- | 'warehouse_view'
- | 'web_analytics'
- | 'webhook'
- | 'wizard_session'
- ) => resource.replace(/_/g, ' '),
- ],
+ humanReadableResource: [(_, p) => [p.resource], (resource: ScopeObjectEnumApi) => resource.replace(/_/g, ' ')],
minimumAccessLevel: [
(s) => [s.accessControls],
diff --git a/frontend/src/lib/scopes.test.ts b/frontend/src/lib/scopes.test.ts
index 62067a97e9cb..091790e0b4c7 100644
--- a/frontend/src/lib/scopes.test.ts
+++ b/frontend/src/lib/scopes.test.ts
@@ -9,7 +9,9 @@ import {
scopeMatchesSearch,
} from 'lib/scopes'
-import { API_SCOPE_OBJECTS } from '~/types'
+import { ScopeObjectEnumApi } from 'products/access_control/frontend/generated/api.schemas'
+
+const API_SCOPE_OBJECTS = Object.values(ScopeObjectEnumApi)
const getRenderableKeyCreationScopes = (): Set<string> =>
new Set(
@@ -50,14 +52,14 @@ describe('API_SCOPES modal coverage', () => {
const omitted = new Set(Object.keys(API_SCOPES_OMITTED_FROM_MODAL))
it('offers or explicitly omits every scope object', () => {
- // Guards the drift where a scope object is added to API_SCOPE_OBJECTS (mirroring a new
- // backend scope) but its key-creation modal row is forgotten, silently hiding a grantable scope.
+ // The enum is generated from posthog/scopes.py, so a new backend scope object fails here
+ // until someone offers it in the key-creation modal or gives a reason to omit it.
const uncovered = API_SCOPE_OBJECTS.filter((obj) => !offered.has(obj) && !omitted.has(obj))
expect(uncovered).toEqual([])
})
it('never both offers and omits the same scope', () => {
- const overlap = [...omitted].filter((obj) => offered.has(obj as (typeof API_SCOPE_OBJECTS)[number]))
+ const overlap = [...omitted].filter((obj) => offered.has(obj as ScopeObjectEnumApi))
expect(overlap).toEqual([])
})
})
diff --git a/frontend/src/lib/scopes.tsx b/frontend/src/lib/scopes.tsx
index 8200ec7d6887..d7ebc7046d6f 100644
--- a/frontend/src/lib/scopes.tsx
+++ b/frontend/src/lib/scopes.tsx
@@ -265,26 +265,14 @@ export const API_SCOPES: APIScope[] = [
API_SCOPES.sort((a, b) => a.objectName.localeCompare(b.objectName))
// Scope objects deliberately absent from the key-creation modal above, each with the reason.
-// Every scope object in `API_SCOPE_OBJECTS` must be either offered in `API_SCOPES` or listed here —
+// Every grantable scope object in `ScopeObjectEnumApi` must be either offered in `API_SCOPES` or listed here —
// scopes.test.ts enforces that partition so a newly added backend scope can't silently go missing.
-// Keep the internal/hidden entries in sync with `INTERNAL_API_SCOPE_OBJECTS` and
-// `OAUTH_HIDDEN_SCOPE_OBJECTS` in posthog/scopes.py.
export const API_SCOPES_OMITTED_FROM_MODAL: Partial<Record<APIScopeObject, string>> = {
- // INTERNAL_API_SCOPE_OBJECTS — server-minted only, never user-grantable.
- clickhouse_test_cluster_perf: 'Internal: minted programmatically only.',
- context_layer_internal: 'Internal: permits channel-bound Context Wiki writes from task runs.',
- internal_run: 'Internal: marks a server-minted sandbox/agent run credential.',
- mcp_builtin_agent: 'Internal: identifies a trusted built-in agent credential.',
- signal_scout_internal: 'Internal: sandbox-only writes for the headless Signals agent.',
- signal_scout_report: 'Internal: sandbox-only writes for the scout report channel.',
- signal_scratchpad_internal: 'Internal: sandbox-only writes for the Signals scratchpad.',
// OAUTH_HIDDEN_SCOPE_OBJECTS — pasteable into a PAT, but never advertised via OAuth/CLI/MCP.
batch_import_support: 'OAuth-hidden: staff-only, pasteable into a PAT but not advertised.',
query_performance: 'OAuth-hidden: staff-only, pasteable into a PAT but not advertised.',
wizard_session: 'OAuth-hidden: pasteable into a PAT but not advertised.',
wizard_run: 'OAuth-hidden: pasteable into a PAT but not advertised.',
- // A per-scout grant: the workflows scout holds it through its config, so a person never pastes it.
- hog_flow_proposal: 'Scout grant: held by the workflows scout through its config, not by a key.',
// Umbrella access-control resource that `warehouse_view`/`warehouse_table` inherit from —
// the granular scopes are offered instead, so keep the umbrella out of the modal.
warehouse_objects: 'Umbrella resource: grant warehouse_view/warehouse_table instead.',
@@ -403,10 +391,10 @@ export const PROJECT_SECRET_API_KEY_SCOPE_PRESETS: ProjectSecretAPIKeyScopePrese
{ value: 'llm_gateway', label: 'AI gateway access', scopes: ['llm_gateway:read'] },
]
-// The product areas that the scope pickers use to group objects, in display order. Each object in
-// API_SCOPE_OBJECTS is in exactly one group, and scopes.test.ts fails until a new object has a group.
-// Internal and OAuth-hidden objects go in the last group, "Internal tools". The pickers do not show
-// those objects, so a person never sees that group.
+// The product areas that the scope pickers use to group objects, in display order. Each grantable
+// scope object in `ScopeObjectEnumApi` is in exactly one group, and scopes.test.ts fails until a new
+// object has a group. OAuth-hidden objects go in the last group, "Internal tools". The pickers do not
+// show those objects, so a person never sees that group.
export type APIScopeGroup = {
label: string
objects: APIScopeObject[]
@@ -568,20 +556,7 @@ export const API_SCOPE_GROUPS: APIScopeGroup[] = [
},
{
label: 'Internal tools',
- objects: [
- 'batch_import_support',
- 'clickhouse_test_cluster_perf',
- 'context_layer_internal',
- 'hog_flow_proposal',
- 'internal_run',
- 'mcp_builtin_agent',
- 'query_performance',
- 'signal_scout_internal',
- 'signal_scout_report',
- 'signal_scratchpad_internal',
- 'wizard_session',
- 'wizard_run',
- ],
+ objects: ['batch_import_support', 'query_performance', 'wizard_session', 'wizard_run'],
},
]
diff --git a/frontend/src/types.ts b/frontend/src/types.ts
index c4e468874040..587ca750ab70 100644
--- a/frontend/src/types.ts
+++ b/frontend/src/types.ts
@@ -81,6 +81,7 @@ import type {
} from '~/queries/schema/schema-general'
import { QueryContext } from '~/queries/types'
+import type { ScopeObjectEnumApi } from 'products/access_control/frontend/generated/api.schemas'
import { AlertType } from 'products/alerts/frontend/types'
import type { CohortRealtimeReadinessApi } from 'products/cohorts/frontend/generated/api.schemas'
import {
@@ -5869,135 +5870,9 @@ export interface RoleMemberType {
user_uuid: string
}
-// Single source of truth for scope objects on the frontend. Keep in sync with
-// `APIScopeObject` in posthog/scopes.py (same order). The runtime array lets
-// scopes.test.ts assert that every scope object is either offered in the PAK
-// creation modal or explicitly omitted — see `API_SCOPES_OMITTED_FROM_MODAL`.
-export const API_SCOPE_OBJECTS = [
- 'action',
- 'access_control',
- 'account',
- 'activity_log',
- 'alert',
- 'annotation',
- 'approvals',
- 'autoresearch',
- 'batch_export',
- 'batch_import',
- 'batch_import_support',
- 'billing',
- 'business_knowledge',
- 'canvas',
- 'clickhouse_test_cluster_perf',
- 'cohort',
- 'comment',
- 'conversation',
- 'context_layer_internal',
- 'customer_analytics',
- 'customer_task',
- 'customer_journey',
- 'customer_profile_config',
- 'data_catalog',
- 'data_catalog_approval',
- 'data_deletion',
- 'dashboard',
- 'event_filter',
- 'dashboard_template',
- 'dataset',
- 'early_access_feature',
- 'endpoint',
- 'engineering_analytics',
- 'error_tracking',
- 'evaluation',
- 'element',
- 'event_definition',
- 'experiment',
- 'experiment_holdout',
- 'experiment_saved_metric',
- 'export',
- 'external_data_schema',
- 'external_data_source',
- 'feature_flag',
- 'file_system',
- 'file_system_shortcut',
- 'group',
- 'health_issue',
- 'heatmap',
- 'hog_flow',
- 'hog_flow_proposal',
- 'hog_function',
- 'ingestion_warning',
- 'insight',
- 'insight_variable',
- 'integration',
- 'internal_run',
- 'legal_document',
- 'link',
- 'live_debugger',
- 'llm_analytics',
- 'ai_observability_clusters',
- 'llm_gateway',
- 'llm_playground',
- 'llm_prompt',
- 'llm_provider_key',
- 'llm_skill',
- 'logs',
- 'loop',
- 'marketing_analytics',
- 'mcp_builtin_agent',
- 'mcp_analytics',
- 'mcp_registry',
- 'metrics',
- 'notebook',
- 'offline_evaluation_ingestion',
- 'organization',
- 'organization_integration',
- 'organization_member',
- 'person',
- 'plugin',
- 'product_enablement',
- 'product_tour',
- 'project',
- 'property_definition',
- 'query',
- 'query_performance',
- 'replay_scanner',
- 'review_hog',
- 'revenue_analytics',
- 'session_recording',
- 'session_recording_playlist',
- 'sharing_configuration',
- 'signal_scout',
- 'signal_scout_internal',
- 'signal_scout_report',
- 'signal_scratchpad_internal',
- 'stamphog',
- 'streamlit_app',
- 'subscription',
- 'survey',
- 'tagger',
- 'ticket',
- 'task',
- 'toolbar',
- 'tracing',
- 'field_note',
- 'uploaded_media',
- 'usage_metric',
- 'user',
- 'user_interview',
- 'vision_action',
- 'vision_alert',
- 'visual_review',
- 'warehouse_objects',
- 'warehouse_table',
- 'warehouse_view',
- 'web_analytics',
- 'webhook',
- 'wizard_session',
- 'wizard_run',
-] as const
-
-export type APIScopeObject = (typeof API_SCOPE_OBJECTS)[number]
+// Every grantable scope object. `hogli build:openapi` generates the enum from posthog/scopes.py,
+// through the `resource` choice fields of the access control serializers.
+export type APIScopeObject = ScopeObjectEnumApi
export type APIScopeAction = 'read' | 'write'
diff --git a/posthog/api/personal_api_key.py b/posthog/api/personal_api_key.py
index d11022c25524..ac97b9bf2b49 100644
--- a/posthog/api/personal_api_key.py
+++ b/posthog/api/personal_api_key.py
@@ -17,7 +17,7 @@ from posthog.models.personal_api_key import LEGACY_HASH_PREFIX
from posthog.models.team.team import Team
from posthog.models.utils import generate_random_token_personal, hash_key_value, mask_key_value
from posthog.permissions import TimeSensitiveActionPermission
-from posthog.scopes import API_SCOPE_ACTIONS, API_SCOPE_OBJECTS, INTERNAL_API_SCOPE_OBJECTS
+from posthog.scopes import API_SCOPE_ACTIONS, GRANTABLE_API_SCOPE_OBJECTS
from posthog.user_permissions import UserPermissions
MAX_API_KEYS_PER_USER = 10 # Same as in scopes.tsx
@@ -39,8 +39,7 @@ def validate_personal_api_key_scopes(
scope_parts = scope.split(":")
if (
len(scope_parts) != 2
- or scope_parts[0] not in API_SCOPE_OBJECTS
- or scope_parts[0] in INTERNAL_API_SCOPE_OBJECTS
+ or scope_parts[0] not in GRANTABLE_API_SCOPE_OBJECTS
or scope_parts[1] not in API_SCOPE_ACTIONS
):
raise serializers.ValidationError(f"Invalid scope: {scope}")
diff --git a/posthog/scopes.py b/posthog/scopes.py
index 610576dd88e9..97a8a408edb6 100644
--- a/posthog/scopes.py
+++ b/posthog/scopes.py
@@ -6,9 +6,14 @@ from typing import Literal, get_args
# Not every model needs a scope - it should more be for top-level things
# Typically each object should have `read` and `write` scopes, but some objects may have more specific scopes
-# WARNING: Make sure to keep in sync with the frontend!
-# - frontend/src/lib/scopes.tsx (an `API_SCOPES` row and a group in `API_SCOPE_GROUPS`)
-# - frontend/src/types.ts (`export type APIScopeObject`)
+# A new scope object also needs UI data in frontend/src/lib/scopes.tsx:
+# - a row in `API_SCOPES`, or an entry with a reason in `API_SCOPES_OMITTED_FROM_MODAL`.
+# - a group in `API_SCOPE_GROUPS`.
+# frontend/src/lib/scopes.test.ts fails until both exist.
+#
+# The frontend `APIScopeObject` type needs no edit. `hogli build:openapi` generates it from
+# `GRANTABLE_API_SCOPE_OBJECTS` below, through the `resource` choice fields of the access
+# control serializers.
#
# The MCP `OAUTH_SCOPES_SUPPORTED` list at
# `services/mcp/src/lib/oauth-scopes.generated.ts` is generated from
@@ -228,6 +233,13 @@ OAUTH_HIDDEN_SCOPE_OBJECTS: frozenset[APIScopeObject] = frozenset(
}
)
+# Every scope object a person can grant: a personal API key, an OAuth grant or an access
+# control rule can name any of these. The access control API types its resource fields with
+# this list, so the generated frontend enum carries it and the frontend keeps no copy.
+GRANTABLE_API_SCOPE_OBJECTS: tuple[APIScopeObject, ...] = tuple(
+ obj for obj in API_SCOPE_OBJECTS if obj not in INTERNAL_API_SCOPE_OBJECTS
+)
+
# llm_gateway:read is omitted on purpose: it's alpha/privileged and granted only behind the
# ai-gateway flag in ProjectSecretAPIKeySerializer, not unconditionally like the entries here.
PROJECT_SECRET_API_KEY_ALLOWED_API_SCOPE_ACTION: list[tuple[APIScopeObject, APIScopeActions]] = [
@@ -265,10 +277,7 @@ PROJECT_SECRET_API_KEY_ALLOWED_API_SCOPE_ACTION: list[tuple[APIScopeObject, APIS
# Every public `obj:action` scope string. Matches `get_scope_descriptions()`
# keys; excludes INTERNAL scopes (programmatic-only, never user-facing).
ALL_SCOPES: frozenset[str] = frozenset(
- f"{obj}:{action}"
- for obj in API_SCOPE_OBJECTS
- if obj not in INTERNAL_API_SCOPE_OBJECTS
- for action in API_SCOPE_ACTIONS
+ f"{obj}:{action}" for obj in GRANTABLE_API_SCOPE_OBJECTS for action in API_SCOPE_ACTIONS
)
# Privileged scopes only land on `OAuthApplication.scopes` via an admin-driven
diff --git a/posthog/settings/web.py b/posthog/settings/web.py
index d6c8b503f638..cedab3cd5c3d 100644
--- a/posthog/settings/web.py
+++ b/posthog/settings/web.py
@@ -629,6 +629,9 @@ SPECTACULAR_SETTINGS = {
"ResolvedAccessSourceEnum": "products.access_control.backend.facade.enums.RESOLVED_ACCESS_SOURCE_CHOICES",
"ResolvedAccessSourceSubjectEnum": "products.access_control.backend.facade.enums.RESOLVED_ACCESS_SOURCE_SUBJECT_CHOICES",
"RuleResourceEnum": "products.access_control.backend.facade.user_access_control.RULE_RESOURCE_CHOICES",
+ # Every grantable scope object, from posthog/scopes.py. The frontend's APIScopeObject type
+ # derives from this enum, so the object list is never copied by hand.
+ "ScopeObjectEnum": "products.access_control.backend.facade.enums.SCOPE_OBJECT_CHOICES",
"TaskArtifactStatusEnum": ["active", "failed"],
# signals maps a warehouse import's status down to these three. Same values as the
# warehouse's own SyncStatus, but that class carries different labels, so the two are
diff --git a/products/access_control/backend/facade/enums.py b/products/access_control/backend/facade/enums.py
index d058708ee6bf..ede2bfa236ed 100644
--- a/products/access_control/backend/facade/enums.py
+++ b/products/access_control/backend/facade/enums.py
@@ -14,6 +14,8 @@ should stay in the implementation (logic.py, models.py).
from typing import Literal, get_args
+from posthog.scopes import GRANTABLE_API_SCOPE_OBJECTS
+
ResolvedAccessSourceValue = Literal[
"object",
"parent_object",
@@ -30,3 +32,9 @@ ResolvedAccessSourceSubjectValue = Literal["member", "role", "default"]
# ENUM_NAME_OVERRIDES in posthog/settings/web.py, because no Choices class carries these values.
RESOLVED_ACCESS_SOURCE_CHOICES: list[str] = list(get_args(ResolvedAccessSourceValue))
RESOLVED_ACCESS_SOURCE_SUBJECT_CHOICES: list[str] = list(get_args(ResolvedAccessSourceSubjectValue))
+
+# The scope objects a rule can name. The schema names the enum component ScopeObjectEnum through
+# ENUM_NAME_OVERRIDES, and the frontend derives its APIScopeObject type from that enum.
+# Keep every grantable scope object here. The scope pickers get their type from this enum, so a
+# narrower list would remove objects from the OAuth consent screen and the key picker.
+SCOPE_OBJECT_CHOICES: list[str] = list(GRANTABLE_API_SCOPE_OBJECTS)
diff --git a/products/access_control/backend/presentation/access_control.py b/products/access_control/backend/presentation/access_control.py
index 3cd4615f5692..b1e39f8b3cea 100644
--- a/products/access_control/backend/presentation/access_control.py
+++ b/products/access_control/backend/presentation/access_control.py
@@ -15,12 +15,13 @@ from posthog.constants import AvailableFeature
from posthog.models import User
from posthog.models.organization import OrganizationMembership
from posthog.models.team.team import Team
-from posthog.scopes import API_SCOPE_OBJECTS, INTERNAL_API_SCOPE_OBJECTS, APIScopeObjectOrNotSupported
+from posthog.scopes import GRANTABLE_API_SCOPE_OBJECTS, APIScopeObjectOrNotSupported
from posthog.synthetic_user import SyntheticUser
from products.access_control.backend.facade.enums import (
RESOLVED_ACCESS_SOURCE_CHOICES,
RESOLVED_ACCESS_SOURCE_SUBJECT_CHOICES,
+ SCOPE_OBJECT_CHOICES,
)
from products.access_control.backend.facade.object_names import display_model
from products.access_control.backend.facade.subject_access_control import SubjectAccessControl
@@ -92,7 +93,9 @@ class ResolvedAccessSerializer(serializers.Serializer):
allow_null=True,
help_text="Whose rule decided: a member's own, a role's, or the default for everyone in the project. Null when no rule did.",
)
- source_resource = serializers.CharField(help_text="The resource the deciding rule belongs to.")
+ source_resource = serializers.ChoiceField(
+ choices=SCOPE_OBJECT_CHOICES, help_text="The resource the deciding rule belongs to."
+ )
source_resource_id = serializers.CharField(
allow_null=True,
help_text="The deciding rule's object id, when it is an object-level rule (e.g. the source a table inherits from).",
@@ -149,9 +152,10 @@ class AccessControlSerializer(serializers.ModelSerializer):
return field_class, field_kwargs
def validate_resource(self, resource):
- if resource not in API_SCOPE_OBJECTS or resource in INTERNAL_API_SCOPE_OBJECTS:
- allowed = tuple(s for s in API_SCOPE_OBJECTS if s not in INTERNAL_API_SCOPE_OBJECTS)
- raise serializers.ValidationError("Invalid resource. Must be one of: {}".format(allowed))
+ if resource not in GRANTABLE_API_SCOPE_OBJECTS:
+ raise serializers.ValidationError(
+ "Invalid resource. Must be one of: {}".format(GRANTABLE_API_SCOPE_OBJECTS)
+ )
return resource
diff --git a/products/access_control/backend/presentation/serializers.py b/products/access_control/backend/presentation/serializers.py
index 0a5deecde6b9..0645a2d0ca8f 100644
--- a/products/access_control/backend/presentation/serializers.py
+++ b/products/access_control/backend/presentation/serializers.py
@@ -12,6 +12,7 @@ from posthog.models.organization import OrganizationMembership
from ..facade import contracts
from ..facade.contracts import PropertyAccessLevel
+from ..facade.enums import SCOPE_OBJECT_CHOICES
from ..facade.user_access_control import RULE_RESOURCE_CHOICES
from .access_control import ResolvedAccessSerializer
@@ -222,7 +223,9 @@ class AccessControlResourceDefaultSerializer(serializers.Serializer):
class AccessControlObjectRuleResourceSerializer(serializers.Serializer):
- resource = serializers.CharField(help_text="A resource type that supports rules on single objects.")
+ resource = serializers.ChoiceField(
+ choices=SCOPE_OBJECT_CHOICES, help_text="A resource type that supports rules on single objects."
+ )
available_access_levels = serializers.ListField(
child=serializers.CharField(),
help_text="The levels an object rule on this resource type accepts, lowest first.",
@@ -247,7 +250,9 @@ class AccessControlDefaultsResponseSerializer(_AccessControlSettingsResponseSeri
class AccessControlObjectRuleSerializer(serializers.Serializer):
"""A stored rule on one object, as configured for a subject."""
- resource = serializers.CharField(help_text="The object's resource type, for example `dashboard`.")
+ resource = serializers.ChoiceField(
+ choices=SCOPE_OBJECT_CHOICES, help_text="The object's resource type, for example `dashboard`."
+ )
resource_id = serializers.CharField(help_text="The object's primary key.")
name = serializers.CharField(help_text="The object's display name. Falls back to the id when it has no name.")
short_id = serializers.CharField(
diff --git a/products/access_control/frontend/generated/api.schemas.ts b/products/access_control/frontend/generated/api.schemas.ts
index 175cf8d1826c..0cdcff5ad7dc 100644
--- a/products/access_control/frontend/generated/api.schemas.ts
+++ b/products/access_control/frontend/generated/api.schemas.ts
@@ -44,6 +44,239 @@ export const ResolvedAccessSourceSubjectEnumApi = {
Default: 'default',
} as const
+/**
+ * * `action` - action
+ * * `access_control` - access_control
+ * * `account` - account
+ * * `activity_log` - activity_log
+ * * `alert` - alert
+ * * `annotation` - annotation
+ * * `approvals` - approvals
+ * * `autoresearch` - autoresearch
+ * * `batch_export` - batch_export
+ * * `batch_import` - batch_import
+ * * `batch_import_support` - batch_import_support
+ * * `billing` - billing
+ * * `business_knowledge` - business_knowledge
+ * * `canvas` - canvas
+ * * `cohort` - cohort
+ * * `comment` - comment
+ * * `conversation` - conversation
+ * * `customer_analytics` - customer_analytics
+ * * `customer_task` - customer_task
+ * * `customer_journey` - customer_journey
+ * * `customer_profile_config` - customer_profile_config
+ * * `data_catalog` - data_catalog
+ * * `data_catalog_approval` - data_catalog_approval
+ * * `data_deletion` - data_deletion
+ * * `dashboard` - dashboard
+ * * `event_filter` - event_filter
+ * * `dashboard_template` - dashboard_template
+ * * `dataset` - dataset
+ * * `early_access_feature` - early_access_feature
+ * * `endpoint` - endpoint
+ * * `engineering_analytics` - engineering_analytics
+ * * `error_tracking` - error_tracking
+ * * `evaluation` - evaluation
+ * * `element` - element
+ * * `event_definition` - event_definition
+ * * `experiment` - experiment
+ * * `experiment_holdout` - experiment_holdout
+ * * `experiment_saved_metric` - experiment_saved_metric
+ * * `export` - export
+ * * `external_data_schema` - external_data_schema
+ * * `external_data_source` - external_data_source
+ * * `feature_flag` - feature_flag
+ * * `file_system` - file_system
+ * * `file_system_shortcut` - file_system_shortcut
+ * * `group` - group
+ * * `health_issue` - health_issue
+ * * `heatmap` - heatmap
+ * * `hog_flow` - hog_flow
+ * * `hog_function` - hog_function
+ * * `ingestion_warning` - ingestion_warning
+ * * `insight` - insight
+ * * `insight_variable` - insight_variable
+ * * `integration` - integration
+ * * `legal_document` - legal_document
+ * * `link` - link
+ * * `live_debugger` - live_debugger
+ * * `llm_analytics` - llm_analytics
+ * * `ai_observability_clusters` - ai_observability_clusters
+ * * `llm_gateway` - llm_gateway
+ * * `llm_playground` - llm_playground
+ * * `llm_prompt` - llm_prompt
+ * * `llm_provider_key` - llm_provider_key
+ * * `llm_skill` - llm_skill
+ * * `logs` - logs
+ * * `loop` - loop
+ * * `marketing_analytics` - marketing_analytics
+ * * `mcp_analytics` - mcp_analytics
+ * * `mcp_registry` - mcp_registry
+ * * `metrics` - metrics
+ * * `notebook` - notebook
+ * * `offline_evaluation_ingestion` - offline_evaluation_ingestion
+ * * `organization` - organization
+ * * `organization_integration` - organization_integration
+ * * `organization_member` - organization_member
+ * * `person` - person
+ * * `plugin` - plugin
+ * * `product_enablement` - product_enablement
+ * * `product_tour` - product_tour
+ * * `project` - project
+ * * `property_definition` - property_definition
+ * * `query` - query
+ * * `query_performance` - query_performance
+ * * `replay_scanner` - replay_scanner
+ * * `review_hog` - review_hog
+ * * `revenue_analytics` - revenue_analytics
+ * * `session_recording` - session_recording
+ * * `session_recording_playlist` - session_recording_playlist
+ * * `sharing_configuration` - sharing_configuration
+ * * `signal_scout` - signal_scout
+ * * `stamphog` - stamphog
+ * * `streamlit_app` - streamlit_app
+ * * `subscription` - subscription
+ * * `survey` - survey
+ * * `tagger` - tagger
+ * * `ticket` - ticket
+ * * `task` - task
+ * * `toolbar` - toolbar
+ * * `tracing` - tracing
+ * * `field_note` - field_note
+ * * `uploaded_media` - uploaded_media
+ * * `usage_metric` - usage_metric
+ * * `user` - user
+ * * `user_interview` - user_interview
+ * * `vision_action` - vision_action
+ * * `vision_alert` - vision_alert
+ * * `visual_review` - visual_review
+ * * `warehouse_objects` - warehouse_objects
+ * * `warehouse_table` - warehouse_table
+ * * `warehouse_view` - warehouse_view
+ * * `web_analytics` - web_analytics
+ * * `webhook` - webhook
+ * * `wizard_session` - wizard_session
+ * * `wizard_run` - wizard_run
+ */
+export type ScopeObjectEnumApi = (typeof ScopeObjectEnumApi)[keyof typeof ScopeObjectEnumApi]
+
+export const ScopeObjectEnumApi = {
+ Action: 'action',
+ AccessControl: 'access_control',
+ Account: 'account',
+ ActivityLog: 'activity_log',
+ Alert: 'alert',
+ Annotation: 'annotation',
+ Approvals: 'approvals',
+ Autoresearch: 'autoresearch',
+ BatchExport: 'batch_export',
+ BatchImport: 'batch_import',
+ BatchImportSupport: 'batch_import_support',
+ Billing: 'billing',
+ BusinessKnowledge: 'business_knowledge',
+ Canvas: 'canvas',
+ Cohort: 'cohort',
+ Comment: 'comment',
+ Conversation: 'conversation',
+ CustomerAnalytics: 'customer_analytics',
+ CustomerTask: 'customer_task',
+ CustomerJourney: 'customer_journey',
+ CustomerProfileConfig: 'customer_profile_config',
+ DataCatalog: 'data_catalog',
+ DataCatalogApproval: 'data_catalog_approval',
+ DataDeletion: 'data_deletion',
+ Dashboard: 'dashboard',
+ EventFilter: 'event_filter',
+ DashboardTemplate: 'dashboard_template',
+ Dataset: 'dataset',
+ EarlyAccessFeature: 'early_access_feature',
+ Endpoint: 'endpoint',
+ EngineeringAnalytics: 'engineering_analytics',
+ ErrorTracking: 'error_tracking',
+ Evaluation: 'evaluation',
+ Element: 'element',
+ EventDefinition: 'event_definition',
+ Experiment: 'experiment',
+ ExperimentHoldout: 'experiment_holdout',
+ ExperimentSavedMetric: 'experiment_saved_metric',
+ Export: 'export',
+ ExternalDataSchema: 'external_data_schema',
+ ExternalDataSource: 'external_data_source',
+ FeatureFlag: 'feature_flag',
+ FileSystem: 'file_system',
+ FileSystemShortcut: 'file_system_shortcut',
+ Group: 'group',
+ HealthIssue: 'health_issue',
+ Heatmap: 'heatmap',
+ HogFlow: 'hog_flow',
+ HogFunction: 'hog_function',
+ IngestionWarning: 'ingestion_warning',
+ Insight: 'insight',
+ InsightVariable: 'insight_variable',
+ Integration: 'integration',
+ LegalDocument: 'legal_document',
+ Link: 'link',
+ LiveDebugger: 'live_debugger',
+ LlmAnalytics: 'llm_analytics',
+ AiObservabilityClusters: 'ai_observability_clusters',
+ LlmGateway: 'llm_gateway',
+ LlmPlayground: 'llm_playground',
+ LlmPrompt: 'llm_prompt',
+ LlmProviderKey: 'llm_provider_key',
+ LlmSkill: 'llm_skill',
+ Logs: 'logs',
+ Loop: 'loop',
+ MarketingAnalytics: 'marketing_analytics',
+ McpAnalytics: 'mcp_analytics',
+ McpRegistry: 'mcp_registry',
+ Metrics: 'metrics',
+ Notebook: 'notebook',
+ OfflineEvaluationIngestion: 'offline_evaluation_ingestion',
+ Organization: 'organization',
+ OrganizationIntegration: 'organization_integration',
+ OrganizationMember: 'organization_member',
+ Person: 'person',
+ Plugin: 'plugin',
+ ProductEnablement: 'product_enablement',
+ ProductTour: 'product_tour',
+ Project: 'project',
+ PropertyDefinition: 'property_definition',
+ Query: 'query',
+ QueryPerformance: 'query_performance',
+ ReplayScanner: 'replay_scanner',
+ ReviewHog: 'review_hog',
+ RevenueAnalytics: 'revenue_analytics',
+ SessionRecording: 'session_recording',
+ SessionRecordingPlaylist: 'session_recording_playlist',
+ SharingConfiguration: 'sharing_configuration',
+ SignalScout: 'signal_scout',
+ Stamphog: 'stamphog',
+ StreamlitApp: 'streamlit_app',
+ Subscription: 'subscription',
+ Survey: 'survey',
+ Tagger: 'tagger',
+ Ticket: 'ticket',
+ Task: 'task',
+ Toolbar: 'toolbar',
+ Tracing: 'tracing',
+ FieldNote: 'field_note',
+ UploadedMedia: 'uploaded_media',
+ UsageMetric: 'usage_metric',
+ User: 'user',
+ UserInterview: 'user_interview',
+ VisionAction: 'vision_action',
+ VisionAlert: 'vision_alert',
+ VisualReview: 'visual_review',
+ WarehouseObjects: 'warehouse_objects',
+ WarehouseTable: 'warehouse_table',
+ WarehouseView: 'warehouse_view',
+ WebAnalytics: 'web_analytics',
+ Webhook: 'webhook',
+ WizardSession: 'wizard_session',
+ WizardRun: 'wizard_run',
+} as const
+
/**
* A resolved access level with the rule that supplied it — the wire form of `ResolvedAccess`.
*/
@@ -67,8 +300,122 @@ export interface ProjectAccessSourceApi {
* * `role` - role
* * `default` - default */
source_subject: ResolvedAccessSourceSubjectEnumApi | null
- /** The resource the deciding rule belongs to. */
- source_resource: string
+ /** The resource the deciding rule belongs to.
+ *
+ * * `action` - action
+ * * `access_control` - access_control
+ * * `account` - account
+ * * `activity_log` - activity_log
+ * * `alert` - alert
+ * * `annotation` - annotation
+ * * `approvals` - approvals
+ * * `autoresearch` - autoresearch
+ * * `batch_export` - batch_export
+ * * `batch_import` - batch_import
+ * * `batch_import_support` - batch_import_support
+ * * `billing` - billing
+ * * `business_knowledge` - business_knowledge
+ * * `canvas` - canvas
+ * * `cohort` - cohort
+ * * `comment` - comment
+ * * `conversation` - conversation
+ * * `customer_analytics` - customer_analytics
+ * * `customer_task` - customer_task
+ * * `customer_journey` - customer_journey
+ * * `customer_profile_config` - customer_profile_config
+ * * `data_catalog` - data_catalog
+ * * `data_catalog_approval` - data_catalog_approval
+ * * `data_deletion` - data_deletion
+ * * `dashboard` - dashboard
+ * * `event_filter` - event_filter
+ * * `dashboard_template` - dashboard_template
+ * * `dataset` - dataset
+ * * `early_access_feature` - early_access_feature
+ * * `endpoint` - endpoint
+ * * `engineering_analytics` - engineering_analytics
+ * * `error_tracking` - error_tracking
+ * * `evaluation` - evaluation
+ * * `element` - element
+ * * `event_definition` - event_definition
+ * * `experiment` - experiment
+ * * `experiment_holdout` - experiment_holdout
+ * * `experiment_saved_metric` - experiment_saved_metric
+ * * `export` - export
+ * * `external_data_schema` - external_data_schema
+ * * `external_data_source` - external_data_source
+ * * `feature_flag` - feature_flag
+ * * `file_system` - file_system
+ * * `file_system_shortcut` - file_system_shortcut
+ * * `group` - group
+ * * `health_issue` - health_issue
+ * * `heatmap` - heatmap
+ * * `hog_flow` - hog_flow
+ * * `hog_function` - hog_function
+ * * `ingestion_warning` - ingestion_warning
+ * * `insight` - insight
+ * * `insight_variable` - insight_variable
+ * * `integration` - integration
+ * * `legal_document` - legal_document
+ * * `link` - link
+ * * `live_debugger` - live_debugger
+ * * `llm_analytics` - llm_analytics
+ * * `ai_observability_clusters` - ai_observability_clusters
+ * * `llm_gateway` - llm_gateway
+ * * `llm_playground` - llm_playground
+ * * `llm_prompt` - llm_prompt
+ * * `llm_provider_key` - llm_provider_key
+ * * `llm_skill` - llm_skill
+ * * `logs` - logs
+ * * `loop` - loop
+ * * `marketing_analytics` - marketing_analytics
+ * * `mcp_analytics` - mcp_analytics
+ * * `mcp_registry` - mcp_registry
+ * * `metrics` - metrics
+ * * `notebook` - notebook
+ * * `offline_evaluation_ingestion` - offline_evaluation_ingestion
+ * * `organization` - organization
+ * * `organization_integration` - organization_integration
+ * * `organization_member` - organization_member
+ * * `person` - person
+ * * `plugin` - plugin
+ * * `product_enablement` - product_enablement
+ * * `product_tour` - product_tour
+ * * `project` - project
+ * * `property_definition` - property_definition
+ * * `query` - query
+ * * `query_performance` - query_performance
+ * * `replay_scanner` - replay_scanner
+ * * `review_hog` - review_hog
+ * * `revenue_analytics` - revenue_analytics
+ * * `session_recording` - session_recording
+ * * `session_recording_playlist` - session_recording_playlist
+ * * `sharing_configuration` - sharing_configuration
+ * * `signal_scout` - signal_scout
+ * * `stamphog` - stamphog
+ * * `streamlit_app` - streamlit_app
+ * * `subscription` - subscription
+ * * `survey` - survey
+ * * `tagger` - tagger
+ * * `ticket` - ticket
+ * * `task` - task
+ * * `toolbar` - toolbar
+ * * `tracing` - tracing
+ * * `field_note` - field_note
+ * * `uploaded_media` - uploaded_media
+ * * `usage_metric` - usage_metric
+ * * `user` - user
+ * * `user_interview` - user_interview
+ * * `vision_action` - vision_action
+ * * `vision_alert` - vision_alert
+ * * `visual_review` - visual_review
+ * * `warehouse_objects` - warehouse_objects
+ * * `warehouse_table` - warehouse_table
+ * * `warehouse_view` - warehouse_view
+ * * `web_analytics` - web_analytics
+ * * `webhook` - webhook
+ * * `wizard_session` - wizard_session
+ * * `wizard_run` - wizard_run */
+ source_resource: ScopeObjectEnumApi
/**
* The deciding rule's object id, when it is an object-level rule (e.g. the source a table inherits from).
* @nullable
@@ -113,8 +460,122 @@ export interface MemberProjectAccessResponseApi {
* A stored rule on one object, as configured for a subject.
*/
export interface AccessControlObjectRuleApi {
- /** The object's resource type, for example `dashboard`. */
- resource: string
+ /** The object's resource type, for example `dashboard`.
+ *
+ * * `action` - action
+ * * `access_control` - access_control
+ * * `account` - account
+ * * `activity_log` - activity_log
+ * * `alert` - alert
+ * * `annotation` - annotation
+ * * `approvals` - approvals
+ * * `autoresearch` - autoresearch
+ * * `batch_export` - batch_export
+ * * `batch_import` - batch_import
+ * * `batch_import_support` - batch_import_support
+ * * `billing` - billing
+ * * `business_knowledge` - business_knowledge
+ * * `canvas` - canvas
+ * * `cohort` - cohort
+ * * `comment` - comment
+ * * `conversation` - conversation
+ * * `customer_analytics` - customer_analytics
+ * * `customer_task` - customer_task
+ * * `customer_journey` - customer_journey
+ * * `customer_profile_config` - customer_profile_config
+ * * `data_catalog` - data_catalog
+ * * `data_catalog_approval` - data_catalog_approval
+ * * `data_deletion` - data_deletion
+ * * `dashboard` - dashboard
+ * * `event_filter` - event_filter
+ * * `dashboard_template` - dashboard_template
+ * * `dataset` - dataset
+ * * `early_access_feature` - early_access_feature
+ * * `endpoint` - endpoint
+ * * `engineering_analytics` - engineering_analytics
+ * * `error_tracking` - error_tracking
+ * * `evaluation` - evaluation
+ * * `element` - element
+ * * `event_definition` - event_definition
+ * * `experiment` - experiment
+ * * `experiment_holdout` - experiment_holdout
+ * * `experiment_saved_metric` - experiment_saved_metric
+ * * `export` - export
+ * * `external_data_schema` - external_data_schema
+ * * `external_data_source` - external_data_source
+ * * `feature_flag` - feature_flag
+ * * `file_system` - file_system
+ * * `file_system_shortcut` - file_system_shortcut
+ * * `group` - group
+ * * `health_issue` - health_issue
+ * * `heatmap` - heatmap
+ * * `hog_flow` - hog_flow
+ * * `hog_function` - hog_function
+ * * `ingestion_warning` - ingestion_warning
+ * * `insight` - insight
+ * * `insight_variable` - insight_variable
+ * * `integration` - integration
+ * * `legal_document` - legal_document
+ * * `link` - link
+ * * `live_debugger` - live_debugger
+ * * `llm_analytics` - llm_analytics
+ * * `ai_observability_clusters` - ai_observability_clusters
+ * * `llm_gateway` - llm_gateway
+ * * `llm_playground` - llm_playground
+ * * `llm_prompt` - llm_prompt
+ * * `llm_provider_key` - llm_provider_key
+ * * `llm_skill` - llm_skill
+ * * `logs` - logs
+ * * `loop` - loop
+ * * `marketing_analytics` - marketing_analytics
+ * * `mcp_analytics` - mcp_analytics
+ * * `mcp_registry` - mcp_registry
+ * * `metrics` - metrics
+ * * `notebook` - notebook
+ * * `offline_evaluation_ingestion` - offline_evaluation_ingestion
+ * * `organization` - organization
+ * * `organization_integration` - organization_integration
+ * * `organization_member` - organization_member
+ * * `person` - person
+ * * `plugin` - plugin
+ * * `product_enablement` - product_enablement
+ * * `product_tour` - product_tour
+ * * `project` - project
+ * * `property_definition` - property_definition
+ * * `query` - query
+ * * `query_performance` - query_performance
+ * * `replay_scanner` - replay_scanner
+ * * `review_hog` - review_hog
+ * * `revenue_analytics` - revenue_analytics
+ * * `session_recording` - session_recording
+ * * `session_recording_playlist` - session_recording_playlist
+ * * `sharing_configuration` - sharing_configuration
+ * * `signal_scout` - signal_scout
+ * * `stamphog` - stamphog
+ * * `streamlit_app` - streamlit_app
+ * * `subscription` - subscription
+ * * `survey` - survey
+ * * `tagger` - tagger
+ * * `ticket` - ticket
+ * * `task` - task
+ * * `toolbar` - toolbar
+ * * `tracing` - tracing
+ * * `field_note` - field_note
+ * * `uploaded_media` - uploaded_media
+ * * `usage_metric` - usage_metric
+ * * `user` - user
+ * * `user_interview` - user_interview
+ * * `vision_action` - vision_action
+ * * `vision_alert` - vision_alert
+ * * `visual_review` - visual_review
+ * * `warehouse_objects` - warehouse_objects
+ * * `warehouse_table` - warehouse_table
+ * * `warehouse_view` - warehouse_view
+ * * `web_analytics` - web_analytics
+ * * `webhook` - webhook
+ * * `wizard_session` - wizard_session
+ * * `wizard_run` - wizard_run */
+ resource: ScopeObjectEnumApi
/** The object's primary key. */
resource_id: string
/** The object's display name. Falls back to the id when it has no name. */
@@ -381,8 +842,122 @@ export interface AccessControlResourceDefaultApi {
export type AccessControlDefaultsResponseApiResourceAccessLevels = { [key: string]: AccessControlResourceDefaultApi }
export interface AccessControlObjectRuleResourceApi {
- /** A resource type that supports rules on single objects. */
- resource: string
+ /** A resource type that supports rules on single objects.
+ *
+ * * `action` - action
+ * * `access_control` - access_control
+ * * `account` - account
+ * * `activity_log` - activity_log
+ * * `alert` - alert
+ * * `annotation` - annotation
+ * * `approvals` - approvals
+ * * `autoresearch` - autoresearch
+ * * `batch_export` - batch_export
+ * * `batch_import` - batch_import
+ * * `batch_import_support` - batch_import_support
+ * * `billing` - billing
+ * * `business_knowledge` - business_knowledge
+ * * `canvas` - canvas
+ * * `cohort` - cohort
+ * * `comment` - comment
+ * * `conversation` - conversation
+ * * `customer_analytics` - customer_analytics
+ * * `customer_task` - customer_task
+ * * `customer_journey` - customer_journey
+ * * `customer_profile_config` - customer_profile_config
+ * * `data_catalog` - data_catalog
+ * * `data_catalog_approval` - data_catalog_approval
+ * * `data_deletion` - data_deletion
+ * * `dashboard` - dashboard
+ * * `event_filter` - event_filter
+ * * `dashboard_template` - dashboard_template
+ * * `dataset` - dataset
+ * * `early_access_feature` - early_access_feature
+ * * `endpoint` - endpoint
+ * * `engineering_analytics` - engineering_analytics
+ * * `error_tracking` - error_tracking
+ * * `evaluation` - evaluation
+ * * `element` - element
+ * * `event_definition` - event_definition
+ * * `experiment` - experiment
+ * * `experiment_holdout` - experiment_holdout
+ * * `experiment_saved_metric` - experiment_saved_metric
+ * * `export` - export
+ * * `external_data_schema` - external_data_schema
+ * * `external_data_source` - external_data_source
+ * * `feature_flag` - feature_flag
+ * * `file_system` - file_system
+ * * `file_system_shortcut` - file_system_shortcut
+ * * `group` - group
+ * * `health_issue` - health_issue
+ * * `heatmap` - heatmap
+ * * `hog_flow` - hog_flow
+ * * `hog_function` - hog_function
+ * * `ingestion_warning` - ingestion_warning
+ * * `insight` - insight
+ * * `insight_variable` - insight_variable
+ * * `integration` - integration
+ * * `legal_document` - legal_document
+ * * `link` - link
+ * * `live_debugger` - live_debugger
+ * * `llm_analytics` - llm_analytics
+ * * `ai_observability_clusters` - ai_observability_clusters
+ * * `llm_gateway` - llm_gateway
+ * * `llm_playground` - llm_playground
+ * * `llm_prompt` - llm_prompt
+ * * `llm_provider_key` - llm_provider_key
+ * * `llm_skill` - llm_skill
+ * * `logs` - logs
+ * * `loop` - loop
+ * * `marketing_analytics` - marketing_analytics
+ * * `mcp_analytics` - mcp_analytics
+ * * `mcp_registry` - mcp_registry
+ * * `metrics` - metrics
+ * * `notebook` - notebook
+ * * `offline_evaluation_ingestion` - offline_evaluation_ingestion
+ * * `organization` - organization
+ * * `organization_integration` - organization_integration
+ * * `organization_member` - organization_member
+ * * `person` - person
+ * * `plugin` - plugin
+ * * `product_enablement` - product_enablement
+ * * `product_tour` - product_tour
+ * * `project` - project
+ * * `property_definition` - property_definition
+ * * `query` - query
+ * * `query_performance` - query_performance
+ * * `replay_scanner` - replay_scanner
+ * * `review_hog` - review_hog
+ * * `revenue_analytics` - revenue_analytics
+ * * `session_recording` - session_recording
+ * * `session_recording_playlist` - session_recording_playlist
+ * * `sharing_configuration` - sharing_configuration
+ * * `signal_scout` - signal_scout
+ * * `stamphog` - stamphog
+ * * `streamlit_app` - streamlit_app
+ * * `subscription` - subscription
+ * * `survey` - survey
+ * * `tagger` - tagger
+ * * `ticket` - ticket
+ * * `task` - task
+ * * `toolbar` - toolbar
+ * * `tracing` - tracing
+ * * `field_note` - field_note
+ * * `uploaded_media` - uploaded_media
+ * * `usage_metric` - usage_metric
+ * * `user` - user
+ * * `user_interview` - user_interview
+ * * `vision_action` - vision_action
+ * * `vision_alert` - vision_alert
+ * * `visual_review` - visual_review
+ * * `warehouse_objects` - warehouse_objects
+ * * `warehouse_table` - warehouse_table
+ * * `warehouse_view` - warehouse_view
+ * * `web_analytics` - web_analytics
+ * * `webhook` - webhook
+ * * `wizard_session` - wizard_session
+ * * `wizard_run` - wizard_run */
+ resource: ScopeObjectEnumApi
/** The levels an object rule on this resource type accepts, lowest first. */
available_access_levels: string[]
/** The lowest level an object rule on this resource can set. */
@@ -529,8 +1104,122 @@ export interface ResolvedAccessApi {
* * `role` - role
* * `default` - default */
source_subject: ResolvedAccessSourceSubjectEnumApi | null
- /** The resource the deciding rule belongs to. */
- source_resource: string
+ /** The resource the deciding rule belongs to.
+ *
+ * * `action` - action
+ * * `access_control` - access_control
+ * * `account` - account
+ * * `activity_log` - activity_log
+ * * `alert` - alert
+ * * `annotation` - annotation
+ * * `approvals` - approvals
+ * * `autoresearch` - autoresearch
+ * * `batch_export` - batch_export
+ * * `batch_import` - batch_import
+ * * `batch_import_support` - batch_import_support
+ * * `billing` - billing
+ * * `business_knowledge` - business_knowledge
+ * * `canvas` - canvas
+ * * `cohort` - cohort
+ * * `comment` - comment
+ * * `conversation` - conversation
+ * * `customer_analytics` - customer_analytics
+ * * `customer_task` - customer_task
+ * * `customer_journey` - customer_journey
+ * * `customer_profile_config` - customer_profile_config
+ * * `data_catalog` - data_catalog
+ * * `data_catalog_approval` - data_catalog_approval
+ * * `data_deletion` - data_deletion
+ * * `dashboard` - dashboard
+ * * `event_filter` - event_filter
+ * * `dashboard_template` - dashboard_template
+ * * `dataset` - dataset
+ * * `early_access_feature` - early_access_feature
+ * * `endpoint` - endpoint
+ * * `engineering_analytics` - engineering_analytics
+ * * `error_tracking` - error_tracking
+ * * `evaluation` - evaluation
+ * * `element` - element
+ * * `event_definition` - event_definition
+ * * `experiment` - experiment
+ * * `experiment_holdout` - experiment_holdout
+ * * `experiment_saved_metric` - experiment_saved_metric
+ * * `export` - export
+ * * `external_data_schema` - external_data_schema
+ * * `external_data_source` - external_data_source
+ * * `feature_flag` - feature_flag
+ * * `file_system` - file_system
+ * * `file_system_shortcut` - file_system_shortcut
+ * * `group` - group
+ * * `health_issue` - health_issue
+ * * `heatmap` - heatmap
+ * * `hog_flow` - hog_flow
+ * * `hog_function` - hog_function
+ * * `ingestion_warning` - ingestion_warning
+ * * `insight` - insight
+ * * `insight_variable` - insight_variable
+ * * `integration` - integration
+ * * `legal_document` - legal_document
+ * * `link` - link
+ * * `live_debugger` - live_debugger
+ * * `llm_analytics` - llm_analytics
+ * * `ai_observability_clusters` - ai_observability_clusters
+ * * `llm_gateway` - llm_gateway
+ * * `llm_playground` - llm_playground
+ * * `llm_prompt` - llm_prompt
+ * * `llm_provider_key` - llm_provider_key
+ * * `llm_skill` - llm_skill
+ * * `logs` - logs
+ * * `loop` - loop
+ * * `marketing_analytics` - marketing_analytics
+ * * `mcp_analytics` - mcp_analytics
+ * * `mcp_registry` - mcp_registry
+ * * `metrics` - metrics
+ * * `notebook` - notebook
+ * * `offline_evaluation_ingestion` - offline_evaluation_ingestion
+ * * `organization` - organization
+ * * `organization_integration` - organization_integration
+ * * `organization_member` - organization_member
+ * * `person` - person
+ * * `plugin` - plugin
+ * * `product_enablement` - product_enablement
+ * * `product_tour` - product_tour
+ * * `project` - project
+ * * `property_definition` - property_definition
+ * * `query` - query
+ * * `query_performance` - query_performance
+ * * `replay_scanner` - replay_scanner
+ * * `review_hog` - review_hog
+ * * `revenue_analytics` - revenue_analytics
+ * * `session_recording` - session_recording
+ * * `session_recording_playlist` - session_recording_playlist
+ * * `sharing_configuration` - sharing_configuration
+ * * `signal_scout` - signal_scout
+ * * `stamphog` - stamphog
+ * * `streamlit_app` - streamlit_app
+ * * `subscription` - subscription
+ * * `survey` - survey
+ * * `tagger` - tagger
+ * * `ticket` - ticket
+ * * `task` - task
+ * * `toolbar` - toolbar
+ * * `tracing` - tracing
+ * * `field_note` - field_note
+ * * `uploaded_media` - uploaded_media
+ * * `usage_metric` - usage_metric
+ * * `user` - user
+ * * `user_interview` - user_interview
+ * * `vision_action` - vision_action
+ * * `vision_alert` - vision_alert
+ * * `visual_review` - visual_review
+ * * `warehouse_objects` - warehouse_objects
+ * * `warehouse_table` - warehouse_table
+ * * `warehouse_view` - warehouse_view
+ * * `web_analytics` - web_analytics
+ * * `webhook` - webhook
+ * * `wizard_session` - wizard_session
+ * * `wizard_run` - wizard_run */
+ source_resource: ScopeObjectEnumApi
/**
* The deciding rule's object id, when it is an object-level rule (e.g. the source a table inherits from).
* @nullable
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index a12e0b58a641..723b0d82a7b3 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -184,9 +184,357 @@ export namespace Schemas {
*/
export type AccessControlDefaultsResponseResourceAccessLevels = {[key: string]: AccessControlResourceDefault};
+ /**
+ * * `action` - action
+ * * `access_control` - access_control
+ * * `account` - account
+ * * `activity_log` - activity_log
+ * * `alert` - alert
+ * * `annotation` - annotation
+ * * `approvals` - approvals
+ * * `autoresearch` - autoresearch
+ * * `batch_export` - batch_export
+ * * `batch_import` - batch_import
+ * * `batch_import_support` - batch_import_support
+ * * `billing` - billing
+ * * `business_knowledge` - business_knowledge
+ * * `canvas` - canvas
+ * * `cohort` - cohort
+ * * `comment` - comment
+ * * `conversation` - conversation
+ * * `customer_analytics` - customer_analytics
+ * * `customer_task` - customer_task
+ * * `customer_journey` - customer_journey
+ * * `customer_profile_config` - customer_profile_config
+ * * `data_catalog` - data_catalog
+ * * `data_catalog_approval` - data_catalog_approval
+ * * `data_deletion` - data_deletion
+ * * `dashboard` - dashboard
+ * * `event_filter` - event_filter
+ * * `dashboard_template` - dashboard_template
+ * * `dataset` - dataset
+ * * `early_access_feature` - early_access_feature
+ * * `endpoint` - endpoint
+ * * `engineering_analytics` - engineering_analytics
+ * * `error_tracking` - error_tracking
+ * * `evaluation` - evaluation
+ * * `element` - element
+ * * `event_definition` - event_definition
+ * * `experiment` - experiment
+ * * `experiment_holdout` - experiment_holdout
+ * * `experiment_saved_metric` - experiment_saved_metric
+ * * `export` - export
+ * * `external_data_schema` - external_data_schema
+ * * `external_data_source` - external_data_source
+ * * `feature_flag` - feature_flag
+ * * `file_system` - file_system
+ * * `file_system_shortcut` - file_system_shortcut
+ * * `group` - group
+ * * `health_issue` - health_issue
+ * * `heatmap` - heatmap
+ * * `hog_flow` - hog_flow
+ * * `hog_function` - hog_function
+ * * `ingestion_warning` - ingestion_warning
+ * * `insight` - insight
+ * * `insight_variable` - insight_variable
+ * * `integration` - integration
+ * * `legal_document` - legal_document
+ * * `link` - link
+ * * `live_debugger` - live_debugger
+ * * `llm_analytics` - llm_analytics
+ * * `ai_observability_clusters` - ai_observability_clusters
+ * * `llm_gateway` - llm_gateway
+ * * `llm_playground` - llm_playground
+ * * `llm_prompt` - llm_prompt
+ * * `llm_provider_key` - llm_provider_key
+ * * `llm_skill` - llm_skill
+ * * `logs` - logs
+ * * `loop` - loop
+ * * `marketing_analytics` - marketing_analytics
+ * * `mcp_analytics` - mcp_analytics
+ * * `mcp_registry` - mcp_registry
+ * * `metrics` - metrics
+ * * `notebook` - notebook
+ * * `offline_evaluation_ingestion` - offline_evaluation_ingestion
+ * * `organization` - organization
+ * * `organization_integration` - organization_integration
+ * * `organization_member` - organization_member
+ * * `person` - person
+ * * `plugin` - plugin
+ * * `product_enablement` - product_enablement
+ * * `product_tour` - product_tour
+ * * `project` - project
+ * * `property_definition` - property_definition
+ * * `query` - query
+ * * `query_performance` - query_performance
+ * * `replay_scanner` - replay_scanner
+ * * `review_hog` - review_hog
+ * * `revenue_analytics` - revenue_analytics
+ * * `session_recording` - session_recording
+ * * `session_recording_playlist` - session_recording_playlist
+ * * `sharing_configuration` - sharing_configuration
+ * * `signal_scout` - signal_scout
+ * * `stamphog` - stamphog
+ * * `streamlit_app` - streamlit_app
+ * * `subscription` - subscription
+ * * `survey` - survey
+ * * `tagger` - tagger
+ * * `ticket` - ticket
+ * * `task` - task
+ * * `toolbar` - toolbar
+ * * `tracing` - tracing
+ * * `field_note` - field_note
+ * * `uploaded_media` - uploaded_media
+ * * `usage_metric` - usage_metric
+ * * `user` - user
+ * * `user_interview` - user_interview
+ * * `vision_action` - vision_action
+ * * `vision_alert` - vision_alert
+ * * `visual_review` - visual_review
+ * * `warehouse_objects` - warehouse_objects
+ * * `warehouse_table` - warehouse_table
+ * * `warehouse_view` - warehouse_view
+ * * `web_analytics` - web_analytics
+ * * `webhook` - webhook
+ * * `wizard_session` - wizard_session
+ * * `wizard_run` - wizard_run
+ */
+ export type ScopeObjectEnum = typeof ScopeObjectEnum[keyof typeof ScopeObjectEnum];
+
+
+ export const ScopeObjectEnum = {
+ Action: 'action',
+ AccessControl: 'access_control',
+ Account: 'account',
+ ActivityLog: 'activity_log',
+ Alert: 'alert',
+ Annotation: 'annotation',
+ Approvals: 'approvals',
+ Autoresearch: 'autoresearch',
+ BatchExport: 'batch_export',
+ BatchImport: 'batch_import',
+ BatchImportSupport: 'batch_import_support',
+ Billing: 'billing',
+ BusinessKnowledge: 'business_knowledge',
+ Canvas: 'canvas',
+ Cohort: 'cohort',
+ Comment: 'comment',
+ Conversation: 'conversation',
+ CustomerAnalytics: 'customer_analytics',
+ CustomerTask: 'customer_task',
+ CustomerJourney: 'customer_journey',
+ CustomerProfileConfig: 'customer_profile_config',
+ DataCatalog: 'data_catalog',
+ DataCatalogApproval: 'data_catalog_approval',
+ DataDeletion: 'data_deletion',
+ Dashboard: 'dashboard',
+ EventFilter: 'event_filter',
+ DashboardTemplate: 'dashboard_template',
+ Dataset: 'dataset',
+ EarlyAccessFeature: 'early_access_feature',
+ Endpoint: 'endpoint',
+ EngineeringAnalytics: 'engineering_analytics',
+ ErrorTracking: 'error_tracking',
+ Evaluation: 'evaluation',
+ Element: 'element',
+ EventDefinition: 'event_definition',
+ Experiment: 'experiment',
+ ExperimentHoldout: 'experiment_holdout',
+ ExperimentSavedMetric: 'experiment_saved_metric',
+ Export: 'export',
+ ExternalDataSchema: 'external_data_schema',
+ ExternalDataSource: 'external_data_source',
+ FeatureFlag: 'feature_flag',
+ FileSystem: 'file_system',
+ FileSystemShortcut: 'file_system_shortcut',
+ Group: 'group',
+ HealthIssue: 'health_issue',
+ Heatmap: 'heatmap',
+ HogFlow: 'hog_flow',
+ HogFunction: 'hog_function',
+ IngestionWarning: 'ingestion_warning',
+ Insight: 'insight',
+ InsightVariable: 'insight_variable',
+ Integration: 'integration',
+ LegalDocument: 'legal_document',
+ Link: 'link',
+ LiveDebugger: 'live_debugger',
+ LlmAnalytics: 'llm_analytics',
+ AiObservabilityClusters: 'ai_observability_clusters',
+ LlmGateway: 'llm_gateway',
+ LlmPlayground: 'llm_playground',
+ LlmPrompt: 'llm_prompt',
+ LlmProviderKey: 'llm_provider_key',
+ LlmSkill: 'llm_skill',
+ Logs: 'logs',
+ Loop: 'loop',
+ MarketingAnalytics: 'marketing_analytics',
+ McpAnalytics: 'mcp_analytics',
+ McpRegistry: 'mcp_registry',
+ Metrics: 'metrics',
+ Notebook: 'notebook',
+ OfflineEvaluationIngestion: 'offline_evaluation_ingestion',
+ Organization: 'organization',
+ OrganizationIntegration: 'organization_integration',
+ OrganizationMember: 'organization_member',
+ Person: 'person',
+ Plugin: 'plugin',
+ ProductEnablement: 'product_enablement',
+ ProductTour: 'product_tour',
+ Project: 'project',
+ PropertyDefinition: 'property_definition',
+ Query: 'query',
+ QueryPerformance: 'query_performance',
+ ReplayScanner: 'replay_scanner',
+ ReviewHog: 'review_hog',
+ RevenueAnalytics: 'revenue_analytics',
+ SessionRecording: 'session_recording',
+ SessionRecordingPlaylist: 'session_recording_playlist',
+ SharingConfiguration: 'sharing_configuration',
+ SignalScout: 'signal_scout',
+ Stamphog: 'stamphog',
+ StreamlitApp: 'streamlit_app',
+ Subscription: 'subscription',
+ Survey: 'survey',
+ Tagger: 'tagger',
+ Ticket: 'ticket',
+ Task: 'task',
+ Toolbar: 'toolbar',
+ Tracing: 'tracing',
+ FieldNote: 'field_note',
+ UploadedMedia: 'uploaded_media',
+ UsageMetric: 'usage_metric',
+ User: 'user',
+ UserInterview: 'user_interview',
+ VisionAction: 'vision_action',
+ VisionAlert: 'vision_alert',
+ VisualReview: 'visual_review',
+ WarehouseObjects: 'warehouse_objects',
+ WarehouseTable: 'warehouse_table',
+ WarehouseView: 'warehouse_view',
+ WebAnalytics: 'web_analytics',
+ Webhook: 'webhook',
+ WizardSession: 'wizard_session',
+ WizardRun: 'wizard_run',
+ } as const;
+
export interface AccessControlObjectRuleResource {
- /** A resource type that supports rules on single objects. */
- resource: string;
+ /** A resource type that supports rules on single objects.
+ *
+ * * `action` - action
+ * * `access_control` - access_control
+ * * `account` - account
+ * * `activity_log` - activity_log
+ * * `alert` - alert
+ * * `annotation` - annotation
+ * * `approvals` - approvals
+ * * `autoresearch` - autoresearch
+ * * `batch_export` - batch_export
+ * * `batch_import` - batch_import
+ * * `batch_import_support` - batch_import_support
+ * * `billing` - billing
+ * * `business_knowledge` - business_knowledge
+ * * `canvas` - canvas
+ * * `cohort` - cohort
+ * * `comment` - comment
+ * * `conversation` - conversation
+ * * `customer_analytics` - customer_analytics
+ * * `customer_task` - customer_task
+ * * `customer_journey` - customer_journey
+ * * `customer_profile_config` - customer_profile_config
+ * * `data_catalog` - data_catalog
+ * * `data_catalog_approval` - data_catalog_approval
+ * * `data_deletion` - data_deletion
+ * * `dashboard` - dashboard
+ * * `event_filter` - event_filter
+ * * `dashboard_template` - dashboard_template
+ * * `dataset` - dataset
+ * * `early_access_feature` - early_access_feature
+ * * `endpoint` - endpoint
+ * * `engineering_analytics` - engineering_analytics
+ * * `error_tracking` - error_tracking
+ * * `evaluation` - evaluation
+ * * `element` - element
+ * * `event_definition` - event_definition
+ * * `experiment` - experiment
+ * * `experiment_holdout` - experiment_holdout
+ * * `experiment_saved_metric` - experiment_saved_metric
+ * * `export` - export
+ * * `external_data_schema` - external_data_schema
+ * * `external_data_source` - external_data_source
+ * * `feature_flag` - feature_flag
+ * * `file_system` - file_system
+ * * `file_system_shortcut` - file_system_shortcut
+ * * `group` - group
+ * * `health_issue` - health_issue
+ * * `heatmap` - heatmap
+ * * `hog_flow` - hog_flow
+ * * `hog_function` - hog_function
+ * * `ingestion_warning` - ingestion_warning
+ * * `insight` - insight
+ * * `insight_variable` - insight_variable
+ * * `integration` - integration
+ * * `legal_document` - legal_document
+ * * `link` - link
+ * * `live_debugger` - live_debugger
+ * * `llm_analytics` - llm_analytics
+ * * `ai_observability_clusters` - ai_observability_clusters
+ * * `llm_gateway` - llm_gateway
+ * * `llm_playground` - llm_playground
+ * * `llm_prompt` - llm_prompt
+ * * `llm_provider_key` - llm_provider_key
+ * * `llm_skill` - llm_skill
+ * * `logs` - logs
+ * * `loop` - loop
+ * * `marketing_analytics` - marketing_analytics
+ * * `mcp_analytics` - mcp_analytics
+ * * `mcp_registry` - mcp_registry
+ * * `metrics` - metrics
+ * * `notebook` - notebook
+ * * `offline_evaluation_ingestion` - offline_evaluation_ingestion
+ * * `organization` - organization
+ * * `organization_integration` - organization_integration
+ * * `organization_member` - organization_member
+ * * `person` - person
+ * * `plugin` - plugin
+ * * `product_enablement` - product_enablement
+ * * `product_tour` - product_tour
+ * * `project` - project
+ * * `property_definition` - property_definition
+ * * `query` - query
+ * * `query_performance` - query_performance
+ * * `replay_scanner` - replay_scanner
+ * * `review_hog` - review_hog
+ * * `revenue_analytics` - revenue_analytics
+ * * `session_recording` - session_recording
+ * * `session_recording_playlist` - session_recording_playlist
+ * * `sharing_configuration` - sharing_configuration
+ * * `signal_scout` - signal_scout
+ * * `stamphog` - stamphog
+ * * `streamlit_app` - streamlit_app
+ * * `subscription` - subscription
+ * * `survey` - survey
+ * * `tagger` - tagger
+ * * `ticket` - ticket
+ * * `task` - task
+ * * `toolbar` - toolbar
+ * * `tracing` - tracing
+ * * `field_note` - field_note
+ * * `uploaded_media` - uploaded_media
+ * * `usage_metric` - usage_metric
+ * * `user` - user
+ * * `user_interview` - user_interview
+ * * `vision_action` - vision_action
+ * * `vision_alert` - vision_alert
+ * * `visual_review` - visual_review
+ * * `warehouse_objects` - warehouse_objects
+ * * `warehouse_table` - warehouse_table
+ * * `warehouse_view` - warehouse_view
+ * * `web_analytics` - web_analytics
+ * * `webhook` - webhook
+ * * `wizard_session` - wizard_session
+ * * `wizard_run` - wizard_run */
+ resource: ScopeObjectEnum;
/** The levels an object rule on this resource type accepts, lowest first. */
available_access_levels: string[];
/** The lowest level an object rule on this resource can set. */
@@ -293,8 +641,122 @@ export namespace Schemas {
* * `role` - role
* * `default` - default */
source_subject: ResolvedAccessSourceSubjectEnum | null;
- /** The resource the deciding rule belongs to. */
- source_resource: string;
+ /** The resource the deciding rule belongs to.
+ *
+ * * `action` - action
+ * * `access_control` - access_control
+ * * `account` - account
+ * * `activity_log` - activity_log
+ * * `alert` - alert
+ * * `annotation` - annotation
+ * * `approvals` - approvals
+ * * `autoresearch` - autoresearch
+ * * `batch_export` - batch_export
+ * * `batch_import` - batch_import
+ * * `batch_import_support` - batch_import_support
+ * * `billing` - billing
+ * * `business_knowledge` - business_knowledge
+ * * `canvas` - canvas
+ * * `cohort` - cohort
+ * * `comment` - comment
+ * * `conversation` - conversation
+ * * `customer_analytics` - customer_analytics
+ * * `customer_task` - customer_task
+ * * `customer_journey` - customer_journey
+ * * `customer_profile_config` - customer_profile_config
+ * * `data_catalog` - data_catalog
+ * * `data_catalog_approval` - data_catalog_approval
+ * * `data_deletion` - data_deletion
+ * * `dashboard` - dashboard
+ * * `event_filter` - event_filter
+ * * `dashboard_template` - dashboard_template
+ * * `dataset` - dataset
+ * * `early_access_feature` - early_access_feature
+ * * `endpoint` - endpoint
+ * * `engineering_analytics` - engineering_analytics
+ * * `error_tracking` - error_tracking
+ * * `evaluation` - evaluation
+ * * `element` - element
+ * * `event_definition` - event_definition
+ * * `experiment` - experiment
+ * * `experiment_holdout` - experiment_holdout
+ * * `experiment_saved_metric` - experiment_saved_metric
+ * * `export` - export
+ * * `external_data_schema` - external_data_schema
+ * * `external_data_source` - external_data_source
+ * * `feature_flag` - feature_flag
+ * * `file_system` - file_system
+ * * `file_system_shortcut` - file_system_shortcut
+ * * `group` - group
+ * * `health_issue` - health_issue
+ * * `heatmap` - heatmap
+ * * `hog_flow` - hog_flow
+ * * `hog_function` - hog_function
+ * * `ingestion_warning` - ingestion_warning
+ * * `insight` - insight
+ * * `insight_variable` - insight_variable
+ * * `integration` - integration
+ * * `legal_document` - legal_document
+ * * `link` - link
+ * * `live_debugger` - live_debugger
+ * * `llm_analytics` - llm_analytics
+ * * `ai_observability_clusters` - ai_observability_clusters
+ * * `llm_gateway` - llm_gateway
+ * * `llm_playground` - llm_playground
+ * * `llm_prompt` - llm_prompt
+ * * `llm_provider_key` - llm_provider_key
+ * * `llm_skill` - llm_skill
+ * * `logs` - logs
+ * * `loop` - loop
+ * * `marketing_analytics` - marketing_analytics
+ * * `mcp_analytics` - mcp_analytics
+ * * `mcp_registry` - mcp_registry
+ * * `metrics` - metrics
+ * * `notebook` - notebook
+ * * `offline_evaluation_ingestion` - offline_evaluation_ingestion
+ * * `organization` - organization
+ * * `organization_integration` - organization_integration
+ * * `organization_member` - organization_member
+ * * `person` - person
+ * * `plugin` - plugin
+ * * `product_enablement` - product_enablement
+ * * `product_tour` - product_tour
+ * * `project` - project
+ * * `property_definition` - property_definition
+ * * `query` - query
+ * * `query_performance` - query_performance
+ * * `replay_scanner` - replay_scanner
+ * * `review_hog` - review_hog
+ * * `revenue_analytics` - revenue_analytics
+ * * `session_recording` - session_recording
+ * * `session_recording_playlist` - session_recording_playlist
+ * * `sharing_configuration` - sharing_configuration
+ * * `signal_scout` - signal_scout
+ * * `stamphog` - stamphog
+ * * `streamlit_app` - streamlit_app
+ * * `subscription` - subscription
+ * * `survey` - survey
+ * * `tagger` - tagger
+ * * `ticket` - ticket
+ * * `task` - task
+ * * `toolbar` - toolbar
+ * * `tracing` - tracing
+ * * `field_note` - field_note
+ * * `uploaded_media` - uploaded_media
+ * * `usage_metric` - usage_metric
+ * * `user` - user
+ * * `user_interview` - user_interview
+ * * `vision_action` - vision_action
+ * * `vision_alert` - vision_alert
+ * * `visual_review` - visual_review
+ * * `warehouse_objects` - warehouse_objects
+ * * `warehouse_table` - warehouse_table
+ * * `warehouse_view` - warehouse_view
+ * * `web_analytics` - web_analytics
+ * * `webhook` - webhook
+ * * `wizard_session` - wizard_session
+ * * `wizard_run` - wizard_run */
+ source_resource: ScopeObjectEnum;
/**
* The deciding rule's object id, when it is an object-level rule (e.g. the source a table inherits from).
* @nullable
@@ -580,8 +1042,122 @@ export namespace Schemas {
* A stored rule on one object, as configured for a subject.
*/
export interface AccessControlObjectRule {
- /** The object's resource type, for example `dashboard`. */
- resource: string;
+ /** The object's resource type, for example `dashboard`.
+ *
+ * * `action` - action
+ * * `access_control` - access_control
+ * * `account` - account
+ * * `activity_log` - activity_log
+ * * `alert` - alert
+ * * `annotation` - annotation
+ * * `approvals` - approvals
+ * * `autoresearch` - autoresearch
+ * * `batch_export` - batch_export
+ * * `batch_import` - batch_import
+ * * `batch_import_support` - batch_import_support
+ * * `billing` - billing
+ * * `business_knowledge` - business_knowledge
+ * * `canvas` - canvas
+ * * `cohort` - cohort
+ * * `comment` - comment
+ * * `conversation` - conversation
+ * * `customer_analytics` - customer_analytics
+ * * `customer_task` - customer_task
+ * * `customer_journey` - customer_journey
+ * * `customer_profile_config` - customer_profile_config
+ * * `data_catalog` - data_catalog
+ * * `data_catalog_approval` - data_catalog_approval
+ * * `data_deletion` - data_deletion
+ * * `dashboard` - dashboard
+ * * `event_filter` - event_filter
+ * * `dashboard_template` - dashboard_template
+ * * `dataset` - dataset
+ * * `early_access_feature` - early_access_feature
+ * * `endpoint` - endpoint
+ * * `engineering_analytics` - engineering_analytics
+ * * `error_tracking` - error_tracking
+ * * `evaluation` - evaluation
+ * * `element` - element
+ * * `event_definition` - event_definition
+ * * `experiment` - experiment
+ * * `experiment_holdout` - experiment_holdout
+ * * `experiment_saved_metric` - experiment_saved_metric
+ * * `export` - export
+ * * `external_data_schema` - external_data_schema
+ * * `external_data_source` - external_data_source
+ * * `feature_flag` - feature_flag
+ * * `file_system` - file_system
+ * * `file_system_shortcut` - file_system_shortcut
+ * * `group` - group
+ * * `health_issue` - health_issue
+ * * `heatmap` - heatmap
+ * * `hog_flow` - hog_flow
+ * * `hog_function` - hog_function
+ * * `ingestion_warning` - ingestion_warning
+ * * `insight` - insight
+ * * `insight_variable` - insight_variable
+ * * `integration` - integration
+ * * `legal_document` - legal_document
+ * * `link` - link
+ * * `live_debugger` - live_debugger
+ * * `llm_analytics` - llm_analytics
+ * * `ai_observability_clusters` - ai_observability_clusters
+ * * `llm_gateway` - llm_gateway
+ * * `llm_playground` - llm_playground
+ * * `llm_prompt` - llm_prompt
+ * * `llm_provider_key` - llm_provider_key
+ * * `llm_skill` - llm_skill
+ * * `logs` - logs
+ * * `loop` - loop
+ * * `marketing_analytics` - marketing_analytics
+ * * `mcp_analytics` - mcp_analytics
+ * * `mcp_registry` - mcp_registry
+ * * `metrics` - metrics
+ * * `notebook` - notebook
+ * * `offline_evaluation_ingestion` - offline_evaluation_ingestion
+ * * `organization` - organization
+ * * `organization_integration` - organization_integration
+ * * `organization_member` - organization_member
+ * * `person` - person
+ * * `plugin` - plugin
+ * * `product_enablement` - product_enablement
+ * * `product_tour` - product_tour
+ * * `project` - project
+ * * `property_definition` - property_definition
+ * * `query` - query
+ * * `query_performance` - query_performance
+ * * `replay_scanner` - replay_scanner
+ * * `review_hog` - review_hog
+ * * `revenue_analytics` - revenue_analytics
+ * * `session_recording` - session_recording
+ * * `session_recording_playlist` - session_recording_playlist
+ * * `sharing_configuration` - sharing_configuration
+ * * `signal_scout` - signal_scout
+ * * `stamphog` - stamphog
+ * * `streamlit_app` - streamlit_app
+ * * `subscription` - subscription
+ * * `survey` - survey
+ * * `tagger` - tagger
+ * * `ticket` - ticket
+ * * `task` - task
+ * * `toolbar` - toolbar
+ * * `tracing` - tracing
+ * * `field_note` - field_note
+ * * `uploaded_media` - uploaded_media
+ * * `usage_metric` - usage_metric
+ * * `user` - user
+ * * `user_interview` - user_interview
+ * * `vision_action` - vision_action
+ * * `vision_alert` - vision_alert
+ * * `visual_review` - visual_review
+ * * `warehouse_objects` - warehouse_objects
+ * * `warehouse_table` - warehouse_table
+ * * `warehouse_view` - warehouse_view
+ * * `web_analytics` - web_analytics
+ * * `webhook` - webhook
+ * * `wizard_session` - wizard_session
+ * * `wizard_run` - wizard_run */
+ resource: ScopeObjectEnum;
/** The object's primary key. */
resource_id: string;
/** The object's display name. Falls back to the id when it has no name. */
@@ -61409,8 +61985,122 @@ export namespace Schemas {
* * `role` - role
* * `default` - default */
source_subject: ResolvedAccessSourceSubjectEnum | null;
- /** The resource the deciding rule belongs to. */
- source_resource: string;
+ /** The resource the deciding rule belongs to.
+ *
+ * * `action` - action
+ * * `access_control` - access_control
+ * * `account` - account
+ * * `activity_log` - activity_log
+ * * `alert` - alert
+ * * `annotation` - annotation
+ * * `approvals` - approvals
+ * * `autoresearch` - autoresearch
+ * * `batch_export` - batch_export
+ * * `batch_import` - batch_import
+ * * `batch_import_support` - batch_import_support
+ * * `billing` - billing
+ * * `business_knowledge` - business_knowledge
+ * * `canvas` - canvas
+ * * `cohort` - cohort
+ * * `comment` - comment
+ * * `conversation` - conversation
+ * * `customer_analytics` - customer_analytics
+ * * `customer_task` - customer_task
+ * * `customer_journey` - customer_journey
+ * * `customer_profile_config` - customer_profile_config
+ * * `data_catalog` - data_catalog
+ * * `data_catalog_approval` - data_catalog_approval
+ * * `data_deletion` - data_deletion
+ * * `dashboard` - dashboard
+ * * `event_filter` - event_filter
+ * * `dashboard_template` - dashboard_template
+ * * `dataset` - dataset
+ * * `early_access_feature` - early_access_feature
+ * * `endpoint` - endpoint
+ * * `engineering_analytics` - engineering_analytics
+ * * `error_tracking` - error_tracking
+ * * `evaluation` - evaluation
+ * * `element` - element
+ * * `event_definition` - event_definition
+ * * `experiment` - experiment
+ * * `experiment_holdout` - experiment_holdout
+ * * `experiment_saved_metric` - experiment_saved_metric
+ * * `export` - export
+ * * `external_data_schema` - external_data_schema
+ * * `external_data_source` - external_data_source
+ * * `feature_flag` - feature_flag
+ * * `file_system` - file_system
+ * * `file_system_shortcut` - file_system_shortcut
+ * * `group` - group
+ * * `health_issue` - health_issue
+ * * `heatmap` - heatmap
+ * * `hog_flow` - hog_flow
+ * * `hog_function` - hog_function
+ * * `ingestion_warning` - ingestion_warning
+ * * `insight` - insight
+ * * `insight_variable` - insight_variable
+ * * `integration` - integration
+ * * `legal_document` - legal_document
+ * * `link` - link
+ * * `live_debugger` - live_debugger
+ * * `llm_analytics` - llm_analytics
+ * * `ai_observability_clusters` - ai_observability_clusters
+ * * `llm_gateway` - llm_gateway
+ * * `llm_playground` - llm_playground
+ * * `llm_prompt` - llm_prompt
+ * * `llm_provider_key` - llm_provider_key
+ * * `llm_skill` - llm_skill
+ * * `logs` - logs
+ * * `loop` - loop
+ * * `marketing_analytics` - marketing_analytics
+ * * `mcp_analytics` - mcp_analytics
+ * * `mcp_registry` - mcp_registry
+ * * `metrics` - metrics
+ * * `notebook` - notebook
+ * * `offline_evaluation_ingestion` - offline_evaluation_ingestion
+ * * `organization` - organization
+ * * `organization_integration` - organization_integration
+ * * `organization_member` - organization_member
+ * * `person` - person
+ * * `plugin` - plugin
+ * * `product_enablement` - product_enablement
+ * * `product_tour` - product_tour
+ * * `project` - project
+ * * `property_definition` - property_definition
+ * * `query` - query
+ * * `query_performance` - query_performance
+ * * `replay_scanner` - replay_scanner
+ * * `review_hog` - review_hog
+ * * `revenue_analytics` - revenue_analytics
+ * * `session_recording` - session_recording
+ * * `session_recording_playlist` - session_recording_playlist
+ * * `sharing_configuration` - sharing_configuration
+ * * `signal_scout` - signal_scout
+ * * `stamphog` - stamphog
+ * * `streamlit_app` - streamlit_app
+ * * `subscription` - subscription
+ * * `survey` - survey
+ * * `tagger` - tagger
+ * * `ticket` - ticket
+ * * `task` - task
+ * * `toolbar` - toolbar
+ * * `tracing` - tracing
+ * * `field_note` - field_note
+ * * `uploaded_media` - uploaded_media
+ * * `usage_metric` - usage_metric
+ * * `user` - user
+ * * `user_interview` - user_interview
+ * * `vision_action` - vision_action
+ * * `vision_alert` - vision_alert
+ * * `visual_review` - visual_review
+ * * `warehouse_objects` - warehouse_objects
+ * * `warehouse_table` - warehouse_table
+ * * `warehouse_view` - warehouse_view
+ * * `web_analytics` - web_analytics
+ * * `webhook` - webhook
+ * * `wizard_session` - wizard_session
+ * * `wizard_run` - wizard_run */
+ source_resource: ScopeObjectEnum;
/**
* The deciding rule's object id, when it is an object-level rule (e.g. the source a table inherits from).
* @nullable