Feat: Scoped JWT to organization, actorAuthMethod to create project DTO

This commit is contained in:
Daniel Hougaard
2024-03-12 14:26:14 +01:00
parent a9c1f278a1
commit 65776b7ab9

View File

@@ -1,7 +1,7 @@
import { ProjectMembershipRole, TProjectKeys } from "@app/db/schemas"; import { ProjectMembershipRole, TProjectKeys } from "@app/db/schemas";
import { TProjectPermission } from "@app/lib/types"; import { TProjectPermission } from "@app/lib/types";
import { ActorType } from "../auth/auth-type"; import { ActorAuthMethod, ActorType } from "../auth/auth-type";
export enum ProjectFilterType { export enum ProjectFilterType {
ID = "id", ID = "id",
@@ -21,6 +21,7 @@ export type Filter =
export type TCreateProjectDTO = { export type TCreateProjectDTO = {
actor: ActorType; actor: ActorType;
actorAuthMethod: ActorAuthMethod;
actorId: string; actorId: string;
actorOrgId?: string; actorOrgId?: string;
orgSlug: string; orgSlug: string;