mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(api): ✨ Add Lysand roles to user accounts
This commit is contained in:
parent
4f2c98390c
commit
efe202ea27
6 changed files with 76 additions and 1 deletions
|
|
@ -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).
|
||||
Loading…
Add table
Add a link
Reference in a new issue