1 export enum GROUP_MEMBER_STATE {
9 export enum GROUP_MEMBER_TYPE {
12 INTERNAL_TYPE_EXTERNAL = 2,
15 export enum GROUP_MEMBER_PERMISSIONS {
17 SEND = 1 << 0, // 0001
18 LEAVE = 1 << 1, // 0010
21 export enum GROUP_MEMBERSHIP_STATUS {
23 UNANSWERED = 'unanswered',
26 export interface GroupMemberAddressPendingKey {
27 PrivateKey: string; // armored key
28 ActivationToken: string; // armored
31 export interface GroupMember {
33 Type: GROUP_MEMBER_TYPE;
35 // the backend is currently returning Id but it should use ID
36 // TODO(plavarin): 2024-07-23, remove when fixed
39 State: GROUP_MEMBER_STATE;
40 Permissions: GROUP_MEMBER_PERMISSIONS;
41 GroupMemberAddressPendingKey?: GroupMemberAddressPendingKey;
42 GroupId?: string; // here until BE change is merged, should prefer GroupID
46 // really just a special group member
47 export interface GroupMembership {
51 Keys: GroupMemberAddressPendingKey;
57 export interface GroupMembershipReturn {
63 ForwardingKeys: GroupMemberAddressPendingKey;