Add internal org chat (phase 1) with DM, groups, and org settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-29 10:34:01 +03:30
co-authored by Cursor
parent 589c763ef8
commit a1655432fc
21 changed files with 1912 additions and 8 deletions
+51
View File
@@ -0,0 +1,51 @@
import {
IsArray,
IsOptional,
IsString,
MaxLength,
MinLength,
ArrayMinSize,
ArrayMaxSize,
} from 'class-validator';
export class UpdateConversationSettingsDto {
@IsString()
@MinLength(3)
@MaxLength(200)
chatHost!: string;
@IsOptional()
@IsString()
@MinLength(8)
@MaxLength(500)
apiKey?: string;
@IsOptional()
@IsString()
@MaxLength(500)
uploadUrl?: string;
@IsOptional()
@IsString()
@MaxLength(500)
downloadUrl?: string;
}
export class CreateConversationDmDto {
@IsString()
@MinLength(1)
peerUserId!: string;
}
export class CreateConversationGroupDto {
@IsString()
@MinLength(2)
@MaxLength(120)
name!: string;
@IsArray()
@ArrayMinSize(1)
@ArrayMaxSize(50)
@IsString({ each: true })
memberUserIds!: string[];
}