@wireapp/protocol-messaging 1.35.0 → 1.38.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "protobufjs": "6.10.2"
3
+ "protobufjs": "6.11.3"
4
4
  },
5
5
  "devDependencies": {
6
6
  "@types/node": "~12",
@@ -23,5 +23,5 @@
23
23
  "preversion": "git checkout master && git pull && yarn && yarn dist && yarn test",
24
24
  "test": "tsc --noEmit"
25
25
  },
26
- "version": "1.35.0"
26
+ "version": "1.38.0"
27
27
  }
@@ -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/web/messages.d.ts CHANGED
@@ -33,7 +33,7 @@ export class GenericMessage implements IGenericMessage {
33
33
  public lastRead?: (ILastRead|null);
34
34
  public cleared?: (ICleared|null);
35
35
  public external?: (IExternal|null);
36
- public clientAction: ClientAction;
36
+ public clientAction?: (ClientAction|null);
37
37
  public calling?: (ICalling|null);
38
38
  public asset?: (IAsset|null);
39
39
  public hidden?: (IMessageHide|null);
@@ -402,7 +402,7 @@ export class Mention implements IMention {
402
402
  constructor(properties?: IMention);
403
403
  public start: number;
404
404
  public length: number;
405
- public userId: string;
405
+ public userId?: (string|null);
406
406
  public qualifiedUserId?: (IQualifiedUserId|null);
407
407
  public mentionType?: "userId";
408
408
  public static create(properties?: IMention): Mention;
@@ -651,7 +651,7 @@ export interface IAsset {
651
651
  export class Asset implements IAsset {
652
652
  constructor(properties?: IAsset);
653
653
  public original?: (Asset.IOriginal|null);
654
- public notUploaded: Asset.NotUploaded;
654
+ public notUploaded?: (Asset.NotUploaded|null);
655
655
  public uploaded?: (Asset.IRemoteData|null);
656
656
  public preview?: (Asset.IPreview|null);
657
657
  public expectsReadConfirmation: boolean;
@@ -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
@@ -112,11 +112,11 @@ $root.GenericMessage = (function() {
112
112
 
113
113
  /**
114
114
  * GenericMessage clientAction.
115
- * @member {ClientAction} clientAction
115
+ * @member {ClientAction|null|undefined} clientAction
116
116
  * @memberof GenericMessage
117
117
  * @instance
118
118
  */
119
- GenericMessage.prototype.clientAction = 0;
119
+ GenericMessage.prototype.clientAction = null;
120
120
 
121
121
  /**
122
122
  * GenericMessage calling.
@@ -4626,11 +4626,11 @@ $root.Mention = (function() {
4626
4626
 
4627
4627
  /**
4628
4628
  * Mention userId.
4629
- * @member {string} userId
4629
+ * @member {string|null|undefined} userId
4630
4630
  * @memberof Mention
4631
4631
  * @instance
4632
4632
  */
4633
- Mention.prototype.userId = "";
4633
+ Mention.prototype.userId = null;
4634
4634
 
4635
4635
  /**
4636
4636
  * Mention qualifiedUserId.
@@ -7347,11 +7347,11 @@ $root.Asset = (function() {
7347
7347
 
7348
7348
  /**
7349
7349
  * Asset notUploaded.
7350
- * @member {Asset.NotUploaded} notUploaded
7350
+ * @member {Asset.NotUploaded|null|undefined} notUploaded
7351
7351
  * @memberof Asset
7352
7352
  * @instance
7353
7353
  */
7354
- Asset.prototype.notUploaded = 0;
7354
+ Asset.prototype.notUploaded = null;
7355
7355
 
7356
7356
  /**
7357
7357
  * Asset uploaded.
@@ -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