@wireapp/protocol-messaging 1.31.0 → 1.37.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 +2 -2
- package/proto/messages.proto +1 -0
- package/proto/otr.proto +46 -8
- package/web/messages.d.ts +2 -0
- package/web/messages.js +22 -0
- package/web/otr.d.ts +281 -139
- package/web/otr.js +3327 -1719
package/package.json
CHANGED
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"repository": "https://github.com/wireapp/generic-message-proto.git",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"dist": "node web/compile.js",
|
|
22
|
-
"postversion": "git push origin --tags && npm publish",
|
|
22
|
+
"postversion": "git push origin master --tags && npm publish",
|
|
23
23
|
"preversion": "git checkout master && git pull && yarn && yarn dist && yarn test",
|
|
24
24
|
"test": "tsc --noEmit"
|
|
25
25
|
},
|
|
26
|
-
"version": "1.
|
|
26
|
+
"version": "1.37.0"
|
|
27
27
|
}
|
package/proto/messages.proto
CHANGED
|
@@ -303,6 +303,7 @@ message Asset {
|
|
|
303
303
|
optional string asset_id = 3;
|
|
304
304
|
// optional bytes asset_token = 4; // deprecated - changed type to string
|
|
305
305
|
optional string asset_token = 5;
|
|
306
|
+
optional string asset_domain = 7;
|
|
306
307
|
optional EncryptionAlgorithm encryption = 6;
|
|
307
308
|
}
|
|
308
309
|
|
package/proto/otr.proto
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
syntax = "proto2";
|
|
21
21
|
|
|
22
|
+
package proteus;
|
|
23
|
+
|
|
22
24
|
option java_package = "com.wire.messages";
|
|
23
25
|
option java_outer_classname = "Otr";
|
|
24
26
|
option optimize_for = LITE_RUNTIME;
|
|
@@ -42,17 +44,23 @@ message ClientEntry {
|
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
message UserEntry {
|
|
45
|
-
required UserId
|
|
46
|
-
repeated ClientEntry
|
|
47
|
-
|
|
47
|
+
required UserId user = 1;
|
|
48
|
+
repeated ClientEntry clients = 2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message QualifiedUserEntry {
|
|
52
|
+
required string domain = 1;
|
|
53
|
+
repeated UserEntry entries = 2;
|
|
48
54
|
}
|
|
49
55
|
|
|
56
|
+
enum Priority {
|
|
57
|
+
// 0 is reserved for errors
|
|
58
|
+
LOW_PRIORITY = 1;
|
|
59
|
+
HIGH_PRIORITY = 2;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
// deprecated, use QualifiedNewOtrMessage
|
|
50
63
|
message NewOtrMessage {
|
|
51
|
-
enum Priority {
|
|
52
|
-
// 0 is reserved for errors
|
|
53
|
-
LOW_PRIORITY = 1;
|
|
54
|
-
HIGH_PRIORITY = 2;
|
|
55
|
-
};
|
|
56
64
|
required ClientId sender = 1;
|
|
57
65
|
repeated UserEntry recipients = 2;
|
|
58
66
|
optional bool native_push = 3 [default = true];
|
|
@@ -62,6 +70,36 @@ message NewOtrMessage {
|
|
|
62
70
|
repeated UserId report_missing = 7;
|
|
63
71
|
}
|
|
64
72
|
|
|
73
|
+
message QualifiedNewOtrMessage {
|
|
74
|
+
required ClientId sender = 1;
|
|
75
|
+
repeated QualifiedUserEntry recipients = 2;
|
|
76
|
+
optional bool native_push = 3 [default = true];
|
|
77
|
+
optional bytes blob = 4;
|
|
78
|
+
optional Priority native_priority = 5;
|
|
79
|
+
optional bool transient = 6;
|
|
80
|
+
// For more details please refer to backend swagger at
|
|
81
|
+
// https://staging-nginz-https.zinfra.io/api/swagger-ui/
|
|
82
|
+
oneof client_mismatch_strategy {
|
|
83
|
+
ClientMismatchStrategy.ReportAll report_all = 7;
|
|
84
|
+
ClientMismatchStrategy.IgnoreAll ignore_all = 8;
|
|
85
|
+
ClientMismatchStrategy.ReportOnly report_only = 9;
|
|
86
|
+
ClientMismatchStrategy.IgnoreOnly ignore_only = 10;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
message ClientMismatchStrategy {
|
|
91
|
+
message ReportAll {}
|
|
92
|
+
message IgnoreAll {}
|
|
93
|
+
|
|
94
|
+
message ReportOnly {
|
|
95
|
+
repeated QualifiedUserId user_ids = 1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
message IgnoreOnly {
|
|
99
|
+
repeated QualifiedUserId user_ids = 1;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
65
103
|
message OtrAssetMeta {
|
|
66
104
|
required ClientId sender = 1;
|
|
67
105
|
repeated UserEntry recipients = 2;
|
package/web/messages.d.ts
CHANGED
|
@@ -802,6 +802,7 @@ export namespace Asset {
|
|
|
802
802
|
sha256: Uint8Array;
|
|
803
803
|
assetId?: (string|null);
|
|
804
804
|
assetToken?: (string|null);
|
|
805
|
+
assetDomain?: (string|null);
|
|
805
806
|
encryption?: (EncryptionAlgorithm|null);
|
|
806
807
|
}
|
|
807
808
|
|
|
@@ -811,6 +812,7 @@ export namespace Asset {
|
|
|
811
812
|
public sha256: Uint8Array;
|
|
812
813
|
public assetId: string;
|
|
813
814
|
public assetToken: string;
|
|
815
|
+
public assetDomain: string;
|
|
814
816
|
public encryption: EncryptionAlgorithm;
|
|
815
817
|
public static create(properties?: Asset.IRemoteData): Asset.RemoteData;
|
|
816
818
|
public static encode(message: Asset.IRemoteData, writer?: $protobuf.Writer): $protobuf.Writer;
|
package/web/messages.js
CHANGED
|
@@ -9113,6 +9113,7 @@ $root.Asset = (function() {
|
|
|
9113
9113
|
* @property {Uint8Array} sha256 RemoteData sha256
|
|
9114
9114
|
* @property {string|null} [assetId] RemoteData assetId
|
|
9115
9115
|
* @property {string|null} [assetToken] RemoteData assetToken
|
|
9116
|
+
* @property {string|null} [assetDomain] RemoteData assetDomain
|
|
9116
9117
|
* @property {EncryptionAlgorithm|null} [encryption] RemoteData encryption
|
|
9117
9118
|
*/
|
|
9118
9119
|
|
|
@@ -9163,6 +9164,14 @@ $root.Asset = (function() {
|
|
|
9163
9164
|
*/
|
|
9164
9165
|
RemoteData.prototype.assetToken = "";
|
|
9165
9166
|
|
|
9167
|
+
/**
|
|
9168
|
+
* RemoteData assetDomain.
|
|
9169
|
+
* @member {string} assetDomain
|
|
9170
|
+
* @memberof Asset.RemoteData
|
|
9171
|
+
* @instance
|
|
9172
|
+
*/
|
|
9173
|
+
RemoteData.prototype.assetDomain = "";
|
|
9174
|
+
|
|
9166
9175
|
/**
|
|
9167
9176
|
* RemoteData encryption.
|
|
9168
9177
|
* @member {EncryptionAlgorithm} encryption
|
|
@@ -9203,6 +9212,8 @@ $root.Asset = (function() {
|
|
|
9203
9212
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.assetToken);
|
|
9204
9213
|
if (message.encryption != null && Object.hasOwnProperty.call(message, "encryption"))
|
|
9205
9214
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.encryption);
|
|
9215
|
+
if (message.assetDomain != null && Object.hasOwnProperty.call(message, "assetDomain"))
|
|
9216
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.assetDomain);
|
|
9206
9217
|
return writer;
|
|
9207
9218
|
};
|
|
9208
9219
|
|
|
@@ -9249,6 +9260,9 @@ $root.Asset = (function() {
|
|
|
9249
9260
|
case 5:
|
|
9250
9261
|
message.assetToken = reader.string();
|
|
9251
9262
|
break;
|
|
9263
|
+
case 7:
|
|
9264
|
+
message.assetDomain = reader.string();
|
|
9265
|
+
break;
|
|
9252
9266
|
case 6:
|
|
9253
9267
|
message.encryption = reader.int32();
|
|
9254
9268
|
break;
|
|
@@ -9301,6 +9315,9 @@ $root.Asset = (function() {
|
|
|
9301
9315
|
if (message.assetToken != null && message.hasOwnProperty("assetToken"))
|
|
9302
9316
|
if (!$util.isString(message.assetToken))
|
|
9303
9317
|
return "assetToken: string expected";
|
|
9318
|
+
if (message.assetDomain != null && message.hasOwnProperty("assetDomain"))
|
|
9319
|
+
if (!$util.isString(message.assetDomain))
|
|
9320
|
+
return "assetDomain: string expected";
|
|
9304
9321
|
if (message.encryption != null && message.hasOwnProperty("encryption"))
|
|
9305
9322
|
switch (message.encryption) {
|
|
9306
9323
|
default:
|
|
@@ -9338,6 +9355,8 @@ $root.Asset = (function() {
|
|
|
9338
9355
|
message.assetId = String(object.assetId);
|
|
9339
9356
|
if (object.assetToken != null)
|
|
9340
9357
|
message.assetToken = String(object.assetToken);
|
|
9358
|
+
if (object.assetDomain != null)
|
|
9359
|
+
message.assetDomain = String(object.assetDomain);
|
|
9341
9360
|
switch (object.encryption) {
|
|
9342
9361
|
case "AES_CBC":
|
|
9343
9362
|
case 0:
|
|
@@ -9382,6 +9401,7 @@ $root.Asset = (function() {
|
|
|
9382
9401
|
object.assetId = "";
|
|
9383
9402
|
object.assetToken = "";
|
|
9384
9403
|
object.encryption = options.enums === String ? "AES_CBC" : 0;
|
|
9404
|
+
object.assetDomain = "";
|
|
9385
9405
|
}
|
|
9386
9406
|
if (message.otrKey != null && message.hasOwnProperty("otrKey"))
|
|
9387
9407
|
object.otrKey = options.bytes === String ? $util.base64.encode(message.otrKey, 0, message.otrKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.otrKey) : message.otrKey;
|
|
@@ -9393,6 +9413,8 @@ $root.Asset = (function() {
|
|
|
9393
9413
|
object.assetToken = message.assetToken;
|
|
9394
9414
|
if (message.encryption != null && message.hasOwnProperty("encryption"))
|
|
9395
9415
|
object.encryption = options.enums === String ? $root.EncryptionAlgorithm[message.encryption] : message.encryption;
|
|
9416
|
+
if (message.assetDomain != null && message.hasOwnProperty("assetDomain"))
|
|
9417
|
+
object.assetDomain = message.assetDomain;
|
|
9396
9418
|
return object;
|
|
9397
9419
|
};
|
|
9398
9420
|
|
package/web/otr.d.ts
CHANGED
|
@@ -1,160 +1,302 @@
|
|
|
1
1
|
import * as $protobuf from "protobufjs";
|
|
2
|
-
export
|
|
3
|
-
uuid: Uint8Array;
|
|
4
|
-
}
|
|
2
|
+
export namespace proteus {
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
public static create(properties?: IUserId): UserId;
|
|
10
|
-
public static encode(message: IUserId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
11
|
-
public static encodeDelimited(message: IUserId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
12
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserId;
|
|
13
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserId;
|
|
14
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
15
|
-
public static fromObject(object: { [k: string]: any }): UserId;
|
|
16
|
-
public static toObject(message: UserId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
17
|
-
public toJSON(): { [k: string]: any };
|
|
18
|
-
}
|
|
4
|
+
interface IUserId {
|
|
5
|
+
uuid: Uint8Array;
|
|
6
|
+
}
|
|
19
7
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
8
|
+
class UserId implements IUserId {
|
|
9
|
+
constructor(properties?: proteus.IUserId);
|
|
10
|
+
public uuid: Uint8Array;
|
|
11
|
+
public static create(properties?: proteus.IUserId): proteus.UserId;
|
|
12
|
+
public static encode(message: proteus.IUserId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
13
|
+
public static encodeDelimited(message: proteus.IUserId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
14
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.UserId;
|
|
15
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.UserId;
|
|
16
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
17
|
+
public static fromObject(object: { [k: string]: any }): proteus.UserId;
|
|
18
|
+
public static toObject(message: proteus.UserId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19
|
+
public toJSON(): { [k: string]: any };
|
|
20
|
+
}
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
public static create(properties?: IQualifiedUserId): QualifiedUserId;
|
|
30
|
-
public static encode(message: IQualifiedUserId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
31
|
-
public static encodeDelimited(message: IQualifiedUserId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
32
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): QualifiedUserId;
|
|
33
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): QualifiedUserId;
|
|
34
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
35
|
-
public static fromObject(object: { [k: string]: any }): QualifiedUserId;
|
|
36
|
-
public static toObject(message: QualifiedUserId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
37
|
-
public toJSON(): { [k: string]: any };
|
|
38
|
-
}
|
|
22
|
+
interface IQualifiedUserId {
|
|
23
|
+
id: string;
|
|
24
|
+
domain: string;
|
|
25
|
+
}
|
|
39
26
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
class QualifiedUserId implements IQualifiedUserId {
|
|
28
|
+
constructor(properties?: proteus.IQualifiedUserId);
|
|
29
|
+
public id: string;
|
|
30
|
+
public domain: string;
|
|
31
|
+
public static create(properties?: proteus.IQualifiedUserId): proteus.QualifiedUserId;
|
|
32
|
+
public static encode(message: proteus.IQualifiedUserId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
33
|
+
public static encodeDelimited(message: proteus.IQualifiedUserId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
34
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.QualifiedUserId;
|
|
35
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.QualifiedUserId;
|
|
36
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
37
|
+
public static fromObject(object: { [k: string]: any }): proteus.QualifiedUserId;
|
|
38
|
+
public static toObject(message: proteus.QualifiedUserId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
39
|
+
public toJSON(): { [k: string]: any };
|
|
40
|
+
}
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
public static create(properties?: IClientId): ClientId;
|
|
48
|
-
public static encode(message: IClientId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
49
|
-
public static encodeDelimited(message: IClientId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
50
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ClientId;
|
|
51
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ClientId;
|
|
52
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
53
|
-
public static fromObject(object: { [k: string]: any }): ClientId;
|
|
54
|
-
public static toObject(message: ClientId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
55
|
-
public toJSON(): { [k: string]: any };
|
|
56
|
-
}
|
|
42
|
+
interface IClientId {
|
|
43
|
+
client: (number|Long);
|
|
44
|
+
}
|
|
57
45
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
class ClientId implements IClientId {
|
|
47
|
+
constructor(properties?: proteus.IClientId);
|
|
48
|
+
public client: (number|Long);
|
|
49
|
+
public static create(properties?: proteus.IClientId): proteus.ClientId;
|
|
50
|
+
public static encode(message: proteus.IClientId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
51
|
+
public static encodeDelimited(message: proteus.IClientId, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
52
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.ClientId;
|
|
53
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.ClientId;
|
|
54
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
55
|
+
public static fromObject(object: { [k: string]: any }): proteus.ClientId;
|
|
56
|
+
public static toObject(message: proteus.ClientId, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
57
|
+
public toJSON(): { [k: string]: any };
|
|
58
|
+
}
|
|
62
59
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
public static create(properties?: IClientEntry): ClientEntry;
|
|
68
|
-
public static encode(message: IClientEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
69
|
-
public static encodeDelimited(message: IClientEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
70
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ClientEntry;
|
|
71
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ClientEntry;
|
|
72
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
73
|
-
public static fromObject(object: { [k: string]: any }): ClientEntry;
|
|
74
|
-
public static toObject(message: ClientEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
75
|
-
public toJSON(): { [k: string]: any };
|
|
76
|
-
}
|
|
60
|
+
interface IClientEntry {
|
|
61
|
+
client: proteus.IClientId;
|
|
62
|
+
text: Uint8Array;
|
|
63
|
+
}
|
|
77
64
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
65
|
+
class ClientEntry implements IClientEntry {
|
|
66
|
+
constructor(properties?: proteus.IClientEntry);
|
|
67
|
+
public client: proteus.IClientId;
|
|
68
|
+
public text: Uint8Array;
|
|
69
|
+
public static create(properties?: proteus.IClientEntry): proteus.ClientEntry;
|
|
70
|
+
public static encode(message: proteus.IClientEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
71
|
+
public static encodeDelimited(message: proteus.IClientEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
72
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.ClientEntry;
|
|
73
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.ClientEntry;
|
|
74
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
75
|
+
public static fromObject(object: { [k: string]: any }): proteus.ClientEntry;
|
|
76
|
+
public static toObject(message: proteus.ClientEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
77
|
+
public toJSON(): { [k: string]: any };
|
|
78
|
+
}
|
|
83
79
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
public qualifiedUserId?: (IQualifiedUserId|null);
|
|
89
|
-
public static create(properties?: IUserEntry): UserEntry;
|
|
90
|
-
public static encode(message: IUserEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
91
|
-
public static encodeDelimited(message: IUserEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
92
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEntry;
|
|
93
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEntry;
|
|
94
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
95
|
-
public static fromObject(object: { [k: string]: any }): UserEntry;
|
|
96
|
-
public static toObject(message: UserEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
97
|
-
public toJSON(): { [k: string]: any };
|
|
98
|
-
}
|
|
80
|
+
interface IUserEntry {
|
|
81
|
+
user: proteus.IUserId;
|
|
82
|
+
clients?: (proteus.IClientEntry[]|null);
|
|
83
|
+
}
|
|
99
84
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
85
|
+
class UserEntry implements IUserEntry {
|
|
86
|
+
constructor(properties?: proteus.IUserEntry);
|
|
87
|
+
public user: proteus.IUserId;
|
|
88
|
+
public clients: proteus.IClientEntry[];
|
|
89
|
+
public static create(properties?: proteus.IUserEntry): proteus.UserEntry;
|
|
90
|
+
public static encode(message: proteus.IUserEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
91
|
+
public static encodeDelimited(message: proteus.IUserEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
92
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.UserEntry;
|
|
93
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.UserEntry;
|
|
94
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
95
|
+
public static fromObject(object: { [k: string]: any }): proteus.UserEntry;
|
|
96
|
+
public static toObject(message: proteus.UserEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
97
|
+
public toJSON(): { [k: string]: any };
|
|
98
|
+
}
|
|
109
99
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
public nativePush: boolean;
|
|
115
|
-
public blob: Uint8Array;
|
|
116
|
-
public nativePriority: NewOtrMessage.Priority;
|
|
117
|
-
public transient: boolean;
|
|
118
|
-
public reportMissing: IUserId[];
|
|
119
|
-
public static create(properties?: INewOtrMessage): NewOtrMessage;
|
|
120
|
-
public static encode(message: INewOtrMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
121
|
-
public static encodeDelimited(message: INewOtrMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
122
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): NewOtrMessage;
|
|
123
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NewOtrMessage;
|
|
124
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
125
|
-
public static fromObject(object: { [k: string]: any }): NewOtrMessage;
|
|
126
|
-
public static toObject(message: NewOtrMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
127
|
-
public toJSON(): { [k: string]: any };
|
|
128
|
-
}
|
|
100
|
+
interface IQualifiedUserEntry {
|
|
101
|
+
domain: string;
|
|
102
|
+
entries?: (proteus.IUserEntry[]|null);
|
|
103
|
+
}
|
|
129
104
|
|
|
130
|
-
|
|
105
|
+
class QualifiedUserEntry implements IQualifiedUserEntry {
|
|
106
|
+
constructor(properties?: proteus.IQualifiedUserEntry);
|
|
107
|
+
public domain: string;
|
|
108
|
+
public entries: proteus.IUserEntry[];
|
|
109
|
+
public static create(properties?: proteus.IQualifiedUserEntry): proteus.QualifiedUserEntry;
|
|
110
|
+
public static encode(message: proteus.IQualifiedUserEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
111
|
+
public static encodeDelimited(message: proteus.IQualifiedUserEntry, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
112
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.QualifiedUserEntry;
|
|
113
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.QualifiedUserEntry;
|
|
114
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
115
|
+
public static fromObject(object: { [k: string]: any }): proteus.QualifiedUserEntry;
|
|
116
|
+
public static toObject(message: proteus.QualifiedUserEntry, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
117
|
+
public toJSON(): { [k: string]: any };
|
|
118
|
+
}
|
|
131
119
|
|
|
132
120
|
enum Priority {
|
|
133
121
|
LOW_PRIORITY = 1,
|
|
134
122
|
HIGH_PRIORITY = 2
|
|
135
123
|
}
|
|
136
|
-
}
|
|
137
124
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
125
|
+
interface INewOtrMessage {
|
|
126
|
+
sender: proteus.IClientId;
|
|
127
|
+
recipients?: (proteus.IUserEntry[]|null);
|
|
128
|
+
nativePush?: (boolean|null);
|
|
129
|
+
blob?: (Uint8Array|null);
|
|
130
|
+
nativePriority?: (proteus.Priority|null);
|
|
131
|
+
transient?: (boolean|null);
|
|
132
|
+
reportMissing?: (proteus.IUserId[]|null);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
class NewOtrMessage implements INewOtrMessage {
|
|
136
|
+
constructor(properties?: proteus.INewOtrMessage);
|
|
137
|
+
public sender: proteus.IClientId;
|
|
138
|
+
public recipients: proteus.IUserEntry[];
|
|
139
|
+
public nativePush: boolean;
|
|
140
|
+
public blob: Uint8Array;
|
|
141
|
+
public nativePriority: proteus.Priority;
|
|
142
|
+
public transient: boolean;
|
|
143
|
+
public reportMissing: proteus.IUserId[];
|
|
144
|
+
public static create(properties?: proteus.INewOtrMessage): proteus.NewOtrMessage;
|
|
145
|
+
public static encode(message: proteus.INewOtrMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
146
|
+
public static encodeDelimited(message: proteus.INewOtrMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
147
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.NewOtrMessage;
|
|
148
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.NewOtrMessage;
|
|
149
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
150
|
+
public static fromObject(object: { [k: string]: any }): proteus.NewOtrMessage;
|
|
151
|
+
public static toObject(message: proteus.NewOtrMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
152
|
+
public toJSON(): { [k: string]: any };
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
interface IQualifiedNewOtrMessage {
|
|
156
|
+
sender: proteus.IClientId;
|
|
157
|
+
recipients?: (proteus.IQualifiedUserEntry[]|null);
|
|
158
|
+
nativePush?: (boolean|null);
|
|
159
|
+
blob?: (Uint8Array|null);
|
|
160
|
+
nativePriority?: (proteus.Priority|null);
|
|
161
|
+
transient?: (boolean|null);
|
|
162
|
+
reportAll?: (proteus.ClientMismatchStrategy.IReportAll|null);
|
|
163
|
+
ignoreAll?: (proteus.ClientMismatchStrategy.IIgnoreAll|null);
|
|
164
|
+
reportOnly?: (proteus.ClientMismatchStrategy.IReportOnly|null);
|
|
165
|
+
ignoreOnly?: (proteus.ClientMismatchStrategy.IIgnoreOnly|null);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
class QualifiedNewOtrMessage implements IQualifiedNewOtrMessage {
|
|
169
|
+
constructor(properties?: proteus.IQualifiedNewOtrMessage);
|
|
170
|
+
public sender: proteus.IClientId;
|
|
171
|
+
public recipients: proteus.IQualifiedUserEntry[];
|
|
172
|
+
public nativePush: boolean;
|
|
173
|
+
public blob: Uint8Array;
|
|
174
|
+
public nativePriority: proteus.Priority;
|
|
175
|
+
public transient: boolean;
|
|
176
|
+
public reportAll?: (proteus.ClientMismatchStrategy.IReportAll|null);
|
|
177
|
+
public ignoreAll?: (proteus.ClientMismatchStrategy.IIgnoreAll|null);
|
|
178
|
+
public reportOnly?: (proteus.ClientMismatchStrategy.IReportOnly|null);
|
|
179
|
+
public ignoreOnly?: (proteus.ClientMismatchStrategy.IIgnoreOnly|null);
|
|
180
|
+
public clientMismatchStrategy?: ("reportAll"|"ignoreAll"|"reportOnly"|"ignoreOnly");
|
|
181
|
+
public static create(properties?: proteus.IQualifiedNewOtrMessage): proteus.QualifiedNewOtrMessage;
|
|
182
|
+
public static encode(message: proteus.IQualifiedNewOtrMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
183
|
+
public static encodeDelimited(message: proteus.IQualifiedNewOtrMessage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
184
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.QualifiedNewOtrMessage;
|
|
185
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.QualifiedNewOtrMessage;
|
|
186
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
187
|
+
public static fromObject(object: { [k: string]: any }): proteus.QualifiedNewOtrMessage;
|
|
188
|
+
public static toObject(message: proteus.QualifiedNewOtrMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
189
|
+
public toJSON(): { [k: string]: any };
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
interface IClientMismatchStrategy {
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
class ClientMismatchStrategy implements IClientMismatchStrategy {
|
|
196
|
+
constructor(properties?: proteus.IClientMismatchStrategy);
|
|
197
|
+
public static create(properties?: proteus.IClientMismatchStrategy): proteus.ClientMismatchStrategy;
|
|
198
|
+
public static encode(message: proteus.IClientMismatchStrategy, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
199
|
+
public static encodeDelimited(message: proteus.IClientMismatchStrategy, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
200
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.ClientMismatchStrategy;
|
|
201
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.ClientMismatchStrategy;
|
|
202
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
203
|
+
public static fromObject(object: { [k: string]: any }): proteus.ClientMismatchStrategy;
|
|
204
|
+
public static toObject(message: proteus.ClientMismatchStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
205
|
+
public toJSON(): { [k: string]: any };
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
namespace ClientMismatchStrategy {
|
|
144
209
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
210
|
+
interface IReportAll {
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
class ReportAll implements IReportAll {
|
|
214
|
+
constructor(properties?: proteus.ClientMismatchStrategy.IReportAll);
|
|
215
|
+
public static create(properties?: proteus.ClientMismatchStrategy.IReportAll): proteus.ClientMismatchStrategy.ReportAll;
|
|
216
|
+
public static encode(message: proteus.ClientMismatchStrategy.IReportAll, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
217
|
+
public static encodeDelimited(message: proteus.ClientMismatchStrategy.IReportAll, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
218
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.ClientMismatchStrategy.ReportAll;
|
|
219
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.ClientMismatchStrategy.ReportAll;
|
|
220
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
221
|
+
public static fromObject(object: { [k: string]: any }): proteus.ClientMismatchStrategy.ReportAll;
|
|
222
|
+
public static toObject(message: proteus.ClientMismatchStrategy.ReportAll, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
223
|
+
public toJSON(): { [k: string]: any };
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
interface IIgnoreAll {
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
class IgnoreAll implements IIgnoreAll {
|
|
230
|
+
constructor(properties?: proteus.ClientMismatchStrategy.IIgnoreAll);
|
|
231
|
+
public static create(properties?: proteus.ClientMismatchStrategy.IIgnoreAll): proteus.ClientMismatchStrategy.IgnoreAll;
|
|
232
|
+
public static encode(message: proteus.ClientMismatchStrategy.IIgnoreAll, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
233
|
+
public static encodeDelimited(message: proteus.ClientMismatchStrategy.IIgnoreAll, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
234
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.ClientMismatchStrategy.IgnoreAll;
|
|
235
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.ClientMismatchStrategy.IgnoreAll;
|
|
236
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
237
|
+
public static fromObject(object: { [k: string]: any }): proteus.ClientMismatchStrategy.IgnoreAll;
|
|
238
|
+
public static toObject(message: proteus.ClientMismatchStrategy.IgnoreAll, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
239
|
+
public toJSON(): { [k: string]: any };
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
interface IReportOnly {
|
|
243
|
+
userIds?: (proteus.IQualifiedUserId[]|null);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
class ReportOnly implements IReportOnly {
|
|
247
|
+
constructor(properties?: proteus.ClientMismatchStrategy.IReportOnly);
|
|
248
|
+
public userIds: proteus.IQualifiedUserId[];
|
|
249
|
+
public static create(properties?: proteus.ClientMismatchStrategy.IReportOnly): proteus.ClientMismatchStrategy.ReportOnly;
|
|
250
|
+
public static encode(message: proteus.ClientMismatchStrategy.IReportOnly, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
251
|
+
public static encodeDelimited(message: proteus.ClientMismatchStrategy.IReportOnly, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
252
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.ClientMismatchStrategy.ReportOnly;
|
|
253
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.ClientMismatchStrategy.ReportOnly;
|
|
254
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
255
|
+
public static fromObject(object: { [k: string]: any }): proteus.ClientMismatchStrategy.ReportOnly;
|
|
256
|
+
public static toObject(message: proteus.ClientMismatchStrategy.ReportOnly, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
257
|
+
public toJSON(): { [k: string]: any };
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
interface IIgnoreOnly {
|
|
261
|
+
userIds?: (proteus.IQualifiedUserId[]|null);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
class IgnoreOnly implements IIgnoreOnly {
|
|
265
|
+
constructor(properties?: proteus.ClientMismatchStrategy.IIgnoreOnly);
|
|
266
|
+
public userIds: proteus.IQualifiedUserId[];
|
|
267
|
+
public static create(properties?: proteus.ClientMismatchStrategy.IIgnoreOnly): proteus.ClientMismatchStrategy.IgnoreOnly;
|
|
268
|
+
public static encode(message: proteus.ClientMismatchStrategy.IIgnoreOnly, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
269
|
+
public static encodeDelimited(message: proteus.ClientMismatchStrategy.IIgnoreOnly, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
270
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.ClientMismatchStrategy.IgnoreOnly;
|
|
271
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.ClientMismatchStrategy.IgnoreOnly;
|
|
272
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
273
|
+
public static fromObject(object: { [k: string]: any }): proteus.ClientMismatchStrategy.IgnoreOnly;
|
|
274
|
+
public static toObject(message: proteus.ClientMismatchStrategy.IgnoreOnly, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
275
|
+
public toJSON(): { [k: string]: any };
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
interface IOtrAssetMeta {
|
|
280
|
+
sender: proteus.IClientId;
|
|
281
|
+
recipients?: (proteus.IUserEntry[]|null);
|
|
282
|
+
isInline?: (boolean|null);
|
|
283
|
+
nativePush?: (boolean|null);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
class OtrAssetMeta implements IOtrAssetMeta {
|
|
287
|
+
constructor(properties?: proteus.IOtrAssetMeta);
|
|
288
|
+
public sender: proteus.IClientId;
|
|
289
|
+
public recipients: proteus.IUserEntry[];
|
|
290
|
+
public isInline: boolean;
|
|
291
|
+
public nativePush: boolean;
|
|
292
|
+
public static create(properties?: proteus.IOtrAssetMeta): proteus.OtrAssetMeta;
|
|
293
|
+
public static encode(message: proteus.IOtrAssetMeta, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
294
|
+
public static encodeDelimited(message: proteus.IOtrAssetMeta, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
295
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): proteus.OtrAssetMeta;
|
|
296
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): proteus.OtrAssetMeta;
|
|
297
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
298
|
+
public static fromObject(object: { [k: string]: any }): proteus.OtrAssetMeta;
|
|
299
|
+
public static toObject(message: proteus.OtrAssetMeta, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
300
|
+
public toJSON(): { [k: string]: any };
|
|
301
|
+
}
|
|
160
302
|
}
|