Feat: Scoped JWT to organization, add actorAuthMethod to DTO's

This commit is contained in:
Daniel Hougaard
2024-03-12 14:25:59 +01:00
parent 900facdb36
commit a9c1f278a1

View File

@@ -8,6 +8,7 @@ export type TUpdateOrgMembershipDTO = {
membershipId: string;
role: string;
actorOrgId?: string;
actorAuthMethod: ActorAuthMethod;
};
export type TDeleteOrgMembershipDTO = {
@@ -15,12 +16,14 @@ export type TDeleteOrgMembershipDTO = {
orgId: string;
membershipId: string;
actorOrgId?: string;
actorAuthMethod: ActorAuthMethod;
};
export type TInviteUserToOrgDTO = {
userId: string;
orgId: string;
actorOrgId?: string;
actorAuthMethod: ActorAuthMethod;
inviteeEmail: string;
};
@@ -35,6 +38,7 @@ export type TFindOrgMembersByEmailDTO = {
actorAuthMethod: ActorAuthMethod;
actorOrgId: string | undefined;
actorId: string;
actorAuthMethod: ActorAuthMethod;
orgId: string;
emails: string[];
};
@@ -43,6 +47,7 @@ export type TFindAllWorkspacesDTO = {
actor: ActorType;
actorId: string;
actorOrgId?: string;
actorAuthMethod: ActorAuthMethod;
orgId: string;
};