Skip to content

Commit

Permalink
chore: add analytics permission and oauth scope (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
phamhieu authored Jul 1, 2024
1 parent 20af0d6 commit c4453d5
Show file tree
Hide file tree
Showing 3 changed files with 6 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.68",
"version": "0.1.69",
"description": "Shared Types for Supabase",
"scripts": {
"lint": "eslint . --ext .ts,.tsx",
Expand Down
3 changes: 3 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const DEFAULT_REALTIME_SLOT_NAME_WITH_WALRUS = 'realtime_rls'

export enum PermissionAction {
ANALYTICS_READ = 'analytics:Read',
ANALYTICS_WRITE = 'analytics:Write',
AUTH_EXECUTE = 'auth:Execute',
BILLING_READ = 'billing:Read',
BILLING_WRITE = 'billing:Write',
Expand Down Expand Up @@ -46,6 +47,8 @@ export enum PermissionAction {
}

export enum OAuthScope {
ANALYTICS_READ = 'analytics:Read',
ANALYTICS_WRITE = 'analytics:Write',
AUTH_READ = 'auth:read',
AUTH_WRITE = 'auth:write',
DATABASE_READ = 'database:read',
Expand Down

0 comments on commit c4453d5

Please sign in to comment.