Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(sdk-js): say groups.list never returns participantsCount or isAdmin
Yudhi Armyndharis54c9888c361a
diff --git a/sdk/javascript/src/types.ts b/sdk/javascript/src/types.tsindex 9876a6922..362ef174e 100644--- a/sdk/javascript/src/types.ts+++ b/sdk/javascript/src/types.ts@@ -775,11 +775,13 @@ export interface GroupParticipant {isSuperAdmin: boolean;}-/** Item returned by `GET /sessions/:id/groups` (the slim list shape). */+/** Item returned by `GET /sessions/:id/groups` (the slim list shape), and the `groups.create` response. */export interface GroupSummary {id: Jid;name: string;+ /** Only in a `groups.create` response, never in `groups.list`; `groups.get` carries the participants. */participantsCount?: number;+ /** Only in a `groups.create` response, never in `groups.list`; `groups.get` carries each participant's role. */isAdmin?: boolean;/** JID of the parent community, or null if standalone. */linkedParentJID?: string | null;