feat(api): add space roles with delegated member removal and structure management

This commit is contained in:
justme committed 2026-10-16 19:42:31 +08:00
1 parent 059a29a8d5
commit 1dd54243ae
12 files changed
+551 -19

No files matched your search

+27 -1
View File
@@ -1,5 +1,5 @@
// Generated from backend DTOs; do not edit.
// backend-contract-sha256: 22853abd6c1bf74053682018cd214fecb34c664e4abe043a15c1595566419350
// backend-contract-sha256: 2a28bf52c136caa7c0b86fc2630153cb71529e3c5d85c3b7196e9d9a04d63b75
export interface AccountChannelBody {
channel_id: string;
@@ -398,6 +398,30 @@ export interface WorkspaceMoveRequest {
export interface WorkspaceNameRequest {
name: string;
}
export interface WorkspaceRoleCreatedBody {
role: WorkspaceRole;
workspace: WorkspaceBody;
}
export interface WorkspaceRole {
color?: string | null;
createdAt: number;
id: string;
members: string[];
name: string;
permissions: string[];
prefix?: string | null;
suffix?: string | null;
}
export interface WorkspaceRoleMembersRequest {
members: string[];
}
export interface WorkspaceRoleRequest {
color?: string | null;
name: string;
permissions: string[];
prefix?: string | null;
suffix?: string | null;
}
export interface WorkspaceState {
channels: WorkspaceChannel[];
defaultChannelId?: string | null;
@@ -405,6 +429,8 @@ export interface WorkspaceState {
groups: WorkspaceGroup[];
locations: WorkspaceLocation[];
revision: number;
roles: WorkspaceRole[];
rolesSeeded: boolean;
}
export interface WorkspaceFolder {
id: string;