@@ -155,12 +155,15 @@ export const defaultRoles: string[] = ['owner'];
155155
156156// these are kept for backwards compatibility with keys and events that already exists.
157157// for the new ones, we use the new terminology.
158- export const scopes : {
158+ export type ScopeDefinition = {
159159 scope : string ;
160160 description : string ;
161161 category : string ;
162162 icon : string ;
163- } [ ] = [
163+ deprecated ?: boolean ;
164+ } ;
165+
166+ export const scopes : ScopeDefinition [ ] = [
164167 {
165168 scope : 'sessions.write' ,
166169 description : "Access to create, update and delete your project's sessions" ,
@@ -207,13 +210,15 @@ export const scopes: {
207210 scope : 'collections.read' ,
208211 description : "Access to read your project's database collections" ,
209212 category : 'Database' ,
210- icon : 'database'
213+ icon : 'database' ,
214+ deprecated : true
211215 } ,
212216 {
213217 scope : 'collections.write' ,
214218 description : "Access to create, update, and delete your project's database collections" ,
215219 category : 'Database' ,
216- icon : 'database'
220+ icon : 'database' ,
221+ deprecated : true
217222 } ,
218223 {
219224 scope : 'tables.read' ,
@@ -231,14 +236,16 @@ export const scopes: {
231236 scope : 'attributes.read' ,
232237 description : "Access to read your project's database collection's attributes" ,
233238 category : 'Database' ,
234- icon : 'database'
239+ icon : 'database' ,
240+ deprecated : true
235241 } ,
236242 {
237243 scope : 'attributes.write' ,
238244 description :
239245 "Access to create, update, and delete your project's database collection's attributes" ,
240246 category : 'Database' ,
241- icon : 'database'
247+ icon : 'database' ,
248+ deprecated : true
242249 } ,
243250 {
244251 scope : 'columns.read' ,
@@ -268,13 +275,15 @@ export const scopes: {
268275 scope : 'documents.read' ,
269276 description : "Access to read your project's database documents" ,
270277 category : 'Database' ,
271- icon : 'database'
278+ icon : 'database' ,
279+ deprecated : true
272280 } ,
273281 {
274282 scope : 'documents.write' ,
275283 description : "Access to create, update, and delete your project's database documents" ,
276284 category : 'Database' ,
277- icon : 'database'
285+ icon : 'database' ,
286+ deprecated : true
278287 } ,
279288 {
280289 scope : 'rows.read' ,
@@ -466,7 +475,7 @@ export const scopes: {
466475 }
467476] ;
468477
469- export const cloudOnlyBackupScopes = [
478+ export const cloudOnlyBackupScopes : ScopeDefinition [ ] = [
470479 {
471480 scope : 'policies.read' ,
472481 description : 'Access to read your database backup policies' ,
0 commit comments