@pmate/chat-sdk 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -93,6 +93,7 @@ export declare class ChatClient {
93
93
  addMembers?: string[];
94
94
  removeMembers?: string[];
95
95
  title?: string;
96
+ avatar?: string;
96
97
  }): Promise<ChatRuntimeMessage>;
97
98
  sendGroup(input: {
98
99
  groupId: string;
@@ -221,7 +221,7 @@ export class ChatClient {
221
221
  return this.sendChat(input.groupId, {
222
222
  kind: "group", threadKind: "group", action: "groupUpdate",
223
223
  payload: { appId: this.options.appId, groupId: input.groupId, expectedRevision: input.expectedRevision,
224
- addMembers: input.addMembers ?? [], removeMembers: input.removeMembers ?? [], ...(input.title !== undefined ? { title: input.title } : {}) },
224
+ addMembers: input.addMembers ?? [], removeMembers: input.removeMembers ?? [], ...(input.title !== undefined ? { title: input.title } : {}), ...(input.avatar !== undefined ? { avatar: input.avatar } : {}) },
225
225
  });
226
226
  }
227
227
  async sendGroup(input) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pmate/chat-sdk",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Cross-platform PMate chat input components, voice input primitives, and ASR helpers",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",