@wireapp/protocol-messaging 1.39.0 → 1.41.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.
- package/package.json +10 -11
- package/web/messages.d.ts +38 -0
- package/web/messages.js +1247 -473
- package/web/mls.d.ts +3 -0
- package/web/mls.js +71 -23
- package/web/otr.d.ts +15 -0
- package/web/otr.js +376 -121
package/package.json
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
},
|
|
5
|
-
"devDependencies": {
|
|
6
|
-
"@types/node": "~12",
|
|
7
|
-
"typescript": "latest"
|
|
8
|
-
},
|
|
2
|
+
"name": "@wireapp/protocol-messaging",
|
|
3
|
+
"license": "GPL-3.0",
|
|
9
4
|
"description": "Protocol definition for generic messages.",
|
|
5
|
+
"repository": "https://github.com/wireapp/generic-message-proto.git",
|
|
10
6
|
"files": [
|
|
11
7
|
"proto/*.proto",
|
|
12
8
|
"web/*.d.ts",
|
|
13
9
|
"web/*.js",
|
|
14
10
|
"!web/compile.js"
|
|
15
11
|
],
|
|
16
|
-
"license": "GPL-3.0",
|
|
17
12
|
"main": "web/messages.js",
|
|
18
|
-
"
|
|
19
|
-
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@types/node": "16.18.0",
|
|
15
|
+
"protobufjs": "7.1.2",
|
|
16
|
+
"protobufjs-cli": "1.0.2",
|
|
17
|
+
"typescript": "4.8.4"
|
|
18
|
+
},
|
|
20
19
|
"scripts": {
|
|
21
20
|
"dist": "node web/compile.js",
|
|
22
21
|
"postversion": "git push origin master --tags && npm publish",
|
|
23
22
|
"preversion": "git checkout master && git pull && yarn && yarn dist && yarn test",
|
|
24
23
|
"test": "tsc --noEmit"
|
|
25
24
|
},
|
|
26
|
-
"version": "1.
|
|
25
|
+
"version": "1.41.0"
|
|
27
26
|
}
|
package/web/messages.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as $protobuf from "protobufjs";
|
|
2
|
+
import Long = require("long");
|
|
2
3
|
export interface IGenericMessage {
|
|
3
4
|
messageId: string;
|
|
4
5
|
text?: (IText|null);
|
|
@@ -58,6 +59,7 @@ export class GenericMessage implements IGenericMessage {
|
|
|
58
59
|
public static fromObject(object: { [k: string]: any }): GenericMessage;
|
|
59
60
|
public static toObject(message: GenericMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
60
61
|
public toJSON(): { [k: string]: any };
|
|
62
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
export interface IQualifiedUserId {
|
|
@@ -78,6 +80,7 @@ export class QualifiedUserId implements IQualifiedUserId {
|
|
|
78
80
|
public static fromObject(object: { [k: string]: any }): QualifiedUserId;
|
|
79
81
|
public static toObject(message: QualifiedUserId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
80
82
|
public toJSON(): { [k: string]: any };
|
|
83
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
export interface IQualifiedConversationId {
|
|
@@ -98,6 +101,7 @@ export class QualifiedConversationId implements IQualifiedConversationId {
|
|
|
98
101
|
public static fromObject(object: { [k: string]: any }): QualifiedConversationId;
|
|
99
102
|
public static toObject(message: QualifiedConversationId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
100
103
|
public toJSON(): { [k: string]: any };
|
|
104
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
export interface IComposite {
|
|
@@ -120,6 +124,7 @@ export class Composite implements IComposite {
|
|
|
120
124
|
public static fromObject(object: { [k: string]: any }): Composite;
|
|
121
125
|
public static toObject(message: Composite, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
122
126
|
public toJSON(): { [k: string]: any };
|
|
127
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
123
128
|
}
|
|
124
129
|
|
|
125
130
|
export namespace Composite {
|
|
@@ -143,6 +148,7 @@ export namespace Composite {
|
|
|
143
148
|
public static fromObject(object: { [k: string]: any }): Composite.Item;
|
|
144
149
|
public static toObject(message: Composite.Item, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
145
150
|
public toJSON(): { [k: string]: any };
|
|
151
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
146
152
|
}
|
|
147
153
|
}
|
|
148
154
|
|
|
@@ -164,6 +170,7 @@ export class Button implements IButton {
|
|
|
164
170
|
public static fromObject(object: { [k: string]: any }): Button;
|
|
165
171
|
public static toObject(message: Button, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
166
172
|
public toJSON(): { [k: string]: any };
|
|
173
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
167
174
|
}
|
|
168
175
|
|
|
169
176
|
export interface IButtonAction {
|
|
@@ -184,6 +191,7 @@ export class ButtonAction implements IButtonAction {
|
|
|
184
191
|
public static fromObject(object: { [k: string]: any }): ButtonAction;
|
|
185
192
|
public static toObject(message: ButtonAction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
186
193
|
public toJSON(): { [k: string]: any };
|
|
194
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
187
195
|
}
|
|
188
196
|
|
|
189
197
|
export interface IButtonActionConfirmation {
|
|
@@ -204,6 +212,7 @@ export class ButtonActionConfirmation implements IButtonActionConfirmation {
|
|
|
204
212
|
public static fromObject(object: { [k: string]: any }): ButtonActionConfirmation;
|
|
205
213
|
public static toObject(message: ButtonActionConfirmation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
206
214
|
public toJSON(): { [k: string]: any };
|
|
215
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
207
216
|
}
|
|
208
217
|
|
|
209
218
|
export interface IAvailability {
|
|
@@ -222,6 +231,7 @@ export class Availability implements IAvailability {
|
|
|
222
231
|
public static fromObject(object: { [k: string]: any }): Availability;
|
|
223
232
|
public static toObject(message: Availability, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
224
233
|
public toJSON(): { [k: string]: any };
|
|
234
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
225
235
|
}
|
|
226
236
|
|
|
227
237
|
export namespace Availability {
|
|
@@ -261,6 +271,7 @@ export class Ephemeral implements IEphemeral {
|
|
|
261
271
|
public static fromObject(object: { [k: string]: any }): Ephemeral;
|
|
262
272
|
public static toObject(message: Ephemeral, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
263
273
|
public toJSON(): { [k: string]: any };
|
|
274
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
264
275
|
}
|
|
265
276
|
|
|
266
277
|
export interface IText {
|
|
@@ -289,6 +300,7 @@ export class Text implements IText {
|
|
|
289
300
|
public static fromObject(object: { [k: string]: any }): Text;
|
|
290
301
|
public static toObject(message: Text, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
291
302
|
public toJSON(): { [k: string]: any };
|
|
303
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
292
304
|
}
|
|
293
305
|
|
|
294
306
|
export interface IKnock {
|
|
@@ -311,6 +323,7 @@ export class Knock implements IKnock {
|
|
|
311
323
|
public static fromObject(object: { [k: string]: any }): Knock;
|
|
312
324
|
public static toObject(message: Knock, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
313
325
|
public toJSON(): { [k: string]: any };
|
|
326
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
314
327
|
}
|
|
315
328
|
|
|
316
329
|
export interface ILinkPreview {
|
|
@@ -345,6 +358,7 @@ export class LinkPreview implements ILinkPreview {
|
|
|
345
358
|
public static fromObject(object: { [k: string]: any }): LinkPreview;
|
|
346
359
|
public static toObject(message: LinkPreview, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
347
360
|
public toJSON(): { [k: string]: any };
|
|
361
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
348
362
|
}
|
|
349
363
|
|
|
350
364
|
export interface ITweet {
|
|
@@ -365,6 +379,7 @@ export class Tweet implements ITweet {
|
|
|
365
379
|
public static fromObject(object: { [k: string]: any }): Tweet;
|
|
366
380
|
public static toObject(message: Tweet, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
367
381
|
public toJSON(): { [k: string]: any };
|
|
382
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
368
383
|
}
|
|
369
384
|
|
|
370
385
|
export interface IArticle {
|
|
@@ -389,6 +404,7 @@ export class Article implements IArticle {
|
|
|
389
404
|
public static fromObject(object: { [k: string]: any }): Article;
|
|
390
405
|
public static toObject(message: Article, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
391
406
|
public toJSON(): { [k: string]: any };
|
|
407
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
392
408
|
}
|
|
393
409
|
|
|
394
410
|
export interface IMention {
|
|
@@ -414,6 +430,7 @@ export class Mention implements IMention {
|
|
|
414
430
|
public static fromObject(object: { [k: string]: any }): Mention;
|
|
415
431
|
public static toObject(message: Mention, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
416
432
|
public toJSON(): { [k: string]: any };
|
|
433
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
417
434
|
}
|
|
418
435
|
|
|
419
436
|
export interface ILastRead {
|
|
@@ -436,6 +453,7 @@ export class LastRead implements ILastRead {
|
|
|
436
453
|
public static fromObject(object: { [k: string]: any }): LastRead;
|
|
437
454
|
public static toObject(message: LastRead, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
438
455
|
public toJSON(): { [k: string]: any };
|
|
456
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
439
457
|
}
|
|
440
458
|
|
|
441
459
|
export interface ICleared {
|
|
@@ -458,6 +476,7 @@ export class Cleared implements ICleared {
|
|
|
458
476
|
public static fromObject(object: { [k: string]: any }): Cleared;
|
|
459
477
|
public static toObject(message: Cleared, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
460
478
|
public toJSON(): { [k: string]: any };
|
|
479
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
461
480
|
}
|
|
462
481
|
|
|
463
482
|
export interface IMessageHide {
|
|
@@ -480,6 +499,7 @@ export class MessageHide implements IMessageHide {
|
|
|
480
499
|
public static fromObject(object: { [k: string]: any }): MessageHide;
|
|
481
500
|
public static toObject(message: MessageHide, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
482
501
|
public toJSON(): { [k: string]: any };
|
|
502
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
483
503
|
}
|
|
484
504
|
|
|
485
505
|
export interface IMessageDelete {
|
|
@@ -498,6 +518,7 @@ export class MessageDelete implements IMessageDelete {
|
|
|
498
518
|
public static fromObject(object: { [k: string]: any }): MessageDelete;
|
|
499
519
|
public static toObject(message: MessageDelete, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
500
520
|
public toJSON(): { [k: string]: any };
|
|
521
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
501
522
|
}
|
|
502
523
|
|
|
503
524
|
export interface IMessageEdit {
|
|
@@ -521,6 +542,7 @@ export class MessageEdit implements IMessageEdit {
|
|
|
521
542
|
public static fromObject(object: { [k: string]: any }): MessageEdit;
|
|
522
543
|
public static toObject(message: MessageEdit, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
523
544
|
public toJSON(): { [k: string]: any };
|
|
545
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
524
546
|
}
|
|
525
547
|
|
|
526
548
|
export interface IQuote {
|
|
@@ -541,6 +563,7 @@ export class Quote implements IQuote {
|
|
|
541
563
|
public static fromObject(object: { [k: string]: any }): Quote;
|
|
542
564
|
public static toObject(message: Quote, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
543
565
|
public toJSON(): { [k: string]: any };
|
|
566
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
544
567
|
}
|
|
545
568
|
|
|
546
569
|
export interface IConfirmation {
|
|
@@ -563,6 +586,7 @@ export class Confirmation implements IConfirmation {
|
|
|
563
586
|
public static fromObject(object: { [k: string]: any }): Confirmation;
|
|
564
587
|
public static toObject(message: Confirmation, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
565
588
|
public toJSON(): { [k: string]: any };
|
|
589
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
566
590
|
}
|
|
567
591
|
|
|
568
592
|
export namespace Confirmation {
|
|
@@ -599,6 +623,7 @@ export class Location implements ILocation {
|
|
|
599
623
|
public static fromObject(object: { [k: string]: any }): Location;
|
|
600
624
|
public static toObject(message: Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
601
625
|
public toJSON(): { [k: string]: any };
|
|
626
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
602
627
|
}
|
|
603
628
|
|
|
604
629
|
export interface IImageAsset {
|
|
@@ -637,6 +662,7 @@ export class ImageAsset implements IImageAsset {
|
|
|
637
662
|
public static fromObject(object: { [k: string]: any }): ImageAsset;
|
|
638
663
|
public static toObject(message: ImageAsset, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
639
664
|
public toJSON(): { [k: string]: any };
|
|
665
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
640
666
|
}
|
|
641
667
|
|
|
642
668
|
export interface IAsset {
|
|
@@ -666,6 +692,7 @@ export class Asset implements IAsset {
|
|
|
666
692
|
public static fromObject(object: { [k: string]: any }): Asset;
|
|
667
693
|
public static toObject(message: Asset, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
668
694
|
public toJSON(): { [k: string]: any };
|
|
695
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
669
696
|
}
|
|
670
697
|
|
|
671
698
|
export namespace Asset {
|
|
@@ -701,6 +728,7 @@ export namespace Asset {
|
|
|
701
728
|
public static fromObject(object: { [k: string]: any }): Asset.Original;
|
|
702
729
|
public static toObject(message: Asset.Original, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
703
730
|
public toJSON(): { [k: string]: any };
|
|
731
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
704
732
|
}
|
|
705
733
|
|
|
706
734
|
interface IPreview {
|
|
@@ -726,6 +754,7 @@ export namespace Asset {
|
|
|
726
754
|
public static fromObject(object: { [k: string]: any }): Asset.Preview;
|
|
727
755
|
public static toObject(message: Asset.Preview, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
728
756
|
public toJSON(): { [k: string]: any };
|
|
757
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
729
758
|
}
|
|
730
759
|
|
|
731
760
|
interface IImageMetaData {
|
|
@@ -748,6 +777,7 @@ export namespace Asset {
|
|
|
748
777
|
public static fromObject(object: { [k: string]: any }): Asset.ImageMetaData;
|
|
749
778
|
public static toObject(message: Asset.ImageMetaData, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
750
779
|
public toJSON(): { [k: string]: any };
|
|
780
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
751
781
|
}
|
|
752
782
|
|
|
753
783
|
interface IVideoMetaData {
|
|
@@ -770,6 +800,7 @@ export namespace Asset {
|
|
|
770
800
|
public static fromObject(object: { [k: string]: any }): Asset.VideoMetaData;
|
|
771
801
|
public static toObject(message: Asset.VideoMetaData, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
772
802
|
public toJSON(): { [k: string]: any };
|
|
803
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
773
804
|
}
|
|
774
805
|
|
|
775
806
|
interface IAudioMetaData {
|
|
@@ -790,6 +821,7 @@ export namespace Asset {
|
|
|
790
821
|
public static fromObject(object: { [k: string]: any }): Asset.AudioMetaData;
|
|
791
822
|
public static toObject(message: Asset.AudioMetaData, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
792
823
|
public toJSON(): { [k: string]: any };
|
|
824
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
793
825
|
}
|
|
794
826
|
|
|
795
827
|
enum NotUploaded {
|
|
@@ -823,6 +855,7 @@ export namespace Asset {
|
|
|
823
855
|
public static fromObject(object: { [k: string]: any }): Asset.RemoteData;
|
|
824
856
|
public static toObject(message: Asset.RemoteData, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
825
857
|
public toJSON(): { [k: string]: any };
|
|
858
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
826
859
|
}
|
|
827
860
|
}
|
|
828
861
|
|
|
@@ -846,6 +879,7 @@ export class External implements IExternal {
|
|
|
846
879
|
public static fromObject(object: { [k: string]: any }): External;
|
|
847
880
|
public static toObject(message: External, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
848
881
|
public toJSON(): { [k: string]: any };
|
|
882
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
849
883
|
}
|
|
850
884
|
|
|
851
885
|
export interface IReaction {
|
|
@@ -868,6 +902,7 @@ export class Reaction implements IReaction {
|
|
|
868
902
|
public static fromObject(object: { [k: string]: any }): Reaction;
|
|
869
903
|
public static toObject(message: Reaction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
870
904
|
public toJSON(): { [k: string]: any };
|
|
905
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
871
906
|
}
|
|
872
907
|
|
|
873
908
|
export interface ICalling {
|
|
@@ -886,6 +921,7 @@ export class Calling implements ICalling {
|
|
|
886
921
|
public static fromObject(object: { [k: string]: any }): Calling;
|
|
887
922
|
public static toObject(message: Calling, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
888
923
|
public toJSON(): { [k: string]: any };
|
|
924
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
889
925
|
}
|
|
890
926
|
|
|
891
927
|
export interface IDataTransfer {
|
|
@@ -904,6 +940,7 @@ export class DataTransfer implements IDataTransfer {
|
|
|
904
940
|
public static fromObject(object: { [k: string]: any }): DataTransfer;
|
|
905
941
|
public static toObject(message: DataTransfer, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
906
942
|
public toJSON(): { [k: string]: any };
|
|
943
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
907
944
|
}
|
|
908
945
|
|
|
909
946
|
export interface ITrackingIdentifier {
|
|
@@ -922,6 +959,7 @@ export class TrackingIdentifier implements ITrackingIdentifier {
|
|
|
922
959
|
public static fromObject(object: { [k: string]: any }): TrackingIdentifier;
|
|
923
960
|
public static toObject(message: TrackingIdentifier, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
924
961
|
public toJSON(): { [k: string]: any };
|
|
962
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
925
963
|
}
|
|
926
964
|
|
|
927
965
|
export enum ClientAction {
|