Files
speckle-server/packages/server/modules/core/scopes.ts
T
Daniel Gak Anagrov 3ca4a11ca3 feat(notifications): basic listener structure, notification record, delayed mechanism (#5432)
* feat: basic notification listener sturcuture

* feat: clean up generated gql

* chore: edited structure

* feat: added basic repo

* feat: ported comment email to job queue

* feat: ported stream access request accepted

* feat: added notification insertion

* fix: minor typings

* feat: delayed notifications

* updated types

* feat: fixed gql

* notifications are listed

* index on notifications

* feat: while loop skiping for update locked

* delayed notification for access request

* take into account user prefrences

* on comment view, notification is marked as read

* feat: added gql notifications

* feat: avoid raising errors

* fix: error added scopes

* fix: mr comments

* fix: cursor and service method

* feat: added stronger types to notifications and versioning logic

* minor: rows updated
2025-10-06 12:19:12 +01:00

74 lines
1.7 KiB
TypeScript

import { Scopes } from '@/modules/core/helpers/mainConstants'
export default [
{
name: Scopes.Streams.Read,
description:
'Read your streams, and any associated information (branches, commits, objects).',
public: true
},
{
name: Scopes.Streams.Write,
description:
'Create streams on your behalf, and any associated data (branches, commits, objects).',
public: true
},
{
name: Scopes.Profile.Read,
description: 'Read your profile information.',
public: true
},
{
name: Scopes.Profile.Email,
description: 'Read the email address you registered with.',
public: true
},
{
name: Scopes.Profile.Delete,
description: 'Delete the account with all associated data.',
public: false
},
{
name: Scopes.Users.Read,
description: "Read other users' profiles.",
public: true
},
{
name: Scopes.Notifications.Read,
description: 'Required to see your notifications.',
public: true
},
{
name: Scopes.Notifications.Write,
description: 'Required to update your notifications.',
public: true
},
{
name: Scopes.Server.Stats,
description:
'Request server stats from the API. Only works in conjunction with a "server:admin" role.',
public: true
},
{
name: Scopes.Users.Email,
description: 'Access the emails of other users.',
public: false
},
{
name: Scopes.Server.Setup,
description:
'Edit server information. Note: Only server admins will be able to use this token.',
public: false
},
{
name: Scopes.Tokens.Read,
description: 'Access API tokens.',
public: false
},
{
name: Scopes.Tokens.Write,
description: 'Create and delete API tokens.',
public: false
}
]