@acidify/core 0.4.0 → 0.5.0

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.
@@ -95,6 +95,10 @@ export declare class SessionStore {
95
95
  clear(): void;
96
96
  refreshDeviceGuid(): void;
97
97
  toJson(): string;
98
+ equals(other: Nullable<any>): boolean;
99
+ hashCode(): number;
100
+ copy(uin?: bigint, uid?: string, a2?: Int8Array, d2?: Int8Array, d2Key?: Int8Array, tgtgt?: Int8Array, encryptedA1?: Int8Array, noPicSig?: Int8Array, qrSig?: Int8Array, guid?: Int8Array, deviceName?: string): SessionStore;
101
+ toString(): string;
98
102
  static empty(): SessionStore;
99
103
  static fromJson(json: string): SessionStore;
100
104
  }
@@ -128,7 +132,7 @@ export declare namespace SignResult {
128
132
  }
129
133
  }
130
134
  export declare class SsoResponse {
131
- constructor(retCode: number, command: string, response: Int8Array, sequence: number, extra?: Nullable<string>);
135
+ private constructor();
132
136
  get retCode(): number;
133
137
  get command(): string;
134
138
  get response(): Int8Array;
@@ -202,7 +206,7 @@ export declare interface AcidifyEvent {
202
206
  };
203
207
  }
204
208
  export declare class BotOfflineEvent implements AcidifyEvent {
205
- constructor(reason: string);
209
+ private constructor();
206
210
  get reason(): string;
207
211
  readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
208
212
  }
@@ -213,7 +217,7 @@ export declare namespace BotOfflineEvent {
213
217
  }
214
218
  }
215
219
  export declare class FriendFileUploadEvent implements AcidifyEvent {
216
- constructor(userUin: bigint, userUid: string, fileId: string, fileName: string, fileSize: bigint, fileHash: string, isSelf: boolean);
220
+ private constructor();
217
221
  get userUin(): bigint;
218
222
  get userUid(): string;
219
223
  get fileId(): string;
@@ -230,7 +234,7 @@ export declare namespace FriendFileUploadEvent {
230
234
  }
231
235
  }
232
236
  export declare class FriendNudgeEvent implements AcidifyEvent {
233
- constructor(userUin: bigint, userUid: string, isSelfSend: boolean, isSelfReceive: boolean, displayAction: string, displaySuffix: string, displayActionImgUrl: string);
237
+ private constructor();
234
238
  get userUin(): bigint;
235
239
  get userUid(): string;
236
240
  get isSelfSend(): boolean;
@@ -247,7 +251,7 @@ export declare namespace FriendNudgeEvent {
247
251
  }
248
252
  }
249
253
  export declare class FriendRequestEvent implements AcidifyEvent {
250
- constructor(initiatorUin: bigint, initiatorUid: string, comment: string, via: string);
254
+ private constructor();
251
255
  get initiatorUin(): bigint;
252
256
  get initiatorUid(): string;
253
257
  get comment(): string;
@@ -261,7 +265,7 @@ export declare namespace FriendRequestEvent {
261
265
  }
262
266
  }
263
267
  export declare class GroupAdminChangeEvent implements AcidifyEvent {
264
- constructor(groupUin: bigint, userUin: bigint, userUid: string, isSet: boolean);
268
+ private constructor();
265
269
  get groupUin(): bigint;
266
270
  get userUin(): bigint;
267
271
  get userUid(): string;
@@ -275,7 +279,7 @@ export declare namespace GroupAdminChangeEvent {
275
279
  }
276
280
  }
277
281
  export declare class GroupEssenceMessageChangeEvent implements AcidifyEvent {
278
- constructor(groupUin: bigint, messageSeq: bigint, isSet: boolean);
282
+ private constructor();
279
283
  get groupUin(): bigint;
280
284
  get messageSeq(): bigint;
281
285
  get isSet(): boolean;
@@ -288,7 +292,7 @@ export declare namespace GroupEssenceMessageChangeEvent {
288
292
  }
289
293
  }
290
294
  export declare class GroupFileUploadEvent implements AcidifyEvent {
291
- constructor(groupUin: bigint, userUin: bigint, userUid: string, fileId: string, fileName: string, fileSize: bigint);
295
+ private constructor();
292
296
  get groupUin(): bigint;
293
297
  get userUin(): bigint;
294
298
  get userUid(): string;
@@ -304,7 +308,7 @@ export declare namespace GroupFileUploadEvent {
304
308
  }
305
309
  }
306
310
  export declare class GroupInvitationEvent implements AcidifyEvent {
307
- constructor(groupUin: bigint, invitationSeq: bigint, initiatorUin: bigint, initiatorUid: string);
311
+ private constructor();
308
312
  get groupUin(): bigint;
309
313
  get invitationSeq(): bigint;
310
314
  get initiatorUin(): bigint;
@@ -318,7 +322,7 @@ export declare namespace GroupInvitationEvent {
318
322
  }
319
323
  }
320
324
  export declare class GroupInvitedJoinRequestEvent implements AcidifyEvent {
321
- constructor(groupUin: bigint, notificationSeq: bigint, initiatorUin: bigint, initiatorUid: string, targetUserUin: bigint, targetUserUid: string);
325
+ private constructor();
322
326
  get groupUin(): bigint;
323
327
  get notificationSeq(): bigint;
324
328
  get initiatorUin(): bigint;
@@ -334,7 +338,7 @@ export declare namespace GroupInvitedJoinRequestEvent {
334
338
  }
335
339
  }
336
340
  export declare class GroupJoinRequestEvent implements AcidifyEvent {
337
- constructor(groupUin: bigint, notificationSeq: bigint, isFiltered: boolean, initiatorUin: bigint, initiatorUid: string, comment: string);
341
+ private constructor();
338
342
  get groupUin(): bigint;
339
343
  get notificationSeq(): bigint;
340
344
  get isFiltered(): boolean;
@@ -350,7 +354,7 @@ export declare namespace GroupJoinRequestEvent {
350
354
  }
351
355
  }
352
356
  export declare class GroupMemberDecreaseEvent implements AcidifyEvent {
353
- constructor(groupUin: bigint, userUin: bigint, userUid: string, operatorUin: Nullable<bigint>, operatorUid: Nullable<string>);
357
+ private constructor();
354
358
  get groupUin(): bigint;
355
359
  get userUin(): bigint;
356
360
  get userUid(): string;
@@ -365,7 +369,7 @@ export declare namespace GroupMemberDecreaseEvent {
365
369
  }
366
370
  }
367
371
  export declare class GroupMemberIncreaseEvent implements AcidifyEvent {
368
- constructor(groupUin: bigint, userUin: bigint, userUid: string, operatorUin: Nullable<bigint>, operatorUid: Nullable<string>, invitorUin: Nullable<bigint>, invitorUid: Nullable<string>);
372
+ private constructor();
369
373
  get groupUin(): bigint;
370
374
  get userUin(): bigint;
371
375
  get userUid(): string;
@@ -382,7 +386,7 @@ export declare namespace GroupMemberIncreaseEvent {
382
386
  }
383
387
  }
384
388
  export declare class GroupMessageReactionEvent implements AcidifyEvent {
385
- constructor(groupUin: bigint, userUin: bigint, userUid: string, messageSeq: bigint, faceId: string, isAdd: boolean);
389
+ private constructor();
386
390
  get groupUin(): bigint;
387
391
  get userUin(): bigint;
388
392
  get userUid(): string;
@@ -398,7 +402,7 @@ export declare namespace GroupMessageReactionEvent {
398
402
  }
399
403
  }
400
404
  export declare class GroupMuteEvent implements AcidifyEvent {
401
- constructor(groupUin: bigint, userUin: bigint, userUid: string, operatorUin: bigint, operatorUid: string, duration: number);
405
+ private constructor();
402
406
  get groupUin(): bigint;
403
407
  get userUin(): bigint;
404
408
  get userUid(): string;
@@ -414,7 +418,7 @@ export declare namespace GroupMuteEvent {
414
418
  }
415
419
  }
416
420
  export declare class GroupNameChangeEvent implements AcidifyEvent {
417
- constructor(groupUin: bigint, newGroupName: string, operatorUin: bigint, operatorUid: string);
421
+ private constructor();
418
422
  get groupUin(): bigint;
419
423
  get newGroupName(): string;
420
424
  get operatorUin(): bigint;
@@ -428,7 +432,7 @@ export declare namespace GroupNameChangeEvent {
428
432
  }
429
433
  }
430
434
  export declare class GroupNudgeEvent implements AcidifyEvent {
431
- constructor(groupUin: bigint, senderUin: bigint, senderUid: string, receiverUin: bigint, receiverUid: string, displayAction: string, displaySuffix: string, displayActionImgUrl: string);
435
+ private constructor();
432
436
  get groupUin(): bigint;
433
437
  get senderUin(): bigint;
434
438
  get senderUid(): string;
@@ -446,7 +450,7 @@ export declare namespace GroupNudgeEvent {
446
450
  }
447
451
  }
448
452
  export declare class GroupWholeMuteEvent implements AcidifyEvent {
449
- constructor(groupUin: bigint, operatorUin: bigint, operatorUid: string, isMute: boolean);
453
+ private constructor();
450
454
  get groupUin(): bigint;
451
455
  get operatorUin(): bigint;
452
456
  get operatorUid(): string;
@@ -460,7 +464,7 @@ export declare namespace GroupWholeMuteEvent {
460
464
  }
461
465
  }
462
466
  export declare class MessageRecallEvent implements AcidifyEvent {
463
- constructor(scene: MessageScene, peerUin: bigint, messageSeq: bigint, senderUin: bigint, senderUid: string, operatorUin: bigint, operatorUid: string, displaySuffix: string);
467
+ private constructor();
464
468
  get scene(): MessageScene;
465
469
  get peerUin(): bigint;
466
470
  get messageSeq(): bigint;
@@ -478,7 +482,7 @@ export declare namespace MessageRecallEvent {
478
482
  }
479
483
  }
480
484
  export declare class MessageReceiveEvent implements AcidifyEvent {
481
- constructor(message: BotIncomingMessage);
485
+ private constructor();
482
486
  get message(): BotIncomingMessage;
483
487
  readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
484
488
  }
@@ -489,7 +493,7 @@ export declare namespace MessageReceiveEvent {
489
493
  }
490
494
  }
491
495
  export declare class PinChangedEvent implements AcidifyEvent {
492
- constructor(scene: MessageScene, peerUin: bigint, isPinned: boolean);
496
+ private constructor();
493
497
  get scene(): MessageScene;
494
498
  get peerUin(): bigint;
495
499
  get isPinned(): boolean;
@@ -502,7 +506,7 @@ export declare namespace PinChangedEvent {
502
506
  }
503
507
  }
504
508
  export declare class QRCodeGeneratedEvent implements AcidifyEvent {
505
- constructor(url: string, png: Int8Array);
509
+ private constructor();
506
510
  get url(): string;
507
511
  get png(): Int8Array;
508
512
  readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
@@ -514,7 +518,7 @@ export declare namespace QRCodeGeneratedEvent {
514
518
  }
515
519
  }
516
520
  export declare class QRCodeStateQueryEvent implements AcidifyEvent {
517
- constructor(state: QRCodeState);
521
+ private constructor();
518
522
  get state(): QRCodeState;
519
523
  readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
520
524
  }
@@ -525,7 +529,7 @@ export declare namespace QRCodeStateQueryEvent {
525
529
  }
526
530
  }
527
531
  export declare class SessionStoreUpdatedEvent implements AcidifyEvent {
528
- constructor(sessionStore: SessionStore);
532
+ private constructor();
529
533
  get sessionStore(): SessionStore;
530
534
  readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
531
535
  }
@@ -536,7 +540,7 @@ export declare namespace SessionStoreUpdatedEvent {
536
540
  }
537
541
  }
538
542
  export declare class BotOnlineException extends /* Exception */ Error {
539
- constructor(systemMsg: string);
543
+ private constructor();
540
544
  get systemMsg(): string;
541
545
  }
542
546
  export declare namespace BotOnlineException {
@@ -546,7 +550,7 @@ export declare namespace BotOnlineException {
546
550
  }
547
551
  }
548
552
  export declare class MessageSendException extends /* Exception */ Error {
549
- constructor(resultCode: number, errorMessage: string);
553
+ private constructor();
550
554
  get resultCode(): number;
551
555
  get errorMessage(): string;
552
556
  }
@@ -557,7 +561,7 @@ export declare namespace MessageSendException {
557
561
  }
558
562
  }
559
563
  export declare class OidbException extends /* Exception */ Error {
560
- constructor(oidbCommand: number, oidbService: number, oidbResult: number, oidbErrorMsg: string);
564
+ private constructor();
561
565
  get oidbCommand(): number;
562
566
  get oidbService(): number;
563
567
  get oidbResult(): number;
@@ -570,7 +574,7 @@ export declare namespace OidbException {
570
574
  }
571
575
  }
572
576
  export declare class ServiceException extends /* Exception */ Error {
573
- constructor(cmd: string, retCode: number, extra: string);
577
+ private constructor();
574
578
  get cmd(): string;
575
579
  get retCode(): number;
576
580
  get extra(): string;
@@ -582,7 +586,7 @@ export declare namespace ServiceException {
582
586
  }
583
587
  }
584
588
  export declare class WebApiException extends /* Exception */ Error {
585
- constructor(msg: string, statusCode: number);
589
+ private constructor();
586
590
  get statusCode(): number;
587
591
  }
588
592
  export declare namespace WebApiException {
@@ -592,7 +596,7 @@ export declare namespace WebApiException {
592
596
  }
593
597
  }
594
598
  export declare class WtLoginException extends /* Exception */ Error {
595
- constructor(code: number, tag: string, msg: string);
599
+ private constructor();
596
600
  get code(): number;
597
601
  get tag(): string;
598
602
  get msg(): string;
@@ -678,7 +682,7 @@ export declare namespace SimpleLogHandler {
678
682
  }
679
683
  }
680
684
  export declare class BotEssenceMessage {
681
- constructor(groupUin: bigint, messageSeq: bigint, messageTime: bigint, senderUin: bigint, senderName: string, operatorUin: bigint, operatorName: string, operationTime: bigint, segments: KtList<BotEssenceSegment>);
685
+ private constructor();
682
686
  get groupUin(): bigint;
683
687
  get messageSeq(): bigint;
684
688
  get messageTime(): bigint;
@@ -707,7 +711,7 @@ export declare namespace BotEssenceMessage {
707
711
  }
708
712
  }
709
713
  export declare class BotEssenceMessageResult {
710
- constructor(messages: KtList<BotEssenceMessage>, isEnd: boolean);
714
+ private constructor();
711
715
  get messages(): KtList<BotEssenceMessage>;
712
716
  get isEnd(): boolean;
713
717
  }
@@ -726,12 +730,9 @@ export declare namespace BotEssenceSegment {
726
730
  const constructor: abstract new () => BotEssenceSegment;
727
731
  }
728
732
  class Text extends BotEssenceSegment.$metadata$.constructor {
729
- constructor(text: string);
733
+ private constructor();
730
734
  get text(): string;
731
735
  toString(): string;
732
- copy(text?: string): BotEssenceSegment.Text;
733
- hashCode(): number;
734
- equals(other: Nullable<any>): boolean;
735
736
  }
736
737
  namespace Text {
737
738
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -740,12 +741,9 @@ export declare namespace BotEssenceSegment {
740
741
  }
741
742
  }
742
743
  class Face extends BotEssenceSegment.$metadata$.constructor {
743
- constructor(faceId: number);
744
+ private constructor();
744
745
  get faceId(): number;
745
746
  toString(): string;
746
- copy(faceId?: number): BotEssenceSegment.Face;
747
- hashCode(): number;
748
- equals(other: Nullable<any>): boolean;
749
747
  }
750
748
  namespace Face {
751
749
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -754,12 +752,9 @@ export declare namespace BotEssenceSegment {
754
752
  }
755
753
  }
756
754
  class Image extends BotEssenceSegment.$metadata$.constructor {
757
- constructor(imageUrl: string);
755
+ private constructor();
758
756
  get imageUrl(): string;
759
757
  toString(): string;
760
- copy(imageUrl?: string): BotEssenceSegment.Image;
761
- hashCode(): number;
762
- equals(other: Nullable<any>): boolean;
763
758
  }
764
759
  namespace Image {
765
760
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -768,12 +763,9 @@ export declare namespace BotEssenceSegment {
768
763
  }
769
764
  }
770
765
  class Video extends BotEssenceSegment.$metadata$.constructor {
771
- constructor(thumbnailUrl: string);
766
+ private constructor();
772
767
  get thumbnailUrl(): string;
773
768
  toString(): string;
774
- copy(thumbnailUrl?: string): BotEssenceSegment.Video;
775
- hashCode(): number;
776
- equals(other: Nullable<any>): boolean;
777
769
  }
778
770
  namespace Video {
779
771
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -783,11 +775,12 @@ export declare namespace BotEssenceSegment {
783
775
  }
784
776
  }
785
777
  export declare class BotForwardedMessage {
786
- constructor(senderName: string, avatarUrl: string, timestamp: bigint);
778
+ private constructor();
787
779
  get senderName(): string;
788
780
  get avatarUrl(): string;
789
781
  get timestamp(): bigint;
790
782
  get segments(): KtList<BotIncomingSegment>;
783
+ set segments(value: KtList<BotIncomingSegment>);
791
784
  }
792
785
  export declare namespace BotForwardedMessage {
793
786
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -807,7 +800,7 @@ export declare namespace BotForwardedMessage {
807
800
  }
808
801
  }
809
802
  export declare class BotHistoryMessages {
810
- constructor(messages: KtList<BotIncomingMessage>, nextStartSequence?: Nullable<bigint>);
803
+ private constructor();
811
804
  get messages(): KtList<BotIncomingMessage>;
812
805
  get nextStartSequence(): Nullable<bigint>;
813
806
  }
@@ -818,7 +811,7 @@ export declare namespace BotHistoryMessages {
818
811
  }
819
812
  }
820
813
  export declare class BotIncomingMessage {
821
- constructor(scene: MessageScene, peerUin: bigint, peerUid: string, sequence: bigint, timestamp: bigint, senderUin: bigint, senderUid: string, clientSequence: bigint, random: number, messageUid: bigint);
814
+ private constructor();
822
815
  get scene(): MessageScene;
823
816
  get peerUin(): bigint;
824
817
  get peerUid(): string;
@@ -830,6 +823,7 @@ export declare class BotIncomingMessage {
830
823
  get random(): number;
831
824
  get messageUid(): bigint;
832
825
  get segments(): KtList<BotIncomingSegment>;
826
+ set segments(value: KtList<BotIncomingSegment>);
833
827
  get extraInfo(): Nullable<BotIncomingMessage.ExtraInfo>;
834
828
  set extraInfo(value: Nullable<BotIncomingMessage.ExtraInfo>);
835
829
  }
@@ -839,7 +833,7 @@ export declare namespace BotIncomingMessage {
839
833
  const constructor: abstract new () => BotIncomingMessage;
840
834
  }
841
835
  class ExtraInfo {
842
- constructor(nick: string, groupCard: string, specialTitle: string);
836
+ private constructor();
843
837
  get nick(): string;
844
838
  get groupCard(): string;
845
839
  get specialTitle(): string;
@@ -871,7 +865,7 @@ export declare namespace BotIncomingSegment {
871
865
  const constructor: abstract new () => BotIncomingSegment;
872
866
  }
873
867
  class Text extends BotIncomingSegment.$metadata$.constructor {
874
- constructor(text: string);
868
+ private constructor();
875
869
  get text(): string;
876
870
  toString(): string;
877
871
  }
@@ -882,7 +876,7 @@ export declare namespace BotIncomingSegment {
882
876
  }
883
877
  }
884
878
  class Mention extends BotIncomingSegment.$metadata$.constructor {
885
- constructor(uin: Nullable<bigint> | undefined, name: string);
879
+ private constructor();
886
880
  get uin(): Nullable<bigint>;
887
881
  get name(): string;
888
882
  toString(): string;
@@ -894,7 +888,7 @@ export declare namespace BotIncomingSegment {
894
888
  }
895
889
  }
896
890
  class Face extends BotIncomingSegment.$metadata$.constructor {
897
- constructor(faceId: number, summary: string, isLarge: boolean);
891
+ private constructor();
898
892
  get faceId(): number;
899
893
  get summary(): string;
900
894
  get isLarge(): boolean;
@@ -907,8 +901,10 @@ export declare namespace BotIncomingSegment {
907
901
  }
908
902
  }
909
903
  class Reply extends BotIncomingSegment.$metadata$.constructor {
910
- constructor(sequence: bigint);
904
+ private constructor();
911
905
  get sequence(): bigint;
906
+ get senderUin(): bigint;
907
+ get segments(): KtList<BotIncomingSegment>;
912
908
  toString(): string;
913
909
  }
914
910
  namespace Reply {
@@ -918,7 +914,7 @@ export declare namespace BotIncomingSegment {
918
914
  }
919
915
  }
920
916
  class Image extends BotIncomingSegment.$metadata$.constructor {
921
- constructor(fileId: string, width: number, height: number, subType: ImageSubType, summary: string);
917
+ private constructor();
922
918
  get fileId(): string;
923
919
  get width(): number;
924
920
  get height(): number;
@@ -933,7 +929,7 @@ export declare namespace BotIncomingSegment {
933
929
  }
934
930
  }
935
931
  class Record extends BotIncomingSegment.$metadata$.constructor {
936
- constructor(fileId: string, duration: number);
932
+ private constructor();
937
933
  get fileId(): string;
938
934
  get duration(): number;
939
935
  toString(): string;
@@ -945,7 +941,7 @@ export declare namespace BotIncomingSegment {
945
941
  }
946
942
  }
947
943
  class Video extends BotIncomingSegment.$metadata$.constructor {
948
- constructor(fileId: string, duration: number, width: number, height: number);
944
+ private constructor();
949
945
  get fileId(): string;
950
946
  get duration(): number;
951
947
  get width(): number;
@@ -959,7 +955,7 @@ export declare namespace BotIncomingSegment {
959
955
  }
960
956
  }
961
957
  class File extends BotIncomingSegment.$metadata$.constructor {
962
- constructor(fileId: string, fileName: string, fileSize: bigint, fileHash?: Nullable<string>);
958
+ private constructor();
963
959
  get fileId(): string;
964
960
  get fileName(): string;
965
961
  get fileSize(): bigint;
@@ -973,7 +969,7 @@ export declare namespace BotIncomingSegment {
973
969
  }
974
970
  }
975
971
  class Forward extends BotIncomingSegment.$metadata$.constructor {
976
- constructor(resId: string);
972
+ private constructor();
977
973
  get resId(): string;
978
974
  toString(): string;
979
975
  }
@@ -984,7 +980,7 @@ export declare namespace BotIncomingSegment {
984
980
  }
985
981
  }
986
982
  class MarketFace extends BotIncomingSegment.$metadata$.constructor {
987
- constructor(url: string, summary: string, emojiId: string, emojiPackageId: number, key: string);
983
+ private constructor();
988
984
  get url(): string;
989
985
  get summary(): string;
990
986
  get emojiId(): string;
@@ -999,7 +995,7 @@ export declare namespace BotIncomingSegment {
999
995
  }
1000
996
  }
1001
997
  class LightApp extends BotIncomingSegment.$metadata$.constructor {
1002
- constructor(appName: string, jsonPayload: string);
998
+ private constructor();
1003
999
  get appName(): string;
1004
1000
  get jsonPayload(): string;
1005
1001
  toString(): string;
@@ -1012,7 +1008,7 @@ export declare namespace BotIncomingSegment {
1012
1008
  }
1013
1009
  }
1014
1010
  export declare class BotOutgoingMessageResult {
1015
- constructor(sequence: bigint, sendTime: bigint);
1011
+ private constructor();
1016
1012
  get sequence(): bigint;
1017
1013
  get sendTime(): bigint;
1018
1014
  }
@@ -1122,7 +1118,7 @@ export declare namespace MessageScene {
1122
1118
  }
1123
1119
  }
1124
1120
  export declare class BotFaceDetail {
1125
- constructor(qSid: string, qDes: string, emCode: string, qCid: number, aniStickerType: number, aniStickerPackId: number, aniStickerId: number, url: string, emojiNameAlias: KtList<string>, aniStickerWidth: number, aniStickerHeight: number);
1121
+ private constructor();
1126
1122
  get qSid(): string;
1127
1123
  get qDes(): string;
1128
1124
  get emCode(): string;
@@ -1134,10 +1130,6 @@ export declare class BotFaceDetail {
1134
1130
  get emojiNameAlias(): KtList<string>;
1135
1131
  get aniStickerWidth(): number;
1136
1132
  get aniStickerHeight(): number;
1137
- copy(qSid?: string, qDes?: string, emCode?: string, qCid?: number, aniStickerType?: number, aniStickerPackId?: number, aniStickerId?: number, url?: string, emojiNameAlias?: KtList<string>, aniStickerWidth?: number, aniStickerHeight?: number): BotFaceDetail;
1138
- toString(): string;
1139
- hashCode(): number;
1140
- equals(other: Nullable<any>): boolean;
1141
1133
  }
1142
1134
  export declare namespace BotFaceDetail {
1143
1135
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1146,7 +1138,7 @@ export declare namespace BotFaceDetail {
1146
1138
  }
1147
1139
  }
1148
1140
  export declare class BotFriendData {
1149
- constructor(uin: bigint, uid: string, nickname: string, remark: string, bio: string, qid: string, age: number, gender: UserInfoGender, categoryId: number, categoryName: string);
1141
+ private constructor();
1150
1142
  get uin(): bigint;
1151
1143
  get uid(): string;
1152
1144
  get nickname(): string;
@@ -1157,10 +1149,6 @@ export declare class BotFriendData {
1157
1149
  get gender(): UserInfoGender;
1158
1150
  get categoryId(): number;
1159
1151
  get categoryName(): string;
1160
- copy(uin?: bigint, uid?: string, nickname?: string, remark?: string, bio?: string, qid?: string, age?: number, gender?: UserInfoGender, categoryId?: number, categoryName?: string): BotFriendData;
1161
- toString(): string;
1162
- hashCode(): number;
1163
- equals(other: Nullable<any>): boolean;
1164
1152
  }
1165
1153
  export declare namespace BotFriendData {
1166
1154
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1169,7 +1157,7 @@ export declare namespace BotFriendData {
1169
1157
  }
1170
1158
  }
1171
1159
  export declare class BotFriendRequest {
1172
- constructor(time: bigint, initiatorUin: bigint, initiatorUid: string, targetUserUin: bigint, targetUserUid: string, state: RequestState, comment: string, via: string, isFiltered: boolean);
1160
+ private constructor();
1173
1161
  get time(): bigint;
1174
1162
  get initiatorUin(): bigint;
1175
1163
  get initiatorUid(): string;
@@ -1179,10 +1167,6 @@ export declare class BotFriendRequest {
1179
1167
  get comment(): string;
1180
1168
  get via(): string;
1181
1169
  get isFiltered(): boolean;
1182
- copy(time?: bigint, initiatorUin?: bigint, initiatorUid?: string, targetUserUin?: bigint, targetUserUid?: string, state?: RequestState, comment?: string, via?: string, isFiltered?: boolean): BotFriendRequest;
1183
- toString(): string;
1184
- hashCode(): number;
1185
- equals(other: Nullable<any>): boolean;
1186
1170
  }
1187
1171
  export declare namespace BotFriendRequest {
1188
1172
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1202,17 +1186,13 @@ export declare namespace BotFriendRequest {
1202
1186
  }
1203
1187
  }
1204
1188
  export declare class BotGroupAnnouncement {
1205
- constructor(groupUin: bigint, announcementId: string, senderId: bigint, time: bigint, content: string, imageUrl?: Nullable<string>);
1189
+ private constructor();
1206
1190
  get groupUin(): bigint;
1207
1191
  get announcementId(): string;
1208
1192
  get senderId(): bigint;
1209
1193
  get time(): bigint;
1210
1194
  get content(): string;
1211
1195
  get imageUrl(): Nullable<string>;
1212
- copy(groupUin?: bigint, announcementId?: string, senderId?: bigint, time?: bigint, content?: string, imageUrl?: Nullable<string>): BotGroupAnnouncement;
1213
- toString(): string;
1214
- hashCode(): number;
1215
- equals(other: Nullable<any>): boolean;
1216
1196
  }
1217
1197
  export declare namespace BotGroupAnnouncement {
1218
1198
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1221,15 +1201,11 @@ export declare namespace BotGroupAnnouncement {
1221
1201
  }
1222
1202
  }
1223
1203
  export declare class BotGroupData {
1224
- constructor(uin: bigint, name: string, memberCount: number, capacity: number);
1204
+ private constructor();
1225
1205
  get uin(): bigint;
1226
1206
  get name(): string;
1227
1207
  get memberCount(): number;
1228
1208
  get capacity(): number;
1229
- copy(uin?: bigint, name?: string, memberCount?: number, capacity?: number): BotGroupData;
1230
- toString(): string;
1231
- hashCode(): number;
1232
- equals(other: Nullable<any>): boolean;
1233
1209
  }
1234
1210
  export declare namespace BotGroupData {
1235
1211
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1238,7 +1214,7 @@ export declare namespace BotGroupData {
1238
1214
  }
1239
1215
  }
1240
1216
  export declare class BotGroupFileEntry {
1241
- constructor(fileId: string, fileName: string, parentFolderId: string, fileSize: bigint, expireTime: bigint, modifiedTime: bigint, uploaderUin: bigint, uploadedTime: bigint, downloadedTimes: number);
1217
+ private constructor();
1242
1218
  get fileId(): string;
1243
1219
  get fileName(): string;
1244
1220
  get parentFolderId(): string;
@@ -1248,10 +1224,6 @@ export declare class BotGroupFileEntry {
1248
1224
  get uploaderUin(): bigint;
1249
1225
  get uploadedTime(): bigint;
1250
1226
  get downloadedTimes(): number;
1251
- copy(fileId?: string, fileName?: string, parentFolderId?: string, fileSize?: bigint, expireTime?: bigint, modifiedTime?: bigint, uploaderUin?: bigint, uploadedTime?: bigint, downloadedTimes?: number): BotGroupFileEntry;
1252
- toString(): string;
1253
- hashCode(): number;
1254
- equals(other: Nullable<any>): boolean;
1255
1227
  }
1256
1228
  export declare namespace BotGroupFileEntry {
1257
1229
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1260,13 +1232,9 @@ export declare namespace BotGroupFileEntry {
1260
1232
  }
1261
1233
  }
1262
1234
  export declare class BotGroupFileSystemList {
1263
- constructor(files: KtList<BotGroupFileEntry>, folders: KtList<BotGroupFolderEntry>);
1235
+ private constructor();
1264
1236
  get files(): KtList<BotGroupFileEntry>;
1265
1237
  get folders(): KtList<BotGroupFolderEntry>;
1266
- copy(files?: KtList<BotGroupFileEntry>, folders?: KtList<BotGroupFolderEntry>): BotGroupFileSystemList;
1267
- toString(): string;
1268
- hashCode(): number;
1269
- equals(other: Nullable<any>): boolean;
1270
1238
  }
1271
1239
  export declare namespace BotGroupFileSystemList {
1272
1240
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1275,7 +1243,7 @@ export declare namespace BotGroupFileSystemList {
1275
1243
  }
1276
1244
  }
1277
1245
  export declare class BotGroupFolderEntry {
1278
- constructor(folderId: string, parentFolderId: string, folderName: string, createTime: bigint, modifiedTime: bigint, creatorUin: bigint, totalFileCount: number);
1246
+ private constructor();
1279
1247
  get folderId(): string;
1280
1248
  get parentFolderId(): string;
1281
1249
  get folderName(): string;
@@ -1283,10 +1251,6 @@ export declare class BotGroupFolderEntry {
1283
1251
  get modifiedTime(): bigint;
1284
1252
  get creatorUin(): bigint;
1285
1253
  get totalFileCount(): number;
1286
- copy(folderId?: string, parentFolderId?: string, folderName?: string, createTime?: bigint, modifiedTime?: bigint, creatorUin?: bigint, totalFileCount?: number): BotGroupFolderEntry;
1287
- toString(): string;
1288
- hashCode(): number;
1289
- equals(other: Nullable<any>): boolean;
1290
1254
  }
1291
1255
  export declare namespace BotGroupFolderEntry {
1292
1256
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1326,7 +1290,7 @@ export declare namespace BotGroupNotification {
1326
1290
  const constructor: abstract new () => BotGroupNotification;
1327
1291
  }
1328
1292
  class JoinRequest extends BotGroupNotification.$metadata$.constructor {
1329
- constructor(groupUin: bigint, notificationSeq: bigint, isFiltered: boolean, initiatorUin: bigint, initiatorUid: string, state: RequestState, operatorUin: Nullable<bigint>, operatorUid: Nullable<string>, comment: string);
1293
+ private constructor();
1330
1294
  get groupUin(): bigint;
1331
1295
  get notificationSeq(): bigint;
1332
1296
  get isFiltered(): boolean;
@@ -1336,10 +1300,6 @@ export declare namespace BotGroupNotification {
1336
1300
  get operatorUin(): Nullable<bigint>;
1337
1301
  get operatorUid(): Nullable<string>;
1338
1302
  get comment(): string;
1339
- copy(groupUin?: bigint, notificationSeq?: bigint, isFiltered?: boolean, initiatorUin?: bigint, initiatorUid?: string, state?: RequestState, operatorUin?: Nullable<bigint>, operatorUid?: Nullable<string>, comment?: string): BotGroupNotification.JoinRequest;
1340
- toString(): string;
1341
- hashCode(): number;
1342
- equals(other: Nullable<any>): boolean;
1343
1303
  }
1344
1304
  namespace JoinRequest {
1345
1305
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1348,7 +1308,7 @@ export declare namespace BotGroupNotification {
1348
1308
  }
1349
1309
  }
1350
1310
  class AdminChange extends BotGroupNotification.$metadata$.constructor {
1351
- constructor(groupUin: bigint, notificationSeq: bigint, targetUserUin: bigint, targetUserUid: string, isSet: boolean, operatorUin: bigint, operatorUid: string);
1311
+ private constructor();
1352
1312
  get groupUin(): bigint;
1353
1313
  get notificationSeq(): bigint;
1354
1314
  get targetUserUin(): bigint;
@@ -1356,10 +1316,6 @@ export declare namespace BotGroupNotification {
1356
1316
  get isSet(): boolean;
1357
1317
  get operatorUin(): bigint;
1358
1318
  get operatorUid(): string;
1359
- copy(groupUin?: bigint, notificationSeq?: bigint, targetUserUin?: bigint, targetUserUid?: string, isSet?: boolean, operatorUin?: bigint, operatorUid?: string): BotGroupNotification.AdminChange;
1360
- toString(): string;
1361
- hashCode(): number;
1362
- equals(other: Nullable<any>): boolean;
1363
1319
  }
1364
1320
  namespace AdminChange {
1365
1321
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1368,17 +1324,13 @@ export declare namespace BotGroupNotification {
1368
1324
  }
1369
1325
  }
1370
1326
  class Kick extends BotGroupNotification.$metadata$.constructor {
1371
- constructor(groupUin: bigint, notificationSeq: bigint, targetUserUin: bigint, targetUserUid: string, operatorUin: bigint, operatorUid: string);
1327
+ private constructor();
1372
1328
  get groupUin(): bigint;
1373
1329
  get notificationSeq(): bigint;
1374
1330
  get targetUserUin(): bigint;
1375
1331
  get targetUserUid(): string;
1376
1332
  get operatorUin(): bigint;
1377
1333
  get operatorUid(): string;
1378
- copy(groupUin?: bigint, notificationSeq?: bigint, targetUserUin?: bigint, targetUserUid?: string, operatorUin?: bigint, operatorUid?: string): BotGroupNotification.Kick;
1379
- toString(): string;
1380
- hashCode(): number;
1381
- equals(other: Nullable<any>): boolean;
1382
1334
  }
1383
1335
  namespace Kick {
1384
1336
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1387,15 +1339,11 @@ export declare namespace BotGroupNotification {
1387
1339
  }
1388
1340
  }
1389
1341
  class Quit extends BotGroupNotification.$metadata$.constructor {
1390
- constructor(groupUin: bigint, notificationSeq: bigint, targetUserUin: bigint, targetUserUid: string);
1342
+ private constructor();
1391
1343
  get groupUin(): bigint;
1392
1344
  get notificationSeq(): bigint;
1393
1345
  get targetUserUin(): bigint;
1394
1346
  get targetUserUid(): string;
1395
- copy(groupUin?: bigint, notificationSeq?: bigint, targetUserUin?: bigint, targetUserUid?: string): BotGroupNotification.Quit;
1396
- toString(): string;
1397
- hashCode(): number;
1398
- equals(other: Nullable<any>): boolean;
1399
1347
  }
1400
1348
  namespace Quit {
1401
1349
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1404,7 +1352,7 @@ export declare namespace BotGroupNotification {
1404
1352
  }
1405
1353
  }
1406
1354
  class InvitedJoinRequest extends BotGroupNotification.$metadata$.constructor {
1407
- constructor(groupUin: bigint, notificationSeq: bigint, initiatorUin: bigint, initiatorUid: string, targetUserUin: bigint, targetUserUid: string, state: RequestState, operatorUin: Nullable<bigint>, operatorUid: Nullable<string>);
1355
+ private constructor();
1408
1356
  get groupUin(): bigint;
1409
1357
  get notificationSeq(): bigint;
1410
1358
  get initiatorUin(): bigint;
@@ -1414,10 +1362,6 @@ export declare namespace BotGroupNotification {
1414
1362
  get state(): RequestState;
1415
1363
  get operatorUin(): Nullable<bigint>;
1416
1364
  get operatorUid(): Nullable<string>;
1417
- copy(groupUin?: bigint, notificationSeq?: bigint, initiatorUin?: bigint, initiatorUid?: string, targetUserUin?: bigint, targetUserUid?: string, state?: RequestState, operatorUin?: Nullable<bigint>, operatorUid?: Nullable<string>): BotGroupNotification.InvitedJoinRequest;
1418
- toString(): string;
1419
- hashCode(): number;
1420
- equals(other: Nullable<any>): boolean;
1421
1365
  }
1422
1366
  namespace InvitedJoinRequest {
1423
1367
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1438,13 +1382,9 @@ export declare namespace BotGroupNotification {
1438
1382
  }
1439
1383
  }
1440
1384
  export declare class BotPinnedChats {
1441
- constructor(friendUins: KtList<bigint>, groupUins: KtList<bigint>);
1385
+ private constructor();
1442
1386
  get friendUins(): KtList<bigint>;
1443
1387
  get groupUins(): KtList<bigint>;
1444
- copy(friendUins?: KtList<bigint>, groupUins?: KtList<bigint>): BotPinnedChats;
1445
- toString(): string;
1446
- hashCode(): number;
1447
- equals(other: Nullable<any>): boolean;
1448
1388
  }
1449
1389
  export declare namespace BotPinnedChats {
1450
1390
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1453,7 +1393,7 @@ export declare namespace BotPinnedChats {
1453
1393
  }
1454
1394
  }
1455
1395
  export declare class BotUserInfo {
1456
- constructor(uin: bigint, nickname: string, bio: string, gender: UserInfoGender, remark: string, level: number, country: string, city: string, school: string, registerTime: bigint, age: number, qid: string);
1396
+ private constructor();
1457
1397
  get uin(): bigint;
1458
1398
  get nickname(): string;
1459
1399
  get bio(): string;
@@ -1466,10 +1406,6 @@ export declare class BotUserInfo {
1466
1406
  get registerTime(): bigint;
1467
1407
  get age(): number;
1468
1408
  get qid(): string;
1469
- copy(uin?: bigint, nickname?: string, bio?: string, gender?: UserInfoGender, remark?: string, level?: number, country?: string, city?: string, school?: string, registerTime?: bigint, age?: number, qid?: string): BotUserInfo;
1470
- toString(): string;
1471
- hashCode(): number;
1472
- equals(other: Nullable<any>): boolean;
1473
1409
  }
1474
1410
  export declare namespace BotUserInfo {
1475
1411
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1654,10 +1590,10 @@ export declare class Bot /* implements CoroutineScope */ {
1654
1590
  get uid(): string;
1655
1591
  get isLoggedIn(): boolean;
1656
1592
  unsafeSendPacket(cmd: string, payload: Int8Array, timeoutMillis?: bigint): Promise<SsoResponse>;
1657
- qrCodeLogin(queryInterval?: bigint): Promise<void>;
1658
- online(): Promise<void>;
1593
+ qrCodeLogin(queryInterval: bigint | undefined, preloadContacts: boolean): Promise<void>;
1594
+ online(preloadContacts?: boolean): Promise<void>;
1659
1595
  offline(): Promise<void>;
1660
- login(): Promise<void>;
1596
+ login(queryInterval: bigint, preloadContacts: boolean): Promise<void>;
1661
1597
  fetchUserInfoByUin(uin: bigint): Promise<BotUserInfo>;
1662
1598
  fetchUserInfoByUid(uid: string): Promise<BotUserInfo>;
1663
1599
  fetchFriends(): Promise<Array<BotFriendData>>;
@@ -1833,13 +1769,9 @@ export declare namespace CoroutineScope {
1833
1769
  }
1834
1770
  }
1835
1771
  export declare class JsGroupNotifications {
1836
- constructor(notifications: Array<BotGroupNotification>, nextSequence: Nullable<bigint>);
1772
+ private constructor();
1837
1773
  get notifications(): Array<BotGroupNotification>;
1838
1774
  get nextSequence(): Nullable<bigint>;
1839
- copy(notifications?: Array<BotGroupNotification>, nextSequence?: Nullable<bigint>): JsGroupNotifications;
1840
- toString(): string;
1841
- hashCode(): number;
1842
- equals(other: Nullable<any>): boolean;
1843
1775
  }
1844
1776
  export declare namespace JsGroupNotifications {
1845
1777
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */