@imam-inter/wasm-client-sdk 3.8.4-patch-group.18 → 3.8.4-patch-grup.20

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,11 +1,11 @@
1
1
  import { MessageEntity, OfflinePush, PicBaseInfo, AtUsersInfoItem, MessageItem, SelfUserInfo, RtcInvite, GroupItem } from './entity';
2
2
  import { AllowType, GroupJoinSource, GroupVerificationType, MessageType, MessageReceiveOptType, GroupMemberRole, GroupMemberFilter, LogLevel, GroupMessageReaderFilter, GroupAtType, ViewType } from './enum';
3
- export declare type WasmPathConfig = {
3
+ export type WasmPathConfig = {
4
4
  coreWasmPath?: string;
5
5
  sqlWasmPath?: string;
6
6
  debug?: boolean;
7
7
  };
8
- export declare type InitConfig = {
8
+ export type InitConfig = {
9
9
  platformID: number;
10
10
  apiAddr: string;
11
11
  wsAddr: string;
@@ -18,11 +18,11 @@ export declare type InitConfig = {
18
18
  metricsPushIntervalSec?: number;
19
19
  slowCallbackThresholdMs?: number;
20
20
  };
21
- export declare type LoginConfig = {
21
+ export type LoginConfig = {
22
22
  userID: string;
23
23
  token: string;
24
24
  };
25
- export declare type InitAndLoginConfig = {
25
+ export type InitAndLoginConfig = {
26
26
  userID: string;
27
27
  token: string;
28
28
  platformID: number;
@@ -37,65 +37,65 @@ export declare type InitAndLoginConfig = {
37
37
  metricsPushIntervalSec?: number;
38
38
  slowCallbackThresholdMs?: number;
39
39
  };
40
- export declare type GetOneConversationParams = {
40
+ export type GetOneConversationParams = {
41
41
  sourceID: string;
42
42
  sessionType: number;
43
43
  };
44
- export declare type GetAdvancedHistoryMsgParams = {
44
+ export type GetAdvancedHistoryMsgParams = {
45
45
  count: number;
46
46
  viewType: ViewType;
47
47
  startClientMsgID: string;
48
48
  conversationID: string;
49
49
  };
50
- export declare type FetchSurroundingParams = {
50
+ export type FetchSurroundingParams = {
51
51
  startMessage: MessageItem;
52
52
  viewType: ViewType;
53
53
  before: number;
54
54
  after: number;
55
55
  };
56
- export declare type GetHistoryMsgParams = {
56
+ export type GetHistoryMsgParams = {
57
57
  userID: string;
58
58
  groupID: string;
59
59
  count: number;
60
60
  startClientMsgID: string;
61
61
  conversationID?: string;
62
62
  };
63
- export declare type SendGroupReadReceiptParams = {
63
+ export type SendGroupReadReceiptParams = {
64
64
  conversationID: string;
65
65
  clientMsgIDList: string[];
66
66
  };
67
- export declare type GetGroupMessageReaderParams = {
67
+ export type GetGroupMessageReaderParams = {
68
68
  conversationID: string;
69
69
  clientMsgID: string;
70
70
  filter: GroupMessageReaderFilter;
71
71
  offset: number;
72
72
  count: number;
73
73
  };
74
- export declare type GetGroupMemberParams = {
74
+ export type GetGroupMemberParams = {
75
75
  groupID: string;
76
76
  filter: GroupMemberFilter;
77
77
  offset: number;
78
78
  count: number;
79
79
  };
80
- export declare type SendMsgParams = {
80
+ export type SendMsgParams = {
81
81
  recvID: string;
82
82
  groupID: string;
83
83
  offlinePushInfo?: OfflinePush;
84
84
  message: MessageItem;
85
85
  isOnlineOnly?: boolean;
86
86
  };
87
- export declare type SetMessageLocalExParams = {
87
+ export type SetMessageLocalExParams = {
88
88
  conversationID: string;
89
89
  clientMsgID: string;
90
90
  localEx: string;
91
91
  };
92
- export declare type ImageMsgParamsByURL = {
92
+ export type ImageMsgParamsByURL = {
93
93
  sourcePicture: PicBaseInfo;
94
94
  bigPicture: PicBaseInfo;
95
95
  snapshotPicture: PicBaseInfo;
96
96
  sourcePath: string;
97
97
  };
98
- export declare type VideoMsgParamsByURL = {
98
+ export type VideoMsgParamsByURL = {
99
99
  videoPath: string;
100
100
  duration: number;
101
101
  videoType: string;
@@ -110,31 +110,31 @@ export declare type VideoMsgParamsByURL = {
110
110
  snapshotHeight: number;
111
111
  snapShotType?: string;
112
112
  };
113
- export declare type VideoMsgParamsByFullPath = {
113
+ export type VideoMsgParamsByFullPath = {
114
114
  videoFullPath: string;
115
115
  videoType: string;
116
116
  duration: number;
117
117
  snapshotFullPath: string;
118
118
  };
119
- export declare type CustomMsgParams = {
119
+ export type CustomMsgParams = {
120
120
  data: string;
121
121
  extension: string;
122
122
  description: string;
123
123
  };
124
- export declare type QuoteMsgParams = {
124
+ export type QuoteMsgParams = {
125
125
  text: string;
126
126
  message: string;
127
127
  };
128
- export declare type AdvancedQuoteMsgParams = {
128
+ export type AdvancedQuoteMsgParams = {
129
129
  text: string;
130
130
  message: MessageItem;
131
131
  messageEntityList?: MessageEntity[];
132
132
  };
133
- export declare type AdvancedMsgParams = {
133
+ export type AdvancedMsgParams = {
134
134
  text: string;
135
135
  messageEntityList?: MessageEntity[];
136
136
  };
137
- export declare type SetConversationParams = {
137
+ export type SetConversationParams = {
138
138
  conversationID: string;
139
139
  recvMsgOpt?: MessageReceiveOptType;
140
140
  groupAtType?: GroupAtType;
@@ -145,71 +145,71 @@ export declare type SetConversationParams = {
145
145
  isMsgDestruct?: boolean;
146
146
  ex?: string;
147
147
  };
148
- export declare type SetConversationPrivateStateParams = {
148
+ export type SetConversationPrivateStateParams = {
149
149
  conversationID: string;
150
150
  isPrivate: boolean;
151
151
  };
152
- export declare type SplitConversationParams = {
152
+ export type SplitConversationParams = {
153
153
  offset: number;
154
154
  count: number;
155
155
  };
156
- export declare type SetConversationDraftParams = {
156
+ export type SetConversationDraftParams = {
157
157
  conversationID: string;
158
158
  draftText: string;
159
159
  };
160
- export declare type SetConversationPinParams = {
160
+ export type SetConversationPinParams = {
161
161
  conversationID: string;
162
162
  isPinned: boolean;
163
163
  };
164
- export declare type JoinGroupParams = {
164
+ export type JoinGroupParams = {
165
165
  groupID: string;
166
166
  reqMsg: string;
167
167
  joinSource: GroupJoinSource;
168
168
  ex?: string;
169
169
  };
170
- export declare type SearchGroupParams = {
170
+ export type SearchGroupParams = {
171
171
  keywordList: string[];
172
172
  isSearchGroupID: boolean;
173
173
  isSearchGroupName: boolean;
174
174
  };
175
- export declare type ChangeGroupMuteParams = {
175
+ export type ChangeGroupMuteParams = {
176
176
  groupID: string;
177
177
  isMute: boolean;
178
178
  };
179
- export declare type ChangeGroupMemberMuteParams = {
179
+ export type ChangeGroupMemberMuteParams = {
180
180
  groupID: string;
181
181
  userID: string;
182
182
  mutedSeconds: number;
183
183
  };
184
- export declare type TransferGroupParams = {
184
+ export type TransferGroupParams = {
185
185
  groupID: string;
186
186
  newOwnerUserID: string;
187
187
  };
188
- export declare type AccessGroupApplicationParams = {
188
+ export type AccessGroupApplicationParams = {
189
189
  groupID: string;
190
190
  fromUserID: string;
191
191
  handleMsg: string;
192
192
  };
193
- export declare type SetGroupRoleParams = {
193
+ export type SetGroupRoleParams = {
194
194
  groupID: string;
195
195
  userID: string;
196
196
  roleLevel: GroupMemberRole;
197
197
  };
198
- export declare type SetGroupVerificationParams = {
198
+ export type SetGroupVerificationParams = {
199
199
  verification: GroupVerificationType;
200
200
  groupID: string;
201
201
  };
202
- export declare type SetBurnDurationParams = {
202
+ export type SetBurnDurationParams = {
203
203
  conversationID: string;
204
204
  burnDuration: number;
205
205
  };
206
- export declare type AtMsgParams = {
206
+ export type AtMsgParams = {
207
207
  text: string;
208
208
  atUserIDList: string[];
209
209
  atUsersInfo?: AtUsersInfoItem[];
210
210
  message?: MessageItem;
211
211
  };
212
- export declare type SoundMsgParamsByURL = {
212
+ export type SoundMsgParamsByURL = {
213
213
  uuid: string;
214
214
  soundPath: string;
215
215
  sourceUrl: string;
@@ -217,7 +217,7 @@ export declare type SoundMsgParamsByURL = {
217
217
  duration: number;
218
218
  soundType?: string;
219
219
  };
220
- export declare type FileMsgParamsByURL = {
220
+ export type FileMsgParamsByURL = {
221
221
  filePath: string;
222
222
  fileName: string;
223
223
  uuid: string;
@@ -225,63 +225,63 @@ export declare type FileMsgParamsByURL = {
225
225
  fileSize: number;
226
226
  fileType?: string;
227
227
  };
228
- export declare type FileMsgParamsByFullPath = {
228
+ export type FileMsgParamsByFullPath = {
229
229
  fileFullPath: string;
230
230
  fileName: string;
231
231
  };
232
- export declare type SoundMsgParamsByFullPath = {
232
+ export type SoundMsgParamsByFullPath = {
233
233
  soundPath: string;
234
234
  duration: number;
235
235
  };
236
- export declare type MergerMsgParams = {
236
+ export type MergerMsgParams = {
237
237
  messageList: MessageItem[];
238
238
  title: string;
239
239
  summaryList: string[];
240
240
  };
241
- export declare type FaceMessageParams = {
241
+ export type FaceMessageParams = {
242
242
  index: number;
243
243
  data: string;
244
244
  };
245
- export declare type LocationMsgParams = {
245
+ export type LocationMsgParams = {
246
246
  description: string;
247
247
  longitude: number;
248
248
  latitude: number;
249
249
  };
250
- export declare type InsertSingleMsgParams = {
250
+ export type InsertSingleMsgParams = {
251
251
  message: MessageItem;
252
252
  recvID: string;
253
253
  sendID: string;
254
254
  };
255
- export declare type InsertGroupMsgParams = {
255
+ export type InsertGroupMsgParams = {
256
256
  message: MessageItem;
257
257
  groupID: string;
258
258
  sendID: string;
259
259
  };
260
- export declare type AccessMessageParams = {
260
+ export type AccessMessageParams = {
261
261
  conversationID: string;
262
262
  clientMsgID: string;
263
263
  };
264
- export declare type TypingUpdateParams = {
264
+ export type TypingUpdateParams = {
265
265
  recvID: string;
266
266
  msgTip: string;
267
267
  };
268
- export declare type ChangeInputStatesParams = {
268
+ export type ChangeInputStatesParams = {
269
269
  conversationID: string;
270
270
  focus: boolean;
271
271
  };
272
- export declare type GetInputstatesParams = {
272
+ export type GetInputstatesParams = {
273
273
  conversationID: string;
274
274
  userID: string;
275
275
  };
276
- export declare type SetConversationExParams = {
276
+ export type SetConversationExParams = {
277
277
  conversationID: string;
278
278
  ex: string;
279
279
  };
280
- export declare type SetConversationRecvOptParams = {
280
+ export type SetConversationRecvOptParams = {
281
281
  conversationID: string;
282
282
  opt: MessageReceiveOptType;
283
283
  };
284
- export declare type SearchLocalParams = {
284
+ export type SearchLocalParams = {
285
285
  conversationID: string;
286
286
  keywordList: string[];
287
287
  keywordListMatchType?: number;
@@ -292,52 +292,52 @@ export declare type SearchLocalParams = {
292
292
  pageIndex?: number;
293
293
  count?: number;
294
294
  };
295
- export declare type AddFriendParams = {
295
+ export type AddFriendParams = {
296
296
  toUserID: string;
297
297
  reqMsg: string;
298
298
  };
299
- export declare type SearchFriendParams = {
299
+ export type SearchFriendParams = {
300
300
  keywordList: string[];
301
301
  isSearchUserID: boolean;
302
302
  isSearchNickname: boolean;
303
303
  isSearchRemark: boolean;
304
304
  };
305
- export declare type GetSpecifiedFriendsParams = {
305
+ export type GetSpecifiedFriendsParams = {
306
306
  friendUserIDList: string[];
307
307
  filterBlack?: boolean;
308
308
  };
309
- export declare type UpdateFriendsParams = {
309
+ export type UpdateFriendsParams = {
310
310
  friendUserIDs: string[];
311
311
  isPinned?: boolean;
312
312
  remark?: string;
313
313
  ex?: string;
314
314
  };
315
- export declare type RemarkFriendParams = {
315
+ export type RemarkFriendParams = {
316
316
  toUserID: string;
317
317
  remark: string;
318
318
  };
319
- export declare type PinFriendParams = {
319
+ export type PinFriendParams = {
320
320
  toUserIDs: string[];
321
321
  isPinned: boolean;
322
322
  };
323
- export declare type SetFriendExParams = {
323
+ export type SetFriendExParams = {
324
324
  toUserIDs: string[];
325
325
  ex: string;
326
326
  };
327
- export declare type AccessFriendApplicationParams = {
327
+ export type AccessFriendApplicationParams = {
328
328
  toUserID: string;
329
329
  handleMsg: string;
330
330
  };
331
- export declare type AddBlackParams = {
331
+ export type AddBlackParams = {
332
332
  toUserID: string;
333
333
  ex?: string;
334
334
  };
335
- export declare type AccessToGroupParams = {
335
+ export type AccessToGroupParams = {
336
336
  groupID: string;
337
337
  reason: string;
338
338
  userIDList: string[];
339
339
  };
340
- export declare type GetGroupMemberByTimeParams = {
340
+ export type GetGroupMemberByTimeParams = {
341
341
  groupID: string;
342
342
  filterUserIDList: string[];
343
343
  offset: number;
@@ -345,7 +345,7 @@ export declare type GetGroupMemberByTimeParams = {
345
345
  joinTimeBegin: number;
346
346
  joinTimeEnd: number;
347
347
  };
348
- export declare type SearchGroupMemberParams = {
348
+ export type SearchGroupMemberParams = {
349
349
  groupID: string;
350
350
  keywordList: string[];
351
351
  isSearchUserID: boolean;
@@ -353,26 +353,26 @@ export declare type SearchGroupMemberParams = {
353
353
  offset: number;
354
354
  count: number;
355
355
  };
356
- export declare type SetMemberPermissionParams = {
356
+ export type SetMemberPermissionParams = {
357
357
  rule: AllowType;
358
358
  groupID: string;
359
359
  };
360
- export declare type OffsetParams = {
360
+ export type OffsetParams = {
361
361
  offset: number;
362
362
  count: number;
363
363
  };
364
- export declare type CreateGroupParams = {
364
+ export type CreateGroupParams = {
365
365
  memberUserIDs: string[];
366
366
  groupInfo: Partial<GroupItem>;
367
367
  adminUserIDs?: string[];
368
368
  ownerUserID?: string;
369
369
  };
370
- export declare type SetGroupMemberNickParams = {
370
+ export type SetGroupMemberNickParams = {
371
371
  groupID: string;
372
372
  userID: string;
373
373
  groupMemberNickname: string;
374
374
  };
375
- export declare type UpdateMemberInfoParams = {
375
+ export type UpdateMemberInfoParams = {
376
376
  groupID: string;
377
377
  userID: string;
378
378
  nickname?: string;
@@ -380,11 +380,11 @@ export declare type UpdateMemberInfoParams = {
380
380
  roleLevel?: GroupMemberRole;
381
381
  ex?: string;
382
382
  };
383
- export declare type FindMessageParams = {
383
+ export type FindMessageParams = {
384
384
  conversationID: string;
385
385
  clientMsgIDList: string[];
386
386
  };
387
- export declare type UploadFileParams = {
387
+ export type UploadFileParams = {
388
388
  name: string;
389
389
  contentType: string;
390
390
  uuid: string;
@@ -392,24 +392,24 @@ export declare type UploadFileParams = {
392
392
  filepath?: string;
393
393
  cause?: string;
394
394
  };
395
- export declare type PartialUserItem = Partial<SelfUserInfo>;
396
- export declare type SignalingInviteParams = {
395
+ export type PartialUserItem = Partial<SelfUserInfo>;
396
+ export type SignalingInviteParams = {
397
397
  invitation: RtcInvite;
398
398
  offlinePushInfo?: OfflinePush;
399
399
  };
400
- export declare type RtcActionParams = {
400
+ export type RtcActionParams = {
401
401
  opUserID: string;
402
402
  invitation: RtcInvite;
403
403
  };
404
- export declare type CustomSignalParams = {
404
+ export type CustomSignalParams = {
405
405
  roomID: string;
406
406
  customInfo: string;
407
407
  };
408
- export declare type SetConversationMsgDestructParams = {
408
+ export type SetConversationMsgDestructParams = {
409
409
  conversationID: string;
410
410
  isMsgDestruct: boolean;
411
411
  };
412
- export declare type SetConversationMsgDestructTimeParams = {
412
+ export type SetConversationMsgDestructTimeParams = {
413
413
  conversationID: string;
414
414
  msgDestructTime: number;
415
415
  };
@@ -1,7 +1,7 @@
1
1
  import { WSEvent } from '../types/entity';
2
2
  import { CbEvents } from '../constant';
3
3
  import { DataOfEvent } from '../types/eventData';
4
- declare type Cbfn<E extends CbEvents> = (data: WSEvent<DataOfEvent<E>>) => void;
4
+ type Cbfn<E extends CbEvents> = (data: WSEvent<DataOfEvent<E>>) => void;
5
5
  declare class Emitter {
6
6
  private events;
7
7
  constructor();
@@ -1,3 +1,3 @@
1
- export declare type KeyType = 'CamelCase' | 'SnakeCase';
1
+ export type KeyType = 'CamelCase' | 'SnakeCase';
2
2
  export declare function convertSnakeCaseToCamelCase(key: string): string;
3
3
  export declare function convertCamelCaseToSnakeCase(key: string): string;