-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
2175 lines (2175 loc) · 78.5 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import * as pb_1 from "google-protobuf";
export declare class HydratedQuickReplyButton extends pb_1.Message {
constructor(data?: any[] | {
displayText?: string;
id?: string;
});
get displayText(): string;
set displayText(value: string);
get id(): string;
set id(value: string);
toObject(): {
displayText: string;
id: string;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HydratedQuickReplyButton;
}
export declare class HydratedURLButton extends pb_1.Message {
constructor(data?: any[] | {
displayText?: string;
url?: string;
});
get displayText(): string;
set displayText(value: string);
get url(): string;
set url(value: string);
toObject(): {
displayText: string;
url: string;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HydratedURLButton;
}
export declare class HydratedCallButton extends pb_1.Message {
constructor(data?: any[] | {
displayText?: string;
phoneNumber?: string;
});
get displayText(): string;
set displayText(value: string);
get phoneNumber(): string;
set phoneNumber(value: string);
toObject(): {
displayText: string;
phoneNumber: string;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HydratedCallButton;
}
export declare class HydratedTemplateButton extends pb_1.Message {
constructor(data?: any[] | {
index?: number;
quickReplyButton?: HydratedQuickReplyButton;
urlButton?: HydratedURLButton;
callButton?: HydratedCallButton;
});
get index(): number;
set index(value: number);
get quickReplyButton(): HydratedQuickReplyButton;
set quickReplyButton(value: HydratedQuickReplyButton);
get urlButton(): HydratedURLButton;
set urlButton(value: HydratedURLButton);
get callButton(): HydratedCallButton;
set callButton(value: HydratedCallButton);
toObject(): {
index: number;
quickReplyButton: {
displayText: string;
id: string;
};
urlButton: {
displayText: string;
url: string;
};
callButton: {
displayText: string;
phoneNumber: string;
};
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HydratedTemplateButton;
}
export declare class QuickReplyButton extends pb_1.Message {
constructor(data?: any[] | {
displayText?: HighlyStructuredMessage;
id?: string;
});
get displayText(): HighlyStructuredMessage;
set displayText(value: HighlyStructuredMessage);
get id(): string;
set id(value: string);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): QuickReplyButton;
}
export declare class URLButton extends pb_1.Message {
constructor(data?: any[] | {
displayText?: HighlyStructuredMessage;
url?: HighlyStructuredMessage;
});
get displayText(): HighlyStructuredMessage;
set displayText(value: HighlyStructuredMessage);
get url(): HighlyStructuredMessage;
set url(value: HighlyStructuredMessage);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): URLButton;
}
export declare class CallButton extends pb_1.Message {
constructor(data?: any[] | {
displayText?: HighlyStructuredMessage;
phoneNumber?: HighlyStructuredMessage;
});
get displayText(): HighlyStructuredMessage;
set displayText(value: HighlyStructuredMessage);
get phoneNumber(): HighlyStructuredMessage;
set phoneNumber(value: HighlyStructuredMessage);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CallButton;
}
export declare class TemplateButton extends pb_1.Message {
constructor(data?: any[] | {
index?: number;
quickReplyButton?: QuickReplyButton;
urlButton?: URLButton;
callButton?: CallButton;
});
get index(): number;
set index(value: number);
get quickReplyButton(): QuickReplyButton;
set quickReplyButton(value: QuickReplyButton);
get urlButton(): URLButton;
set urlButton(value: URLButton);
get callButton(): CallButton;
set callButton(value: CallButton);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TemplateButton;
}
export declare class Location extends pb_1.Message {
constructor(data?: any[] | {
degreesLatitude?: number;
degreesLongitude?: number;
name?: string;
});
get degreesLatitude(): number;
set degreesLatitude(value: number);
get degreesLongitude(): number;
set degreesLongitude(value: number);
get name(): string;
set name(value: string);
toObject(): {
degreesLatitude: number;
degreesLongitude: number;
name: string;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Location;
}
export declare class Point extends pb_1.Message {
constructor(data?: any[] | {
xDeprecated?: number;
yDeprecated?: number;
x?: number;
y?: number;
});
get xDeprecated(): number;
set xDeprecated(value: number);
get yDeprecated(): number;
set yDeprecated(value: number);
get x(): number;
set x(value: number);
get y(): number;
set y(value: number);
toObject(): {
xDeprecated: number;
yDeprecated: number;
x: number;
y: number;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Point;
}
export declare class InteractiveAnnotation extends pb_1.Message {
constructor(data?: any[] | {
polygonVertices?: Point[];
location?: Location;
});
get polygonVertices(): Point[];
set polygonVertices(value: Point[]);
get location(): Location;
set location(value: Location);
toObject(): {
polygonVertices: {
xDeprecated: number;
yDeprecated: number;
x: number;
y: number;
}[];
location: {
degreesLatitude: number;
degreesLongitude: number;
name: string;
};
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): InteractiveAnnotation;
}
export declare class AdReplyInfo extends pb_1.Message {
constructor(data?: any[] | {
advertiserName?: string;
mediaType?: AdReplyInfo.AD_REPLY_INFO_MEDIATYPE;
jpegThumbnail?: Uint8Array;
caption?: string;
});
get advertiserName(): string;
set advertiserName(value: string);
get mediaType(): AdReplyInfo.AD_REPLY_INFO_MEDIATYPE;
set mediaType(value: AdReplyInfo.AD_REPLY_INFO_MEDIATYPE);
get jpegThumbnail(): Uint8Array;
set jpegThumbnail(value: Uint8Array);
get caption(): string;
set caption(value: string);
toObject(): {
advertiserName: string;
mediaType: AdReplyInfo.AD_REPLY_INFO_MEDIATYPE;
jpegThumbnail: Uint8Array;
caption: string;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AdReplyInfo;
}
export declare namespace AdReplyInfo {
enum AD_REPLY_INFO_MEDIATYPE {
NONE = 0,
IMAGE = 1,
VIDEO = 2
}
}
export declare class ContextInfo extends pb_1.Message {
constructor(data?: any[] | {
stanzaId?: string;
participant?: string;
quotedMessage?: Message;
remoteJid?: string;
mentionedJid?: string[];
conversionSource?: string;
conversionData?: Uint8Array;
conversionDelaySeconds?: number;
forwardingScore?: number;
isForwarded?: boolean;
quotedAd?: AdReplyInfo;
placeholderKey?: MessageKey;
expiration?: number;
ephemeralSettingTimestamp?: number;
ephemeralSharedSecret?: Uint8Array;
});
get stanzaId(): string;
set stanzaId(value: string);
get participant(): string;
set participant(value: string);
get quotedMessage(): Message;
set quotedMessage(value: Message);
get remoteJid(): string;
set remoteJid(value: string);
get mentionedJid(): string[];
set mentionedJid(value: string[]);
get conversionSource(): string;
set conversionSource(value: string);
get conversionData(): Uint8Array;
set conversionData(value: Uint8Array);
get conversionDelaySeconds(): number;
set conversionDelaySeconds(value: number);
get forwardingScore(): number;
set forwardingScore(value: number);
get isForwarded(): boolean;
set isForwarded(value: boolean);
get quotedAd(): AdReplyInfo;
set quotedAd(value: AdReplyInfo);
get placeholderKey(): MessageKey;
set placeholderKey(value: MessageKey);
get expiration(): number;
set expiration(value: number);
get ephemeralSettingTimestamp(): number;
set ephemeralSettingTimestamp(value: number);
get ephemeralSharedSecret(): Uint8Array;
set ephemeralSharedSecret(value: Uint8Array);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ContextInfo;
}
export declare class SenderKeyDistributionMessage extends pb_1.Message {
constructor(data?: any[] | {
groupId?: string;
axolotlSenderKeyDistributionMessage?: Uint8Array;
});
get groupId(): string;
set groupId(value: string);
get axolotlSenderKeyDistributionMessage(): Uint8Array;
set axolotlSenderKeyDistributionMessage(value: Uint8Array);
toObject(): {
groupId: string;
axolotlSenderKeyDistributionMessage: Uint8Array;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SenderKeyDistributionMessage;
}
export declare class ImageMessage extends pb_1.Message {
constructor(data?: any[] | {
url?: string;
mimetype?: string;
caption?: string;
fileSha256?: Uint8Array;
fileLength?: number;
height?: number;
width?: number;
mediaKey?: Uint8Array;
fileEncSha256?: Uint8Array;
interactiveAnnotations?: InteractiveAnnotation[];
directPath?: string;
mediaKeyTimestamp?: number;
jpegThumbnail?: Uint8Array;
contextInfo?: ContextInfo;
firstScanSidecar?: Uint8Array;
firstScanLength?: number;
experimentGroupId?: number;
scansSidecar?: Uint8Array;
scanLengths?: number[];
midQualityFileSha256?: Uint8Array;
midQualityFileEncSha256?: Uint8Array;
});
get url(): string;
set url(value: string);
get mimetype(): string;
set mimetype(value: string);
get caption(): string;
set caption(value: string);
get fileSha256(): Uint8Array;
set fileSha256(value: Uint8Array);
get fileLength(): number;
set fileLength(value: number);
get height(): number;
set height(value: number);
get width(): number;
set width(value: number);
get mediaKey(): Uint8Array;
set mediaKey(value: Uint8Array);
get fileEncSha256(): Uint8Array;
set fileEncSha256(value: Uint8Array);
get interactiveAnnotations(): InteractiveAnnotation[];
set interactiveAnnotations(value: InteractiveAnnotation[]);
get directPath(): string;
set directPath(value: string);
get mediaKeyTimestamp(): number;
set mediaKeyTimestamp(value: number);
get jpegThumbnail(): Uint8Array;
set jpegThumbnail(value: Uint8Array);
get contextInfo(): ContextInfo;
set contextInfo(value: ContextInfo);
get firstScanSidecar(): Uint8Array;
set firstScanSidecar(value: Uint8Array);
get firstScanLength(): number;
set firstScanLength(value: number);
get experimentGroupId(): number;
set experimentGroupId(value: number);
get scansSidecar(): Uint8Array;
set scansSidecar(value: Uint8Array);
get scanLengths(): number[];
set scanLengths(value: number[]);
get midQualityFileSha256(): Uint8Array;
set midQualityFileSha256(value: Uint8Array);
get midQualityFileEncSha256(): Uint8Array;
set midQualityFileEncSha256(value: Uint8Array);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ImageMessage;
}
export declare class ContactMessage extends pb_1.Message {
constructor(data?: any[] | {
displayName?: string;
vcard?: string;
contextInfo?: ContextInfo;
});
get displayName(): string;
set displayName(value: string);
get vcard(): string;
set vcard(value: string);
get contextInfo(): ContextInfo;
set contextInfo(value: ContextInfo);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ContactMessage;
}
export declare class LocationMessage extends pb_1.Message {
constructor(data?: any[] | {
degreesLatitude?: number;
degreesLongitude?: number;
name?: string;
address?: string;
url?: string;
isLive?: boolean;
accuracyInMeters?: number;
speedInMps?: number;
degreesClockwiseFromMagneticNorth?: number;
comment?: string;
jpegThumbnail?: Uint8Array;
contextInfo?: ContextInfo;
});
get degreesLatitude(): number;
set degreesLatitude(value: number);
get degreesLongitude(): number;
set degreesLongitude(value: number);
get name(): string;
set name(value: string);
get address(): string;
set address(value: string);
get url(): string;
set url(value: string);
get isLive(): boolean;
set isLive(value: boolean);
get accuracyInMeters(): number;
set accuracyInMeters(value: number);
get speedInMps(): number;
set speedInMps(value: number);
get degreesClockwiseFromMagneticNorth(): number;
set degreesClockwiseFromMagneticNorth(value: number);
get comment(): string;
set comment(value: string);
get jpegThumbnail(): Uint8Array;
set jpegThumbnail(value: Uint8Array);
get contextInfo(): ContextInfo;
set contextInfo(value: ContextInfo);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): LocationMessage;
}
export declare class ExtendedTextMessage extends pb_1.Message {
constructor(data?: any[] | {
text?: string;
matchedText?: string;
canonicalUrl?: string;
description?: string;
title?: string;
textArgb?: number;
backgroundArgb?: number;
font?: ExtendedTextMessage.EXTENDED_TEXT_MESSAGE_FONTTYPE;
previewType?: ExtendedTextMessage.EXTENDED_TEXT_MESSAGE_PREVIEWTYPE;
jpegThumbnail?: Uint8Array;
contextInfo?: ContextInfo;
doNotPlayInline?: boolean;
});
get text(): string;
set text(value: string);
get matchedText(): string;
set matchedText(value: string);
get canonicalUrl(): string;
set canonicalUrl(value: string);
get description(): string;
set description(value: string);
get title(): string;
set title(value: string);
get textArgb(): number;
set textArgb(value: number);
get backgroundArgb(): number;
set backgroundArgb(value: number);
get font(): ExtendedTextMessage.EXTENDED_TEXT_MESSAGE_FONTTYPE;
set font(value: ExtendedTextMessage.EXTENDED_TEXT_MESSAGE_FONTTYPE);
get previewType(): ExtendedTextMessage.EXTENDED_TEXT_MESSAGE_PREVIEWTYPE;
set previewType(value: ExtendedTextMessage.EXTENDED_TEXT_MESSAGE_PREVIEWTYPE);
get jpegThumbnail(): Uint8Array;
set jpegThumbnail(value: Uint8Array);
get contextInfo(): ContextInfo;
set contextInfo(value: ContextInfo);
get doNotPlayInline(): boolean;
set doNotPlayInline(value: boolean);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ExtendedTextMessage;
}
export declare namespace ExtendedTextMessage {
enum EXTENDED_TEXT_MESSAGE_FONTTYPE {
SANS_SERIF = 0,
SERIF = 1,
NORICAN_REGULAR = 2,
BRYNDAN_WRITE = 3,
BEBASNEUE_REGULAR = 4,
OSWALD_HEAVY = 5
}
enum EXTENDED_TEXT_MESSAGE_PREVIEWTYPE {
NONE = 0,
VIDEO = 1
}
}
export declare class DocumentMessage extends pb_1.Message {
constructor(data?: any[] | {
url?: string;
mimetype?: string;
title?: string;
fileSha256?: Uint8Array;
fileLength?: number;
pageCount?: number;
mediaKey?: Uint8Array;
fileName?: string;
fileEncSha256?: Uint8Array;
directPath?: string;
mediaKeyTimestamp?: number;
jpegThumbnail?: Uint8Array;
contextInfo?: ContextInfo;
});
get url(): string;
set url(value: string);
get mimetype(): string;
set mimetype(value: string);
get title(): string;
set title(value: string);
get fileSha256(): Uint8Array;
set fileSha256(value: Uint8Array);
get fileLength(): number;
set fileLength(value: number);
get pageCount(): number;
set pageCount(value: number);
get mediaKey(): Uint8Array;
set mediaKey(value: Uint8Array);
get fileName(): string;
set fileName(value: string);
get fileEncSha256(): Uint8Array;
set fileEncSha256(value: Uint8Array);
get directPath(): string;
set directPath(value: string);
get mediaKeyTimestamp(): number;
set mediaKeyTimestamp(value: number);
get jpegThumbnail(): Uint8Array;
set jpegThumbnail(value: Uint8Array);
get contextInfo(): ContextInfo;
set contextInfo(value: ContextInfo);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DocumentMessage;
}
export declare class AudioMessage extends pb_1.Message {
constructor(data?: any[] | {
url?: string;
mimetype?: string;
fileSha256?: Uint8Array;
fileLength?: number;
seconds?: number;
ptt?: boolean;
mediaKey?: Uint8Array;
fileEncSha256?: Uint8Array;
directPath?: string;
mediaKeyTimestamp?: number;
contextInfo?: ContextInfo;
streamingSidecar?: Uint8Array;
});
get url(): string;
set url(value: string);
get mimetype(): string;
set mimetype(value: string);
get fileSha256(): Uint8Array;
set fileSha256(value: Uint8Array);
get fileLength(): number;
set fileLength(value: number);
get seconds(): number;
set seconds(value: number);
get ptt(): boolean;
set ptt(value: boolean);
get mediaKey(): Uint8Array;
set mediaKey(value: Uint8Array);
get fileEncSha256(): Uint8Array;
set fileEncSha256(value: Uint8Array);
get directPath(): string;
set directPath(value: string);
get mediaKeyTimestamp(): number;
set mediaKeyTimestamp(value: number);
get contextInfo(): ContextInfo;
set contextInfo(value: ContextInfo);
get streamingSidecar(): Uint8Array;
set streamingSidecar(value: Uint8Array);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AudioMessage;
}
export declare class VideoMessage extends pb_1.Message {
constructor(data?: any[] | {
url?: string;
mimetype?: string;
fileSha256?: Uint8Array;
fileLength?: number;
seconds?: number;
mediaKey?: Uint8Array;
caption?: string;
gifPlayback?: boolean;
height?: number;
width?: number;
fileEncSha256?: Uint8Array;
interactiveAnnotations?: InteractiveAnnotation[];
directPath?: string;
mediaKeyTimestamp?: number;
jpegThumbnail?: Uint8Array;
contextInfo?: ContextInfo;
streamingSidecar?: Uint8Array;
gifAttribution?: VideoMessage.VIDEO_MESSAGE_ATTRIBUTION;
});
get url(): string;
set url(value: string);
get mimetype(): string;
set mimetype(value: string);
get fileSha256(): Uint8Array;
set fileSha256(value: Uint8Array);
get fileLength(): number;
set fileLength(value: number);
get seconds(): number;
set seconds(value: number);
get mediaKey(): Uint8Array;
set mediaKey(value: Uint8Array);
get caption(): string;
set caption(value: string);
get gifPlayback(): boolean;
set gifPlayback(value: boolean);
get height(): number;
set height(value: number);
get width(): number;
set width(value: number);
get fileEncSha256(): Uint8Array;
set fileEncSha256(value: Uint8Array);
get interactiveAnnotations(): InteractiveAnnotation[];
set interactiveAnnotations(value: InteractiveAnnotation[]);
get directPath(): string;
set directPath(value: string);
get mediaKeyTimestamp(): number;
set mediaKeyTimestamp(value: number);
get jpegThumbnail(): Uint8Array;
set jpegThumbnail(value: Uint8Array);
get contextInfo(): ContextInfo;
set contextInfo(value: ContextInfo);
get streamingSidecar(): Uint8Array;
set streamingSidecar(value: Uint8Array);
get gifAttribution(): VideoMessage.VIDEO_MESSAGE_ATTRIBUTION;
set gifAttribution(value: VideoMessage.VIDEO_MESSAGE_ATTRIBUTION);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): VideoMessage;
}
export declare namespace VideoMessage {
enum VIDEO_MESSAGE_ATTRIBUTION {
NONE = 0,
GIPHY = 1,
TENOR = 2
}
}
export declare class Call extends pb_1.Message {
constructor(data?: any[] | {
callKey?: Uint8Array;
});
get callKey(): Uint8Array;
set callKey(value: Uint8Array);
toObject(): {
callKey: Uint8Array;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Call;
}
export declare class Chat extends pb_1.Message {
constructor(data?: any[] | {
displayName?: string;
id?: string;
});
get displayName(): string;
set displayName(value: string);
get id(): string;
set id(value: string);
toObject(): {
displayName: string;
id: string;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Chat;
}
export declare class ProtocolMessage extends pb_1.Message {
constructor(data?: any[] | {
key?: MessageKey;
type?: ProtocolMessage.PROTOCOL_MESSAGE_TYPE;
ephemeralExpiration?: number;
ephemeralSettingTimestamp?: number;
historySyncNotification?: HistorySyncNotification;
});
get key(): MessageKey;
set key(value: MessageKey);
get type(): ProtocolMessage.PROTOCOL_MESSAGE_TYPE;
set type(value: ProtocolMessage.PROTOCOL_MESSAGE_TYPE);
get ephemeralExpiration(): number;
set ephemeralExpiration(value: number);
get ephemeralSettingTimestamp(): number;
set ephemeralSettingTimestamp(value: number);
get historySyncNotification(): HistorySyncNotification;
set historySyncNotification(value: HistorySyncNotification);
toObject(): {
key: {
remoteJid: string;
fromMe: boolean;
id: string;
participant: string;
};
type: ProtocolMessage.PROTOCOL_MESSAGE_TYPE;
ephemeralExpiration: number;
ephemeralSettingTimestamp: number;
historySyncNotification: {
fileSha256: Uint8Array;
fileLength: number;
mediaKey: Uint8Array;
fileEncSha256: Uint8Array;
directPath: string;
syncType: HistorySyncNotification.HISTORY_SYNC_NOTIFICATION_HISTORYSYNCTYPE;
chunkOrder: number;
originalMessageId: string;
};
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ProtocolMessage;
}
export declare namespace ProtocolMessage {
enum PROTOCOL_MESSAGE_TYPE {
REVOKE = 0,
EPHEMERAL_SETTING = 3,
EPHEMERAL_SYNC_RESPONSE = 4,
HISTORY_SYNC_NOTIFICATION = 5
}
}
export declare class HistorySyncNotification extends pb_1.Message {
constructor(data?: any[] | {
fileSha256?: Uint8Array;
fileLength?: number;
mediaKey?: Uint8Array;
fileEncSha256?: Uint8Array;
directPath?: string;
syncType?: HistorySyncNotification.HISTORY_SYNC_NOTIFICATION_HISTORYSYNCTYPE;
chunkOrder?: number;
originalMessageId?: string;
});
get fileSha256(): Uint8Array;
set fileSha256(value: Uint8Array);
get fileLength(): number;
set fileLength(value: number);
get mediaKey(): Uint8Array;
set mediaKey(value: Uint8Array);
get fileEncSha256(): Uint8Array;
set fileEncSha256(value: Uint8Array);
get directPath(): string;
set directPath(value: string);
get syncType(): HistorySyncNotification.HISTORY_SYNC_NOTIFICATION_HISTORYSYNCTYPE;
set syncType(value: HistorySyncNotification.HISTORY_SYNC_NOTIFICATION_HISTORYSYNCTYPE);
get chunkOrder(): number;
set chunkOrder(value: number);
get originalMessageId(): string;
set originalMessageId(value: string);
toObject(): {
fileSha256: Uint8Array;
fileLength: number;
mediaKey: Uint8Array;
fileEncSha256: Uint8Array;
directPath: string;
syncType: HistorySyncNotification.HISTORY_SYNC_NOTIFICATION_HISTORYSYNCTYPE;
chunkOrder: number;
originalMessageId: string;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HistorySyncNotification;
}
export declare namespace HistorySyncNotification {
enum HISTORY_SYNC_NOTIFICATION_HISTORYSYNCTYPE {
INITIAL_BOOTSTRAP = 0,
INITIAL_STATUS_V3 = 1,
FULL = 2,
RECENT = 3,
RESEND = 4
}
}
export declare class ContactsArrayMessage extends pb_1.Message {
constructor(data?: any[] | {
displayName?: string;
contacts?: ContactMessage[];
contextInfo?: ContextInfo;
});
get displayName(): string;
set displayName(value: string);
get contacts(): ContactMessage[];
set contacts(value: ContactMessage[]);
get contextInfo(): ContextInfo;
set contextInfo(value: ContextInfo);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ContactsArrayMessage;
}
export declare class HSMCurrency extends pb_1.Message {
constructor(data?: any[] | {
currencyCode?: string;
amount1000?: number;
});
get currencyCode(): string;
set currencyCode(value: string);
get amount1000(): number;
set amount1000(value: number);
toObject(): {
currencyCode: string;
amount1000: number;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HSMCurrency;
}
export declare class HSMDateTimeComponent extends pb_1.Message {
constructor(data?: any[] | {
dayOfWeek?: HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_DAYOFWEEKTYPE;
year?: number;
month?: number;
dayOfMonth?: number;
hour?: number;
minute?: number;
calendar?: HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_CALENDARTYPE;
});
get dayOfWeek(): HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_DAYOFWEEKTYPE;
set dayOfWeek(value: HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_DAYOFWEEKTYPE);
get year(): number;
set year(value: number);
get month(): number;
set month(value: number);
get dayOfMonth(): number;
set dayOfMonth(value: number);
get hour(): number;
set hour(value: number);
get minute(): number;
set minute(value: number);
get calendar(): HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_CALENDARTYPE;
set calendar(value: HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_CALENDARTYPE);
toObject(): {
dayOfWeek: HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_DAYOFWEEKTYPE;
year: number;
month: number;
dayOfMonth: number;
hour: number;
minute: number;
calendar: HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_CALENDARTYPE;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HSMDateTimeComponent;
}
export declare namespace HSMDateTimeComponent {
enum HSM_DATE_TIME_COMPONENT_DAYOFWEEKTYPE {
MONDAY = 1,
TUESDAY = 2,
WEDNESDAY = 3,
THURSDAY = 4,
FRIDAY = 5,
SATURDAY = 6,
SUNDAY = 7
}
enum HSM_DATE_TIME_COMPONENT_CALENDARTYPE {
GREGORIAN = 1,
SOLAR_HIJRI = 2
}
}
export declare class HSMDateTimeUnixEpoch extends pb_1.Message {
constructor(data?: any[] | {
timestamp?: number;
});
get timestamp(): number;
set timestamp(value: number);
toObject(): {
timestamp: number;
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HSMDateTimeUnixEpoch;
}
export declare class HSMDateTime extends pb_1.Message {
constructor(data?: any[] | {
component?: HSMDateTimeComponent;
unixEpoch?: HSMDateTimeUnixEpoch;
});
get component(): HSMDateTimeComponent;
set component(value: HSMDateTimeComponent);
get unixEpoch(): HSMDateTimeUnixEpoch;
set unixEpoch(value: HSMDateTimeUnixEpoch);
toObject(): {
component: {
dayOfWeek: HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_DAYOFWEEKTYPE;
year: number;
month: number;
dayOfMonth: number;
hour: number;
minute: number;
calendar: HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_CALENDARTYPE;
};
unixEpoch: {
timestamp: number;
};
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HSMDateTime;
}
export declare class HSMLocalizableParameter extends pb_1.Message {
constructor(data?: any[] | {
default?: string;
currency?: HSMCurrency;
dateTime?: HSMDateTime;
});
get default(): string;
set default(value: string);
get currency(): HSMCurrency;
set currency(value: HSMCurrency);
get dateTime(): HSMDateTime;
set dateTime(value: HSMDateTime);
toObject(): {
default: string;
currency: {
currencyCode: string;
amount1000: number;
};
dateTime: {
component: {
dayOfWeek: HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_DAYOFWEEKTYPE;
year: number;
month: number;
dayOfMonth: number;
hour: number;
minute: number;
calendar: HSMDateTimeComponent.HSM_DATE_TIME_COMPONENT_CALENDARTYPE;
};
unixEpoch: {
timestamp: number;
};
};
};
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HSMLocalizableParameter;
}
export declare class HighlyStructuredMessage extends pb_1.Message {
constructor(data?: any[] | {
namespace?: string;
elementName?: string;
params?: string[];
fallbackLg?: string;
fallbackLc?: string;
localizableParams?: HSMLocalizableParameter[];
deterministicLg?: string;
deterministicLc?: string;
hydratedHsm?: TemplateMessage;
});
get namespace(): string;
set namespace(value: string);
get elementName(): string;
set elementName(value: string);
get params(): string[];
set params(value: string[]);
get fallbackLg(): string;
set fallbackLg(value: string);
get fallbackLc(): string;
set fallbackLc(value: string);
get localizableParams(): HSMLocalizableParameter[];
set localizableParams(value: HSMLocalizableParameter[]);
get deterministicLg(): string;
set deterministicLg(value: string);
get deterministicLc(): string;
set deterministicLc(value: string);
get hydratedHsm(): TemplateMessage;
set hydratedHsm(value: TemplateMessage);
toObject(): any;
serialize(w?: pb_1.BinaryWriter): Uint8Array | undefined;
serializeBinary(): Uint8Array;
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HighlyStructuredMessage;