Skip to content

Commit

Permalink
chore: add new permission actions (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
phamhieu authored Oct 2, 2024
1 parent 192f17c commit 5279185
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@supabase/shared-types",
"version": "0.1.71",
"version": "0.1.72",
"description": "Shared Types for Supabase",
"scripts": {
"lint": "eslint . --ext .ts,.tsx",
Expand Down
4 changes: 4 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export enum ServiceNames {
export const DEFAULT_REALTIME_SLOT_NAME_WITH_WALRUS = 'realtime_rls'

export enum PermissionAction {
ANALYTICS_ADMIN_READ = 'analytics:Admin:Read',
ANALYTICS_ADMIN_WRITE = 'analytics:Admin:Write',
ANALYTICS_READ = 'analytics:Read',
ANALYTICS_WRITE = 'analytics:Write',
AUTH_EXECUTE = 'auth:Execute',
Expand All @@ -29,6 +31,8 @@ export enum PermissionAction {
FUNCTIONS_WRITE = 'functions:Write',
INFRA_EXECUTE = 'infra:Execute',
READ = 'read:Read',
SECRETS_READ = 'secrets:Read',
SECRETS_WRTIE = 'secrets:Write',
SQL_SELECT = 'sql:Read:Select',
SQL_DELETE = 'sql:Write:Delete',
SQL_INSERT = 'sql:Write:Insert',
Expand Down

0 comments on commit 5279185

Please sign in to comment.