From 9fed968f8013a3cf180133ca2fed02c3cdd87e0f Mon Sep 17 00:00:00 2001 From: Arman Date: Sat, 26 Oct 2024 10:21:38 +0200 Subject: [PATCH] feat: add site scopes --- src/lib/constants.ts | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index d8fbfbb53..016e070a6 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -118,7 +118,9 @@ export const defaultScopes: string[] = [ 'topics.read', 'topics.write', 'billing.read', - 'billing.write' + 'billing.write', + 'sites:read', + 'sites:write' ]; export const defaultRoles: string[] = ['owner']; @@ -360,6 +362,18 @@ export const scopes: { description: 'Access to create migrations', category: 'Other', icon: 'globe' + }, + { + scope: 'sites:read', + description: "Access to read your project's sites and deployments", + category: 'Sites', + icon: 'globe' + }, + { + scope: 'sites:write', + description: "Access to create, update, and delete your project's sites and deployments", + category: 'Sites', + icon: 'globe' } ];