@patra-cid/akaim-sdk-rn 0.4.16-denymsg.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.
Files changed (46) hide show
  1. package/AkaimSdkRn.podspec +96 -0
  2. package/LICENSE +20 -0
  3. package/README.md +109 -0
  4. package/android/build.gradle +86 -0
  5. package/android/gradle.properties +8 -0
  6. package/android/src/main/AndroidManifest.xml +2 -0
  7. package/android/src/main/java/com/akaimsdkrn/AkaimSdkRnModule.kt +1327 -0
  8. package/android/src/main/java/com/akaimsdkrn/AkaimSdkRnPackage.kt +33 -0
  9. package/android/src/main/java/com/akaimsdkrn/CallbackPromise.kt +27 -0
  10. package/android/src/main/java/com/akaimsdkrn/SendMsgCallBack.kt +32 -0
  11. package/android/src/main/java/com/akaimsdkrn/listener/AdvancedMsgListener.kt +36 -0
  12. package/android/src/main/java/com/akaimsdkrn/listener/BatchMsgListener.kt +16 -0
  13. package/android/src/main/java/com/akaimsdkrn/listener/InitSDKListener.kt +39 -0
  14. package/android/src/main/java/com/akaimsdkrn/listener/OnConversationListener.kt +40 -0
  15. package/android/src/main/java/com/akaimsdkrn/listener/OnFriendshipListener.kt +53 -0
  16. package/android/src/main/java/com/akaimsdkrn/listener/OnGroupListener.kt +52 -0
  17. package/android/src/main/java/com/akaimsdkrn/listener/SetCustomBusinessListener.kt +12 -0
  18. package/android/src/main/java/com/akaimsdkrn/listener/UploadFileCallbackListener.kt +52 -0
  19. package/android/src/main/java/com/akaimsdkrn/listener/UploadLogProgressListener.kt +20 -0
  20. package/android/src/main/java/com/akaimsdkrn/listener/UserListener.kt +28 -0
  21. package/android/src/main/java/com/akaimsdkrn/utils/Emitter.kt +78 -0
  22. package/ios/AkaimSdkRn.h +17 -0
  23. package/ios/AkaimSdkRn.mm +1622 -0
  24. package/ios/CallbackPromise.h +19 -0
  25. package/ios/CallbackPromise.mm +58 -0
  26. package/ios/CodeGenStructHelper.h +17 -0
  27. package/ios/ReactLazyVectorConverter.h +22 -0
  28. package/ios/SendMessageCallback.h +22 -0
  29. package/ios/SendMessageCallback.mm +67 -0
  30. package/ios/UploadFileCallback.h +21 -0
  31. package/ios/UploadFileCallback.mm +80 -0
  32. package/ios/UploadLogCallback.h +22 -0
  33. package/ios/UploadLogCallback.mm +44 -0
  34. package/lib/module/NativeAkaimSdkRn.js +153 -0
  35. package/lib/module/NativeAkaimSdkRn.js.map +1 -0
  36. package/lib/module/index.js +361 -0
  37. package/lib/module/index.js.map +1 -0
  38. package/lib/module/package.json +1 -0
  39. package/lib/typescript/package.json +1 -0
  40. package/lib/typescript/src/NativeAkaimSdkRn.d.ts +947 -0
  41. package/lib/typescript/src/NativeAkaimSdkRn.d.ts.map +1 -0
  42. package/lib/typescript/src/index.d.ts +118 -0
  43. package/lib/typescript/src/index.d.ts.map +1 -0
  44. package/package.json +171 -0
  45. package/src/NativeAkaimSdkRn.ts +1177 -0
  46. package/src/index.tsx +758 -0
@@ -0,0 +1,947 @@
1
+ import { NativeEventEmitter, type TurboModule } from 'react-native';
2
+ export interface Spec extends TurboModule {
3
+ initSDK(config: InitOptions, operationID: string): Promise<any>;
4
+ getLoginStatus(operationID: string): Promise<any>;
5
+ login(options: LoginParams, operationID: string): Promise<any>;
6
+ logout(operationID: string): Promise<any>;
7
+ setAppBackgroundStatus(isBackground: boolean, operationID: string): Promise<any>;
8
+ networkStatusChange(operationID: string): Promise<any>;
9
+ getLoginUserID(): Promise<string>;
10
+ getUsersInfo(uidList: string[], operationID: string): Promise<PublicUserItem[]>;
11
+ setSelfInfo(info: SelfUserInfo, operationID: string): Promise<any>;
12
+ getSelfUserInfo(operationID: string): Promise<any>;
13
+ subscribeUsersStatus(uidList: string[], operationID: string): Promise<any>;
14
+ unsubscribeUsersStatus(uidList: string[], operationID: string): Promise<any>;
15
+ getSubscribeUsersStatus(operationID: string): Promise<any>;
16
+ getAllConversationList(operationID: string): Promise<any>;
17
+ getConversationListSplit(options: SplitConversationParams, operationID: string): Promise<any>;
18
+ getOneConversation(options: GetOneConversationParams, operationID: string): Promise<any>;
19
+ getMultipleConversation(conversationIDList: string[], operationID: string): Promise<any>;
20
+ setGlobalRecvMessageOpt(opt: MessageReceiveOptType, operationID: string): Promise<any>;
21
+ hideConversation(conversationID: string, operationID: string): Promise<any>;
22
+ setConversation(options: SetConversationParams, operationID: string): Promise<any>;
23
+ setConversationDraft(options: SetConversationDraftParams, operationID: string): Promise<any>;
24
+ resetConversationGroupAtType(conversationID: string, operationID: string): Promise<any>;
25
+ pinConversation(options: PinConversationParams, operationID: string): Promise<any>;
26
+ setConversationPrivateChat(options: SetConversationPrivateParams, operationID: string): Promise<any>;
27
+ setConversationBurnDuration(options: SetBurnDurationParams, operationID: string): Promise<any>;
28
+ setConversationRecvMessageOpt(options: SetConversationRecvOptParams, operationID: string): Promise<any>;
29
+ getTotalUnreadMsgCount(operationID: string): Promise<any>;
30
+ createTextAtMessage(options: AtMsgParams, operationID: string): Promise<MessageItem>;
31
+ createTextMessage(options: string, operationID: string): Promise<MessageItem>;
32
+ createLocationMessage(options: LocationMsgParams, operationID: string): Promise<MessageItem>;
33
+ createCustomMessage(options: CustomMsgParams, operationID: string): Promise<MessageItem>;
34
+ createQuoteMessage(options: QuoteMsgParams, operationID: string): Promise<MessageItem>;
35
+ createCardMessage(options: CardElem, operationID: string): Promise<MessageItem>;
36
+ createImageMessageFromFullPath(imagePath: string, operationID: string): Promise<MessageItem>;
37
+ createImageMessageByURL(options: ImageMsgParams, operationID: string): Promise<MessageItem>;
38
+ createSoundMessageFromFullPath(options: SoundMsgByPathParams, operationID: string): Promise<MessageItem>;
39
+ createSoundMessageByURL(options: SoundMsgParams, operationID: string): Promise<MessageItem>;
40
+ createVideoMessageFromFullPath(options: VideoMsgByPathParams, operationID: string): Promise<MessageItem>;
41
+ createVideoMessageByURL(options: VideoMsgParams, operationID: string): Promise<MessageItem>;
42
+ createFileMessage(options: FileMsgByPathParams, operationID: string): Promise<MessageItem>;
43
+ createFileMessageByURL(options: FileMsgParams, operationID: string): Promise<MessageItem>;
44
+ createFileMessageFromFullPath(params: FileMsgByPathParams, operationID: string): Promise<MessageItem>;
45
+ createMergerMessage(options: MergerMsgParams, operationID: string): Promise<MessageItem>;
46
+ createFaceMessage(options: FaceMessageParams, operationID: string): Promise<MessageItem>;
47
+ createForwardMessage(options: MessageItem, operationID: string): Promise<MessageItem>;
48
+ getConversationIDBySessionType(options: GetOneConversationParams, operationID: string): Promise<ConversationItem>;
49
+ sendMessage(options: SendMsgParams, operationID: string): Promise<MessageItem>;
50
+ sendMessageNotOss(options: SendMsgParams, operationID: string): Promise<MessageItem>;
51
+ findMessageList(findOptions: FindMessageParams[], operationID: string): Promise<MessageItem[]>;
52
+ getAdvancedHistoryMessageList(options: GetAdvancedHistoryMsgParams, operationID: string): Promise<AdvancedGetMessageResult>;
53
+ getAdvancedHistoryMessageListReverse(options: GetAdvancedHistoryMsgParams, operationID: string): Promise<AdvancedGetMessageResult>;
54
+ revokeMessage: (options: OpreateMessageParams, operationID: string) => Promise<any>;
55
+ typingStatusUpdate: (options: TypingUpdateParams, operationID: string) => Promise<any>;
56
+ changeInputStates: (options: ChangeInputStatesParams, operationID: string) => Promise<any>;
57
+ getInputStates: (options: GetInputStatesParams, operationID: string) => Promise<number[]>;
58
+ markConversationMessageAsRead: (conversationID: string, operationID: string) => Promise<any>;
59
+ deleteMessageFromLocalStorage: (options: OpreateMessageParams, operationID: string) => Promise<any>;
60
+ deleteMessage: (options: OpreateMessageParams, operationID: string) => Promise<any>;
61
+ deleteAllMsgFromLocalAndSvr: (operationID: string) => Promise<any>;
62
+ deleteAllMsgFromLocal: (operationID: string) => Promise<any>;
63
+ clearConversationAndDeleteAllMsg: (conversationID: string, operationID: string) => Promise<any>;
64
+ deleteConversationAndDeleteAllMsg: (conversationID: string, operationID: string) => Promise<any>;
65
+ insertSingleMessageToLocalStorage: (options: InsertSingleMsgParams, operationID: string) => Promise<any>;
66
+ insertGroupMessageToLocalStorage: (options: InsertGroupMsgParams, operationID: string) => Promise<any>;
67
+ setMessageLocalEx: (options: SetMessageLocalExParams, operationID: string) => Promise<any>;
68
+ searchLocalMessages: (options: SearchLocalParams, operationID: string) => Promise<SearchMessageResult>;
69
+ getSpecifiedFriendsInfo: (options: GetSpecifiedFriendsParams, operationID: string) => Promise<FriendUserItem[]>;
70
+ getFriendList: (filterBlack: boolean, operationID: string) => Promise<FriendUserItem[]>;
71
+ getFriendListPage: (options: OffsetParams, operationID: string) => Promise<FriendUserItem[]>;
72
+ searchFriends: (options: SearchFriendParams, operationID: string) => Promise<SearchedFriendsInfo[]>;
73
+ checkFriend: (userIDList: string[], operationID: string) => Promise<FriendshipInfo[]>;
74
+ addFriend: (options: AddFriendParams, operationID: string) => Promise<any>;
75
+ setFriendRemark: (options: RemarkFriendParams, operationID: string) => Promise<any>;
76
+ deleteFriend: (friendUserID: string, operationID: string) => Promise<any>;
77
+ getFriendApplicationListAsRecipient: (operationID: string) => Promise<FriendApplicationItem[]>;
78
+ getFriendApplicationListAsApplicant: (operationID: string) => Promise<FriendApplicationItem[]>;
79
+ acceptFriendApplication: (options: AccessFriendParams, operationID: string) => Promise<any>;
80
+ refuseFriendApplication: (options: AccessFriendParams, operationID: string) => Promise<any>;
81
+ addBlack: (options: AddBlackParams, operationID: string) => Promise<any>;
82
+ getBlackList: (operationID: string) => Promise<BlackUserItem[]>;
83
+ removeBlack: (removeUserID: string, operationID: string) => Promise<any>;
84
+ createGroup: (options: CreateGroupParams, operationID: string) => Promise<any>;
85
+ isJoinGroup: (groupId: string, operationID: string) => Promise<boolean>;
86
+ joinGroup: (options: JoinGroupParams, operationID: string) => Promise<any>;
87
+ quitGroup: (groupId: string, operationID: string) => Promise<any>;
88
+ dismissGroup: (groupId: string, operationID: string) => Promise<any>;
89
+ changeGroupMute: (options: ChangeGroupMuteParams, operationID: string) => Promise<any>;
90
+ changeGroupMemberMute: (options: ChangeGroupMemberMuteParams, operationID: string) => Promise<any>;
91
+ setGroupMemberInfo: (params: UpdateMemberInfoParams, operationID: string) => Promise<any>;
92
+ getJoinedGroupList: (operationID: string) => Promise<GroupItem[]>;
93
+ getJoinedGroupListPage: (options: OffsetParams, operationID: string) => Promise<GroupItem[]>;
94
+ getSpecifiedGroupsInfo: (groupIDList: string[], operationID: string) => Promise<GroupItem[]>;
95
+ searchGroups: (options: SearchGroupParams, operationID: string) => Promise<GroupItem[]>;
96
+ setGroupInfo: (options: SetGroupinfoParams, operationID: string) => Promise<any>;
97
+ getGroupMemberList: (options: GetGroupMemberParams, operationID: string) => Promise<GroupMemberItem[]>;
98
+ getGroupMemberOwnerAndAdmin: (groupID: string, operationID: string) => Promise<GroupMemberItem[]>;
99
+ getGroupMemberListByJoinTimeFilter: (options: GetGroupMemberByTimeParams, operationID: string) => Promise<GroupMemberItem[]>;
100
+ getSpecifiedGroupMembersInfo: (options: GetGroupMembersInfoParams, operationID: string) => Promise<GroupMemberItem[]>;
101
+ getUsersInGroup: (options: GetGroupMembersInfoParams, operationID: string) => Promise<string[]>;
102
+ kickGroupMember: (options: OperateGroupParams, operationID: string) => Promise<any>;
103
+ transferGroupOwner: (options: TransferGroupParams, operationID: string) => Promise<any>;
104
+ inviteUserToGroup: (options: OperateGroupParams, operationID: string) => Promise<any>;
105
+ getGroupApplicationListAsRecipient: (operationID: string) => Promise<GroupApplicationItem[]>;
106
+ getGroupApplicationListAsApplicant: (operationID: string) => Promise<GroupApplicationItem[]>;
107
+ acceptGroupApplication: (options: AccessGroupParams, operationID: string) => Promise<any>;
108
+ refuseGroupApplication: (options: AccessGroupParams, operationID: string) => Promise<any>;
109
+ searchGroupMembers: (options: SearchGroupMemberParams, operationID: string) => Promise<GroupMemberItem[]>;
110
+ unInitSDK: (operationID?: string) => Promise<any>;
111
+ uploadLogs: (options: UploadLogsParams, opid?: string) => Promise<any>;
112
+ logs: (options: LogsParams, opid?: string) => Promise<any>;
113
+ uploadFile: (options: UploadFileParams, operationID: string) => Promise<{
114
+ url: string;
115
+ }>;
116
+ multiply(a: number, b: number): number;
117
+ addListener: (eventName: string) => void;
118
+ removeListeners: (count: number) => void;
119
+ }
120
+ declare const AkaimSdkRn: Spec;
121
+ export declare const AkaimEmitter: NativeEventEmitter<Readonly<Record<string, readonly Object[]>>>;
122
+ export default AkaimSdkRn;
123
+ export type UploadFileParams = {
124
+ name: string;
125
+ contentType: string;
126
+ uuid: string;
127
+ cause?: string;
128
+ filepath: string;
129
+ };
130
+ export type LogsParams = {
131
+ logLevel: number;
132
+ file: string;
133
+ line: number;
134
+ msgs: string;
135
+ err: string;
136
+ keyAndValue: string;
137
+ };
138
+ export type UploadLogsParams = {
139
+ line: number;
140
+ ex?: string;
141
+ };
142
+ export type SearchGroupMemberParams = {
143
+ groupID: string;
144
+ keywordList: string[];
145
+ isSearchUserID: boolean;
146
+ isSearchMemberNickname: boolean;
147
+ offset: number;
148
+ count: number;
149
+ };
150
+ export type AccessGroupParams = {
151
+ groupID: string;
152
+ fromUserID: string;
153
+ handleMsg: string;
154
+ };
155
+ export type OperateGroupParams = {
156
+ groupID: string;
157
+ reason: string;
158
+ userIDList: string[];
159
+ };
160
+ export type TransferGroupParams = {
161
+ groupID: string;
162
+ newOwnerUserID: string;
163
+ };
164
+ export type GetGroupMembersInfoParams = {
165
+ groupID: string;
166
+ userIDList: string[];
167
+ };
168
+ export type GetGroupMemberByTimeParams = {
169
+ groupID: string;
170
+ filterUserIDList: string[];
171
+ offset: number;
172
+ count: number;
173
+ joinTimeBegin: number;
174
+ joinTimeEnd: number;
175
+ };
176
+ export type GetGroupMemberParams = {
177
+ groupID: string;
178
+ filter: GroupMemberFilter;
179
+ offset: number;
180
+ count: number;
181
+ };
182
+ export type SetGroupinfoParams = Partial<GroupItem>;
183
+ export type SearchGroupParams = {
184
+ keywordList: string[];
185
+ isSearchGroupID: boolean;
186
+ isSearchGroupName: boolean;
187
+ };
188
+ export type UpdateMemberInfoParams = {
189
+ groupID: string;
190
+ userID: string;
191
+ nickname?: string;
192
+ faceURL?: string;
193
+ faceBackgroundColor?: string;
194
+ roleLevel?: GroupMemberRole;
195
+ ex?: string;
196
+ };
197
+ export type ChangeGroupMuteParams = {
198
+ groupID: string;
199
+ isMute: boolean;
200
+ };
201
+ export type ChangeGroupMemberMuteParams = {
202
+ groupID: string;
203
+ userID: string;
204
+ mutedSeconds: number;
205
+ };
206
+ export type CreateGroupParams = {
207
+ memberUserIDs: string[];
208
+ groupInfo: Partial<GroupItem>;
209
+ adminUserIDs?: string[];
210
+ ownerUserID?: string;
211
+ };
212
+ export type JoinGroupParams = {
213
+ groupID: string;
214
+ reqMsg: string;
215
+ joinSource: GroupJoinSource;
216
+ ex?: string;
217
+ };
218
+ export type AddBlackParams = {
219
+ toUserID: string;
220
+ ex?: string;
221
+ };
222
+ export type AccessFriendParams = {
223
+ toUserID: string;
224
+ handleMsg: string;
225
+ };
226
+ export type RemarkFriendParams = {
227
+ friendUserIDs: string;
228
+ remark: string;
229
+ };
230
+ export type AddFriendParams = {
231
+ toUserID: string;
232
+ reqMsg: string;
233
+ };
234
+ export type FriendshipInfo = {
235
+ result: number;
236
+ userID: string;
237
+ };
238
+ export type SearchedFriendsInfo = FriendUserItem & {
239
+ relationship: Relationship;
240
+ };
241
+ export type SearchFriendParams = {
242
+ keywordList: string[];
243
+ isSearchUserID: boolean;
244
+ isSearchNickname: boolean;
245
+ isSearchRemark: boolean;
246
+ };
247
+ export type OffsetParams = {
248
+ offset: number;
249
+ count: number;
250
+ filterBlack?: boolean;
251
+ };
252
+ export type FriendUserItem = {
253
+ addSource: number;
254
+ createTime: number;
255
+ ex: string;
256
+ faceURL: string;
257
+ faceBackgroundColor: string;
258
+ userID: string;
259
+ nickname: string;
260
+ operatorUserID: string;
261
+ ownerUserID: string;
262
+ remark: string;
263
+ isPinned: boolean;
264
+ attachedInfo: string;
265
+ };
266
+ export declare type GetSpecifiedFriendsParams = {
267
+ userIDList: string[];
268
+ filterBlack?: boolean;
269
+ };
270
+ export type SearchMessageResult = {
271
+ totalCount: number;
272
+ searchResultItems?: SearchMessageResultItem[];
273
+ findResultItems?: SearchMessageResultItem[];
274
+ };
275
+ export type SearchMessageResultItem = {
276
+ conversationID: string;
277
+ messageCount: number;
278
+ conversationType: SessionType;
279
+ showName: string;
280
+ faceURL: string;
281
+ faceBackgroundColor: string;
282
+ messageList: MessageItem[];
283
+ };
284
+ export type SearchLocalParams = {
285
+ conversationID: string;
286
+ keywordList: string[];
287
+ keywordListMatchType?: number;
288
+ senderUserIDList?: string[];
289
+ messageTypeList?: MessageType[];
290
+ searchTimePosition?: number;
291
+ searchTimePeriod?: number;
292
+ pageIndex?: number;
293
+ count?: number;
294
+ };
295
+ export type SetMessageLocalExParams = {
296
+ conversationID: string;
297
+ clientMsgID: string;
298
+ localEx: string;
299
+ };
300
+ export type InsertGroupMsgParams = {
301
+ message: MessageItem;
302
+ groupID: string;
303
+ sendID: string;
304
+ };
305
+ export type GetInputStatesParams = {
306
+ conversationID: string;
307
+ userID: string;
308
+ };
309
+ export type InsertSingleMsgParams = {
310
+ message: MessageItem;
311
+ recvID: string;
312
+ sendID: string;
313
+ };
314
+ export type ChangeInputStatesParams = {
315
+ conversationID: string;
316
+ focus: boolean;
317
+ };
318
+ export type TypingUpdateParams = {
319
+ recvID: string;
320
+ msgTip: string;
321
+ };
322
+ export type OpreateMessageParams = {
323
+ conversationID: string;
324
+ clientMsgID: string;
325
+ };
326
+ export type AdvancedGetMessageResult = {
327
+ isEnd: boolean;
328
+ errCode: number;
329
+ errMsg: string;
330
+ messageList: MessageItem[];
331
+ };
332
+ export type GetAdvancedHistoryMsgParams = {
333
+ viewType: ViewType;
334
+ count: number;
335
+ startClientMsgID: string;
336
+ conversationID: string;
337
+ };
338
+ export type FindMessageParams = {
339
+ conversationID: string;
340
+ clientMsgIDList: string[];
341
+ };
342
+ export type SendMsgParams = {
343
+ recvID: string;
344
+ groupID: string;
345
+ offlinePushInfo?: OfflinePush;
346
+ message: MessageItem;
347
+ isOnlineOnly?: boolean;
348
+ };
349
+ export type FaceMessageParams = {
350
+ index: number;
351
+ data: string;
352
+ };
353
+ export type MergerMsgParams = {
354
+ messageList: MessageItem[];
355
+ title: string;
356
+ summaryList: string[];
357
+ };
358
+ export type FileMsgParams = {
359
+ filePath: string;
360
+ fileName: string;
361
+ uuid: string;
362
+ sourceUrl: string;
363
+ fileSize: number;
364
+ fileType?: string;
365
+ };
366
+ export type FileMsgByPathParams = {
367
+ filePath: string;
368
+ fileName: string;
369
+ };
370
+ export type VideoMsgByPathParams = {
371
+ videoPath: string;
372
+ videoType: string;
373
+ duration: number;
374
+ snapshotPath: string;
375
+ };
376
+ export type VideoMsgParams = {
377
+ videoPath: string;
378
+ duration: number;
379
+ videoType: string;
380
+ snapshotPath: string;
381
+ videoUUID: string;
382
+ videoUrl: string;
383
+ videoSize: number;
384
+ snapshotUUID: string;
385
+ snapshotSize: number;
386
+ snapshotUrl: string;
387
+ snapshotWidth: number;
388
+ snapshotHeight: number;
389
+ snapShotType?: string;
390
+ };
391
+ export type SoundMsgParams = {
392
+ uuid: string;
393
+ soundPath: string;
394
+ sourceUrl: string;
395
+ dataSize: number;
396
+ duration: number;
397
+ soundType?: string;
398
+ };
399
+ export type SoundMsgByPathParams = {
400
+ soundPath: string;
401
+ duration: number;
402
+ };
403
+ export type ImageMsgParams = {
404
+ sourcePicture: PicBaseInfo;
405
+ bigPicture: PicBaseInfo;
406
+ snapshotPicture: PicBaseInfo;
407
+ sourcePath: string;
408
+ };
409
+ export type PicBaseInfo = {
410
+ uuid: string;
411
+ type: string;
412
+ size: number;
413
+ width: number;
414
+ height: number;
415
+ url: string;
416
+ };
417
+ export type AdvancedQuoteMsgParams = {
418
+ text: string;
419
+ messageEntityList: MessageEntity[];
420
+ message: MessageItem;
421
+ };
422
+ export type LocationMsgParams = {
423
+ description: string;
424
+ longitude: number;
425
+ latitude: number;
426
+ };
427
+ export type PublicUserItem = {
428
+ createTime?: number;
429
+ ex?: string;
430
+ faceURL?: string;
431
+ faceBackgroundColor?: string;
432
+ nickname?: string;
433
+ userID?: string;
434
+ globalRecvMsgOpt?: number;
435
+ };
436
+ export type SelfUserInfo = {
437
+ createTime?: number;
438
+ ex?: string;
439
+ faceURL?: string;
440
+ faceBackgroundColor?: string;
441
+ nickname?: string;
442
+ userID?: string;
443
+ globalRecvMsgOpt?: number;
444
+ };
445
+ export type CustomMsgParams = {
446
+ data: string;
447
+ extension: string;
448
+ description: string;
449
+ };
450
+ export type SetConversationDraftParams = {
451
+ conversationID: string;
452
+ draftText: string;
453
+ };
454
+ export type QuoteMsgParams = {
455
+ text: string;
456
+ message: MessageItem;
457
+ };
458
+ export type SetBurnDurationParams = {
459
+ conversationID: string;
460
+ burnDuration: number;
461
+ };
462
+ export type SetConversationRecvOptParams = {
463
+ conversationID: string;
464
+ opt: MessageReceiveOptType;
465
+ };
466
+ export type SetConversationPrivateParams = {
467
+ conversationID: string;
468
+ isPrivate: boolean;
469
+ };
470
+ export type PinConversationParams = {
471
+ conversationID: string;
472
+ isPinned: boolean;
473
+ };
474
+ export type GroupApplicationItem = {
475
+ createTime: number;
476
+ creatorUserID: string;
477
+ ex: string;
478
+ groupFaceURL: string;
479
+ groupID: string;
480
+ groupName: string;
481
+ groupType: GroupType;
482
+ handleResult: ApplicationHandleResult;
483
+ handleUserID: string;
484
+ handledMsg: string;
485
+ handledTime: number;
486
+ introduction: string;
487
+ memberCount: number;
488
+ nickname: string;
489
+ notification: string;
490
+ ownerUserID: string;
491
+ reqMsg: string;
492
+ reqTime: number;
493
+ joinSource: GroupJoinSource;
494
+ status: GroupStatus;
495
+ userFaceURL: string;
496
+ userID: string;
497
+ };
498
+ export type GroupMemberItem = {
499
+ groupID: string;
500
+ userID: string;
501
+ nickname: string;
502
+ faceURL: string;
503
+ faceBackgroundColor: string;
504
+ roleLevel: GroupMemberRole;
505
+ muteEndTime: number;
506
+ joinTime: number;
507
+ joinSource: GroupJoinSource;
508
+ inviterUserID: string;
509
+ operatorUserID: string;
510
+ ex: string;
511
+ };
512
+ export type GroupItem = {
513
+ groupID: string;
514
+ groupName: string;
515
+ notification: string;
516
+ notificationUserID: string;
517
+ notificationUpdateTime: number;
518
+ introduction: string;
519
+ faceURL: string;
520
+ faceBackgroundColor: string;
521
+ ownerUserID: string;
522
+ createTime: number;
523
+ memberCount: number;
524
+ status: GroupStatus;
525
+ creatorUserID: string;
526
+ groupType: GroupType;
527
+ needVerification: GroupVerificationType;
528
+ ex: string;
529
+ applyMemberFriend: AllowType;
530
+ lookMemberInfo: AllowType;
531
+ displayIsRead: boolean;
532
+ };
533
+ export type BlackUserItem = {
534
+ addSource: number;
535
+ userID: string;
536
+ createTime: number;
537
+ ex: string;
538
+ faceURL: string;
539
+ faceBackgroundColor: string;
540
+ nickname: string;
541
+ operatorUserID: string;
542
+ ownerUserID: string;
543
+ };
544
+ export type FriendApplicationItem = {
545
+ createTime: number;
546
+ ex: string;
547
+ fromFaceURL: string;
548
+ fromFaceBackgroundColor: string;
549
+ fromNickname: string;
550
+ fromUserID: string;
551
+ handleMsg: string;
552
+ handleResult: ApplicationHandleResult;
553
+ handleTime: number;
554
+ handlerUserID: string;
555
+ reqMsg: string;
556
+ toFaceURL: string;
557
+ toFaceBackgroundColor: string;
558
+ toNickname: string;
559
+ toUserID: string;
560
+ };
561
+ export type SetConversationParams = {
562
+ conversationID: string;
563
+ recvMsgOpt?: MessageReceiveOptType;
564
+ groupAtType?: GroupAtType;
565
+ burnDuration?: number;
566
+ msgDestructTime?: number;
567
+ isPinned?: boolean;
568
+ isPrivateChat?: boolean;
569
+ isMsgDestruct?: boolean;
570
+ ex?: string;
571
+ };
572
+ export type InitOptions = {
573
+ wsAddr: string;
574
+ apiAddr: string;
575
+ dataDir: string;
576
+ logLevel: LogLevel;
577
+ isLogStandardOutput: boolean;
578
+ };
579
+ export type SplitConversationParams = {
580
+ offset: number;
581
+ count: number;
582
+ };
583
+ export type GetOneConversationParams = {
584
+ sourceID: string;
585
+ sessionType: number;
586
+ };
587
+ export type AtMsgParams = {
588
+ text: string;
589
+ atUserIDList: string[];
590
+ atUsersInfo?: AtUsersInfoItem[];
591
+ message?: MessageItem;
592
+ };
593
+ export type ConversationItem = {
594
+ conversationID: string;
595
+ conversationType: SessionType;
596
+ userID: string;
597
+ groupID: string;
598
+ showName: string;
599
+ faceURL: string;
600
+ faceBackgroundColor: string;
601
+ recvMsgOpt: MessageReceiveOptType;
602
+ unreadCount: number;
603
+ groupAtType: GroupAtType;
604
+ latestMsg: string;
605
+ latestMsgSendTime: number;
606
+ draftText: string;
607
+ draftTextTime: number;
608
+ burnDuration: number;
609
+ msgDestructTime: number;
610
+ isPinned: boolean;
611
+ isNotInGroup: boolean;
612
+ isPrivateChat: boolean;
613
+ isMsgDestruct: boolean;
614
+ attachedInfo: string;
615
+ ex?: string;
616
+ };
617
+ export type MessageBase = {
618
+ clientMsgID: string;
619
+ serverMsgID: string;
620
+ createTime: number;
621
+ sendTime: number;
622
+ sessionType: SessionType;
623
+ sendID: string;
624
+ recvID: string;
625
+ msgFrom: number;
626
+ contentType: MessageType;
627
+ senderPlatformID: Platform;
628
+ senderNickname: string;
629
+ senderFaceUrl: string;
630
+ senderFaceBackgroundColor: string;
631
+ groupID: string;
632
+ content: string;
633
+ seq: number;
634
+ isRead: boolean;
635
+ status: MessageStatus;
636
+ isReact?: boolean;
637
+ isExternalExtensions?: boolean;
638
+ offlinePush?: OfflinePush;
639
+ ex?: string;
640
+ localEx?: string;
641
+ };
642
+ type MessageElems = {
643
+ textElem?: TextElem;
644
+ cardElem?: CardElem;
645
+ pictureElem?: PictureElem;
646
+ soundElem?: SoundElem;
647
+ videoElem?: VideoElem;
648
+ fileElem?: FileElem;
649
+ mergeElem?: MergeElem;
650
+ atTextElem?: AtTextElem;
651
+ faceElem?: FaceElem;
652
+ locationElem?: LocationElem;
653
+ customElem?: CustomElem;
654
+ quoteElem?: QuoteElem;
655
+ notificationElem?: NotificationElem;
656
+ advancedTextElem?: AdvancedTextElem;
657
+ typingElem?: TypingElem;
658
+ attachedInfoElem?: AttachedInfoElem;
659
+ envelopeInfoElem?: InfoElem;
660
+ transferInfoElem?: InfoElem;
661
+ };
662
+ export type MessageItem = MessageBase & MessageElems;
663
+ export type LoginParams = {
664
+ userID: string;
665
+ token: string;
666
+ };
667
+ export type AttachedInfoElem = {
668
+ groupHasReadInfo: GroupHasReadInfo;
669
+ isPrivateChat: boolean;
670
+ isEncryption: boolean;
671
+ inEncryptStatus: boolean;
672
+ burnDuration: number;
673
+ hasReadTime: number;
674
+ messageEntityList?: MessageEntity[];
675
+ uploadProgress?: UploadProgress;
676
+ };
677
+ export type InfoElem = {
678
+ userID: string;
679
+ claimAt: number;
680
+ };
681
+ export type UploadProgress = {
682
+ total: number;
683
+ save: number;
684
+ current: number;
685
+ };
686
+ export type GroupHasReadInfo = {
687
+ hasReadCount: number;
688
+ unreadCount: number;
689
+ hasReadUserIDList: string[];
690
+ groupMemberCount: number;
691
+ };
692
+ export type TypingElem = {
693
+ msgTips: string;
694
+ };
695
+ export type AdvancedTextElem = {
696
+ text: string;
697
+ messageEntityList: MessageEntity[];
698
+ };
699
+ export type NotificationElem = {
700
+ detail: string;
701
+ };
702
+ export type QuoteElem = {
703
+ text: string;
704
+ quoteMessage: Object;
705
+ messageEntityList?: MessageEntity[];
706
+ };
707
+ export type CustomElem = {
708
+ data: string;
709
+ description: string;
710
+ extension: string;
711
+ };
712
+ export type LocationElem = {
713
+ description: string;
714
+ longitude: number;
715
+ latitude: number;
716
+ };
717
+ export type FaceElem = {
718
+ index: number;
719
+ data: string;
720
+ };
721
+ export type AtTextElem = {
722
+ text: string;
723
+ atUserList: string[];
724
+ atUsersInfo?: AtUsersInfoItem[];
725
+ quoteMessage?: Object;
726
+ isAtSelf?: boolean;
727
+ };
728
+ export type MergeElem = {
729
+ title: string;
730
+ abstractList: string[];
731
+ multiMessage: Object[];
732
+ messageEntityList: MessageEntity[];
733
+ };
734
+ export type MessageEntity = {
735
+ type: string;
736
+ offset: number;
737
+ length: number;
738
+ url?: string;
739
+ info?: string;
740
+ };
741
+ export type FileElem = {
742
+ filePath: string;
743
+ uuid: string;
744
+ sourceUrl: string;
745
+ fileName: string;
746
+ fileSize: number;
747
+ };
748
+ export type VideoElem = {
749
+ videoPath: string;
750
+ videoUUID: string;
751
+ videoUrl: string;
752
+ videoType: string;
753
+ videoSize: number;
754
+ duration: number;
755
+ snapshotPath: string;
756
+ snapshotUUID: string;
757
+ snapshotSize: number;
758
+ snapshotUrl: string;
759
+ snapshotWidth: number;
760
+ snapshotHeight: number;
761
+ };
762
+ export type SoundElem = {
763
+ uuid: string;
764
+ soundPath: string;
765
+ sourceUrl: string;
766
+ dataSize: number;
767
+ duration: number;
768
+ };
769
+ export type PictureElem = {
770
+ sourcePath: string;
771
+ sourcePicture: Picture;
772
+ bigPicture: Picture;
773
+ snapshotPicture: Picture;
774
+ };
775
+ export type Picture = {
776
+ uuid: string;
777
+ type: string;
778
+ size: number;
779
+ width: number;
780
+ height: number;
781
+ url: string;
782
+ };
783
+ export type CardElem = {
784
+ userID: string;
785
+ nickname: string;
786
+ faceURL: string;
787
+ faceBackgroundColor: string;
788
+ ex: string;
789
+ };
790
+ export type TextElem = {
791
+ content: string;
792
+ };
793
+ export type OfflinePush = {
794
+ title: string;
795
+ desc: string;
796
+ ex: string;
797
+ iOSPushSound: string;
798
+ iOSBadgeCount: boolean;
799
+ };
800
+ export type AtUsersInfoItem = {
801
+ atUserID: string;
802
+ groupNickname: string;
803
+ };
804
+ export type UserOnlineState = {
805
+ platformIDs?: Platform[];
806
+ userID: string;
807
+ status: number;
808
+ };
809
+ export type ConversationInputStatus = {
810
+ conversationID?: string;
811
+ userID?: string;
812
+ platformIDs?: Platform[];
813
+ };
814
+ export type ReceiptInfo = {
815
+ userID: string;
816
+ groupID: string;
817
+ msgIDList: string[];
818
+ readTime: number;
819
+ msgFrom: number;
820
+ contentType: MessageType;
821
+ sessionType: SessionType;
822
+ };
823
+ export declare enum MessageStatus {
824
+ Sending = 1,
825
+ Succeed = 2,
826
+ Failed = 3
827
+ }
828
+ export declare enum Platform {
829
+ iOS = 1,
830
+ Android = 2,
831
+ Windows = 3,
832
+ MacOSX = 4,
833
+ Web = 5,
834
+ Linux = 7,
835
+ AndroidPad = 8,
836
+ iPad = 9
837
+ }
838
+ export declare enum MessageType {
839
+ TextMessage = 101,
840
+ PictureMessage = 102,
841
+ VoiceMessage = 103,
842
+ VideoMessage = 104,
843
+ FileMessage = 105,
844
+ AtTextMessage = 106,
845
+ MergeMessage = 107,
846
+ CardMessage = 108,
847
+ LocationMessage = 109,
848
+ CustomMessage = 110,
849
+ TypingMessage = 113,
850
+ QuoteMessage = 114,
851
+ FaceMessage = 115,
852
+ FriendAdded = 1201,
853
+ OANotification = 1400,
854
+ GroupCreated = 1501,
855
+ GroupInfoUpdated = 1502,
856
+ MemberQuit = 1504,
857
+ GroupOwnerTransferred = 1507,
858
+ MemberKicked = 1508,
859
+ MemberInvited = 1509,
860
+ MemberEnter = 1510,
861
+ GroupDismissed = 1511,
862
+ GroupMemberMuted = 1512,
863
+ GroupMemberCancelMuted = 1513,
864
+ GroupMuted = 1514,
865
+ GroupCancelMuted = 1515,
866
+ GroupAnnouncementUpdated = 1519,
867
+ GroupNameUpdated = 1520,
868
+ BurnMessageChange = 1701,
869
+ RevokeMessage = 2101
870
+ }
871
+ export declare enum SessionType {
872
+ Single = 1,
873
+ Group = 3,
874
+ WorkingGroup = 3,
875
+ Notification = 4
876
+ }
877
+ export declare enum GroupAtType {
878
+ AtNormal = 0,
879
+ AtMe = 1,
880
+ AtAll = 2,
881
+ AtAllAtMe = 3,
882
+ AtGroupNotice = 4
883
+ }
884
+ export declare enum LogLevel {
885
+ Debug = 5,
886
+ Info = 4,
887
+ Warn = 3,
888
+ Error = 2,
889
+ Fatal = 1,
890
+ Panic = 0
891
+ }
892
+ export declare enum MessageReceiveOptType {
893
+ Nomal = 0,
894
+ NotReceive = 1,
895
+ NotNotify = 2
896
+ }
897
+ export declare enum ViewType {
898
+ History = 0,
899
+ Search = 1
900
+ }
901
+ export declare enum Relationship {
902
+ isBlack = 0,
903
+ isFriend = 1
904
+ }
905
+ export declare enum ApplicationHandleResult {
906
+ Unprocessed = 0,
907
+ Agree = 1,
908
+ Reject = -1
909
+ }
910
+ export declare enum GroupStatus {
911
+ Nomal = 0,
912
+ Baned = 1,
913
+ Dismissed = 2,
914
+ Muted = 3
915
+ }
916
+ export declare enum GroupType {
917
+ Group = 2,
918
+ WorkingGroup = 2
919
+ }
920
+ export declare enum GroupVerificationType {
921
+ ApplyNeedInviteNot = 0,
922
+ AllNeed = 1,
923
+ AllNot = 2
924
+ }
925
+ export declare enum AllowType {
926
+ Allowed = 0,
927
+ NotAllowed = 1
928
+ }
929
+ export declare enum GroupJoinSource {
930
+ Invitation = 2,
931
+ Search = 3,
932
+ QrCode = 4
933
+ }
934
+ export declare enum GroupMemberRole {
935
+ Nomal = 20,
936
+ Admin = 60,
937
+ Owner = 100
938
+ }
939
+ export declare enum GroupMemberFilter {
940
+ All = 0,
941
+ Owner = 1,
942
+ Admin = 2,
943
+ Nomal = 3,
944
+ AdminAndNomal = 4,
945
+ AdminAndOwner = 5
946
+ }
947
+ //# sourceMappingURL=NativeAkaimSdkRn.d.ts.map