@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
@@ -14,6 +14,8 @@ statusReshare?: (StatusAttributions.StatusAttribution.IStatusReshare|null);
14
14
  externalShare?: (StatusAttributions.StatusAttribution.IExternalShare|null);
15
15
  /** StatusAttribution music */
16
16
  music?: (StatusAttributions.StatusAttribution.IMusic|null);
17
+ /** StatusAttribution groupStatus */
18
+ groupStatus?: (StatusAttributions.StatusAttribution.IGroupStatus|null);
17
19
  }
18
20
  /** Represents a StatusAttribution. */
19
21
  class StatusAttribution implements IStatusAttribution {
@@ -32,12 +34,14 @@ public statusReshare?: (StatusAttributions.StatusAttribution.IStatusReshare|null
32
34
  public externalShare?: (StatusAttributions.StatusAttribution.IExternalShare|null);
33
35
  /** StatusAttribution music. */
34
36
  public music?: (StatusAttributions.StatusAttribution.IMusic|null);
37
+ /** StatusAttribution groupStatus. */
38
+ public groupStatus?: (StatusAttributions.StatusAttribution.IGroupStatus|null);
35
39
  /** StatusAttribution _type. */
36
40
  public _type?: "type";
37
41
  /** StatusAttribution _actionUrl. */
38
42
  public _actionUrl?: "actionUrl";
39
43
  /** StatusAttribution attributionData. */
40
- public attributionData?: ("statusReshare"|"externalShare"|"music");
44
+ public attributionData?: ("statusReshare"|"externalShare"|"music"|"groupStatus");
41
45
  /**
42
46
  * Creates a new StatusAttribution instance using the specified properties.
43
47
  * @param [properties] Properties to set
@@ -216,9 +220,95 @@ UNKNOWN = 0,
216
220
  INSTAGRAM = 1,
217
221
  FACEBOOK = 2,
218
222
  MESSENGER = 3,
219
- SPOTIFY = 4
223
+ SPOTIFY = 4,
224
+ YOUTUBE = 5,
225
+ PINTEREST = 6
220
226
  }
221
227
  }
228
+ /** Properties of a GroupStatus. */
229
+ interface IGroupStatus {
230
+ /** GroupStatus authorJid */
231
+ authorJid?: (string|null);
232
+ }
233
+ /** Represents a GroupStatus. */
234
+ class GroupStatus implements IGroupStatus {
235
+ /**
236
+ * Constructs a new GroupStatus.
237
+ * @param [properties] Properties to set
238
+ */
239
+ constructor(properties?: StatusAttributions.StatusAttribution.IGroupStatus);
240
+ /** GroupStatus authorJid. */
241
+ public authorJid?: (string|null);
242
+ /** GroupStatus _authorJid. */
243
+ public _authorJid?: "authorJid";
244
+ /**
245
+ * Creates a new GroupStatus instance using the specified properties.
246
+ * @param [properties] Properties to set
247
+ * @returns GroupStatus instance
248
+ */
249
+ public static create(properties?: StatusAttributions.StatusAttribution.IGroupStatus): StatusAttributions.StatusAttribution.GroupStatus;
250
+ /**
251
+ * Encodes the specified GroupStatus message. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
252
+ * @param message GroupStatus message or plain object to encode
253
+ * @param [writer] Writer to encode to
254
+ * @returns Writer
255
+ */
256
+ public static encode(message: StatusAttributions.StatusAttribution.IGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer;
257
+ /**
258
+ * Encodes the specified GroupStatus message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
259
+ * @param message GroupStatus message or plain object to encode
260
+ * @param [writer] Writer to encode to
261
+ * @returns Writer
262
+ */
263
+ public static encodeDelimited(message: StatusAttributions.StatusAttribution.IGroupStatus, writer?: $protobuf.Writer): $protobuf.Writer;
264
+ /**
265
+ * Decodes a GroupStatus message from the specified reader or buffer.
266
+ * @param reader Reader or buffer to decode from
267
+ * @param [length] Message length if known beforehand
268
+ * @returns GroupStatus
269
+ * @throws {Error} If the payload is not a reader or valid buffer
270
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
271
+ */
272
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): StatusAttributions.StatusAttribution.GroupStatus;
273
+ /**
274
+ * Decodes a GroupStatus message from the specified reader or buffer, length delimited.
275
+ * @param reader Reader or buffer to decode from
276
+ * @returns GroupStatus
277
+ * @throws {Error} If the payload is not a reader or valid buffer
278
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
279
+ */
280
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): StatusAttributions.StatusAttribution.GroupStatus;
281
+ /**
282
+ * Verifies a GroupStatus message.
283
+ * @param message Plain object to verify
284
+ * @returns `null` if valid, otherwise the reason why it is not
285
+ */
286
+ public static verify(message: { [k: string]: any }): (string|null);
287
+ /**
288
+ * Creates a GroupStatus message from a plain object. Also converts values to their respective internal types.
289
+ * @param object Plain object
290
+ * @returns GroupStatus
291
+ */
292
+ public static fromObject(object: { [k: string]: any }): StatusAttributions.StatusAttribution.GroupStatus;
293
+ /**
294
+ * Creates a plain object from a GroupStatus message. Also converts values to other types if specified.
295
+ * @param message GroupStatus
296
+ * @param [options] Conversion options
297
+ * @returns Plain object
298
+ */
299
+ public static toObject(message: StatusAttributions.StatusAttribution.GroupStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
300
+ /**
301
+ * Converts this GroupStatus to JSON.
302
+ * @returns JSON object
303
+ */
304
+ public toJSON(): { [k: string]: any };
305
+ /**
306
+ * Gets the default type url for GroupStatus
307
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
308
+ * @returns The default type url
309
+ */
310
+ public static getTypeUrl(typeUrlPrefix?: string): string;
311
+ }
222
312
  /** Properties of a Music. */
223
313
  interface IMusic {
224
314
  /** Music authorName */
@@ -538,7 +628,9 @@ CHANNEL_RESHARE = 3
538
628
  enum Type {
539
629
  RESHARE = 0,
540
630
  EXTERNAL_SHARE = 1,
541
- MUSIC = 2
631
+ MUSIC = 2,
632
+ STATUS_MENTION = 3,
633
+ GROUP_STATUS = 4
542
634
  }
543
635
  }
544
636
  }
@@ -22,6 +22,7 @@ StatusAttributions.StatusAttribution = (function() {
22
22
  * @property {StatusAttributions.StatusAttribution.IStatusReshare|null} [statusReshare] StatusAttribution statusReshare
23
23
  * @property {StatusAttributions.StatusAttribution.IExternalShare|null} [externalShare] StatusAttribution externalShare
24
24
  * @property {StatusAttributions.StatusAttribution.IMusic|null} [music] StatusAttribution music
25
+ * @property {StatusAttributions.StatusAttribution.IGroupStatus|null} [groupStatus] StatusAttribution groupStatus
25
26
  */
26
27
  /**
27
28
  * Constructs a new StatusAttribution.
@@ -72,6 +73,13 @@ StatusAttribution.prototype.externalShare = null;
72
73
  * @instance
73
74
  */
74
75
  StatusAttribution.prototype.music = null;
76
+ /**
77
+ * StatusAttribution groupStatus.
78
+ * @member {StatusAttributions.StatusAttribution.IGroupStatus|null|undefined} groupStatus
79
+ * @memberof StatusAttributions.StatusAttribution
80
+ * @instance
81
+ */
82
+ StatusAttribution.prototype.groupStatus = null;
75
83
  // OneOf field names bound to virtual getters and setters
76
84
  var $oneOfFields;
77
85
  /**
@@ -96,12 +104,12 @@ set: $util.oneOfSetter($oneOfFields)
96
104
  });
97
105
  /**
98
106
  * StatusAttribution attributionData.
99
- * @member {"statusReshare"|"externalShare"|"music"|undefined} attributionData
107
+ * @member {"statusReshare"|"externalShare"|"music"|"groupStatus"|undefined} attributionData
100
108
  * @memberof StatusAttributions.StatusAttribution
101
109
  * @instance
102
110
  */
103
111
  Object.defineProperty(StatusAttribution.prototype, "attributionData", {
104
- get: $util.oneOfGetter($oneOfFields = ["statusReshare", "externalShare", "music"]),
112
+ get: $util.oneOfGetter($oneOfFields = ["statusReshare", "externalShare", "music", "groupStatus"]),
105
113
  set: $util.oneOfSetter($oneOfFields)
106
114
  });
107
115
  /**
@@ -137,6 +145,8 @@ if (message.externalShare != null && Object.hasOwnProperty.call(message, "extern
137
145
  $root.StatusAttributions.StatusAttribution.ExternalShare.encode(message.externalShare, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
138
146
  if (message.music != null && Object.hasOwnProperty.call(message, "music"))
139
147
  $root.StatusAttributions.StatusAttribution.Music.encode(message.music, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
148
+ if (message.groupStatus != null && Object.hasOwnProperty.call(message, "groupStatus"))
149
+ $root.StatusAttributions.StatusAttribution.GroupStatus.encode(message.groupStatus, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
140
150
  return writer;
141
151
  };
142
152
  /**
@@ -191,6 +201,10 @@ case 5: {
191
201
  message.music = $root.StatusAttributions.StatusAttribution.Music.decode(reader, reader.uint32());
192
202
  break;
193
203
  }
204
+ case 6: {
205
+ message.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.decode(reader, reader.uint32());
206
+ break;
207
+ }
194
208
  default:
195
209
  reader.skipType(tag & 7);
196
210
  break;
@@ -233,6 +247,8 @@ return "type: enum value expected";
233
247
  case 0:
234
248
  case 1:
235
249
  case 2:
250
+ case 3:
251
+ case 4:
236
252
  break;
237
253
  }
238
254
  }
@@ -269,6 +285,16 @@ if (error)
269
285
  return "music." + error;
270
286
  }
271
287
  }
288
+ if (message.groupStatus != null && message.hasOwnProperty("groupStatus")) {
289
+ if (properties.attributionData === 1)
290
+ return "attributionData: multiple values";
291
+ properties.attributionData = 1;
292
+ {
293
+ var error = $root.StatusAttributions.StatusAttribution.GroupStatus.verify(message.groupStatus);
294
+ if (error)
295
+ return "groupStatus." + error;
296
+ }
297
+ }
272
298
  return null;
273
299
  };
274
300
  /**
@@ -302,6 +328,14 @@ case "MUSIC":
302
328
  case 2:
303
329
  message.type = 2;
304
330
  break;
331
+ case "STATUS_MENTION":
332
+ case 3:
333
+ message.type = 3;
334
+ break;
335
+ case "GROUP_STATUS":
336
+ case 4:
337
+ message.type = 4;
338
+ break;
305
339
  }
306
340
  if (object.actionUrl != null)
307
341
  message.actionUrl = String(object.actionUrl);
@@ -320,6 +354,11 @@ if (typeof object.music !== "object")
320
354
  throw TypeError(".StatusAttributions.StatusAttribution.music: object expected");
321
355
  message.music = $root.StatusAttributions.StatusAttribution.Music.fromObject(object.music);
322
356
  }
357
+ if (object.groupStatus != null) {
358
+ if (typeof object.groupStatus !== "object")
359
+ throw TypeError(".StatusAttributions.StatusAttribution.groupStatus: object expected");
360
+ message.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.fromObject(object.groupStatus);
361
+ }
323
362
  return message;
324
363
  };
325
364
  /**
@@ -360,6 +399,11 @@ object.music = $root.StatusAttributions.StatusAttribution.Music.toObject(message
360
399
  if (options.oneofs)
361
400
  object.attributionData = "music";
362
401
  }
402
+ if (message.groupStatus != null && message.hasOwnProperty("groupStatus")) {
403
+ object.groupStatus = $root.StatusAttributions.StatusAttribution.GroupStatus.toObject(message.groupStatus, options);
404
+ if (options.oneofs)
405
+ object.attributionData = "groupStatus";
406
+ }
363
407
  return object;
364
408
  };
365
409
  /**
@@ -610,6 +654,8 @@ case 1:
610
654
  case 2:
611
655
  case 3:
612
656
  case 4:
657
+ case 5:
658
+ case 6:
613
659
  break;
614
660
  }
615
661
  }
@@ -666,6 +712,14 @@ case "SPOTIFY":
666
712
  case 4:
667
713
  message.source = 4;
668
714
  break;
715
+ case "YOUTUBE":
716
+ case 5:
717
+ message.source = 5;
718
+ break;
719
+ case "PINTEREST":
720
+ case 6:
721
+ message.source = 6;
722
+ break;
669
723
  }
670
724
  if (object.duration != null)
671
725
  message.duration = object.duration | 0;
@@ -741,6 +795,8 @@ return typeUrlPrefix + "/StatusAttributions.StatusAttribution.ExternalShare";
741
795
  * @property {number} FACEBOOK=2 FACEBOOK value
742
796
  * @property {number} MESSENGER=3 MESSENGER value
743
797
  * @property {number} SPOTIFY=4 SPOTIFY value
798
+ * @property {number} YOUTUBE=5 YOUTUBE value
799
+ * @property {number} PINTEREST=6 PINTEREST value
744
800
  */
745
801
  ExternalShare.Source = (function() {
746
802
  var valuesById = {}, values = Object.create(valuesById);
@@ -749,10 +805,218 @@ values[valuesById[1] = "INSTAGRAM"] = 1;
749
805
  values[valuesById[2] = "FACEBOOK"] = 2;
750
806
  values[valuesById[3] = "MESSENGER"] = 3;
751
807
  values[valuesById[4] = "SPOTIFY"] = 4;
808
+ values[valuesById[5] = "YOUTUBE"] = 5;
809
+ values[valuesById[6] = "PINTEREST"] = 6;
752
810
  return values;
753
811
  })();
754
812
  return ExternalShare;
755
813
  })();
814
+ StatusAttribution.GroupStatus = (function() {
815
+ /**
816
+ * Properties of a GroupStatus.
817
+ * @memberof StatusAttributions.StatusAttribution
818
+ * @interface IGroupStatus
819
+ * @property {string|null} [authorJid] GroupStatus authorJid
820
+ */
821
+ /**
822
+ * Constructs a new GroupStatus.
823
+ * @memberof StatusAttributions.StatusAttribution
824
+ * @classdesc Represents a GroupStatus.
825
+ * @implements IGroupStatus
826
+ * @constructor
827
+ * @param {StatusAttributions.StatusAttribution.IGroupStatus=} [properties] Properties to set
828
+ */
829
+ function GroupStatus(properties) {
830
+ if (properties)
831
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
832
+ if (properties[keys[i]] != null)
833
+ this[keys[i]] = properties[keys[i]];
834
+ }
835
+ /**
836
+ * GroupStatus authorJid.
837
+ * @member {string|null|undefined} authorJid
838
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
839
+ * @instance
840
+ */
841
+ GroupStatus.prototype.authorJid = null;
842
+ // OneOf field names bound to virtual getters and setters
843
+ var $oneOfFields;
844
+ /**
845
+ * GroupStatus _authorJid.
846
+ * @member {"authorJid"|undefined} _authorJid
847
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
848
+ * @instance
849
+ */
850
+ Object.defineProperty(GroupStatus.prototype, "_authorJid", {
851
+ get: $util.oneOfGetter($oneOfFields = ["authorJid"]),
852
+ set: $util.oneOfSetter($oneOfFields)
853
+ });
854
+ /**
855
+ * Creates a new GroupStatus instance using the specified properties.
856
+ * @function create
857
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
858
+ * @static
859
+ * @param {StatusAttributions.StatusAttribution.IGroupStatus=} [properties] Properties to set
860
+ * @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus instance
861
+ */
862
+ GroupStatus.create = function create(properties) {
863
+ return new GroupStatus(properties);
864
+ };
865
+ /**
866
+ * Encodes the specified GroupStatus message. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
867
+ * @function encode
868
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
869
+ * @static
870
+ * @param {StatusAttributions.StatusAttribution.IGroupStatus} message GroupStatus message or plain object to encode
871
+ * @param {$protobuf.Writer} [writer] Writer to encode to
872
+ * @returns {$protobuf.Writer} Writer
873
+ */
874
+ GroupStatus.encode = function encode(message, writer) {
875
+ if (!writer)
876
+ writer = $Writer.create();
877
+ if (message.authorJid != null && Object.hasOwnProperty.call(message, "authorJid"))
878
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.authorJid);
879
+ return writer;
880
+ };
881
+ /**
882
+ * Encodes the specified GroupStatus message, length delimited. Does not implicitly {@link StatusAttributions.StatusAttribution.GroupStatus.verify|verify} messages.
883
+ * @function encodeDelimited
884
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
885
+ * @static
886
+ * @param {StatusAttributions.StatusAttribution.IGroupStatus} message GroupStatus message or plain object to encode
887
+ * @param {$protobuf.Writer} [writer] Writer to encode to
888
+ * @returns {$protobuf.Writer} Writer
889
+ */
890
+ GroupStatus.encodeDelimited = function encodeDelimited(message, writer) {
891
+ return this.encode(message, writer).ldelim();
892
+ };
893
+ /**
894
+ * Decodes a GroupStatus message from the specified reader or buffer.
895
+ * @function decode
896
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
897
+ * @static
898
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
899
+ * @param {number} [length] Message length if known beforehand
900
+ * @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
901
+ * @throws {Error} If the payload is not a reader or valid buffer
902
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
903
+ */
904
+ GroupStatus.decode = function decode(reader, length, error) {
905
+ if (!(reader instanceof $Reader))
906
+ reader = $Reader.create(reader);
907
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.StatusAttributions.StatusAttribution.GroupStatus();
908
+ while (reader.pos < end) {
909
+ var tag = reader.uint32();
910
+ if (tag === error)
911
+ break;
912
+ switch (tag >>> 3) {
913
+ case 1: {
914
+ message.authorJid = reader.string();
915
+ break;
916
+ }
917
+ default:
918
+ reader.skipType(tag & 7);
919
+ break;
920
+ }
921
+ }
922
+ return message;
923
+ };
924
+ /**
925
+ * Decodes a GroupStatus message from the specified reader or buffer, length delimited.
926
+ * @function decodeDelimited
927
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
928
+ * @static
929
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
930
+ * @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
931
+ * @throws {Error} If the payload is not a reader or valid buffer
932
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
933
+ */
934
+ GroupStatus.decodeDelimited = function decodeDelimited(reader) {
935
+ if (!(reader instanceof $Reader))
936
+ reader = new $Reader(reader);
937
+ return this.decode(reader, reader.uint32());
938
+ };
939
+ /**
940
+ * Verifies a GroupStatus message.
941
+ * @function verify
942
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
943
+ * @static
944
+ * @param {Object.<string,*>} message Plain object to verify
945
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
946
+ */
947
+ GroupStatus.verify = function verify(message) {
948
+ if (typeof message !== "object" || message === null)
949
+ return "object expected";
950
+ var properties = {};
951
+ if (message.authorJid != null && message.hasOwnProperty("authorJid")) {
952
+ properties._authorJid = 1;
953
+ if (!$util.isString(message.authorJid))
954
+ return "authorJid: string expected";
955
+ }
956
+ return null;
957
+ };
958
+ /**
959
+ * Creates a GroupStatus message from a plain object. Also converts values to their respective internal types.
960
+ * @function fromObject
961
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
962
+ * @static
963
+ * @param {Object.<string,*>} object Plain object
964
+ * @returns {StatusAttributions.StatusAttribution.GroupStatus} GroupStatus
965
+ */
966
+ GroupStatus.fromObject = function fromObject(object) {
967
+ if (object instanceof $root.StatusAttributions.StatusAttribution.GroupStatus)
968
+ return object;
969
+ var message = new $root.StatusAttributions.StatusAttribution.GroupStatus();
970
+ if (object.authorJid != null)
971
+ message.authorJid = String(object.authorJid);
972
+ return message;
973
+ };
974
+ /**
975
+ * Creates a plain object from a GroupStatus message. Also converts values to other types if specified.
976
+ * @function toObject
977
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
978
+ * @static
979
+ * @param {StatusAttributions.StatusAttribution.GroupStatus} message GroupStatus
980
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
981
+ * @returns {Object.<string,*>} Plain object
982
+ */
983
+ GroupStatus.toObject = function toObject(message, options) {
984
+ if (!options)
985
+ options = {};
986
+ var object = {};
987
+ if (message.authorJid != null && message.hasOwnProperty("authorJid")) {
988
+ object.authorJid = message.authorJid;
989
+ if (options.oneofs)
990
+ object._authorJid = "authorJid";
991
+ }
992
+ return object;
993
+ };
994
+ /**
995
+ * Converts this GroupStatus to JSON.
996
+ * @function toJSON
997
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
998
+ * @instance
999
+ * @returns {Object.<string,*>} JSON object
1000
+ */
1001
+ GroupStatus.prototype.toJSON = function toJSON() {
1002
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1003
+ };
1004
+ /**
1005
+ * Gets the default type url for GroupStatus
1006
+ * @function getTypeUrl
1007
+ * @memberof StatusAttributions.StatusAttribution.GroupStatus
1008
+ * @static
1009
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1010
+ * @returns {string} The default type url
1011
+ */
1012
+ GroupStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1013
+ if (typeUrlPrefix === undefined) {
1014
+ typeUrlPrefix = "type.googleapis.com";
1015
+ }
1016
+ return typeUrlPrefix + "/StatusAttributions.StatusAttribution.GroupStatus";
1017
+ };
1018
+ return GroupStatus;
1019
+ })();
756
1020
  StatusAttribution.Music = (function() {
757
1021
  /**
758
1022
  * Properties of a Music.
@@ -1754,12 +2018,16 @@ return StatusReshare;
1754
2018
  * @property {number} RESHARE=0 RESHARE value
1755
2019
  * @property {number} EXTERNAL_SHARE=1 EXTERNAL_SHARE value
1756
2020
  * @property {number} MUSIC=2 MUSIC value
2021
+ * @property {number} STATUS_MENTION=3 STATUS_MENTION value
2022
+ * @property {number} GROUP_STATUS=4 GROUP_STATUS value
1757
2023
  */
1758
2024
  StatusAttribution.Type = (function() {
1759
2025
  var valuesById = {}, values = Object.create(valuesById);
1760
2026
  values[valuesById[0] = "RESHARE"] = 0;
1761
2027
  values[valuesById[1] = "EXTERNAL_SHARE"] = 1;
1762
2028
  values[valuesById[2] = "MUSIC"] = 2;
2029
+ values[valuesById[3] = "STATUS_MENTION"] = 3;
2030
+ values[valuesById[4] = "GROUP_STATUS"] = 4;
1763
2031
  return values;
1764
2032
  })();
1765
2033
  return StatusAttribution;
@@ -7,6 +7,7 @@ oneof attributionData {
7
7
  StatusAttribution.StatusReshare statusReshare = 3;
8
8
  StatusAttribution.ExternalShare externalShare = 4;
9
9
  StatusAttribution.Music music = 5;
10
+ StatusAttribution.GroupStatus groupStatus = 6;
10
11
  }
11
12
  message ExternalShare {
12
13
  optional string actionUrl = 1;
@@ -19,8 +20,13 @@ INSTAGRAM = 1;
19
20
  FACEBOOK = 2;
20
21
  MESSENGER = 3;
21
22
  SPOTIFY = 4;
23
+ YOUTUBE = 5;
24
+ PINTEREST = 6;
22
25
  }
23
26
  }
27
+ message GroupStatus {
28
+ optional string authorJid = 1;
29
+ }
24
30
  message Music {
25
31
  optional string authorName = 1;
26
32
  optional string songId = 2;
@@ -49,5 +55,7 @@ enum Type {
49
55
  RESHARE = 0;
50
56
  EXTERNAL_SHARE = 1;
51
57
  MUSIC = 2;
58
+ STATUS_MENTION = 3;
59
+ GROUP_STATUS = 4;
52
60
  }
53
61
  }