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

This commit is contained in:
Daniel Hougaard
2024-03-17 18:49:29 +01:00
parent 900facdb36
commit a9c1f278a1
+5
View File
@@ -8,6 +8,7 @@ export type TUpdateOrgMembershipDTO = {
membershipId: string; membershipId: string;
role: string; role: string;
actorOrgId?: string; actorOrgId?: string;
actorAuthMethod: ActorAuthMethod;
}; };
export type TDeleteOrgMembershipDTO = { export type TDeleteOrgMembershipDTO = {
@@ -15,12 +16,14 @@ export type TDeleteOrgMembershipDTO = {
orgId: string; orgId: string;
membershipId: string; membershipId: string;
actorOrgId?: string; actorOrgId?: string;
actorAuthMethod: ActorAuthMethod;
}; };
export type TInviteUserToOrgDTO = { export type TInviteUserToOrgDTO = {
userId: string; userId: string;
orgId: string; orgId: string;
actorOrgId?: string; actorOrgId?: string;
actorAuthMethod: ActorAuthMethod;
inviteeEmail: string; inviteeEmail: string;
}; };
@@ -35,6 +38,7 @@ export type TFindOrgMembersByEmailDTO = {
actorAuthMethod: ActorAuthMethod; actorAuthMethod: ActorAuthMethod;
actorOrgId: string | undefined; actorOrgId: string | undefined;
actorId: string; actorId: string;
actorAuthMethod: ActorAuthMethod;
orgId: string; orgId: string;
emails: string[]; emails: string[];
}; };
@@ -43,6 +47,7 @@ export type TFindAllWorkspacesDTO = {
actor: ActorType; actor: ActorType;
actorId: string; actorId: string;
actorOrgId?: string; actorOrgId?: string;
actorAuthMethod: ActorAuthMethod;
orgId: string; orgId: string;
}; };