feat(api): Add Lysand roles to user accounts

This commit is contained in:
Jesse Wierzbinski 2024-06-11 14:29:59 -10:00
parent 4f2c98390c
commit efe202ea27
No known key found for this signature in database
6 changed files with 76 additions and 1 deletions

View file

@ -44,4 +44,21 @@ Single Sign-On (SSO) settings for the instance. This object contains two fields:
## `/api/v2/instance`
Contains the same extensions as `/api/v1/instance`, except `banner` which uses the normal Mastodon API attribute.
Contains the same extensions as `/api/v1/instance`, except `banner` which uses the normal Mastodon API attribute.
## `Account`
(`/api/v1/accounts/:id`, `/api/v1/accounts/verify_credentials`, ...)
An extra attribute has been adding to all returned account objects:
```ts
{
// ...
roles: LysandRoles[];
}
```
### `roles`
An array of roles from [Lysand Roles](./roles.md).