diff --git a/src/models/Team.ts b/src/models/Team.ts new file mode 100644 index 00000000..795c82d2 --- /dev/null +++ b/src/models/Team.ts @@ -0,0 +1,17 @@ +export interface Team { + icon: string | null; + id: string; + members: { + membership_state: number; + permissions: string[]; + team_id: string; + user_id: string; + }[]; + name: string; + owner_user_id: string; +} + +export enum TeamMemberState { + INVITED = 1, + ACCEPTED = 2, +}