Skip to content

Commit

Permalink
permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelUnkey committed Sep 23, 2024
1 parent 1f81043 commit e622fff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ export const workspacePermissions = {
description: "Delete namespaces in this workspace.",
permission: "ratelimit.*.delete_namespace",
},
set_override: {
description: "Set a ratelimit override for an identifier.",
permission: "ratelimit.*.set_override",
},
read_override: {
description: "read ratelimit override for an identifier.",
permission: "ratelimit.*.read_override",
},
delete_override: {
description: "Delete ratelimit override for an identifier.",
permission: "ratelimit.*.delete_override",
},

},
Permissions: {
create_role: {
Expand Down
3 changes: 3 additions & 0 deletions packages/rbac/src/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export const ratelimitActions = z.enum([
"read_namespace",
"update_namespace",
"delete_namespace",
"set_override",
"read_override",
"delete_override"
]);

export const rbacActions = z.enum([
Expand Down

0 comments on commit e622fff

Please sign in to comment.