feat: add engine workflow access requests

This commit is contained in:
DCCONSTRUCTIONS
2026-05-23 14:10:22 +03:00
parent e2c70649c7
commit 179508f4c9
10 changed files with 1065 additions and 46 deletions
@@ -0,0 +1,22 @@
export type EngineWorkflowRole = "viewer" | "editor" | "admin";
export type EngineWorkflowAccessRequestStatus = "new" | "approved" | "rejected" | "cancelled";
export interface EngineWorkflowAccessRequest {
id: string;
workflowId: string;
workflowName: string;
targetUserId: string;
targetEmail: string;
targetName?: string | null;
role: EngineWorkflowRole;
requesterUserId?: string | null;
requesterEmail: string;
requesterName: string;
status: EngineWorkflowAccessRequestStatus;
reviewedByUserId?: string | null;
reviewedAt?: string | null;
engineAppliedAt?: string | null;
comment?: string | null;
createdAt: string;
updatedAt: string;
}