@jkt48connect-corp/baileys 7.4.5 → 7.4.9

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.
Files changed (59) hide show
  1. package/WAProto/CompanionReg/CompanionReg.d.ts +6 -0
  2. package/WAProto/CompanionReg/CompanionReg.js +36 -0
  3. package/WAProto/CompanionReg/CompanionReg.proto +1 -0
  4. package/WAProto/E2E/E2E.d.ts +434 -6
  5. package/WAProto/E2E/E2E.js +1427 -2
  6. package/WAProto/E2E/E2E.proto +33 -0
  7. package/WAProto/HistorySync/HistorySync.d.ts +434 -6
  8. package/WAProto/HistorySync/HistorySync.js +1427 -2
  9. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.d.ts +434 -6
  10. package/WAProto/MdStorageMsgRowOpaqueData/MdStorageMsgRowOpaqueData.js +1427 -2
  11. package/WAProto/StatusAttributions/StatusAttributions.d.ts +95 -3
  12. package/WAProto/StatusAttributions/StatusAttributions.js +270 -2
  13. package/WAProto/StatusAttributions/StatusAttributions.proto +8 -0
  14. package/WAProto/Web/Web.d.ts +434 -6
  15. package/WAProto/Web/Web.js +1427 -2
  16. package/lib/Defaults/baileys-version.json +1 -1
  17. package/lib/Socket/business.js +3 -3
  18. package/lib/Socket/chats.js +7 -7
  19. package/lib/Socket/groups.js +11 -9
  20. package/lib/Socket/messages-recv.js +12 -11
  21. package/lib/Socket/messages-send.js +981 -983
  22. package/lib/Socket/newsletter.js +3 -3
  23. package/lib/Socket/socket.js +13 -47
  24. package/lib/Socket/usync.js +3 -3
  25. package/lib/Store/make-cache-manager-store.js +9 -17
  26. package/lib/Store/make-in-memory-store.d.ts +2 -2
  27. package/lib/Store/make-in-memory-store.js +5 -5
  28. package/lib/Types/GroupMetadata.d.ts +2 -1
  29. package/lib/Utils/business.js +4 -0
  30. package/lib/Utils/decode-wa-message.js +4 -0
  31. package/lib/Utils/generics.js +10 -9
  32. package/lib/Utils/messages.js +1329 -1326
  33. package/lib/Utils/process-message.js +14 -1
  34. package/lib/index.js +1 -1
  35. package/package.json +5 -6
  36. package/WAProto/Adv/JKT48Connect - Valzyy +0 -0
  37. package/WAProto/Cert/JKT48Connect - Valzyy +0 -0
  38. package/WAProto/ChatLockSettings/JKT48Connect - Valzyy +0 -0
  39. package/WAProto/CompanionReg/JKT48Connect - Valzyy +0 -0
  40. package/WAProto/DeviceCapabilities/JKT48Connect - Valzyy +0 -0
  41. package/WAProto/E2E/JKT48Connect - Valzyy +0 -0
  42. package/WAProto/Ephemeral/JKT48Connect - Valzyy +0 -0
  43. package/WAProto/HistorySync/JKT48Connect - Valzyy +0 -0
  44. package/WAProto/JKT48Connect - Valzyy +0 -0
  45. package/WAProto/MdStorageChatRowOpaqueData/JKT48Connect - Valzyy +0 -0
  46. package/WAProto/MdStorageMsgRowOpaqueData/JKT48Connect - Valzyy +0 -0
  47. package/WAProto/MmsRetry/JKT48Connect - Valzyy +0 -0
  48. package/WAProto/Protocol/JKT48Connect - Valzyy +0 -0
  49. package/WAProto/Reporting/JKT48Connect - Valzyy +0 -0
  50. package/WAProto/ServerSync/JKT48Connect - Valzyy +0 -0
  51. package/WAProto/SignalLocalStorageProtocol/JKT48Connect - Valzyy +0 -0
  52. package/WAProto/SignalWhisperTextProtocol/JKT48Connect - Valzyy +0 -0
  53. package/WAProto/StatusAttributions/JKT48Connect - Valzyy +0 -0
  54. package/WAProto/SyncAction/JKT48Connect - Valzyy +0 -0
  55. package/WAProto/UserPassword/JKT48Connect - Valzyy +0 -0
  56. package/WAProto/VnameCert/JKT48Connect - Valzyy +0 -0
  57. package/WAProto/Wa6/JKT48Connect - Valzyy +0 -0
  58. package/WAProto/Web/JKT48Connect - Valzyy +0 -0
  59. package/lib/JKT48Connect - Valzyy +0 -0
@@ -35105,6 +35105,7 @@ case 11:
35105
35105
  case 12:
35106
35106
  case 13:
35107
35107
  case 14:
35108
+ case 15:
35108
35109
  break;
35109
35110
  }
35110
35111
  }
@@ -35202,6 +35203,10 @@ case "VIEW_ALL_REPLIES":
35202
35203
  case 14:
35203
35204
  message.associationType = 14;
35204
35205
  break;
35206
+ case "STATUS_ADD_YOURS_AI_IMAGINE":
35207
+ case 15:
35208
+ message.associationType = 15;
35209
+ break;
35205
35210
  }
35206
35211
  if (object.parentMessageKey != null) {
35207
35212
  if (typeof object.parentMessageKey !== "object")
@@ -35285,6 +35290,7 @@ return typeUrlPrefix + "/E2E.MessageAssociation";
35285
35290
  * @property {number} MOTION_PHOTO=12 MOTION_PHOTO value
35286
35291
  * @property {number} STATUS_LINK_ACTION=13 STATUS_LINK_ACTION value
35287
35292
  * @property {number} VIEW_ALL_REPLIES=14 VIEW_ALL_REPLIES value
35293
+ * @property {number} STATUS_ADD_YOURS_AI_IMAGINE=15 STATUS_ADD_YOURS_AI_IMAGINE value
35288
35294
  */
35289
35295
  MessageAssociation.AssociationType = (function() {
35290
35296
  var valuesById = {}, values = Object.create(valuesById);
@@ -35303,6 +35309,7 @@ values[valuesById[11] = "STICKER_ANNOTATION"] = 11;
35303
35309
  values[valuesById[12] = "MOTION_PHOTO"] = 12;
35304
35310
  values[valuesById[13] = "STATUS_LINK_ACTION"] = 13;
35305
35311
  values[valuesById[14] = "VIEW_ALL_REPLIES"] = 14;
35312
+ values[valuesById[15] = "STATUS_ADD_YOURS_AI_IMAGINE"] = 15;
35306
35313
  return values;
35307
35314
  })();
35308
35315
  return MessageAssociation;
@@ -35337,6 +35344,8 @@ E2E.BotMetadata = (function() {
35337
35344
  * @property {E2E.IBotQuotaMetadata|null} [botQuotaMetadata] BotMetadata botQuotaMetadata
35338
35345
  * @property {E2E.IBotAgeCollectionMetadata|null} [botAgeCollectionMetadata] BotMetadata botAgeCollectionMetadata
35339
35346
  * @property {string|null} [conversationStarterPromptId] BotMetadata conversationStarterPromptId
35347
+ * @property {string|null} [botResponseId] BotMetadata botResponseId
35348
+ * @property {E2E.IBotSignatureVerificationMetadata|null} [verificationMetadata] BotMetadata verificationMetadata
35340
35349
  */
35341
35350
  /**
35342
35351
  * Constructs a new BotMetadata.
@@ -35527,6 +35536,20 @@ BotMetadata.prototype.botAgeCollectionMetadata = null;
35527
35536
  * @instance
35528
35537
  */
35529
35538
  BotMetadata.prototype.conversationStarterPromptId = null;
35539
+ /**
35540
+ * BotMetadata botResponseId.
35541
+ * @member {string|null|undefined} botResponseId
35542
+ * @memberof E2E.BotMetadata
35543
+ * @instance
35544
+ */
35545
+ BotMetadata.prototype.botResponseId = null;
35546
+ /**
35547
+ * BotMetadata verificationMetadata.
35548
+ * @member {E2E.IBotSignatureVerificationMetadata|null|undefined} verificationMetadata
35549
+ * @memberof E2E.BotMetadata
35550
+ * @instance
35551
+ */
35552
+ BotMetadata.prototype.verificationMetadata = null;
35530
35553
  // OneOf field names bound to virtual getters and setters
35531
35554
  var $oneOfFields;
35532
35555
  /**
@@ -35780,6 +35803,26 @@ get: $util.oneOfGetter($oneOfFields = ["conversationStarterPromptId"]),
35780
35803
  set: $util.oneOfSetter($oneOfFields)
35781
35804
  });
35782
35805
  /**
35806
+ * BotMetadata _botResponseId.
35807
+ * @member {"botResponseId"|undefined} _botResponseId
35808
+ * @memberof E2E.BotMetadata
35809
+ * @instance
35810
+ */
35811
+ Object.defineProperty(BotMetadata.prototype, "_botResponseId", {
35812
+ get: $util.oneOfGetter($oneOfFields = ["botResponseId"]),
35813
+ set: $util.oneOfSetter($oneOfFields)
35814
+ });
35815
+ /**
35816
+ * BotMetadata _verificationMetadata.
35817
+ * @member {"verificationMetadata"|undefined} _verificationMetadata
35818
+ * @memberof E2E.BotMetadata
35819
+ * @instance
35820
+ */
35821
+ Object.defineProperty(BotMetadata.prototype, "_verificationMetadata", {
35822
+ get: $util.oneOfGetter($oneOfFields = ["verificationMetadata"]),
35823
+ set: $util.oneOfSetter($oneOfFields)
35824
+ });
35825
+ /**
35783
35826
  * Creates a new BotMetadata instance using the specified properties.
35784
35827
  * @function create
35785
35828
  * @memberof E2E.BotMetadata
@@ -35852,6 +35895,10 @@ if (message.botAgeCollectionMetadata != null && Object.hasOwnProperty.call(messa
35852
35895
  $root.E2E.BotAgeCollectionMetadata.encode(message.botAgeCollectionMetadata, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
35853
35896
  if (message.conversationStarterPromptId != null && Object.hasOwnProperty.call(message, "conversationStarterPromptId"))
35854
35897
  writer.uint32(/* id 25, wireType 2 =*/202).string(message.conversationStarterPromptId);
35898
+ if (message.botResponseId != null && Object.hasOwnProperty.call(message, "botResponseId"))
35899
+ writer.uint32(/* id 26, wireType 2 =*/210).string(message.botResponseId);
35900
+ if (message.verificationMetadata != null && Object.hasOwnProperty.call(message, "verificationMetadata"))
35901
+ $root.E2E.BotSignatureVerificationMetadata.encode(message.verificationMetadata, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
35855
35902
  return writer;
35856
35903
  };
35857
35904
  /**
@@ -35986,6 +36033,14 @@ case 25: {
35986
36033
  message.conversationStarterPromptId = reader.string();
35987
36034
  break;
35988
36035
  }
36036
+ case 26: {
36037
+ message.botResponseId = reader.string();
36038
+ break;
36039
+ }
36040
+ case 27: {
36041
+ message.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.decode(reader, reader.uint32());
36042
+ break;
36043
+ }
35989
36044
  default:
35990
36045
  reader.skipType(tag & 7);
35991
36046
  break;
@@ -36202,6 +36257,19 @@ properties._conversationStarterPromptId = 1;
36202
36257
  if (!$util.isString(message.conversationStarterPromptId))
36203
36258
  return "conversationStarterPromptId: string expected";
36204
36259
  }
36260
+ if (message.botResponseId != null && message.hasOwnProperty("botResponseId")) {
36261
+ properties._botResponseId = 1;
36262
+ if (!$util.isString(message.botResponseId))
36263
+ return "botResponseId: string expected";
36264
+ }
36265
+ if (message.verificationMetadata != null && message.hasOwnProperty("verificationMetadata")) {
36266
+ properties._verificationMetadata = 1;
36267
+ {
36268
+ var error = $root.E2E.BotSignatureVerificationMetadata.verify(message.verificationMetadata);
36269
+ if (error)
36270
+ return "verificationMetadata." + error;
36271
+ }
36272
+ }
36205
36273
  return null;
36206
36274
  };
36207
36275
  /**
@@ -36326,6 +36394,13 @@ message.botAgeCollectionMetadata = $root.E2E.BotAgeCollectionMetadata.fromObject
36326
36394
  }
36327
36395
  if (object.conversationStarterPromptId != null)
36328
36396
  message.conversationStarterPromptId = String(object.conversationStarterPromptId);
36397
+ if (object.botResponseId != null)
36398
+ message.botResponseId = String(object.botResponseId);
36399
+ if (object.verificationMetadata != null) {
36400
+ if (typeof object.verificationMetadata !== "object")
36401
+ throw TypeError(".E2E.BotMetadata.verificationMetadata: object expected");
36402
+ message.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.fromObject(object.verificationMetadata);
36403
+ }
36329
36404
  return message;
36330
36405
  };
36331
36406
  /**
@@ -36466,6 +36541,16 @@ object.conversationStarterPromptId = message.conversationStarterPromptId;
36466
36541
  if (options.oneofs)
36467
36542
  object._conversationStarterPromptId = "conversationStarterPromptId";
36468
36543
  }
36544
+ if (message.botResponseId != null && message.hasOwnProperty("botResponseId")) {
36545
+ object.botResponseId = message.botResponseId;
36546
+ if (options.oneofs)
36547
+ object._botResponseId = "botResponseId";
36548
+ }
36549
+ if (message.verificationMetadata != null && message.hasOwnProperty("verificationMetadata")) {
36550
+ object.verificationMetadata = $root.E2E.BotSignatureVerificationMetadata.toObject(message.verificationMetadata, options);
36551
+ if (options.oneofs)
36552
+ object._verificationMetadata = "verificationMetadata";
36553
+ }
36469
36554
  return object;
36470
36555
  };
36471
36556
  /**
@@ -38594,6 +38679,7 @@ case 32:
38594
38679
  case 33:
38595
38680
  case 34:
38596
38681
  case 35:
38682
+ case 36:
38597
38683
  break;
38598
38684
  }
38599
38685
  }
@@ -38766,6 +38852,10 @@ case "PROMOTION_MESSAGE":
38766
38852
  case 35:
38767
38853
  message.capabilities[i] = 35;
38768
38854
  break;
38855
+ case "SIMPLIFIED_PROFILE_PAGE":
38856
+ case 36:
38857
+ message.capabilities[i] = 36;
38858
+ break;
38769
38859
  }
38770
38860
  }
38771
38861
  return message;
@@ -38856,6 +38946,7 @@ return typeUrlPrefix + "/E2E.BotCapabilityMetadata";
38856
38946
  * @property {number} PROACTIVE_MESSAGE=33 PROACTIVE_MESSAGE value
38857
38947
  * @property {number} RICH_RESPONSE_UNIFIED_RESPONSE=34 RICH_RESPONSE_UNIFIED_RESPONSE value
38858
38948
  * @property {number} PROMOTION_MESSAGE=35 PROMOTION_MESSAGE value
38949
+ * @property {number} SIMPLIFIED_PROFILE_PAGE=36 SIMPLIFIED_PROFILE_PAGE value
38859
38950
  */
38860
38951
  BotCapabilityMetadata.BotCapabilityType = (function() {
38861
38952
  var valuesById = {}, values = Object.create(valuesById);
@@ -38895,6 +38986,7 @@ values[valuesById[32] = "QUERY_PLAN"] = 32;
38895
38986
  values[valuesById[33] = "PROACTIVE_MESSAGE"] = 33;
38896
38987
  values[valuesById[34] = "RICH_RESPONSE_UNIFIED_RESPONSE"] = 34;
38897
38988
  values[valuesById[35] = "PROMOTION_MESSAGE"] = 35;
38989
+ values[valuesById[36] = "SIMPLIFIED_PROFILE_PAGE"] = 36;
38898
38990
  return values;
38899
38991
  })();
38900
38992
  return BotCapabilityMetadata;
@@ -43535,6 +43627,7 @@ E2E.AIRichResponseMessage = (function() {
43535
43627
  * @property {E2E.AIRichResponseMessage.AIRichResponseMessageType|null} [messageType] AIRichResponseMessage messageType
43536
43628
  * @property {Array.<E2E.AIRichResponseMessage.IAIRichResponseSubMessage>|null} [submessages] AIRichResponseMessage submessages
43537
43629
  * @property {E2E.AIRichResponseMessage.IAIRichResponseUnifiedResponse|null} [unifiedResponse] AIRichResponseMessage unifiedResponse
43630
+ * @property {E2E.IContextInfo|null} [contextInfo] AIRichResponseMessage contextInfo
43538
43631
  */
43539
43632
  /**
43540
43633
  * Constructs a new AIRichResponseMessage.
@@ -43572,6 +43665,13 @@ AIRichResponseMessage.prototype.submessages = $util.emptyArray;
43572
43665
  * @instance
43573
43666
  */
43574
43667
  AIRichResponseMessage.prototype.unifiedResponse = null;
43668
+ /**
43669
+ * AIRichResponseMessage contextInfo.
43670
+ * @member {E2E.IContextInfo|null|undefined} contextInfo
43671
+ * @memberof E2E.AIRichResponseMessage
43672
+ * @instance
43673
+ */
43674
+ AIRichResponseMessage.prototype.contextInfo = null;
43575
43675
  // OneOf field names bound to virtual getters and setters
43576
43676
  var $oneOfFields;
43577
43677
  /**
@@ -43595,6 +43695,16 @@ get: $util.oneOfGetter($oneOfFields = ["unifiedResponse"]),
43595
43695
  set: $util.oneOfSetter($oneOfFields)
43596
43696
  });
43597
43697
  /**
43698
+ * AIRichResponseMessage _contextInfo.
43699
+ * @member {"contextInfo"|undefined} _contextInfo
43700
+ * @memberof E2E.AIRichResponseMessage
43701
+ * @instance
43702
+ */
43703
+ Object.defineProperty(AIRichResponseMessage.prototype, "_contextInfo", {
43704
+ get: $util.oneOfGetter($oneOfFields = ["contextInfo"]),
43705
+ set: $util.oneOfSetter($oneOfFields)
43706
+ });
43707
+ /**
43598
43708
  * Creates a new AIRichResponseMessage instance using the specified properties.
43599
43709
  * @function create
43600
43710
  * @memberof E2E.AIRichResponseMessage
@@ -43624,6 +43734,8 @@ for (var i = 0; i < message.submessages.length; ++i)
43624
43734
  $root.E2E.AIRichResponseMessage.AIRichResponseSubMessage.encode(message.submessages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
43625
43735
  if (message.unifiedResponse != null && Object.hasOwnProperty.call(message, "unifiedResponse"))
43626
43736
  $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.encode(message.unifiedResponse, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
43737
+ if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo"))
43738
+ $root.E2E.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
43627
43739
  return writer;
43628
43740
  };
43629
43741
  /**
@@ -43672,6 +43784,10 @@ case 3: {
43672
43784
  message.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.decode(reader, reader.uint32());
43673
43785
  break;
43674
43786
  }
43787
+ case 4: {
43788
+ message.contextInfo = $root.E2E.ContextInfo.decode(reader, reader.uint32());
43789
+ break;
43790
+ }
43675
43791
  default:
43676
43792
  reader.skipType(tag & 7);
43677
43793
  break;
@@ -43733,6 +43849,14 @@ if (error)
43733
43849
  return "unifiedResponse." + error;
43734
43850
  }
43735
43851
  }
43852
+ if (message.contextInfo != null && message.hasOwnProperty("contextInfo")) {
43853
+ properties._contextInfo = 1;
43854
+ {
43855
+ var error = $root.E2E.ContextInfo.verify(message.contextInfo);
43856
+ if (error)
43857
+ return "contextInfo." + error;
43858
+ }
43859
+ }
43736
43860
  return null;
43737
43861
  };
43738
43862
  /**
@@ -43778,6 +43902,11 @@ if (typeof object.unifiedResponse !== "object")
43778
43902
  throw TypeError(".E2E.AIRichResponseMessage.unifiedResponse: object expected");
43779
43903
  message.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedResponse.fromObject(object.unifiedResponse);
43780
43904
  }
43905
+ if (object.contextInfo != null) {
43906
+ if (typeof object.contextInfo !== "object")
43907
+ throw TypeError(".E2E.AIRichResponseMessage.contextInfo: object expected");
43908
+ message.contextInfo = $root.E2E.ContextInfo.fromObject(object.contextInfo);
43909
+ }
43781
43910
  return message;
43782
43911
  };
43783
43912
  /**
@@ -43810,6 +43939,11 @@ object.unifiedResponse = $root.E2E.AIRichResponseMessage.AIRichResponseUnifiedRe
43810
43939
  if (options.oneofs)
43811
43940
  object._unifiedResponse = "unifiedResponse";
43812
43941
  }
43942
+ if (message.contextInfo != null && message.hasOwnProperty("contextInfo")) {
43943
+ object.contextInfo = $root.E2E.ContextInfo.toObject(message.contextInfo, options);
43944
+ if (options.oneofs)
43945
+ object._contextInfo = "contextInfo";
43946
+ }
43813
43947
  return object;
43814
43948
  };
43815
43949
  /**
@@ -48625,6 +48759,7 @@ AIRichResponseMessage.AIRichResponseTableMetadata = (function() {
48625
48759
  * @memberof E2E.AIRichResponseMessage
48626
48760
  * @interface IAIRichResponseTableMetadata
48627
48761
  * @property {Array.<E2E.AIRichResponseMessage.AIRichResponseTableMetadata.IAIRichResponseTableRow>|null} [rows] AIRichResponseTableMetadata rows
48762
+ * @property {string|null} [title] AIRichResponseTableMetadata title
48628
48763
  */
48629
48764
  /**
48630
48765
  * Constructs a new AIRichResponseTableMetadata.
@@ -48649,6 +48784,25 @@ this[keys[i]] = properties[keys[i]];
48649
48784
  */
48650
48785
  AIRichResponseTableMetadata.prototype.rows = $util.emptyArray;
48651
48786
  /**
48787
+ * AIRichResponseTableMetadata title.
48788
+ * @member {string|null|undefined} title
48789
+ * @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
48790
+ * @instance
48791
+ */
48792
+ AIRichResponseTableMetadata.prototype.title = null;
48793
+ // OneOf field names bound to virtual getters and setters
48794
+ var $oneOfFields;
48795
+ /**
48796
+ * AIRichResponseTableMetadata _title.
48797
+ * @member {"title"|undefined} _title
48798
+ * @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
48799
+ * @instance
48800
+ */
48801
+ Object.defineProperty(AIRichResponseTableMetadata.prototype, "_title", {
48802
+ get: $util.oneOfGetter($oneOfFields = ["title"]),
48803
+ set: $util.oneOfSetter($oneOfFields)
48804
+ });
48805
+ /**
48652
48806
  * Creates a new AIRichResponseTableMetadata instance using the specified properties.
48653
48807
  * @function create
48654
48808
  * @memberof E2E.AIRichResponseMessage.AIRichResponseTableMetadata
@@ -48674,6 +48828,8 @@ writer = $Writer.create();
48674
48828
  if (message.rows != null && message.rows.length)
48675
48829
  for (var i = 0; i < message.rows.length; ++i)
48676
48830
  $root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.encode(message.rows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
48831
+ if (message.title != null && Object.hasOwnProperty.call(message, "title"))
48832
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
48677
48833
  return writer;
48678
48834
  };
48679
48835
  /**
@@ -48714,6 +48870,10 @@ message.rows = [];
48714
48870
  message.rows.push($root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.decode(reader, reader.uint32()));
48715
48871
  break;
48716
48872
  }
48873
+ case 2: {
48874
+ message.title = reader.string();
48875
+ break;
48876
+ }
48717
48877
  default:
48718
48878
  reader.skipType(tag & 7);
48719
48879
  break;
@@ -48747,6 +48907,7 @@ return this.decode(reader, reader.uint32());
48747
48907
  AIRichResponseTableMetadata.verify = function verify(message) {
48748
48908
  if (typeof message !== "object" || message === null)
48749
48909
  return "object expected";
48910
+ var properties = {};
48750
48911
  if (message.rows != null && message.hasOwnProperty("rows")) {
48751
48912
  if (!Array.isArray(message.rows))
48752
48913
  return "rows: array expected";
@@ -48756,6 +48917,11 @@ if (error)
48756
48917
  return "rows." + error;
48757
48918
  }
48758
48919
  }
48920
+ if (message.title != null && message.hasOwnProperty("title")) {
48921
+ properties._title = 1;
48922
+ if (!$util.isString(message.title))
48923
+ return "title: string expected";
48924
+ }
48759
48925
  return null;
48760
48926
  };
48761
48927
  /**
@@ -48780,6 +48946,8 @@ throw TypeError(".E2E.AIRichResponseMessage.AIRichResponseTableMetadata.rows: ob
48780
48946
  message.rows[i] = $root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.fromObject(object.rows[i]);
48781
48947
  }
48782
48948
  }
48949
+ if (object.title != null)
48950
+ message.title = String(object.title);
48783
48951
  return message;
48784
48952
  };
48785
48953
  /**
@@ -48802,6 +48970,11 @@ object.rows = [];
48802
48970
  for (var j = 0; j < message.rows.length; ++j)
48803
48971
  object.rows[j] = $root.E2E.AIRichResponseMessage.AIRichResponseTableMetadata.AIRichResponseTableRow.toObject(message.rows[j], options);
48804
48972
  }
48973
+ if (message.title != null && message.hasOwnProperty("title")) {
48974
+ object.title = message.title;
48975
+ if (options.oneofs)
48976
+ object._title = "title";
48977
+ }
48805
48978
  return object;
48806
48979
  };
48807
48980
  /**
@@ -49286,6 +49459,562 @@ return AIRichResponseUnifiedResponse;
49286
49459
  })();
49287
49460
  return AIRichResponseMessage;
49288
49461
  })();
49462
+ E2E.BotSignatureVerificationUseCaseProof = (function() {
49463
+ /**
49464
+ * Properties of a BotSignatureVerificationUseCaseProof.
49465
+ * @memberof E2E
49466
+ * @interface IBotSignatureVerificationUseCaseProof
49467
+ * @property {number|null} [version] BotSignatureVerificationUseCaseProof version
49468
+ * @property {E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase|null} [useCase] BotSignatureVerificationUseCaseProof useCase
49469
+ * @property {Uint8Array|null} [signature] BotSignatureVerificationUseCaseProof signature
49470
+ * @property {Uint8Array|null} [certificateChain] BotSignatureVerificationUseCaseProof certificateChain
49471
+ */
49472
+ /**
49473
+ * Constructs a new BotSignatureVerificationUseCaseProof.
49474
+ * @memberof E2E
49475
+ * @classdesc Represents a BotSignatureVerificationUseCaseProof.
49476
+ * @implements IBotSignatureVerificationUseCaseProof
49477
+ * @constructor
49478
+ * @param {E2E.IBotSignatureVerificationUseCaseProof=} [properties] Properties to set
49479
+ */
49480
+ function BotSignatureVerificationUseCaseProof(properties) {
49481
+ if (properties)
49482
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
49483
+ if (properties[keys[i]] != null)
49484
+ this[keys[i]] = properties[keys[i]];
49485
+ }
49486
+ /**
49487
+ * BotSignatureVerificationUseCaseProof version.
49488
+ * @member {number|null|undefined} version
49489
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49490
+ * @instance
49491
+ */
49492
+ BotSignatureVerificationUseCaseProof.prototype.version = null;
49493
+ /**
49494
+ * BotSignatureVerificationUseCaseProof useCase.
49495
+ * @member {E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase|null|undefined} useCase
49496
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49497
+ * @instance
49498
+ */
49499
+ BotSignatureVerificationUseCaseProof.prototype.useCase = null;
49500
+ /**
49501
+ * BotSignatureVerificationUseCaseProof signature.
49502
+ * @member {Uint8Array|null|undefined} signature
49503
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49504
+ * @instance
49505
+ */
49506
+ BotSignatureVerificationUseCaseProof.prototype.signature = null;
49507
+ /**
49508
+ * BotSignatureVerificationUseCaseProof certificateChain.
49509
+ * @member {Uint8Array|null|undefined} certificateChain
49510
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49511
+ * @instance
49512
+ */
49513
+ BotSignatureVerificationUseCaseProof.prototype.certificateChain = null;
49514
+ // OneOf field names bound to virtual getters and setters
49515
+ var $oneOfFields;
49516
+ /**
49517
+ * BotSignatureVerificationUseCaseProof _version.
49518
+ * @member {"version"|undefined} _version
49519
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49520
+ * @instance
49521
+ */
49522
+ Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_version", {
49523
+ get: $util.oneOfGetter($oneOfFields = ["version"]),
49524
+ set: $util.oneOfSetter($oneOfFields)
49525
+ });
49526
+ /**
49527
+ * BotSignatureVerificationUseCaseProof _useCase.
49528
+ * @member {"useCase"|undefined} _useCase
49529
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49530
+ * @instance
49531
+ */
49532
+ Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_useCase", {
49533
+ get: $util.oneOfGetter($oneOfFields = ["useCase"]),
49534
+ set: $util.oneOfSetter($oneOfFields)
49535
+ });
49536
+ /**
49537
+ * BotSignatureVerificationUseCaseProof _signature.
49538
+ * @member {"signature"|undefined} _signature
49539
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49540
+ * @instance
49541
+ */
49542
+ Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_signature", {
49543
+ get: $util.oneOfGetter($oneOfFields = ["signature"]),
49544
+ set: $util.oneOfSetter($oneOfFields)
49545
+ });
49546
+ /**
49547
+ * BotSignatureVerificationUseCaseProof _certificateChain.
49548
+ * @member {"certificateChain"|undefined} _certificateChain
49549
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49550
+ * @instance
49551
+ */
49552
+ Object.defineProperty(BotSignatureVerificationUseCaseProof.prototype, "_certificateChain", {
49553
+ get: $util.oneOfGetter($oneOfFields = ["certificateChain"]),
49554
+ set: $util.oneOfSetter($oneOfFields)
49555
+ });
49556
+ /**
49557
+ * Creates a new BotSignatureVerificationUseCaseProof instance using the specified properties.
49558
+ * @function create
49559
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49560
+ * @static
49561
+ * @param {E2E.IBotSignatureVerificationUseCaseProof=} [properties] Properties to set
49562
+ * @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof instance
49563
+ */
49564
+ BotSignatureVerificationUseCaseProof.create = function create(properties) {
49565
+ return new BotSignatureVerificationUseCaseProof(properties);
49566
+ };
49567
+ /**
49568
+ * Encodes the specified BotSignatureVerificationUseCaseProof message. Does not implicitly {@link E2E.BotSignatureVerificationUseCaseProof.verify|verify} messages.
49569
+ * @function encode
49570
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49571
+ * @static
49572
+ * @param {E2E.IBotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof message or plain object to encode
49573
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49574
+ * @returns {$protobuf.Writer} Writer
49575
+ */
49576
+ BotSignatureVerificationUseCaseProof.encode = function encode(message, writer) {
49577
+ if (!writer)
49578
+ writer = $Writer.create();
49579
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
49580
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version);
49581
+ if (message.useCase != null && Object.hasOwnProperty.call(message, "useCase"))
49582
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.useCase);
49583
+ if (message.signature != null && Object.hasOwnProperty.call(message, "signature"))
49584
+ writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.signature);
49585
+ if (message.certificateChain != null && Object.hasOwnProperty.call(message, "certificateChain"))
49586
+ writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.certificateChain);
49587
+ return writer;
49588
+ };
49589
+ /**
49590
+ * Encodes the specified BotSignatureVerificationUseCaseProof message, length delimited. Does not implicitly {@link E2E.BotSignatureVerificationUseCaseProof.verify|verify} messages.
49591
+ * @function encodeDelimited
49592
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49593
+ * @static
49594
+ * @param {E2E.IBotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof message or plain object to encode
49595
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49596
+ * @returns {$protobuf.Writer} Writer
49597
+ */
49598
+ BotSignatureVerificationUseCaseProof.encodeDelimited = function encodeDelimited(message, writer) {
49599
+ return this.encode(message, writer).ldelim();
49600
+ };
49601
+ /**
49602
+ * Decodes a BotSignatureVerificationUseCaseProof message from the specified reader or buffer.
49603
+ * @function decode
49604
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49605
+ * @static
49606
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49607
+ * @param {number} [length] Message length if known beforehand
49608
+ * @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
49609
+ * @throws {Error} If the payload is not a reader or valid buffer
49610
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49611
+ */
49612
+ BotSignatureVerificationUseCaseProof.decode = function decode(reader, length, error) {
49613
+ if (!(reader instanceof $Reader))
49614
+ reader = $Reader.create(reader);
49615
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.BotSignatureVerificationUseCaseProof();
49616
+ while (reader.pos < end) {
49617
+ var tag = reader.uint32();
49618
+ if (tag === error)
49619
+ break;
49620
+ switch (tag >>> 3) {
49621
+ case 1: {
49622
+ message.version = reader.int32();
49623
+ break;
49624
+ }
49625
+ case 2: {
49626
+ message.useCase = reader.int32();
49627
+ break;
49628
+ }
49629
+ case 3: {
49630
+ message.signature = reader.bytes();
49631
+ break;
49632
+ }
49633
+ case 4: {
49634
+ message.certificateChain = reader.bytes();
49635
+ break;
49636
+ }
49637
+ default:
49638
+ reader.skipType(tag & 7);
49639
+ break;
49640
+ }
49641
+ }
49642
+ return message;
49643
+ };
49644
+ /**
49645
+ * Decodes a BotSignatureVerificationUseCaseProof message from the specified reader or buffer, length delimited.
49646
+ * @function decodeDelimited
49647
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49648
+ * @static
49649
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49650
+ * @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
49651
+ * @throws {Error} If the payload is not a reader or valid buffer
49652
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49653
+ */
49654
+ BotSignatureVerificationUseCaseProof.decodeDelimited = function decodeDelimited(reader) {
49655
+ if (!(reader instanceof $Reader))
49656
+ reader = new $Reader(reader);
49657
+ return this.decode(reader, reader.uint32());
49658
+ };
49659
+ /**
49660
+ * Verifies a BotSignatureVerificationUseCaseProof message.
49661
+ * @function verify
49662
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49663
+ * @static
49664
+ * @param {Object.<string,*>} message Plain object to verify
49665
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
49666
+ */
49667
+ BotSignatureVerificationUseCaseProof.verify = function verify(message) {
49668
+ if (typeof message !== "object" || message === null)
49669
+ return "object expected";
49670
+ var properties = {};
49671
+ if (message.version != null && message.hasOwnProperty("version")) {
49672
+ properties._version = 1;
49673
+ if (!$util.isInteger(message.version))
49674
+ return "version: integer expected";
49675
+ }
49676
+ if (message.useCase != null && message.hasOwnProperty("useCase")) {
49677
+ properties._useCase = 1;
49678
+ switch (message.useCase) {
49679
+ default:
49680
+ return "useCase: enum value expected";
49681
+ case 0:
49682
+ break;
49683
+ }
49684
+ }
49685
+ if (message.signature != null && message.hasOwnProperty("signature")) {
49686
+ properties._signature = 1;
49687
+ if (!(message.signature && typeof message.signature.length === "number" || $util.isString(message.signature)))
49688
+ return "signature: buffer expected";
49689
+ }
49690
+ if (message.certificateChain != null && message.hasOwnProperty("certificateChain")) {
49691
+ properties._certificateChain = 1;
49692
+ if (!(message.certificateChain && typeof message.certificateChain.length === "number" || $util.isString(message.certificateChain)))
49693
+ return "certificateChain: buffer expected";
49694
+ }
49695
+ return null;
49696
+ };
49697
+ /**
49698
+ * Creates a BotSignatureVerificationUseCaseProof message from a plain object. Also converts values to their respective internal types.
49699
+ * @function fromObject
49700
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49701
+ * @static
49702
+ * @param {Object.<string,*>} object Plain object
49703
+ * @returns {E2E.BotSignatureVerificationUseCaseProof} BotSignatureVerificationUseCaseProof
49704
+ */
49705
+ BotSignatureVerificationUseCaseProof.fromObject = function fromObject(object) {
49706
+ if (object instanceof $root.E2E.BotSignatureVerificationUseCaseProof)
49707
+ return object;
49708
+ var message = new $root.E2E.BotSignatureVerificationUseCaseProof();
49709
+ if (object.version != null)
49710
+ message.version = object.version | 0;
49711
+ switch (object.useCase) {
49712
+ default:
49713
+ if (typeof object.useCase === "number") {
49714
+ message.useCase = object.useCase;
49715
+ break;
49716
+ }
49717
+ break;
49718
+ case "WA_BOT_MSG":
49719
+ case 0:
49720
+ message.useCase = 0;
49721
+ break;
49722
+ }
49723
+ if (object.signature != null)
49724
+ if (typeof object.signature === "string")
49725
+ $util.base64.decode(object.signature, message.signature = $util.newBuffer($util.base64.length(object.signature)), 0);
49726
+ else if (object.signature.length >= 0)
49727
+ message.signature = object.signature;
49728
+ if (object.certificateChain != null)
49729
+ if (typeof object.certificateChain === "string")
49730
+ $util.base64.decode(object.certificateChain, message.certificateChain = $util.newBuffer($util.base64.length(object.certificateChain)), 0);
49731
+ else if (object.certificateChain.length >= 0)
49732
+ message.certificateChain = object.certificateChain;
49733
+ return message;
49734
+ };
49735
+ /**
49736
+ * Creates a plain object from a BotSignatureVerificationUseCaseProof message. Also converts values to other types if specified.
49737
+ * @function toObject
49738
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49739
+ * @static
49740
+ * @param {E2E.BotSignatureVerificationUseCaseProof} message BotSignatureVerificationUseCaseProof
49741
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
49742
+ * @returns {Object.<string,*>} Plain object
49743
+ */
49744
+ BotSignatureVerificationUseCaseProof.toObject = function toObject(message, options) {
49745
+ if (!options)
49746
+ options = {};
49747
+ var object = {};
49748
+ if (message.version != null && message.hasOwnProperty("version")) {
49749
+ object.version = message.version;
49750
+ if (options.oneofs)
49751
+ object._version = "version";
49752
+ }
49753
+ if (message.useCase != null && message.hasOwnProperty("useCase")) {
49754
+ object.useCase = options.enums === String ? $root.E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase[message.useCase] === undefined ? message.useCase : $root.E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase[message.useCase] : message.useCase;
49755
+ if (options.oneofs)
49756
+ object._useCase = "useCase";
49757
+ }
49758
+ if (message.signature != null && message.hasOwnProperty("signature")) {
49759
+ object.signature = options.bytes === String ? $util.base64.encode(message.signature, 0, message.signature.length) : options.bytes === Array ? Array.prototype.slice.call(message.signature) : message.signature;
49760
+ if (options.oneofs)
49761
+ object._signature = "signature";
49762
+ }
49763
+ if (message.certificateChain != null && message.hasOwnProperty("certificateChain")) {
49764
+ object.certificateChain = options.bytes === String ? $util.base64.encode(message.certificateChain, 0, message.certificateChain.length) : options.bytes === Array ? Array.prototype.slice.call(message.certificateChain) : message.certificateChain;
49765
+ if (options.oneofs)
49766
+ object._certificateChain = "certificateChain";
49767
+ }
49768
+ return object;
49769
+ };
49770
+ /**
49771
+ * Converts this BotSignatureVerificationUseCaseProof to JSON.
49772
+ * @function toJSON
49773
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49774
+ * @instance
49775
+ * @returns {Object.<string,*>} JSON object
49776
+ */
49777
+ BotSignatureVerificationUseCaseProof.prototype.toJSON = function toJSON() {
49778
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
49779
+ };
49780
+ /**
49781
+ * Gets the default type url for BotSignatureVerificationUseCaseProof
49782
+ * @function getTypeUrl
49783
+ * @memberof E2E.BotSignatureVerificationUseCaseProof
49784
+ * @static
49785
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
49786
+ * @returns {string} The default type url
49787
+ */
49788
+ BotSignatureVerificationUseCaseProof.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
49789
+ if (typeUrlPrefix === undefined) {
49790
+ typeUrlPrefix = "type.googleapis.com";
49791
+ }
49792
+ return typeUrlPrefix + "/E2E.BotSignatureVerificationUseCaseProof";
49793
+ };
49794
+ /**
49795
+ * BotSignatureUseCase enum.
49796
+ * @name E2E.BotSignatureVerificationUseCaseProof.BotSignatureUseCase
49797
+ * @enum {number}
49798
+ * @property {number} WA_BOT_MSG=0 WA_BOT_MSG value
49799
+ */
49800
+ BotSignatureVerificationUseCaseProof.BotSignatureUseCase = (function() {
49801
+ var valuesById = {}, values = Object.create(valuesById);
49802
+ values[valuesById[0] = "WA_BOT_MSG"] = 0;
49803
+ return values;
49804
+ })();
49805
+ return BotSignatureVerificationUseCaseProof;
49806
+ })();
49807
+ E2E.BotSignatureVerificationMetadata = (function() {
49808
+ /**
49809
+ * Properties of a BotSignatureVerificationMetadata.
49810
+ * @memberof E2E
49811
+ * @interface IBotSignatureVerificationMetadata
49812
+ * @property {Array.<E2E.IBotSignatureVerificationUseCaseProof>|null} [proofs] BotSignatureVerificationMetadata proofs
49813
+ */
49814
+ /**
49815
+ * Constructs a new BotSignatureVerificationMetadata.
49816
+ * @memberof E2E
49817
+ * @classdesc Represents a BotSignatureVerificationMetadata.
49818
+ * @implements IBotSignatureVerificationMetadata
49819
+ * @constructor
49820
+ * @param {E2E.IBotSignatureVerificationMetadata=} [properties] Properties to set
49821
+ */
49822
+ function BotSignatureVerificationMetadata(properties) {
49823
+ this.proofs = [];
49824
+ if (properties)
49825
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
49826
+ if (properties[keys[i]] != null)
49827
+ this[keys[i]] = properties[keys[i]];
49828
+ }
49829
+ /**
49830
+ * BotSignatureVerificationMetadata proofs.
49831
+ * @member {Array.<E2E.IBotSignatureVerificationUseCaseProof>} proofs
49832
+ * @memberof E2E.BotSignatureVerificationMetadata
49833
+ * @instance
49834
+ */
49835
+ BotSignatureVerificationMetadata.prototype.proofs = $util.emptyArray;
49836
+ /**
49837
+ * Creates a new BotSignatureVerificationMetadata instance using the specified properties.
49838
+ * @function create
49839
+ * @memberof E2E.BotSignatureVerificationMetadata
49840
+ * @static
49841
+ * @param {E2E.IBotSignatureVerificationMetadata=} [properties] Properties to set
49842
+ * @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata instance
49843
+ */
49844
+ BotSignatureVerificationMetadata.create = function create(properties) {
49845
+ return new BotSignatureVerificationMetadata(properties);
49846
+ };
49847
+ /**
49848
+ * Encodes the specified BotSignatureVerificationMetadata message. Does not implicitly {@link E2E.BotSignatureVerificationMetadata.verify|verify} messages.
49849
+ * @function encode
49850
+ * @memberof E2E.BotSignatureVerificationMetadata
49851
+ * @static
49852
+ * @param {E2E.IBotSignatureVerificationMetadata} message BotSignatureVerificationMetadata message or plain object to encode
49853
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49854
+ * @returns {$protobuf.Writer} Writer
49855
+ */
49856
+ BotSignatureVerificationMetadata.encode = function encode(message, writer) {
49857
+ if (!writer)
49858
+ writer = $Writer.create();
49859
+ if (message.proofs != null && message.proofs.length)
49860
+ for (var i = 0; i < message.proofs.length; ++i)
49861
+ $root.E2E.BotSignatureVerificationUseCaseProof.encode(message.proofs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
49862
+ return writer;
49863
+ };
49864
+ /**
49865
+ * Encodes the specified BotSignatureVerificationMetadata message, length delimited. Does not implicitly {@link E2E.BotSignatureVerificationMetadata.verify|verify} messages.
49866
+ * @function encodeDelimited
49867
+ * @memberof E2E.BotSignatureVerificationMetadata
49868
+ * @static
49869
+ * @param {E2E.IBotSignatureVerificationMetadata} message BotSignatureVerificationMetadata message or plain object to encode
49870
+ * @param {$protobuf.Writer} [writer] Writer to encode to
49871
+ * @returns {$protobuf.Writer} Writer
49872
+ */
49873
+ BotSignatureVerificationMetadata.encodeDelimited = function encodeDelimited(message, writer) {
49874
+ return this.encode(message, writer).ldelim();
49875
+ };
49876
+ /**
49877
+ * Decodes a BotSignatureVerificationMetadata message from the specified reader or buffer.
49878
+ * @function decode
49879
+ * @memberof E2E.BotSignatureVerificationMetadata
49880
+ * @static
49881
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49882
+ * @param {number} [length] Message length if known beforehand
49883
+ * @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
49884
+ * @throws {Error} If the payload is not a reader or valid buffer
49885
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49886
+ */
49887
+ BotSignatureVerificationMetadata.decode = function decode(reader, length, error) {
49888
+ if (!(reader instanceof $Reader))
49889
+ reader = $Reader.create(reader);
49890
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.BotSignatureVerificationMetadata();
49891
+ while (reader.pos < end) {
49892
+ var tag = reader.uint32();
49893
+ if (tag === error)
49894
+ break;
49895
+ switch (tag >>> 3) {
49896
+ case 1: {
49897
+ if (!(message.proofs && message.proofs.length))
49898
+ message.proofs = [];
49899
+ message.proofs.push($root.E2E.BotSignatureVerificationUseCaseProof.decode(reader, reader.uint32()));
49900
+ break;
49901
+ }
49902
+ default:
49903
+ reader.skipType(tag & 7);
49904
+ break;
49905
+ }
49906
+ }
49907
+ return message;
49908
+ };
49909
+ /**
49910
+ * Decodes a BotSignatureVerificationMetadata message from the specified reader or buffer, length delimited.
49911
+ * @function decodeDelimited
49912
+ * @memberof E2E.BotSignatureVerificationMetadata
49913
+ * @static
49914
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
49915
+ * @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
49916
+ * @throws {Error} If the payload is not a reader or valid buffer
49917
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49918
+ */
49919
+ BotSignatureVerificationMetadata.decodeDelimited = function decodeDelimited(reader) {
49920
+ if (!(reader instanceof $Reader))
49921
+ reader = new $Reader(reader);
49922
+ return this.decode(reader, reader.uint32());
49923
+ };
49924
+ /**
49925
+ * Verifies a BotSignatureVerificationMetadata message.
49926
+ * @function verify
49927
+ * @memberof E2E.BotSignatureVerificationMetadata
49928
+ * @static
49929
+ * @param {Object.<string,*>} message Plain object to verify
49930
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
49931
+ */
49932
+ BotSignatureVerificationMetadata.verify = function verify(message) {
49933
+ if (typeof message !== "object" || message === null)
49934
+ return "object expected";
49935
+ if (message.proofs != null && message.hasOwnProperty("proofs")) {
49936
+ if (!Array.isArray(message.proofs))
49937
+ return "proofs: array expected";
49938
+ for (var i = 0; i < message.proofs.length; ++i) {
49939
+ var error = $root.E2E.BotSignatureVerificationUseCaseProof.verify(message.proofs[i]);
49940
+ if (error)
49941
+ return "proofs." + error;
49942
+ }
49943
+ }
49944
+ return null;
49945
+ };
49946
+ /**
49947
+ * Creates a BotSignatureVerificationMetadata message from a plain object. Also converts values to their respective internal types.
49948
+ * @function fromObject
49949
+ * @memberof E2E.BotSignatureVerificationMetadata
49950
+ * @static
49951
+ * @param {Object.<string,*>} object Plain object
49952
+ * @returns {E2E.BotSignatureVerificationMetadata} BotSignatureVerificationMetadata
49953
+ */
49954
+ BotSignatureVerificationMetadata.fromObject = function fromObject(object) {
49955
+ if (object instanceof $root.E2E.BotSignatureVerificationMetadata)
49956
+ return object;
49957
+ var message = new $root.E2E.BotSignatureVerificationMetadata();
49958
+ if (object.proofs) {
49959
+ if (!Array.isArray(object.proofs))
49960
+ throw TypeError(".E2E.BotSignatureVerificationMetadata.proofs: array expected");
49961
+ message.proofs = [];
49962
+ for (var i = 0; i < object.proofs.length; ++i) {
49963
+ if (typeof object.proofs[i] !== "object")
49964
+ throw TypeError(".E2E.BotSignatureVerificationMetadata.proofs: object expected");
49965
+ message.proofs[i] = $root.E2E.BotSignatureVerificationUseCaseProof.fromObject(object.proofs[i]);
49966
+ }
49967
+ }
49968
+ return message;
49969
+ };
49970
+ /**
49971
+ * Creates a plain object from a BotSignatureVerificationMetadata message. Also converts values to other types if specified.
49972
+ * @function toObject
49973
+ * @memberof E2E.BotSignatureVerificationMetadata
49974
+ * @static
49975
+ * @param {E2E.BotSignatureVerificationMetadata} message BotSignatureVerificationMetadata
49976
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
49977
+ * @returns {Object.<string,*>} Plain object
49978
+ */
49979
+ BotSignatureVerificationMetadata.toObject = function toObject(message, options) {
49980
+ if (!options)
49981
+ options = {};
49982
+ var object = {};
49983
+ if (options.arrays || options.defaults)
49984
+ object.proofs = [];
49985
+ if (message.proofs && message.proofs.length) {
49986
+ object.proofs = [];
49987
+ for (var j = 0; j < message.proofs.length; ++j)
49988
+ object.proofs[j] = $root.E2E.BotSignatureVerificationUseCaseProof.toObject(message.proofs[j], options);
49989
+ }
49990
+ return object;
49991
+ };
49992
+ /**
49993
+ * Converts this BotSignatureVerificationMetadata to JSON.
49994
+ * @function toJSON
49995
+ * @memberof E2E.BotSignatureVerificationMetadata
49996
+ * @instance
49997
+ * @returns {Object.<string,*>} JSON object
49998
+ */
49999
+ BotSignatureVerificationMetadata.prototype.toJSON = function toJSON() {
50000
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50001
+ };
50002
+ /**
50003
+ * Gets the default type url for BotSignatureVerificationMetadata
50004
+ * @function getTypeUrl
50005
+ * @memberof E2E.BotSignatureVerificationMetadata
50006
+ * @static
50007
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
50008
+ * @returns {string} The default type url
50009
+ */
50010
+ BotSignatureVerificationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
50011
+ if (typeUrlPrefix === undefined) {
50012
+ typeUrlPrefix = "type.googleapis.com";
50013
+ }
50014
+ return typeUrlPrefix + "/E2E.BotSignatureVerificationMetadata";
50015
+ };
50016
+ return BotSignatureVerificationMetadata;
50017
+ })();
49289
50018
  E2E.BotMemoryFact = (function() {
49290
50019
  /**
49291
50020
  * Properties of a BotMemoryFact.
@@ -85017,6 +85746,8 @@ Message.LinkPreviewMetadata = (function() {
85017
85746
  * @property {E2E.Message.IPaymentLinkMetadata|null} [paymentLinkMetadata] LinkPreviewMetadata paymentLinkMetadata
85018
85747
  * @property {E2E.Message.IURLMetadata|null} [urlMetadata] LinkPreviewMetadata urlMetadata
85019
85748
  * @property {number|null} [fbExperimentId] LinkPreviewMetadata fbExperimentId
85749
+ * @property {number|null} [linkMediaDuration] LinkPreviewMetadata linkMediaDuration
85750
+ * @property {E2E.Message.LinkPreviewMetadata.SocialMediaPostType|null} [socialMediaPostType] LinkPreviewMetadata socialMediaPostType
85020
85751
  */
85021
85752
  /**
85022
85753
  * Constructs a new LinkPreviewMetadata.
@@ -85053,6 +85784,20 @@ LinkPreviewMetadata.prototype.urlMetadata = null;
85053
85784
  * @instance
85054
85785
  */
85055
85786
  LinkPreviewMetadata.prototype.fbExperimentId = null;
85787
+ /**
85788
+ * LinkPreviewMetadata linkMediaDuration.
85789
+ * @member {number|null|undefined} linkMediaDuration
85790
+ * @memberof E2E.Message.LinkPreviewMetadata
85791
+ * @instance
85792
+ */
85793
+ LinkPreviewMetadata.prototype.linkMediaDuration = null;
85794
+ /**
85795
+ * LinkPreviewMetadata socialMediaPostType.
85796
+ * @member {E2E.Message.LinkPreviewMetadata.SocialMediaPostType|null|undefined} socialMediaPostType
85797
+ * @memberof E2E.Message.LinkPreviewMetadata
85798
+ * @instance
85799
+ */
85800
+ LinkPreviewMetadata.prototype.socialMediaPostType = null;
85056
85801
  // OneOf field names bound to virtual getters and setters
85057
85802
  var $oneOfFields;
85058
85803
  /**
@@ -85086,6 +85831,26 @@ get: $util.oneOfGetter($oneOfFields = ["fbExperimentId"]),
85086
85831
  set: $util.oneOfSetter($oneOfFields)
85087
85832
  });
85088
85833
  /**
85834
+ * LinkPreviewMetadata _linkMediaDuration.
85835
+ * @member {"linkMediaDuration"|undefined} _linkMediaDuration
85836
+ * @memberof E2E.Message.LinkPreviewMetadata
85837
+ * @instance
85838
+ */
85839
+ Object.defineProperty(LinkPreviewMetadata.prototype, "_linkMediaDuration", {
85840
+ get: $util.oneOfGetter($oneOfFields = ["linkMediaDuration"]),
85841
+ set: $util.oneOfSetter($oneOfFields)
85842
+ });
85843
+ /**
85844
+ * LinkPreviewMetadata _socialMediaPostType.
85845
+ * @member {"socialMediaPostType"|undefined} _socialMediaPostType
85846
+ * @memberof E2E.Message.LinkPreviewMetadata
85847
+ * @instance
85848
+ */
85849
+ Object.defineProperty(LinkPreviewMetadata.prototype, "_socialMediaPostType", {
85850
+ get: $util.oneOfGetter($oneOfFields = ["socialMediaPostType"]),
85851
+ set: $util.oneOfSetter($oneOfFields)
85852
+ });
85853
+ /**
85089
85854
  * Creates a new LinkPreviewMetadata instance using the specified properties.
85090
85855
  * @function create
85091
85856
  * @memberof E2E.Message.LinkPreviewMetadata
@@ -85114,6 +85879,10 @@ if (message.urlMetadata != null && Object.hasOwnProperty.call(message, "urlMetad
85114
85879
  $root.E2E.Message.URLMetadata.encode(message.urlMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
85115
85880
  if (message.fbExperimentId != null && Object.hasOwnProperty.call(message, "fbExperimentId"))
85116
85881
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.fbExperimentId);
85882
+ if (message.linkMediaDuration != null && Object.hasOwnProperty.call(message, "linkMediaDuration"))
85883
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.linkMediaDuration);
85884
+ if (message.socialMediaPostType != null && Object.hasOwnProperty.call(message, "socialMediaPostType"))
85885
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.socialMediaPostType);
85117
85886
  return writer;
85118
85887
  };
85119
85888
  /**
@@ -85160,6 +85929,14 @@ case 3: {
85160
85929
  message.fbExperimentId = reader.uint32();
85161
85930
  break;
85162
85931
  }
85932
+ case 4: {
85933
+ message.linkMediaDuration = reader.uint32();
85934
+ break;
85935
+ }
85936
+ case 5: {
85937
+ message.socialMediaPostType = reader.int32();
85938
+ break;
85939
+ }
85163
85940
  default:
85164
85941
  reader.skipType(tag & 7);
85165
85942
  break;
@@ -85215,6 +85992,25 @@ properties._fbExperimentId = 1;
85215
85992
  if (!$util.isInteger(message.fbExperimentId))
85216
85993
  return "fbExperimentId: integer expected";
85217
85994
  }
85995
+ if (message.linkMediaDuration != null && message.hasOwnProperty("linkMediaDuration")) {
85996
+ properties._linkMediaDuration = 1;
85997
+ if (!$util.isInteger(message.linkMediaDuration))
85998
+ return "linkMediaDuration: integer expected";
85999
+ }
86000
+ if (message.socialMediaPostType != null && message.hasOwnProperty("socialMediaPostType")) {
86001
+ properties._socialMediaPostType = 1;
86002
+ switch (message.socialMediaPostType) {
86003
+ default:
86004
+ return "socialMediaPostType: enum value expected";
86005
+ case 0:
86006
+ case 1:
86007
+ case 2:
86008
+ case 3:
86009
+ case 4:
86010
+ case 5:
86011
+ break;
86012
+ }
86013
+ }
85218
86014
  return null;
85219
86015
  };
85220
86016
  /**
@@ -85241,6 +86037,40 @@ message.urlMetadata = $root.E2E.Message.URLMetadata.fromObject(object.urlMetadat
85241
86037
  }
85242
86038
  if (object.fbExperimentId != null)
85243
86039
  message.fbExperimentId = object.fbExperimentId >>> 0;
86040
+ if (object.linkMediaDuration != null)
86041
+ message.linkMediaDuration = object.linkMediaDuration >>> 0;
86042
+ switch (object.socialMediaPostType) {
86043
+ default:
86044
+ if (typeof object.socialMediaPostType === "number") {
86045
+ message.socialMediaPostType = object.socialMediaPostType;
86046
+ break;
86047
+ }
86048
+ break;
86049
+ case "NONE":
86050
+ case 0:
86051
+ message.socialMediaPostType = 0;
86052
+ break;
86053
+ case "REEL":
86054
+ case 1:
86055
+ message.socialMediaPostType = 1;
86056
+ break;
86057
+ case "LIVE_VIDEO":
86058
+ case 2:
86059
+ message.socialMediaPostType = 2;
86060
+ break;
86061
+ case "LONG_VIDEO":
86062
+ case 3:
86063
+ message.socialMediaPostType = 3;
86064
+ break;
86065
+ case "SINGLE_IMAGE":
86066
+ case 4:
86067
+ message.socialMediaPostType = 4;
86068
+ break;
86069
+ case "CAROUSEL":
86070
+ case 5:
86071
+ message.socialMediaPostType = 5;
86072
+ break;
86073
+ }
85244
86074
  return message;
85245
86075
  };
85246
86076
  /**
@@ -85271,6 +86101,16 @@ object.fbExperimentId = message.fbExperimentId;
85271
86101
  if (options.oneofs)
85272
86102
  object._fbExperimentId = "fbExperimentId";
85273
86103
  }
86104
+ if (message.linkMediaDuration != null && message.hasOwnProperty("linkMediaDuration")) {
86105
+ object.linkMediaDuration = message.linkMediaDuration;
86106
+ if (options.oneofs)
86107
+ object._linkMediaDuration = "linkMediaDuration";
86108
+ }
86109
+ if (message.socialMediaPostType != null && message.hasOwnProperty("socialMediaPostType")) {
86110
+ object.socialMediaPostType = options.enums === String ? $root.E2E.Message.LinkPreviewMetadata.SocialMediaPostType[message.socialMediaPostType] === undefined ? message.socialMediaPostType : $root.E2E.Message.LinkPreviewMetadata.SocialMediaPostType[message.socialMediaPostType] : message.socialMediaPostType;
86111
+ if (options.oneofs)
86112
+ object._socialMediaPostType = "socialMediaPostType";
86113
+ }
85274
86114
  return object;
85275
86115
  };
85276
86116
  /**
@@ -85297,6 +86137,27 @@ typeUrlPrefix = "type.googleapis.com";
85297
86137
  }
85298
86138
  return typeUrlPrefix + "/E2E.Message.LinkPreviewMetadata";
85299
86139
  };
86140
+ /**
86141
+ * SocialMediaPostType enum.
86142
+ * @name E2E.Message.LinkPreviewMetadata.SocialMediaPostType
86143
+ * @enum {number}
86144
+ * @property {number} NONE=0 NONE value
86145
+ * @property {number} REEL=1 REEL value
86146
+ * @property {number} LIVE_VIDEO=2 LIVE_VIDEO value
86147
+ * @property {number} LONG_VIDEO=3 LONG_VIDEO value
86148
+ * @property {number} SINGLE_IMAGE=4 SINGLE_IMAGE value
86149
+ * @property {number} CAROUSEL=5 CAROUSEL value
86150
+ */
86151
+ LinkPreviewMetadata.SocialMediaPostType = (function() {
86152
+ var valuesById = {}, values = Object.create(valuesById);
86153
+ values[valuesById[0] = "NONE"] = 0;
86154
+ values[valuesById[1] = "REEL"] = 1;
86155
+ values[valuesById[2] = "LIVE_VIDEO"] = 2;
86156
+ values[valuesById[3] = "LONG_VIDEO"] = 3;
86157
+ values[valuesById[4] = "SINGLE_IMAGE"] = 4;
86158
+ values[valuesById[5] = "CAROUSEL"] = 5;
86159
+ return values;
86160
+ })();
85300
86161
  return LinkPreviewMetadata;
85301
86162
  })();
85302
86163
  Message.ListMessage = (function() {
@@ -93307,6 +94168,7 @@ case 5:
93307
94168
  case 6:
93308
94169
  case 7:
93309
94170
  case 8:
94171
+ case 9:
93310
94172
  break;
93311
94173
  }
93312
94174
  }
@@ -93418,6 +94280,10 @@ case "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY":
93418
94280
  case 8:
93419
94281
  message.peerDataOperationRequestType = 8;
93420
94282
  break;
94283
+ case "COMPANION_CANONICAL_USER_NONCE_FETCH":
94284
+ case 9:
94285
+ message.peerDataOperationRequestType = 9;
94286
+ break;
93421
94287
  }
93422
94288
  if (object.requestStickerReupload) {
93423
94289
  if (!Array.isArray(object.requestStickerReupload))
@@ -95302,6 +96168,7 @@ case 5:
95302
96168
  case 6:
95303
96169
  case 7:
95304
96170
  case 8:
96171
+ case 9:
95305
96172
  break;
95306
96173
  }
95307
96174
  }
@@ -95376,6 +96243,10 @@ case "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY":
95376
96243
  case 8:
95377
96244
  message.peerDataOperationRequestType = 8;
95378
96245
  break;
96246
+ case "COMPANION_CANONICAL_USER_NONCE_FETCH":
96247
+ case 9:
96248
+ message.peerDataOperationRequestType = 9;
96249
+ break;
95379
96250
  }
95380
96251
  if (object.stanzaId != null)
95381
96252
  message.stanzaId = String(object.stanzaId);
@@ -95460,6 +96331,7 @@ PeerDataOperationRequestResponseMessage.PeerDataOperationResult = (function() {
95460
96331
  * @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.IFullHistorySyncOnDemandRequestResponse|null} [fullHistorySyncOnDemandRequestResponse] PeerDataOperationResult fullHistorySyncOnDemandRequestResponse
95461
96332
  * @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionMetaNonceFetchResponse|null} [companionMetaNonceFetchRequestResponse] PeerDataOperationResult companionMetaNonceFetchRequestResponse
95462
96333
  * @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ISyncDSnapshotFatalRecoveryResponse|null} [syncdSnapshotFatalRecoveryResponse] PeerDataOperationResult syncdSnapshotFatalRecoveryResponse
96334
+ * @property {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null} [companionCanonicalUserNonceFetchRequestResponse] PeerDataOperationResult companionCanonicalUserNonceFetchRequestResponse
95463
96335
  */
95464
96336
  /**
95465
96337
  * Constructs a new PeerDataOperationResult.
@@ -95531,6 +96403,13 @@ PeerDataOperationResult.prototype.companionMetaNonceFetchRequestResponse = null;
95531
96403
  * @instance
95532
96404
  */
95533
96405
  PeerDataOperationResult.prototype.syncdSnapshotFatalRecoveryResponse = null;
96406
+ /**
96407
+ * PeerDataOperationResult companionCanonicalUserNonceFetchRequestResponse.
96408
+ * @member {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse|null|undefined} companionCanonicalUserNonceFetchRequestResponse
96409
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
96410
+ * @instance
96411
+ */
96412
+ PeerDataOperationResult.prototype.companionCanonicalUserNonceFetchRequestResponse = null;
95534
96413
  // OneOf field names bound to virtual getters and setters
95535
96414
  var $oneOfFields;
95536
96415
  /**
@@ -95614,6 +96493,16 @@ get: $util.oneOfGetter($oneOfFields = ["syncdSnapshotFatalRecoveryResponse"]),
95614
96493
  set: $util.oneOfSetter($oneOfFields)
95615
96494
  });
95616
96495
  /**
96496
+ * PeerDataOperationResult _companionCanonicalUserNonceFetchRequestResponse.
96497
+ * @member {"companionCanonicalUserNonceFetchRequestResponse"|undefined} _companionCanonicalUserNonceFetchRequestResponse
96498
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
96499
+ * @instance
96500
+ */
96501
+ Object.defineProperty(PeerDataOperationResult.prototype, "_companionCanonicalUserNonceFetchRequestResponse", {
96502
+ get: $util.oneOfGetter($oneOfFields = ["companionCanonicalUserNonceFetchRequestResponse"]),
96503
+ set: $util.oneOfSetter($oneOfFields)
96504
+ });
96505
+ /**
95617
96506
  * Creates a new PeerDataOperationResult instance using the specified properties.
95618
96507
  * @function create
95619
96508
  * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
@@ -95652,6 +96541,8 @@ if (message.companionMetaNonceFetchRequestResponse != null && Object.hasOwnPrope
95652
96541
  $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionMetaNonceFetchResponse.encode(message.companionMetaNonceFetchRequestResponse, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
95653
96542
  if (message.syncdSnapshotFatalRecoveryResponse != null && Object.hasOwnProperty.call(message, "syncdSnapshotFatalRecoveryResponse"))
95654
96543
  $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.encode(message.syncdSnapshotFatalRecoveryResponse, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
96544
+ if (message.companionCanonicalUserNonceFetchRequestResponse != null && Object.hasOwnProperty.call(message, "companionCanonicalUserNonceFetchRequestResponse"))
96545
+ $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.encode(message.companionCanonicalUserNonceFetchRequestResponse, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
95655
96546
  return writer;
95656
96547
  };
95657
96548
  /**
@@ -95718,6 +96609,10 @@ case 8: {
95718
96609
  message.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.decode(reader, reader.uint32());
95719
96610
  break;
95720
96611
  }
96612
+ case 9: {
96613
+ message.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.decode(reader, reader.uint32());
96614
+ break;
96615
+ }
95721
96616
  default:
95722
96617
  reader.skipType(tag & 7);
95723
96618
  break;
@@ -95820,6 +96715,14 @@ if (error)
95820
96715
  return "syncdSnapshotFatalRecoveryResponse." + error;
95821
96716
  }
95822
96717
  }
96718
+ if (message.companionCanonicalUserNonceFetchRequestResponse != null && message.hasOwnProperty("companionCanonicalUserNonceFetchRequestResponse")) {
96719
+ properties._companionCanonicalUserNonceFetchRequestResponse = 1;
96720
+ {
96721
+ var error = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify(message.companionCanonicalUserNonceFetchRequestResponse);
96722
+ if (error)
96723
+ return "companionCanonicalUserNonceFetchRequestResponse." + error;
96724
+ }
96725
+ }
95823
96726
  return null;
95824
96727
  };
95825
96728
  /**
@@ -95893,6 +96796,11 @@ if (typeof object.syncdSnapshotFatalRecoveryResponse !== "object")
95893
96796
  throw TypeError(".E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.syncdSnapshotFatalRecoveryResponse: object expected");
95894
96797
  message.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.SyncDSnapshotFatalRecoveryResponse.fromObject(object.syncdSnapshotFatalRecoveryResponse);
95895
96798
  }
96799
+ if (object.companionCanonicalUserNonceFetchRequestResponse != null) {
96800
+ if (typeof object.companionCanonicalUserNonceFetchRequestResponse !== "object")
96801
+ throw TypeError(".E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.companionCanonicalUserNonceFetchRequestResponse: object expected");
96802
+ message.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.fromObject(object.companionCanonicalUserNonceFetchRequestResponse);
96803
+ }
95896
96804
  return message;
95897
96805
  };
95898
96806
  /**
@@ -95948,6 +96856,11 @@ object.syncdSnapshotFatalRecoveryResponse = $root.E2E.Message.PeerDataOperationR
95948
96856
  if (options.oneofs)
95949
96857
  object._syncdSnapshotFatalRecoveryResponse = "syncdSnapshotFatalRecoveryResponse";
95950
96858
  }
96859
+ if (message.companionCanonicalUserNonceFetchRequestResponse != null && message.hasOwnProperty("companionCanonicalUserNonceFetchRequestResponse")) {
96860
+ object.companionCanonicalUserNonceFetchRequestResponse = $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.toObject(message.companionCanonicalUserNonceFetchRequestResponse, options);
96861
+ if (options.oneofs)
96862
+ object._companionCanonicalUserNonceFetchRequestResponse = "companionCanonicalUserNonceFetchRequestResponse";
96863
+ }
95951
96864
  return object;
95952
96865
  };
95953
96866
  /**
@@ -95974,6 +96887,212 @@ typeUrlPrefix = "type.googleapis.com";
95974
96887
  }
95975
96888
  return typeUrlPrefix + "/E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult";
95976
96889
  };
96890
+ PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse = (function() {
96891
+ /**
96892
+ * Properties of a CompanionCanonicalUserNonceFetchResponse.
96893
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
96894
+ * @interface ICompanionCanonicalUserNonceFetchResponse
96895
+ * @property {string|null} [nonce] CompanionCanonicalUserNonceFetchResponse nonce
96896
+ */
96897
+ /**
96898
+ * Constructs a new CompanionCanonicalUserNonceFetchResponse.
96899
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult
96900
+ * @classdesc Represents a CompanionCanonicalUserNonceFetchResponse.
96901
+ * @implements ICompanionCanonicalUserNonceFetchResponse
96902
+ * @constructor
96903
+ * @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse=} [properties] Properties to set
96904
+ */
96905
+ function CompanionCanonicalUserNonceFetchResponse(properties) {
96906
+ if (properties)
96907
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
96908
+ if (properties[keys[i]] != null)
96909
+ this[keys[i]] = properties[keys[i]];
96910
+ }
96911
+ /**
96912
+ * CompanionCanonicalUserNonceFetchResponse nonce.
96913
+ * @member {string|null|undefined} nonce
96914
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
96915
+ * @instance
96916
+ */
96917
+ CompanionCanonicalUserNonceFetchResponse.prototype.nonce = null;
96918
+ // OneOf field names bound to virtual getters and setters
96919
+ var $oneOfFields;
96920
+ /**
96921
+ * CompanionCanonicalUserNonceFetchResponse _nonce.
96922
+ * @member {"nonce"|undefined} _nonce
96923
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
96924
+ * @instance
96925
+ */
96926
+ Object.defineProperty(CompanionCanonicalUserNonceFetchResponse.prototype, "_nonce", {
96927
+ get: $util.oneOfGetter($oneOfFields = ["nonce"]),
96928
+ set: $util.oneOfSetter($oneOfFields)
96929
+ });
96930
+ /**
96931
+ * Creates a new CompanionCanonicalUserNonceFetchResponse instance using the specified properties.
96932
+ * @function create
96933
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
96934
+ * @static
96935
+ * @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse=} [properties] Properties to set
96936
+ * @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse instance
96937
+ */
96938
+ CompanionCanonicalUserNonceFetchResponse.create = function create(properties) {
96939
+ return new CompanionCanonicalUserNonceFetchResponse(properties);
96940
+ };
96941
+ /**
96942
+ * Encodes the specified CompanionCanonicalUserNonceFetchResponse message. Does not implicitly {@link E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify|verify} messages.
96943
+ * @function encode
96944
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
96945
+ * @static
96946
+ * @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse message or plain object to encode
96947
+ * @param {$protobuf.Writer} [writer] Writer to encode to
96948
+ * @returns {$protobuf.Writer} Writer
96949
+ */
96950
+ CompanionCanonicalUserNonceFetchResponse.encode = function encode(message, writer) {
96951
+ if (!writer)
96952
+ writer = $Writer.create();
96953
+ if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
96954
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.nonce);
96955
+ return writer;
96956
+ };
96957
+ /**
96958
+ * Encodes the specified CompanionCanonicalUserNonceFetchResponse message, length delimited. Does not implicitly {@link E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse.verify|verify} messages.
96959
+ * @function encodeDelimited
96960
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
96961
+ * @static
96962
+ * @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.ICompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse message or plain object to encode
96963
+ * @param {$protobuf.Writer} [writer] Writer to encode to
96964
+ * @returns {$protobuf.Writer} Writer
96965
+ */
96966
+ CompanionCanonicalUserNonceFetchResponse.encodeDelimited = function encodeDelimited(message, writer) {
96967
+ return this.encode(message, writer).ldelim();
96968
+ };
96969
+ /**
96970
+ * Decodes a CompanionCanonicalUserNonceFetchResponse message from the specified reader or buffer.
96971
+ * @function decode
96972
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
96973
+ * @static
96974
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
96975
+ * @param {number} [length] Message length if known beforehand
96976
+ * @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
96977
+ * @throws {Error} If the payload is not a reader or valid buffer
96978
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
96979
+ */
96980
+ CompanionCanonicalUserNonceFetchResponse.decode = function decode(reader, length, error) {
96981
+ if (!(reader instanceof $Reader))
96982
+ reader = $Reader.create(reader);
96983
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse();
96984
+ while (reader.pos < end) {
96985
+ var tag = reader.uint32();
96986
+ if (tag === error)
96987
+ break;
96988
+ switch (tag >>> 3) {
96989
+ case 1: {
96990
+ message.nonce = reader.string();
96991
+ break;
96992
+ }
96993
+ default:
96994
+ reader.skipType(tag & 7);
96995
+ break;
96996
+ }
96997
+ }
96998
+ return message;
96999
+ };
97000
+ /**
97001
+ * Decodes a CompanionCanonicalUserNonceFetchResponse message from the specified reader or buffer, length delimited.
97002
+ * @function decodeDelimited
97003
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
97004
+ * @static
97005
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
97006
+ * @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
97007
+ * @throws {Error} If the payload is not a reader or valid buffer
97008
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
97009
+ */
97010
+ CompanionCanonicalUserNonceFetchResponse.decodeDelimited = function decodeDelimited(reader) {
97011
+ if (!(reader instanceof $Reader))
97012
+ reader = new $Reader(reader);
97013
+ return this.decode(reader, reader.uint32());
97014
+ };
97015
+ /**
97016
+ * Verifies a CompanionCanonicalUserNonceFetchResponse message.
97017
+ * @function verify
97018
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
97019
+ * @static
97020
+ * @param {Object.<string,*>} message Plain object to verify
97021
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
97022
+ */
97023
+ CompanionCanonicalUserNonceFetchResponse.verify = function verify(message) {
97024
+ if (typeof message !== "object" || message === null)
97025
+ return "object expected";
97026
+ var properties = {};
97027
+ if (message.nonce != null && message.hasOwnProperty("nonce")) {
97028
+ properties._nonce = 1;
97029
+ if (!$util.isString(message.nonce))
97030
+ return "nonce: string expected";
97031
+ }
97032
+ return null;
97033
+ };
97034
+ /**
97035
+ * Creates a CompanionCanonicalUserNonceFetchResponse message from a plain object. Also converts values to their respective internal types.
97036
+ * @function fromObject
97037
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
97038
+ * @static
97039
+ * @param {Object.<string,*>} object Plain object
97040
+ * @returns {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} CompanionCanonicalUserNonceFetchResponse
97041
+ */
97042
+ CompanionCanonicalUserNonceFetchResponse.fromObject = function fromObject(object) {
97043
+ if (object instanceof $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse)
97044
+ return object;
97045
+ var message = new $root.E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse();
97046
+ if (object.nonce != null)
97047
+ message.nonce = String(object.nonce);
97048
+ return message;
97049
+ };
97050
+ /**
97051
+ * Creates a plain object from a CompanionCanonicalUserNonceFetchResponse message. Also converts values to other types if specified.
97052
+ * @function toObject
97053
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
97054
+ * @static
97055
+ * @param {E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse} message CompanionCanonicalUserNonceFetchResponse
97056
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
97057
+ * @returns {Object.<string,*>} Plain object
97058
+ */
97059
+ CompanionCanonicalUserNonceFetchResponse.toObject = function toObject(message, options) {
97060
+ if (!options)
97061
+ options = {};
97062
+ var object = {};
97063
+ if (message.nonce != null && message.hasOwnProperty("nonce")) {
97064
+ object.nonce = message.nonce;
97065
+ if (options.oneofs)
97066
+ object._nonce = "nonce";
97067
+ }
97068
+ return object;
97069
+ };
97070
+ /**
97071
+ * Converts this CompanionCanonicalUserNonceFetchResponse to JSON.
97072
+ * @function toJSON
97073
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
97074
+ * @instance
97075
+ * @returns {Object.<string,*>} JSON object
97076
+ */
97077
+ CompanionCanonicalUserNonceFetchResponse.prototype.toJSON = function toJSON() {
97078
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
97079
+ };
97080
+ /**
97081
+ * Gets the default type url for CompanionCanonicalUserNonceFetchResponse
97082
+ * @function getTypeUrl
97083
+ * @memberof E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse
97084
+ * @static
97085
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
97086
+ * @returns {string} The default type url
97087
+ */
97088
+ CompanionCanonicalUserNonceFetchResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
97089
+ if (typeUrlPrefix === undefined) {
97090
+ typeUrlPrefix = "type.googleapis.com";
97091
+ }
97092
+ return typeUrlPrefix + "/E2E.Message.PeerDataOperationRequestResponseMessage.PeerDataOperationResult.CompanionCanonicalUserNonceFetchResponse";
97093
+ };
97094
+ return CompanionCanonicalUserNonceFetchResponse;
97095
+ })();
95977
97096
  PeerDataOperationResult.CompanionMetaNonceFetchResponse = (function() {
95978
97097
  /**
95979
97098
  * Properties of a CompanionMetaNonceFetchResponse.
@@ -98074,6 +99193,7 @@ return PeerDataOperationRequestResponseMessage;
98074
99193
  * @property {number} FULL_HISTORY_SYNC_ON_DEMAND=6 FULL_HISTORY_SYNC_ON_DEMAND value
98075
99194
  * @property {number} COMPANION_META_NONCE_FETCH=7 COMPANION_META_NONCE_FETCH value
98076
99195
  * @property {number} COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY=8 COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY value
99196
+ * @property {number} COMPANION_CANONICAL_USER_NONCE_FETCH=9 COMPANION_CANONICAL_USER_NONCE_FETCH value
98077
99197
  */
98078
99198
  Message.PeerDataOperationRequestType = (function() {
98079
99199
  var valuesById = {}, values = Object.create(valuesById);
@@ -98086,6 +99206,7 @@ values[valuesById[5] = "WAFFLE_LINKING_NONCE_FETCH"] = 5;
98086
99206
  values[valuesById[6] = "FULL_HISTORY_SYNC_ON_DEMAND"] = 6;
98087
99207
  values[valuesById[7] = "COMPANION_META_NONCE_FETCH"] = 7;
98088
99208
  values[valuesById[8] = "COMPANION_SYNCD_SNAPSHOT_FATAL_RECOVERY"] = 8;
99209
+ values[valuesById[9] = "COMPANION_CANONICAL_USER_NONCE_FETCH"] = 9;
98089
99210
  return values;
98090
99211
  })();
98091
99212
  Message.PinInChatMessage = (function() {
@@ -115319,6 +116440,7 @@ StatusAttributions.StatusAttribution = (function() {
115319
116440
  * @property {StatusAttributions.StatusAttribution.IStatusReshare|null} [statusReshare] StatusAttribution statusReshare
115320
116441
  * @property {StatusAttributions.StatusAttribution.IExternalShare|null} [externalShare] StatusAttribution externalShare
115321
116442
  * @property {StatusAttributions.StatusAttribution.IMusic|null} [music] StatusAttribution music
116443
+ * @property {StatusAttributions.StatusAttribution.IGroupStatus|null} [groupStatus] StatusAttribution groupStatus
115322
116444
  */
115323
116445
  /**
115324
116446
  * Constructs a new StatusAttribution.
@@ -115369,6 +116491,13 @@ StatusAttribution.prototype.externalShare = null;
115369
116491
  * @instance
115370
116492
  */
115371
116493
  StatusAttribution.prototype.music = null;
116494
+ /**
116495
+ * StatusAttribution groupStatus.
116496
+ * @member {StatusAttributions.StatusAttribution.IGroupStatus|null|undefined} groupStatus
116497
+ * @memberof StatusAttributions.StatusAttribution
116498
+ * @instance
116499
+ */
116500
+ StatusAttribution.prototype.groupStatus = null;
115372
116501
  // OneOf field names bound to virtual getters and setters
115373
116502
  var $oneOfFields;
115374
116503
  /**
@@ -115393,12 +116522,12 @@ set: $util.oneOfSetter($oneOfFields)
115393
116522
  });
115394
116523
  /**
115395
116524
  * StatusAttribution attributionData.
115396
- * @member {"statusReshare"|"externalShare"|"music"|undefined} attributionData
116525
+ * @member {"statusReshare"|"externalShare"|"music"|"groupStatus"|undefined} attributionData
115397
116526
  * @memberof StatusAttributions.StatusAttribution
115398
116527
  * @instance
115399
116528
  */
115400
116529
  Object.defineProperty(StatusAttribution.prototype, "attributionData", {
115401
- get: $util.oneOfGetter($oneOfFields = ["statusReshare", "externalShare", "music"]),
116530
+ get: $util.oneOfGetter($oneOfFields = ["statusReshare", "externalShare", "music", "groupStatus"]),
115402
116531
  set: $util.oneOfSetter($oneOfFields)
115403
116532
  });
115404
116533
  /**
@@ -115434,6 +116563,8 @@ if (message.externalShare != null && Object.hasOwnProperty.call(message, "extern
115434
116563
  $root.StatusAttributions.StatusAttribution.ExternalShare.encode(message.externalShare, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
115435
116564
  if (message.music != null && Object.hasOwnProperty.call(message, "music"))
115436
116565
  $root.StatusAttributions.StatusAttribution.Music.encode(message.music, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
116566
+ if (message.groupStatus != null && Object.hasOwnProperty.call(message, "groupStatus"))
116567
+ $root.StatusAttributions.StatusAttribution.GroupStatus.encode(message.groupStatus, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
115437
116568
  return writer;
115438
116569
  };
115439
116570
  /**
@@ -115488,6 +116619,10 @@ case 5: {
115488
116619
  message.music = $root.StatusAttributions.StatusAttribution.Music.decode(reader, reader.uint32());
115489
116620
  break;
115490
116621
  }
116622
+ case 6: {
116623
+ message.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.decode(reader, reader.uint32());
116624
+ break;
116625
+ }
115491
116626
  default:
115492
116627
  reader.skipType(tag & 7);
115493
116628
  break;
@@ -115530,6 +116665,8 @@ return "type: enum value expected";
115530
116665
  case 0:
115531
116666
  case 1:
115532
116667
  case 2:
116668
+ case 3:
116669
+ case 4:
115533
116670
  break;
115534
116671
  }
115535
116672
  }
@@ -115566,6 +116703,16 @@ if (error)
115566
116703
  return "music." + error;
115567
116704
  }
115568
116705
  }
116706
+ if (message.groupStatus != null && message.hasOwnProperty("groupStatus")) {
116707
+ if (properties.attributionData === 1)
116708
+ return "attributionData: multiple values";
116709
+ properties.attributionData = 1;
116710
+ {
116711
+ var error = $root.StatusAttributions.StatusAttribution.GroupStatus.verify(message.groupStatus);
116712
+ if (error)
116713
+ return "groupStatus." + error;
116714
+ }
116715
+ }
115569
116716
  return null;
115570
116717
  };
115571
116718
  /**
@@ -115599,6 +116746,14 @@ case "MUSIC":
115599
116746
  case 2:
115600
116747
  message.type = 2;
115601
116748
  break;
116749
+ case "STATUS_MENTION":
116750
+ case 3:
116751
+ message.type = 3;
116752
+ break;
116753
+ case "GROUP_STATUS":
116754
+ case 4:
116755
+ message.type = 4;
116756
+ break;
115602
116757
  }
115603
116758
  if (object.actionUrl != null)
115604
116759
  message.actionUrl = String(object.actionUrl);
@@ -115617,6 +116772,11 @@ if (typeof object.music !== "object")
115617
116772
  throw TypeError(".StatusAttributions.StatusAttribution.music: object expected");
115618
116773
  message.music = $root.StatusAttributions.StatusAttribution.Music.fromObject(object.music);
115619
116774
  }
116775
+ if (object.groupStatus != null) {
116776
+ if (typeof object.groupStatus !== "object")
116777
+ throw TypeError(".StatusAttributions.StatusAttribution.groupStatus: object expected");
116778
+ message.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.fromObject(object.groupStatus);
116779
+ }
115620
116780
  return message;
115621
116781
  };
115622
116782
  /**
@@ -115657,6 +116817,11 @@ object.music = $root.StatusAttributions.StatusAttribution.Music.toObject(message
115657
116817
  if (options.oneofs)
115658
116818
  object.attributionData = "music";
115659
116819
  }
116820
+ if (message.groupStatus != null && message.hasOwnProperty("groupStatus")) {
116821
+ object.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.toObject(message.groupStatus, options);
116822
+ if (options.oneofs)
116823
+ object.attributionData = "groupStatus";
116824
+ }
115660
116825
  return object;
115661
116826
  };
115662
116827
  /**
@@ -115907,6 +117072,8 @@ case 1:
115907
117072
  case 2:
115908
117073
  case 3:
115909
117074
  case 4:
117075
+ case 5:
117076
+ case 6:
115910
117077
  break;
115911
117078
  }
115912
117079
  }
@@ -115963,6 +117130,14 @@ case "SPOTIFY":
115963
117130
  case 4:
115964
117131
  message.source = 4;
115965
117132
  break;
117133
+ case "YOUTUBE":
117134
+ case 5:
117135
+ message.source = 5;
117136
+ break;
117137
+ case "PINTEREST":
117138
+ case 6:
117139
+ message.source = 6;
117140
+ break;
115966
117141
  }
115967
117142
  if (object.duration != null)
115968
117143
  message.duration = object.duration | 0;
@@ -116038,6 +117213,8 @@ return typeUrlPrefix + "/StatusAttributions.StatusAttribution.ExternalShare";
116038
117213
  * @property {number} FACEBOOK=2 FACEBOOK value
116039
117214
  * @property {number} MESSENGER=3 MESSENGER value
116040
117215
  * @property {number} SPOTIFY=4 SPOTIFY value
117216
+ * @property {number} YOUTUBE=5 YOUTUBE value
117217
+ * @property {number} PINTEREST=6 PINTEREST value
116041
117218
  */
116042
117219
  ExternalShare.Source = (function() {
116043
117220
  var valuesById = {}, values = Object.create(valuesById);
@@ -116046,10 +117223,218 @@ values[valuesById[1] = "INSTAGRAM"] = 1;
116046
117223
  values[valuesById[2] = "FACEBOOK"] = 2;
116047
117224
  values[valuesById[3] = "MESSENGER"] = 3;
116048
117225
  values[valuesById[4] = "SPOTIFY"] = 4;
117226
+ values[valuesById[5] = "YOUTUBE"] = 5;
117227
+ values[valuesById[6] = "PINTEREST"] = 6;
116049
117228
  return values;
116050
117229
  })();
116051
117230
  return ExternalShare;
116052
117231
  })();
117232
+ StatusAttribution.GroupStatus = (function() {
117233
+ /**
117234
+ * Properties of a GroupStatus.
117235
+ * @memberof StatusAttributions.StatusAttribution
117236
+ * @interface IGroupStatus
117237
+ * @property {string|null} [authorJid] GroupStatus authorJid
117238
+ */
117239
+ /**
117240
+ * Constructs a new GroupStatus.
117241
+ * @memberof StatusAttributions.StatusAttribution
117242
+ * @classdesc Represents a GroupStatus.
117243
+ * @implements IGroupStatus
117244
+ * @constructor
117245
+ * @param {StatusAttributions.StatusAttribution.IGroupStatus=} [properties] Properties to set
117246
+ */
117247
+ function GroupStatus(properties) {
117248
+ if (properties)
117249
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
117250
+ if (properties[keys[i]] != null)
117251
+ this[keys[i]] = properties[keys[i]];
117252
+ }
117253
+ /**
117254
+ * GroupStatus authorJid.
117255
+ * @member {string|null|undefined} authorJid
117256
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117257
+ * @instance
117258
+ */
117259
+ GroupStatus.prototype.authorJid = null;
117260
+ // OneOf field names bound to virtual getters and setters
117261
+ var $oneOfFields;
117262
+ /**
117263
+ * GroupStatus _authorJid.
117264
+ * @member {"authorJid"|undefined} _authorJid
117265
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117266
+ * @instance
117267
+ */
117268
+ Object.defineProperty(GroupStatus.prototype, "_authorJid", {
117269
+ get: $util.oneOfGetter($oneOfFields = ["authorJid"]),
117270
+ set: $util.oneOfSetter($oneOfFields)
117271
+ });
117272
+ /**
117273
+ * Creates a new GroupStatus instance using the specified properties.
117274
+ * @function create
117275
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117276
+ * @static
117277
+ * @param {StatusAttributions.StatusAttribution.IGroupStatus=} [properties] Properties to set
117278
+ * @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus instance
117279
+ */
117280
+ GroupStatus.create = function create(properties) {
117281
+ return new GroupStatus(properties);
117282
+ };
117283
+ /**
117284
+ * Encodes the specified GroupStatus message. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
117285
+ * @function encode
117286
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117287
+ * @static
117288
+ * @param {StatusAttributions.StatusAttribution.IGroupStatus} message GroupStatus message or plain object to encode
117289
+ * @param {$protobuf.Writer} [writer] Writer to encode to
117290
+ * @returns {$protobuf.Writer} Writer
117291
+ */
117292
+ GroupStatus.encode = function encode(message, writer) {
117293
+ if (!writer)
117294
+ writer = $Writer.create();
117295
+ if (message.authorJid != null && Object.hasOwnProperty.call(message, "authorJid"))
117296
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.authorJid);
117297
+ return writer;
117298
+ };
117299
+ /**
117300
+ * Encodes the specified GroupStatus message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
117301
+ * @function encodeDelimited
117302
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117303
+ * @static
117304
+ * @param {StatusAttributions.StatusAttribution.IGroupStatus} message GroupStatus message or plain object to encode
117305
+ * @param {$protobuf.Writer} [writer] Writer to encode to
117306
+ * @returns {$protobuf.Writer} Writer
117307
+ */
117308
+ GroupStatus.encodeDelimited = function encodeDelimited(message, writer) {
117309
+ return this.encode(message, writer).ldelim();
117310
+ };
117311
+ /**
117312
+ * Decodes a GroupStatus message from the specified reader or buffer.
117313
+ * @function decode
117314
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117315
+ * @static
117316
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
117317
+ * @param {number} [length] Message length if known beforehand
117318
+ * @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
117319
+ * @throws {Error} If the payload is not a reader or valid buffer
117320
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
117321
+ */
117322
+ GroupStatus.decode = function decode(reader, length, error) {
117323
+ if (!(reader instanceof $Reader))
117324
+ reader = $Reader.create(reader);
117325
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.StatusAttributions.StatusAttribution.GroupStatus();
117326
+ while (reader.pos < end) {
117327
+ var tag = reader.uint32();
117328
+ if (tag === error)
117329
+ break;
117330
+ switch (tag >>> 3) {
117331
+ case 1: {
117332
+ message.authorJid = reader.string();
117333
+ break;
117334
+ }
117335
+ default:
117336
+ reader.skipType(tag & 7);
117337
+ break;
117338
+ }
117339
+ }
117340
+ return message;
117341
+ };
117342
+ /**
117343
+ * Decodes a GroupStatus message from the specified reader or buffer, length delimited.
117344
+ * @function decodeDelimited
117345
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117346
+ * @static
117347
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
117348
+ * @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
117349
+ * @throws {Error} If the payload is not a reader or valid buffer
117350
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
117351
+ */
117352
+ GroupStatus.decodeDelimited = function decodeDelimited(reader) {
117353
+ if (!(reader instanceof $Reader))
117354
+ reader = new $Reader(reader);
117355
+ return this.decode(reader, reader.uint32());
117356
+ };
117357
+ /**
117358
+ * Verifies a GroupStatus message.
117359
+ * @function verify
117360
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117361
+ * @static
117362
+ * @param {Object.<string,*>} message Plain object to verify
117363
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
117364
+ */
117365
+ GroupStatus.verify = function verify(message) {
117366
+ if (typeof message !== "object" || message === null)
117367
+ return "object expected";
117368
+ var properties = {};
117369
+ if (message.authorJid != null && message.hasOwnProperty("authorJid")) {
117370
+ properties._authorJid = 1;
117371
+ if (!$util.isString(message.authorJid))
117372
+ return "authorJid: string expected";
117373
+ }
117374
+ return null;
117375
+ };
117376
+ /**
117377
+ * Creates a GroupStatus message from a plain object. Also converts values to their respective internal types.
117378
+ * @function fromObject
117379
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117380
+ * @static
117381
+ * @param {Object.<string,*>} object Plain object
117382
+ * @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
117383
+ */
117384
+ GroupStatus.fromObject = function fromObject(object) {
117385
+ if (object instanceof $root.StatusAttributions.StatusAttribution.GroupStatus)
117386
+ return object;
117387
+ var message = new $root.StatusAttributions.StatusAttribution.GroupStatus();
117388
+ if (object.authorJid != null)
117389
+ message.authorJid = String(object.authorJid);
117390
+ return message;
117391
+ };
117392
+ /**
117393
+ * Creates a plain object from a GroupStatus message. Also converts values to other types if specified.
117394
+ * @function toObject
117395
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117396
+ * @static
117397
+ * @param {StatusAttributions.StatusAttribution.GroupStatus} message GroupStatus
117398
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
117399
+ * @returns {Object.<string,*>} Plain object
117400
+ */
117401
+ GroupStatus.toObject = function toObject(message, options) {
117402
+ if (!options)
117403
+ options = {};
117404
+ var object = {};
117405
+ if (message.authorJid != null && message.hasOwnProperty("authorJid")) {
117406
+ object.authorJid = message.authorJid;
117407
+ if (options.oneofs)
117408
+ object._authorJid = "authorJid";
117409
+ }
117410
+ return object;
117411
+ };
117412
+ /**
117413
+ * Converts this GroupStatus to JSON.
117414
+ * @function toJSON
117415
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117416
+ * @instance
117417
+ * @returns {Object.<string,*>} JSON object
117418
+ */
117419
+ GroupStatus.prototype.toJSON = function toJSON() {
117420
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
117421
+ };
117422
+ /**
117423
+ * Gets the default type url for GroupStatus
117424
+ * @function getTypeUrl
117425
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
117426
+ * @static
117427
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
117428
+ * @returns {string} The default type url
117429
+ */
117430
+ GroupStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
117431
+ if (typeUrlPrefix === undefined) {
117432
+ typeUrlPrefix = "type.googleapis.com";
117433
+ }
117434
+ return typeUrlPrefix + "/StatusAttributions.StatusAttribution.GroupStatus";
117435
+ };
117436
+ return GroupStatus;
117437
+ })();
116053
117438
  StatusAttribution.Music = (function() {
116054
117439
  /**
116055
117440
  * Properties of a Music.
@@ -117051,12 +118436,16 @@ return StatusReshare;
117051
118436
  * @property {number} RESHARE=0 RESHARE value
117052
118437
  * @property {number} EXTERNAL_SHARE=1 EXTERNAL_SHARE value
117053
118438
  * @property {number} MUSIC=2 MUSIC value
118439
+ * @property {number} STATUS_MENTION=3 STATUS_MENTION value
118440
+ * @property {number} GROUP_STATUS=4 GROUP_STATUS value
117054
118441
  */
117055
118442
  StatusAttribution.Type = (function() {
117056
118443
  var valuesById = {}, values = Object.create(valuesById);
117057
118444
  values[valuesById[0] = "RESHARE"] = 0;
117058
118445
  values[valuesById[1] = "EXTERNAL_SHARE"] = 1;
117059
118446
  values[valuesById[2] = "MUSIC"] = 2;
118447
+ values[valuesById[3] = "STATUS_MENTION"] = 3;
118448
+ values[valuesById[4] = "GROUP_STATUS"] = 4;
117060
118449
  return values;
117061
118450
  })();
117062
118451
  return StatusAttribution;
@@ -117077,6 +118466,7 @@ CompanionReg.ClientPairingProps = (function() {
117077
118466
  * @interface IClientPairingProps
117078
118467
  * @property {boolean|null} [isChatDbLidMigrated] ClientPairingProps isChatDbLidMigrated
117079
118468
  * @property {boolean|null} [isSyncdPureLidSession] ClientPairingProps isSyncdPureLidSession
118469
+ * @property {boolean|null} [isSyncdSnapshotRecoveryEnabled] ClientPairingProps isSyncdSnapshotRecoveryEnabled
117080
118470
  */
117081
118471
  /**
117082
118472
  * Constructs a new ClientPairingProps.
@@ -117106,6 +118496,13 @@ ClientPairingProps.prototype.isChatDbLidMigrated = null;
117106
118496
  * @instance
117107
118497
  */
117108
118498
  ClientPairingProps.prototype.isSyncdPureLidSession = null;
118499
+ /**
118500
+ * ClientPairingProps isSyncdSnapshotRecoveryEnabled.
118501
+ * @member {boolean|null|undefined} isSyncdSnapshotRecoveryEnabled
118502
+ * @memberof CompanionReg.ClientPairingProps
118503
+ * @instance
118504
+ */
118505
+ ClientPairingProps.prototype.isSyncdSnapshotRecoveryEnabled = null;
117109
118506
  // OneOf field names bound to virtual getters and setters
117110
118507
  var $oneOfFields;
117111
118508
  /**
@@ -117129,6 +118526,16 @@ get: $util.oneOfGetter($oneOfFields = ["isSyncdPureLidSession"]),
117129
118526
  set: $util.oneOfSetter($oneOfFields)
117130
118527
  });
117131
118528
  /**
118529
+ * ClientPairingProps _isSyncdSnapshotRecoveryEnabled.
118530
+ * @member {"isSyncdSnapshotRecoveryEnabled"|undefined} _isSyncdSnapshotRecoveryEnabled
118531
+ * @memberof CompanionReg.ClientPairingProps
118532
+ * @instance
118533
+ */
118534
+ Object.defineProperty(ClientPairingProps.prototype, "_isSyncdSnapshotRecoveryEnabled", {
118535
+ get: $util.oneOfGetter($oneOfFields = ["isSyncdSnapshotRecoveryEnabled"]),
118536
+ set: $util.oneOfSetter($oneOfFields)
118537
+ });
118538
+ /**
117132
118539
  * Creates a new ClientPairingProps instance using the specified properties.
117133
118540
  * @function create
117134
118541
  * @memberof CompanionReg.ClientPairingProps
@@ -117155,6 +118562,8 @@ if (message.isChatDbLidMigrated != null && Object.hasOwnProperty.call(message, "
117155
118562
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isChatDbLidMigrated);
117156
118563
  if (message.isSyncdPureLidSession != null && Object.hasOwnProperty.call(message, "isSyncdPureLidSession"))
117157
118564
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isSyncdPureLidSession);
118565
+ if (message.isSyncdSnapshotRecoveryEnabled != null && Object.hasOwnProperty.call(message, "isSyncdSnapshotRecoveryEnabled"))
118566
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSyncdSnapshotRecoveryEnabled);
117158
118567
  return writer;
117159
118568
  };
117160
118569
  /**
@@ -117197,6 +118606,10 @@ case 2: {
117197
118606
  message.isSyncdPureLidSession = reader.bool();
117198
118607
  break;
117199
118608
  }
118609
+ case 3: {
118610
+ message.isSyncdSnapshotRecoveryEnabled = reader.bool();
118611
+ break;
118612
+ }
117200
118613
  default:
117201
118614
  reader.skipType(tag & 7);
117202
118615
  break;
@@ -117241,6 +118654,11 @@ properties._isSyncdPureLidSession = 1;
117241
118654
  if (typeof message.isSyncdPureLidSession !== "boolean")
117242
118655
  return "isSyncdPureLidSession: boolean expected";
117243
118656
  }
118657
+ if (message.isSyncdSnapshotRecoveryEnabled != null && message.hasOwnProperty("isSyncdSnapshotRecoveryEnabled")) {
118658
+ properties._isSyncdSnapshotRecoveryEnabled = 1;
118659
+ if (typeof message.isSyncdSnapshotRecoveryEnabled !== "boolean")
118660
+ return "isSyncdSnapshotRecoveryEnabled: boolean expected";
118661
+ }
117244
118662
  return null;
117245
118663
  };
117246
118664
  /**
@@ -117259,6 +118677,8 @@ if (object.isChatDbLidMigrated != null)
117259
118677
  message.isChatDbLidMigrated = Boolean(object.isChatDbLidMigrated);
117260
118678
  if (object.isSyncdPureLidSession != null)
117261
118679
  message.isSyncdPureLidSession = Boolean(object.isSyncdPureLidSession);
118680
+ if (object.isSyncdSnapshotRecoveryEnabled != null)
118681
+ message.isSyncdSnapshotRecoveryEnabled = Boolean(object.isSyncdSnapshotRecoveryEnabled);
117262
118682
  return message;
117263
118683
  };
117264
118684
  /**
@@ -117284,6 +118704,11 @@ object.isSyncdPureLidSession = message.isSyncdPureLidSession;
117284
118704
  if (options.oneofs)
117285
118705
  object._isSyncdPureLidSession = "isSyncdPureLidSession";
117286
118706
  }
118707
+ if (message.isSyncdSnapshotRecoveryEnabled != null && message.hasOwnProperty("isSyncdSnapshotRecoveryEnabled")) {
118708
+ object.isSyncdSnapshotRecoveryEnabled = message.isSyncdSnapshotRecoveryEnabled;
118709
+ if (options.oneofs)
118710
+ object._isSyncdSnapshotRecoveryEnabled = "isSyncdSnapshotRecoveryEnabled";
118711
+ }
117287
118712
  return object;
117288
118713
  };
117289
118714
  /**