File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ var (
118118 PermissionEnterprisePortalSubscription ,
119119 PermissionEnterprisePortalSubscriptionPermission ,
120120 PermissionEnterprisePortalCodyAccess ,
121+ PermissionEnterprisePortalMetering ,
121122 }
122123 workspacesPermissions = []Permission {
123124 "workspace" ,
@@ -152,6 +153,10 @@ const (
152153 // PermissionEnterprisePortalCodyAccess designates permissions for Enterprise
153154 // Cody Access for managed Cody features.
154155 PermissionEnterprisePortalCodyAccess Permission = "codyaccess"
156+
157+ // PermissionEnterprisePortalMetering designates permissions for Deep Search
158+ // quota management and metering functionality.
159+ PermissionEnterprisePortalMetering Permission = "metering"
155160)
156161
157162// Allowed returns all allowed scopes for a client. The caller should use
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ func TestAllowedGoldenList(t *testing.T) {
7575 Scope ("enterprise_portal::codyaccess::read" ),
7676 Scope ("enterprise_portal::codyaccess::write" ),
7777 Scope ("enterprise_portal::codyaccess::delete" ),
78+ Scope ("enterprise_portal::metering::read" ),
79+ Scope ("enterprise_portal::metering::write" ),
80+ Scope ("enterprise_portal::metering::delete" ),
7881 Scope ("mail_gatekeeper::emails::read" ),
7982 Scope ("mail_gatekeeper::emails::write" ),
8083 Scope ("mail_gatekeeper::emails::delete" ),
You can’t perform that action at this time.
0 commit comments