@typexim/web-sdk 0.0.5-alpha.2 → 0.0.5-alpha.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.
@@ -1,4 +1,4 @@
1
- import { ChatType, FeedType, MessageKind, MessageOperation, MessageType } from '../enums';
1
+ import { Bool, ChatType, FeedType, MessageKind, MessageOperation, MessageType } from '../enums';
2
2
  export type ApiResponse<T = any> = {
3
3
  code: number;
4
4
  data: T;
@@ -134,6 +134,45 @@ export type Feed = {
134
134
  * 最后一条消息的操作人id
135
135
  */
136
136
  last_message_operation_user_id: string;
137
+ show_real?: Bool;
138
+ chat: {
139
+ id: string;
140
+ init_user_id: string;
141
+ chat_type: ChatType;
142
+ max_position: number;
143
+ status: number;
144
+ e2e: Bool;
145
+ updated_at: string;
146
+ created_at: string;
147
+ deleted_at: string;
148
+ ext: any;
149
+ };
150
+ group_chat?: {
151
+ id: string;
152
+ chat_id: string;
153
+ name: string;
154
+ avatar: string;
155
+ notice: string;
156
+ admin_user: Array<{
157
+ id: string;
158
+ set_by_user_id: string;
159
+ set_by_user_name: string;
160
+ }>;
161
+ owner_user_id: string;
162
+ desc?: string;
163
+ chat_member_count: number;
164
+ /** 邀请链接权限 0: 未开启;1: 开启 */
165
+ destruction_time?: number;
166
+ my_tags?: Array<{
167
+ id: string;
168
+ name: string;
169
+ }>;
170
+ invite_code: string;
171
+ show_real?: number;
172
+ invite_code_expire_time?: number;
173
+ invite_code_user_limit?: number;
174
+ show_avatar?: Bool;
175
+ };
137
176
  };
138
177
  export type ReactionUser = Pick<Chatter, 'avatar' | 'name' | 'user_id'>;
139
178
  export type Reaction = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typexim/web-sdk",
3
- "version": "0.0.5-alpha.2",
3
+ "version": "0.0.5-alpha.3",
4
4
  "private": false,
5
5
  "repository": "git@github.com:secure-typex/typex-web-sdk.git",
6
6
  "license": "MIT",