update lại thư mục cấu trúc mới của server nodejs và python
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
import type { AttachmentSource } from "../models/index.js";
|
||||
export type CreateGroupResponse = {
|
||||
groupType: number;
|
||||
sucessMembers: string[];
|
||||
groupId: string;
|
||||
errorMembers: string[];
|
||||
error_data: Record<string, unknown>;
|
||||
};
|
||||
export type CreateGroupOptions = {
|
||||
/**
|
||||
* Group name
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* List of member IDs to add to the group
|
||||
*/
|
||||
members: string[];
|
||||
/**
|
||||
* Avatar source, can be a file path or an Attachment object
|
||||
*/
|
||||
avatarSource?: AttachmentSource;
|
||||
/**
|
||||
* Path to the avatar image file
|
||||
* @deprecated Use `avatarSource` instead
|
||||
*/
|
||||
avatarPath?: string;
|
||||
};
|
||||
export declare const createGroupFactory: (ctx: import("../context.js").ContextBase, api: import("../apis.js").API) => (options: CreateGroupOptions) => Promise<CreateGroupResponse>;
|
||||
Reference in New Issue
Block a user