diff --git a/src/sentry/api/endpoints/api_application_rotate_secret.py b/src/sentry/api/endpoints/api_application_rotate_secret.py index 5dd2f189e7a66d..b300002893476f 100644 --- a/src/sentry/api/endpoints/api_application_rotate_secret.py +++ b/src/sentry/api/endpoints/api_application_rotate_secret.py @@ -16,7 +16,7 @@ class ApiApplicationRotateSecretEndpoint(ApiApplicationEndpoint): publish_status = { "POST": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED authentication_classes = (SessionAuthentication,) permission_classes = (SentryIsAuthenticated,) diff --git a/src/sentry/api/endpoints/api_authorizations.py b/src/sentry/api/endpoints/api_authorizations.py index 9711451d69d2be..997e9ca4f1c336 100644 --- a/src/sentry/api/endpoints/api_authorizations.py +++ b/src/sentry/api/endpoints/api_authorizations.py @@ -22,7 +22,7 @@ class ApiAuthorizationsEndpoint(Endpoint): "DELETE": ApiPublishStatus.PRIVATE, "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED authentication_classes = (SessionAuthentication,) permission_classes = (SentryIsAuthenticated,) diff --git a/src/sentry/api/endpoints/auth_config.py b/src/sentry/api/endpoints/auth_config.py index b3945a238b2168..6f51e4740ca6b9 100644 --- a/src/sentry/api/endpoints/auth_config.py +++ b/src/sentry/api/endpoints/auth_config.py @@ -28,7 +28,7 @@ class AuthConfigEndpoint(Endpoint, OrganizationMixin): publish_status = { "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED # Disable authentication and permission requirements. permission_classes = () diff --git a/src/sentry/api/endpoints/auth_index.py b/src/sentry/api/endpoints/auth_index.py index d4c2ebfa682ed3..6f10f98a46e2de 100644 --- a/src/sentry/api/endpoints/auth_index.py +++ b/src/sentry/api/endpoints/auth_index.py @@ -46,7 +46,7 @@ class BaseAuthIndexEndpoint(Endpoint): AuthIndexEndpoint and StaffAuthIndexEndpoint (in getsentry) """ - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED authentication_classes = (QuietBasicAuthentication, SessionAuthentication) permission_classes = () diff --git a/src/sentry/api/endpoints/auth_login.py b/src/sentry/api/endpoints/auth_login.py index ffe24e6d8bf4f3..09431b12a06299 100644 --- a/src/sentry/api/endpoints/auth_login.py +++ b/src/sentry/api/endpoints/auth_login.py @@ -20,7 +20,7 @@ class AuthLoginEndpoint(Endpoint, OrganizationMixin): publish_status = { "POST": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED # Disable authentication and permission requirements. permission_classes = () diff --git a/src/sentry/api/endpoints/oauth_userinfo.py b/src/sentry/api/endpoints/oauth_userinfo.py index 0fea25e4070b0a..3c5f5f69d3cf6c 100644 --- a/src/sentry/api/endpoints/oauth_userinfo.py +++ b/src/sentry/api/endpoints/oauth_userinfo.py @@ -65,7 +65,7 @@ class OAuthUserInfoEndpoint(Endpoint): publish_status = { "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED authentication_classes = () permission_classes = () diff --git a/src/sentry/api/endpoints/organization_access_request_details.py b/src/sentry/api/endpoints/organization_access_request_details.py index 873b2a699213b9..bf9808de87727b 100644 --- a/src/sentry/api/endpoints/organization_access_request_details.py +++ b/src/sentry/api/endpoints/organization_access_request_details.py @@ -56,7 +56,7 @@ class OrganizationAccessRequestDetailsEndpoint(OrganizationEndpoint): "GET": ApiPublishStatus.PRIVATE, "PUT": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (AccessRequestPermission,) # TODO(dcramer): this should go onto AccessRequestPermission diff --git a/src/sentry/api/endpoints/organization_auth_provider_details.py b/src/sentry/api/endpoints/organization_auth_provider_details.py index e8bf513a198221..ce3383053c2a44 100644 --- a/src/sentry/api/endpoints/organization_auth_provider_details.py +++ b/src/sentry/api/endpoints/organization_auth_provider_details.py @@ -17,7 +17,7 @@ class OrganizationAuthProviderDetailsEndpoint(OrganizationEndpoint): publish_status = { "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (OrganizationAuthProviderPermission,) def get(self, request: Request, organization: Organization) -> Response: diff --git a/src/sentry/api/endpoints/organization_auth_providers.py b/src/sentry/api/endpoints/organization_auth_providers.py index 01ef3ac0bec792..11f821bdfd1d90 100644 --- a/src/sentry/api/endpoints/organization_auth_providers.py +++ b/src/sentry/api/endpoints/organization_auth_providers.py @@ -16,7 +16,7 @@ class OrganizationAuthProvidersEndpoint(OrganizationEndpoint): publish_status = { "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (OrganizationAuthProviderPermission,) def get(self, request: Request, organization: Organization) -> Response: diff --git a/src/sentry/api/endpoints/organization_auth_token_details.py b/src/sentry/api/endpoints/organization_auth_token_details.py index 7f99bbc90608b6..4afbcd520761af 100644 --- a/src/sentry/api/endpoints/organization_auth_token_details.py +++ b/src/sentry/api/endpoints/organization_auth_token_details.py @@ -22,7 +22,7 @@ class OrganizationAuthTokenDetailsEndpoint(ControlSiloOrganizationEndpoint): "GET": ApiPublishStatus.PRIVATE, "PUT": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED authentication_classes = (SessionNoAuthTokenAuthentication,) permission_classes = (OrgAuthTokenPermission,) diff --git a/src/sentry/api/endpoints/organization_auth_tokens.py b/src/sentry/api/endpoints/organization_auth_tokens.py index 63ea97eb6ddb76..775135be0d4dd0 100644 --- a/src/sentry/api/endpoints/organization_auth_tokens.py +++ b/src/sentry/api/endpoints/organization_auth_tokens.py @@ -41,7 +41,7 @@ class OrganizationAuthTokensEndpoint(ControlSiloOrganizationEndpoint): "GET": ApiPublishStatus.PRIVATE, "POST": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED authentication_classes = (SessionNoAuthTokenAuthentication,) permission_classes = (OrgAuthTokenPermission,) diff --git a/src/sentry/api/endpoints/organization_stats.py b/src/sentry/api/endpoints/organization_stats.py index 142987d38b99c5..9676c26c908b2a 100644 --- a/src/sentry/api/endpoints/organization_stats.py +++ b/src/sentry/api/endpoints/organization_stats.py @@ -20,7 +20,7 @@ class OrganizationStatsEndpoint(OrganizationEndpoint, StatsMixin): # Deprecated APIs remain private until removed "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED def get(self, request: Request, organization) -> Response: """ diff --git a/src/sentry/api/endpoints/organization_stats_summary.py b/src/sentry/api/endpoints/organization_stats_summary.py index 2be07ba9d364f2..efda7cffe33689 100644 --- a/src/sentry/api/endpoints/organization_stats_summary.py +++ b/src/sentry/api/endpoints/organization_stats_summary.py @@ -127,7 +127,7 @@ class StatsSummaryApiResponse(TypedDict): @cell_silo_endpoint class OrganizationStatsSummaryEndpoint(OrganizationEndpoint): publish_status = {"GET": ApiPublishStatus.PUBLIC} - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED @extend_schema( operation_id="Retrieve an Organization's Events Count by Project", diff --git a/src/sentry/api/endpoints/organization_stats_v2.py b/src/sentry/api/endpoints/organization_stats_v2.py index 174362bf736275..c137066a187f13 100644 --- a/src/sentry/api/endpoints/organization_stats_v2.py +++ b/src/sentry/api/endpoints/organization_stats_v2.py @@ -158,7 +158,7 @@ class OrganizationStatsEndpointV2(OrganizationEndpoint): publish_status = { "GET": ApiPublishStatus.PUBLIC, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED enforce_rate_limit = True rate_limits = RateLimitConfig( limit_overrides={ diff --git a/src/sentry/api/endpoints/project_member_index.py b/src/sentry/api/endpoints/project_member_index.py index 805aab22b1da84..0f1bd0dc9d38a5 100644 --- a/src/sentry/api/endpoints/project_member_index.py +++ b/src/sentry/api/endpoints/project_member_index.py @@ -22,7 +22,7 @@ class ProjectMemberIndexEndpoint(ProjectEndpoint): publish_status = { "GET": ApiPublishStatus.PUBLIC, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED @extend_schema( operation_id="List a Project's Organization Members", diff --git a/src/sentry/api/endpoints/release_thresholds/release_threshold.py b/src/sentry/api/endpoints/release_thresholds/release_threshold.py index 14ce20cf45360c..d10969ba0b3915 100644 --- a/src/sentry/api/endpoints/release_thresholds/release_threshold.py +++ b/src/sentry/api/endpoints/release_thresholds/release_threshold.py @@ -50,7 +50,7 @@ def validate_trigger_type(self, trigger_type: str) -> int: @cell_silo_endpoint class ReleaseThresholdEndpoint(ProjectEndpoint): permission_classes = (ProjectReleasePermission,) - owner: ApiOwner = ApiOwner.ENTERPRISE + owner: ApiOwner = ApiOwner.UNOWNED publish_status = { "GET": ApiPublishStatus.EXPERIMENTAL, "POST": ApiPublishStatus.EXPERIMENTAL, diff --git a/src/sentry/api/endpoints/release_thresholds/release_threshold_details.py b/src/sentry/api/endpoints/release_thresholds/release_threshold_details.py index 191485b1c1830a..fae8f455a30a1b 100644 --- a/src/sentry/api/endpoints/release_thresholds/release_threshold_details.py +++ b/src/sentry/api/endpoints/release_thresholds/release_threshold_details.py @@ -52,7 +52,7 @@ def validate_trigger_type(self, trigger_type: str) -> int: @cell_silo_endpoint class ReleaseThresholdDetailsEndpoint(ProjectEndpoint): permission_classes = (ProjectReleasePermission,) - owner: ApiOwner = ApiOwner.ENTERPRISE + owner: ApiOwner = ApiOwner.UNOWNED publish_status = { "DELETE": ApiPublishStatus.EXPERIMENTAL, "GET": ApiPublishStatus.EXPERIMENTAL, diff --git a/src/sentry/api/endpoints/release_thresholds/release_threshold_index.py b/src/sentry/api/endpoints/release_thresholds/release_threshold_index.py index 5ad658cddbfc74..b2252c950e3925 100644 --- a/src/sentry/api/endpoints/release_thresholds/release_threshold_index.py +++ b/src/sentry/api/endpoints/release_thresholds/release_threshold_index.py @@ -32,7 +32,7 @@ class ReleaseThresholdIndexGETValidator(serializers.Serializer[ReleaseThresholdI @cell_silo_endpoint class ReleaseThresholdIndexEndpoint(OrganizationEndpoint): - owner: ApiOwner = ApiOwner.ENTERPRISE + owner: ApiOwner = ApiOwner.UNOWNED publish_status = { "GET": ApiPublishStatus.EXPERIMENTAL, } diff --git a/src/sentry/api/endpoints/release_thresholds/release_threshold_status_index.py b/src/sentry/api/endpoints/release_thresholds/release_threshold_status_index.py index e3457b8e6f5741..443c2d0322febc 100644 --- a/src/sentry/api/endpoints/release_thresholds/release_threshold_status_index.py +++ b/src/sentry/api/endpoints/release_thresholds/release_threshold_status_index.py @@ -101,7 +101,7 @@ def validate(self, data: ReleaseThresholdStatusIndexData) -> ReleaseThresholdSta @cell_silo_endpoint @extend_schema(tags=["Releases"]) class ReleaseThresholdStatusIndexEndpoint(OrganizationReleasesBaseEndpoint): - owner: ApiOwner = ApiOwner.ENTERPRISE + owner: ApiOwner = ApiOwner.UNOWNED publish_status = { "GET": ApiPublishStatus.PUBLIC, } diff --git a/src/sentry/auth_v2/endpoints/auth_merge_user_accounts.py b/src/sentry/auth_v2/endpoints/auth_merge_user_accounts.py index 1b64d8b50b1072..d936251048f7c1 100644 --- a/src/sentry/auth_v2/endpoints/auth_merge_user_accounts.py +++ b/src/sentry/auth_v2/endpoints/auth_merge_user_accounts.py @@ -28,7 +28,7 @@ class AuthMergeUserAccountsEndpoint(AuthV2Endpoint): "GET": ApiPublishStatus.PRIVATE, "POST": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED """ List and merge user accounts with the same primary email address. """ diff --git a/src/sentry/auth_v2/endpoints/auth_user_merge_verification_code.py b/src/sentry/auth_v2/endpoints/auth_user_merge_verification_code.py index 5b9f37ee4610ae..816fae3446002a 100644 --- a/src/sentry/auth_v2/endpoints/auth_user_merge_verification_code.py +++ b/src/sentry/auth_v2/endpoints/auth_user_merge_verification_code.py @@ -14,7 +14,7 @@ class AuthUserMergeVerificationCodeEndpoint(Endpoint): publish_status = { "POST": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (SentryIsAuthenticated,) """ Generate and update verification codes for the user account merge flow. diff --git a/src/sentry/auth_v2/endpoints/csrf.py b/src/sentry/auth_v2/endpoints/csrf.py index ac5fa6312eb56d..90000b649da945 100644 --- a/src/sentry/auth_v2/endpoints/csrf.py +++ b/src/sentry/auth_v2/endpoints/csrf.py @@ -24,7 +24,7 @@ class CsrfTokenEndpoint(Endpoint): NOTE: This endpoint is not protected by the feature flag in AuthV2Endpoint! """ - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED publish_status = { "GET": ApiPublishStatus.EXPERIMENTAL, "PUT": ApiPublishStatus.EXPERIMENTAL, diff --git a/src/sentry/auth_v2/endpoints/feature_flag_view.py b/src/sentry/auth_v2/endpoints/feature_flag_view.py index 18ecd9ca343584..b26ad9783b65b2 100644 --- a/src/sentry/auth_v2/endpoints/feature_flag_view.py +++ b/src/sentry/auth_v2/endpoints/feature_flag_view.py @@ -12,7 +12,7 @@ @control_silo_endpoint class FeatureFlagView(AuthV2Endpoint): - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED publish_status = {"GET": ApiPublishStatus.EXPERIMENTAL} enforce_rate_limit = True rate_limits = RateLimitConfig( diff --git a/src/sentry/auth_v2/endpoints/user_login_view.py b/src/sentry/auth_v2/endpoints/user_login_view.py index f5745c4b7db5b4..75b4a330d0e7eb 100644 --- a/src/sentry/auth_v2/endpoints/user_login_view.py +++ b/src/sentry/auth_v2/endpoints/user_login_view.py @@ -10,7 +10,7 @@ @control_silo_endpoint class UserLoginView(AuthV2Endpoint): - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED publish_status = { "GET": ApiPublishStatus.PRIVATE, } diff --git a/src/sentry/core/endpoints/organization_auditlogs.py b/src/sentry/core/endpoints/organization_auditlogs.py index a051724a053e79..f2824b88c1fbf4 100644 --- a/src/sentry/core/endpoints/organization_auditlogs.py +++ b/src/sentry/core/endpoints/organization_auditlogs.py @@ -39,7 +39,7 @@ class OrganizationAuditLogsEndpoint(ControlSiloOrganizationEndpoint): publish_status = { "GET": ApiPublishStatus.EXPERIMENTAL, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (OrganizationAuditPermission,) def get( diff --git a/src/sentry/core/endpoints/organization_member_details.py b/src/sentry/core/endpoints/organization_member_details.py index 9114af28701d6f..88ca0bc78dcc6b 100644 --- a/src/sentry/core/endpoints/organization_member_details.py +++ b/src/sentry/core/endpoints/organization_member_details.py @@ -88,7 +88,7 @@ class OrganizationMemberDetailsEndpoint(OrganizationMemberEndpoint): "GET": ApiPublishStatus.PUBLIC, "PUT": ApiPublishStatus.PUBLIC, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (RelaxedMemberPermission,) def _get_member( diff --git a/src/sentry/core/endpoints/organization_member_index.py b/src/sentry/core/endpoints/organization_member_index.py index 412bded61dc3e3..065cdf89747a89 100644 --- a/src/sentry/core/endpoints/organization_member_index.py +++ b/src/sentry/core/endpoints/organization_member_index.py @@ -185,7 +185,7 @@ class OrganizationMemberIndexEndpoint(OrganizationEndpoint): ) permission_classes = (MemberAndStaffPermission,) - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED @extend_schema( operation_id="List an Organization's Members", diff --git a/src/sentry/core/endpoints/organization_member_invite/details.py b/src/sentry/core/endpoints/organization_member_invite/details.py index 93f6b31c6e9a7f..386d62b5d0c7b5 100644 --- a/src/sentry/core/endpoints/organization_member_invite/details.py +++ b/src/sentry/core/endpoints/organization_member_invite/details.py @@ -43,7 +43,7 @@ class OrganizationMemberInviteDetailsEndpoint(OrganizationEndpoint): "GET": ApiPublishStatus.EXPERIMENTAL, "PUT": ApiPublishStatus.EXPERIMENTAL, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (MemberInviteDetailsPermission,) def convert_args( diff --git a/src/sentry/core/endpoints/organization_member_invite/index.py b/src/sentry/core/endpoints/organization_member_invite/index.py index 999c77af08ec80..a30cc4c2335d76 100644 --- a/src/sentry/core/endpoints/organization_member_invite/index.py +++ b/src/sentry/core/endpoints/organization_member_invite/index.py @@ -114,7 +114,7 @@ class OrganizationMemberInviteIndexEndpoint(OrganizationEndpoint): "POST": ApiPublishStatus.EXPERIMENTAL, } permission_classes = (MemberInviteAndStaffPermission,) - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED def _invite_member(self, request, organization) -> Response: allowed_roles = get_allowed_org_roles(request, organization, creating_org_invite=True) diff --git a/src/sentry/core/endpoints/organization_member_invite/reinvite.py b/src/sentry/core/endpoints/organization_member_invite/reinvite.py index 21b02888622c55..c9dc8478d81e19 100644 --- a/src/sentry/core/endpoints/organization_member_invite/reinvite.py +++ b/src/sentry/core/endpoints/organization_member_invite/reinvite.py @@ -37,7 +37,7 @@ class OrganizationMemberReinviteEndpoint(OrganizationEndpoint): publish_status = { "PUT": ApiPublishStatus.EXPERIMENTAL, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (MemberReinvitePermission,) def convert_args( diff --git a/src/sentry/core/endpoints/organization_member_team_details.py b/src/sentry/core/endpoints/organization_member_team_details.py index a569d7f7cc575a..5dd013342c771d 100644 --- a/src/sentry/core/endpoints/organization_member_team_details.py +++ b/src/sentry/core/endpoints/organization_member_team_details.py @@ -153,7 +153,7 @@ def convert_args( "PUT": ApiPublishStatus.PUBLIC, "POST": ApiPublishStatus.PUBLIC, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (OrganizationTeamMemberPermission,) def _can_create_team_member(self, request: Request, team: Team) -> bool: diff --git a/src/sentry/core/endpoints/organization_projects_experiment.py b/src/sentry/core/endpoints/organization_projects_experiment.py index 44db7c491b67e8..bcf6d9181c279b 100644 --- a/src/sentry/core/endpoints/organization_projects_experiment.py +++ b/src/sentry/core/endpoints/organization_projects_experiment.py @@ -70,7 +70,7 @@ class OrganizationProjectsExperimentEndpoint(OrganizationEndpoint): } permission_classes = (OrgProjectPermission,) logger = logging.getLogger("team-project.create") - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED def should_add_creator_to_team(self, user: User | AnonymousUser) -> TypeIs[User]: return user.is_authenticated diff --git a/src/sentry/core/endpoints/organization_user_teams.py b/src/sentry/core/endpoints/organization_user_teams.py index 7360945182253a..1a83d6995c7e61 100644 --- a/src/sentry/core/endpoints/organization_user_teams.py +++ b/src/sentry/core/endpoints/organization_user_teams.py @@ -23,7 +23,7 @@ class OrganizationUserTeamsEndpoint(OrganizationEndpoint): publish_status = { "GET": ApiPublishStatus.PUBLIC, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED @extend_schema( operation_id="List a User's Teams for an Organization", diff --git a/src/sentry/core/endpoints/project_team_details.py b/src/sentry/core/endpoints/project_team_details.py index 3aa70a189db19b..ddd2bd9bbda9e9 100644 --- a/src/sentry/core/endpoints/project_team_details.py +++ b/src/sentry/core/endpoints/project_team_details.py @@ -32,7 +32,7 @@ class ProjectTeamDetailsEndpoint(ProjectEndpoint): "DELETE": ApiPublishStatus.PUBLIC, "POST": ApiPublishStatus.PUBLIC, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (ProjectTeamsPermission,) def convert_args( diff --git a/src/sentry/core/endpoints/project_teams.py b/src/sentry/core/endpoints/project_teams.py index 7f408ffa28d154..7cda570eade1bb 100644 --- a/src/sentry/core/endpoints/project_teams.py +++ b/src/sentry/core/endpoints/project_teams.py @@ -22,7 +22,7 @@ class ProjectTeamsEndpoint(ProjectEndpoint): publish_status = { "GET": ApiPublishStatus.PUBLIC, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED @extend_schema( operation_id="List a Project's Teams", diff --git a/src/sentry/core/endpoints/scim/utils.py b/src/sentry/core/endpoints/scim/utils.py index 39fe9936828830..9caf7167e078e1 100644 --- a/src/sentry/core/endpoints/scim/utils.py +++ b/src/sentry/core/endpoints/scim/utils.py @@ -142,7 +142,7 @@ class SCIMListBaseResponse(TypedDict): @extend_schema(tags=["SCIM"]) class SCIMEndpoint(OrganizationEndpoint): - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED content_negotiation_class = SCIMClientNegotiation cursor_name = "startIndex" diff --git a/src/sentry/core/endpoints/team_members.py b/src/sentry/core/endpoints/team_members.py index 901d7bfbddb937..8b0cab2b667599 100644 --- a/src/sentry/core/endpoints/team_members.py +++ b/src/sentry/core/endpoints/team_members.py @@ -65,7 +65,7 @@ class TeamMembersEndpoint(TeamEndpoint): publish_status = { "GET": ApiPublishStatus.PUBLIC, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED @extend_schema( operation_id="List a Team's Members", diff --git a/src/sentry/core/endpoints/team_projects.py b/src/sentry/core/endpoints/team_projects.py index ae2d9b8b254cc8..1947af68f779b4 100644 --- a/src/sentry/core/endpoints/team_projects.py +++ b/src/sentry/core/endpoints/team_projects.py @@ -138,7 +138,7 @@ class TeamProjectsEndpoint(TeamEndpoint): "POST": ApiPublishStatus.PUBLIC, } permission_classes = (TeamProjectPermission,) - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED @extend_schema( operation_id="List a Team's Projects", diff --git a/src/sentry/core/endpoints/team_stats.py b/src/sentry/core/endpoints/team_stats.py index f3505b24c19af0..7783e8ed3bc86b 100644 --- a/src/sentry/core/endpoints/team_stats.py +++ b/src/sentry/core/endpoints/team_stats.py @@ -18,7 +18,7 @@ class TeamStatsEndpoint(TeamEndpoint, StatsMixin): publish_status = { "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED def get(self, request: Request, team) -> Response: """ diff --git a/src/sentry/data_secrecy/api/waive_data_secrecy.py b/src/sentry/data_secrecy/api/waive_data_secrecy.py index c33ce0fcadf5ad..bdee0319c05730 100644 --- a/src/sentry/data_secrecy/api/waive_data_secrecy.py +++ b/src/sentry/data_secrecy/api/waive_data_secrecy.py @@ -53,7 +53,7 @@ class WaiveDataSecrecyEndpoint(ControlSiloOrganizationEndpoint): "POST": ApiPublishStatus.PRIVATE, "DELETE": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED def get( self, diff --git a/src/sentry/integrations/api/endpoints/external_team_details.py b/src/sentry/integrations/api/endpoints/external_team_details.py index 31d0614686b447..5fe5794793d6f9 100644 --- a/src/sentry/integrations/api/endpoints/external_team_details.py +++ b/src/sentry/integrations/api/endpoints/external_team_details.py @@ -32,7 +32,7 @@ class ExternalTeamDetailsEndpoint(TeamEndpoint, ExternalActorEndpointMixin): "DELETE": ApiPublishStatus.PUBLIC, "PUT": ApiPublishStatus.PUBLIC, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED def convert_args( self, diff --git a/src/sentry/integrations/api/endpoints/external_team_index.py b/src/sentry/integrations/api/endpoints/external_team_index.py index 80427a918feede..2dc33b952b548b 100644 --- a/src/sentry/integrations/api/endpoints/external_team_index.py +++ b/src/sentry/integrations/api/endpoints/external_team_index.py @@ -29,7 +29,7 @@ class ExternalTeamEndpoint(TeamEndpoint, ExternalActorEndpointMixin): publish_status = { "POST": ApiPublishStatus.PUBLIC, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED @extend_schema( operation_id="Create an External Team", diff --git a/src/sentry/integrations/api/endpoints/organization_integration_migrate_opsgenie.py b/src/sentry/integrations/api/endpoints/organization_integration_migrate_opsgenie.py index 16fe2cb91a5172..48c4615bddcc3b 100644 --- a/src/sentry/integrations/api/endpoints/organization_integration_migrate_opsgenie.py +++ b/src/sentry/integrations/api/endpoints/organization_integration_migrate_opsgenie.py @@ -19,7 +19,7 @@ class OrganizationIntegrationMigrateOpsgenieEndpoint(RegionOrganizationIntegrati publish_status = { "PUT": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED def put( self, diff --git a/src/sentry/integrations/api/endpoints/organization_integrations_index.py b/src/sentry/integrations/api/endpoints/organization_integrations_index.py index cd17e705d0bf51..56fb52bbbd95d8 100644 --- a/src/sentry/integrations/api/endpoints/organization_integrations_index.py +++ b/src/sentry/integrations/api/endpoints/organization_integrations_index.py @@ -58,7 +58,7 @@ def filter_by_features( @control_silo_endpoint @extend_schema(tags=["Integrations"]) class OrganizationIntegrationsEndpoint(OrganizationIntegrationBaseEndpoint): - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED publish_status = { "GET": ApiPublishStatus.PUBLIC, } diff --git a/src/sentry/integrations/github/installation.py b/src/sentry/integrations/github/installation.py index db02e6839ed718..95678ed2510a77 100644 --- a/src/sentry/integrations/github/installation.py +++ b/src/sentry/integrations/github/installation.py @@ -25,7 +25,7 @@ class GitHubIntegrationsInstallationEndpoint(Endpoint): publish_status = { "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (SentryIsAuthenticated,) diff --git a/src/sentry/sentry_apps/api/endpoints/sentry_app_rotate_secret.py b/src/sentry/sentry_apps/api/endpoints/sentry_app_rotate_secret.py index fc951688ffe5c1..c1dbdc122e6142 100644 --- a/src/sentry/sentry_apps/api/endpoints/sentry_app_rotate_secret.py +++ b/src/sentry/sentry_apps/api/endpoints/sentry_app_rotate_secret.py @@ -77,7 +77,7 @@ class SentryAppRotateSecretEndpoint(SentryAppBaseEndpoint): publish_status = { "POST": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (SentryAppRotateSecretPermission,) def post(self, request: Request, sentry_app: SentryApp) -> Response: diff --git a/src/sentry/users/api/endpoints/authenticator_index.py b/src/sentry/users/api/endpoints/authenticator_index.py index cb227d7ef6b94a..2c2de38897d6b0 100644 --- a/src/sentry/users/api/endpoints/authenticator_index.py +++ b/src/sentry/users/api/endpoints/authenticator_index.py @@ -16,7 +16,7 @@ class AuthenticatorIndexEndpoint(Endpoint): publish_status = { "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (IsAuthenticated,) def get(self, request: Request) -> Response: diff --git a/src/sentry/users/api/endpoints/user_authenticator_details.py b/src/sentry/users/api/endpoints/user_authenticator_details.py index 6f8fa9290226ea..64ca67ec3f41d8 100644 --- a/src/sentry/users/api/endpoints/user_authenticator_details.py +++ b/src/sentry/users/api/endpoints/user_authenticator_details.py @@ -30,7 +30,7 @@ class UserAuthenticatorDetailsEndpoint(UserEndpoint): "GET": ApiPublishStatus.PRIVATE, "PUT": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (OrganizationUserPermission,) def _get_device_for_rename( diff --git a/src/sentry/users/api/endpoints/user_authenticator_enroll.py b/src/sentry/users/api/endpoints/user_authenticator_enroll.py index b5ffe541b2df23..61826fac61dd7f 100644 --- a/src/sentry/users/api/endpoints/user_authenticator_enroll.py +++ b/src/sentry/users/api/endpoints/user_authenticator_enroll.py @@ -119,7 +119,7 @@ class UserAuthenticatorEnrollEndpoint(UserEndpoint): "GET": ApiPublishStatus.PRIVATE, "POST": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED @sudo_required def get(self, request: Request, user: User, interface_id: str) -> HttpResponse: diff --git a/src/sentry/users/api/endpoints/user_authenticator_index.py b/src/sentry/users/api/endpoints/user_authenticator_index.py index 0e254f38b138ed..7f66308f4c0cf1 100644 --- a/src/sentry/users/api/endpoints/user_authenticator_index.py +++ b/src/sentry/users/api/endpoints/user_authenticator_index.py @@ -16,7 +16,7 @@ class UserAuthenticatorIndexEndpoint(UserEndpoint): publish_status = { "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED def get(self, request: Request, user: User) -> Response: """Returns all interface for a user (un-enrolled ones), otherwise an empty array""" diff --git a/src/sentry/users/api/endpoints/user_permission_details.py b/src/sentry/users/api/endpoints/user_permission_details.py index beb55d042d718c..2f1682649be998 100644 --- a/src/sentry/users/api/endpoints/user_permission_details.py +++ b/src/sentry/users/api/endpoints/user_permission_details.py @@ -25,7 +25,7 @@ class UserPermissionDetailsEndpoint(UserEndpoint): "GET": ApiPublishStatus.PRIVATE, "POST": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED authentication_classes = (SessionAuthentication,) permission_classes = (SuperuserOrStaffFeatureFlaggedPermission,) diff --git a/src/sentry/users/api/endpoints/user_permissions.py b/src/sentry/users/api/endpoints/user_permissions.py index 7ed1142daf0c3b..c0a278f5379d2f 100644 --- a/src/sentry/users/api/endpoints/user_permissions.py +++ b/src/sentry/users/api/endpoints/user_permissions.py @@ -15,7 +15,7 @@ class UserPermissionsEndpoint(UserEndpoint): publish_status = { "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (SuperuserOrStaffFeatureFlaggedPermission,) def get(self, request: Request, user: User) -> Response: diff --git a/src/sentry/users/api/endpoints/user_permissions_config.py b/src/sentry/users/api/endpoints/user_permissions_config.py index e15190352671ee..1d38de1a0b5edc 100644 --- a/src/sentry/users/api/endpoints/user_permissions_config.py +++ b/src/sentry/users/api/endpoints/user_permissions_config.py @@ -15,7 +15,7 @@ class UserPermissionsConfigEndpoint(UserEndpoint): publish_status = { "GET": ApiPublishStatus.PRIVATE, } - owner = ApiOwner.ENTERPRISE + owner = ApiOwner.UNOWNED permission_classes = (SuperuserOrStaffFeatureFlaggedPermission,) def get(self, request: Request, user: User) -> Response: