CreateChannelArgs
type CreateChannelArgs = {
color?: number | null;
defaultGroups?: string[] | null;
defaultRecipients?: number[] | null;
description?: string | null;
icon?: number | null;
id?: string;
isFavorited?: boolean | null;
name: string;
public?: boolean | null;
userIds?: number[] | null;
workspaceId: number;
};
Create-side requests require an id on the wire. The SDK clients accept
id as optional and auto-generate one via
import('../utils/uuidv7').generateId when the caller doesn't pass
one — callers can still mint their own ID locally (e.g. for optimistic
UI) and have it stick.