Skip to content

Commit

Permalink
Add users and groups to statement DTO.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Dec 27, 2022
1 parent 4f40009 commit 797ab57
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This is the changelog for [Authress SDK](readme.md).
* Add new `Pagination` type which pagination `next.cursor` to enable paging through resources.
* Add `Extensions` api
* Upgraded node to 14
* Add support for users and groups at the statement level of access records.

## 1.2 ##
* Removed legacy support for RS512 service client tokens.
Expand Down
18 changes: 15 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ export interface AccessRecord {
*/
account?: AccountLink;
/**
* The list of users this record applies to
* The list of users this record applies to. Users can either be specified at the record level or at the statement level.
* @type {Array<User>}
* @memberof AccessRecord
*/
users: Array<User>;
users?: Array<User>;
/**
* The list of admin that can edit this record even if they do not have global record edit permissions. By default the creator of the record has admin access unless explicitly this property is set.
* @type {Array<User>}
* @memberof AccessRecord
*/
admins?: Array<User>;
/**
* The list of groups this record applies to. Users in these groups will be receive access to the resources listed.
* The list of groups this record applies to. Users in these groups will be receive access to the resources listed. Groups can either be specified at the record level or at the statement level.
* @type {Array<LinkedGroup>}
* @memberof AccessRecord
*/
Expand Down Expand Up @@ -895,6 +895,18 @@ export interface Statement {
* @memberof Statement
*/
resources: Array<Resource>;
/**
* The list of users this statement applies to
* @type {Array<User>}
* @memberof AccessRecord
*/
users?: Array<User>;
/**
* The list of groups this statement applies to. Users in these groups will be receive access to the resources listed.
* @type {Array<LinkedGroup>}
* @memberof AccessRecord
*/
groups?: Array<LinkedGroup>;
}

/**
Expand Down

0 comments on commit 797ab57

Please sign in to comment.