Skip to content

Commit

Permalink
nip29: update GroupAdminPermission.
Browse files Browse the repository at this point in the history
  • Loading branch information
AsaiToshiya authored and fiatjaf committed Dec 17, 2024
1 parent 9c50b2c commit be74115
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nip29.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,21 @@ export type GroupAdmin = {
* Represents the permissions that a NIP29 group admin can have.
*/
export enum GroupAdminPermission {
/** @deprecated use PutUser instead */
AddUser = 'add-user',
EditMetadata = 'edit-metadata',
DeleteEvent = 'delete-event',
RemoveUser = 'remove-user',
/** @deprecated removed from NIP */
AddPermission = 'add-permission',
/** @deprecated removed from NIP */
RemovePermission = 'remove-permission',
/** @deprecated removed from NIP */
EditGroupStatus = 'edit-group-status',
PutUser = 'put-user',
CreateGroup = 'create-group',
DeleteGroup = 'delete-group',
CreateInvite = 'create-invite',
}

/**
Expand Down

0 comments on commit be74115

Please sign in to comment.