@hiroosy/baileys-lite 0.3.4 → 0.3.5

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 (225) hide show
  1. package/WAProto/index.js +231 -113252
  2. package/WAProto/parts/ADVDeviceIdentity.part +201 -0
  3. package/WAProto/parts/ADVEncryptionType.part +6 -0
  4. package/WAProto/parts/ADVKeyIndexList.part +201 -0
  5. package/WAProto/parts/ADVSignedDeviceIdentity.part +150 -0
  6. package/WAProto/parts/ADVSignedDeviceIdentityHMAC.part +142 -0
  7. package/WAProto/parts/ADVSignedKeyIndexList.part +128 -0
  8. package/WAProto/parts/AIHomeState.part +405 -0
  9. package/WAProto/parts/AIMediaCollectionMessage.part +119 -0
  10. package/WAProto/parts/AIMediaCollectionMetadata.part +100 -0
  11. package/WAProto/parts/AIMetadataOperation.part +83 -0
  12. package/WAProto/parts/AIQueryFanout.part +133 -0
  13. package/WAProto/parts/AIRegenerateMetadata.part +112 -0
  14. package/WAProto/parts/AIRichResponseCodeMetadata.part +252 -0
  15. package/WAProto/parts/AIRichResponseContentItemsMetadata.part +354 -0
  16. package/WAProto/parts/AIRichResponseDynamicMetadata.part +172 -0
  17. package/WAProto/parts/AIRichResponseGridImageMetadata.part +114 -0
  18. package/WAProto/parts/AIRichResponseImageURL.part +119 -0
  19. package/WAProto/parts/AIRichResponseInlineImageMetadata.part +164 -0
  20. package/WAProto/parts/AIRichResponseLatexMetadata.part +346 -0
  21. package/WAProto/parts/AIRichResponseMapMetadata.part +346 -0
  22. package/WAProto/parts/AIRichResponseMessage.part +167 -0
  23. package/WAProto/parts/AIRichResponseMessageType.part +5 -0
  24. package/WAProto/parts/AIRichResponseSubMessage.part +313 -0
  25. package/WAProto/parts/AIRichResponseSubMessageType.part +13 -0
  26. package/WAProto/parts/AIRichResponseTableMetadata.part +223 -0
  27. package/WAProto/parts/AIRichResponseUnifiedResponse.part +84 -0
  28. package/WAProto/parts/AISubscriptionRequestType.part +7 -0
  29. package/WAProto/parts/AISubscriptionUpsellMetadata.part +102 -0
  30. package/WAProto/parts/AIThreadInfo.part +316 -0
  31. package/WAProto/parts/Account.part +138 -0
  32. package/WAProto/parts/ActionLink.part +100 -0
  33. package/WAProto/parts/AutoDownloadSettings.part +138 -0
  34. package/WAProto/parts/AvatarUserSettings.part +100 -0
  35. package/WAProto/parts/BizAccountLinkInfo.part +210 -0
  36. package/WAProto/parts/BizAccountPayload.part +105 -0
  37. package/WAProto/parts/BizIdentityInfo.part +298 -0
  38. package/WAProto/parts/BotAgeCollectionMetadata.part +138 -0
  39. package/WAProto/parts/BotAgentDeepLinkMetadata.part +81 -0
  40. package/WAProto/parts/BotAgentMetadata.part +83 -0
  41. package/WAProto/parts/BotCapabilityMetadata.part +437 -0
  42. package/WAProto/parts/BotCommandMetadata.part +119 -0
  43. package/WAProto/parts/BotDocumentMessageMetadata.part +100 -0
  44. package/WAProto/parts/BotFeedbackMessage.part +1366 -0
  45. package/WAProto/parts/BotGroupMetadata.part +92 -0
  46. package/WAProto/parts/BotGroupParticipantMetadata.part +81 -0
  47. package/WAProto/parts/BotImagineMetadata.part +134 -0
  48. package/WAProto/parts/BotInfrastructureDiagnostics.part +148 -0
  49. package/WAProto/parts/BotLinkedAccount.part +95 -0
  50. package/WAProto/parts/BotLinkedAccountsMetadata.part +134 -0
  51. package/WAProto/parts/BotMediaMetadata.part +229 -0
  52. package/WAProto/parts/BotMemoryFact.part +100 -0
  53. package/WAProto/parts/BotMemoryMetadata.part +141 -0
  54. package/WAProto/parts/BotMemuMetadata.part +92 -0
  55. package/WAProto/parts/BotMessageOrigin.part +95 -0
  56. package/WAProto/parts/BotMessageOriginMetadata.part +92 -0
  57. package/WAProto/parts/BotMessageSharingInfo.part +297 -0
  58. package/WAProto/parts/BotMetadata.part +934 -0
  59. package/WAProto/parts/BotMetricsEntryPoint.part +51 -0
  60. package/WAProto/parts/BotMetricsMetadata.part +341 -0
  61. package/WAProto/parts/BotMetricsThreadEntryPoint.part +8 -0
  62. package/WAProto/parts/BotModeSelectionMetadata.part +151 -0
  63. package/WAProto/parts/BotModelMetadata.part +167 -0
  64. package/WAProto/parts/BotPluginMetadata.part +379 -0
  65. package/WAProto/parts/BotProgressIndicatorMetadata.part +837 -0
  66. package/WAProto/parts/BotPromotionMessageMetadata.part +124 -0
  67. package/WAProto/parts/BotPromptSuggestion.part +100 -0
  68. package/WAProto/parts/BotPromptSuggestions.part +92 -0
  69. package/WAProto/parts/BotPttPromptMetadata.part +81 -0
  70. package/WAProto/parts/BotQuotaMetadata.part +241 -0
  71. package/WAProto/parts/BotReminderMetadata.part +232 -0
  72. package/WAProto/parts/BotRenderingConfigMetadata.part +100 -0
  73. package/WAProto/parts/BotRenderingMetadata.part +203 -0
  74. package/WAProto/parts/BotResolvedToolCallMetadata.part +100 -0
  75. package/WAProto/parts/BotSessionMetadata.part +137 -0
  76. package/WAProto/parts/BotSessionSource.part +11 -0
  77. package/WAProto/parts/BotSignatureVerificationMetadata.part +92 -0
  78. package/WAProto/parts/BotSignatureVerificationUseCaseProof.part +183 -0
  79. package/WAProto/parts/BotSourcesMetadata.part +322 -0
  80. package/WAProto/parts/BotSuggestedPromptMetadata.part +150 -0
  81. package/WAProto/parts/BotUnifiedResponseMutation.part +339 -0
  82. package/WAProto/parts/CallLogRecord.part +646 -0
  83. package/WAProto/parts/CertChain.part +392 -0
  84. package/WAProto/parts/ChatLockSettings.part +102 -0
  85. package/WAProto/parts/ChatRowOpaqueData.part +712 -0
  86. package/WAProto/parts/Citation.part +119 -0
  87. package/WAProto/parts/ClientPairingProps.part +160 -0
  88. package/WAProto/parts/ClientPayload.part +2892 -0
  89. package/WAProto/parts/CollectionName.part +9 -0
  90. package/WAProto/parts/CommentMetadata.part +102 -0
  91. package/WAProto/parts/CompanionCommitment.part +84 -0
  92. package/WAProto/parts/CompanionEphemeralIdentity.part +227 -0
  93. package/WAProto/parts/Config.part +136 -0
  94. package/WAProto/parts/ContextInfo.part +4137 -0
  95. package/WAProto/parts/Conversation.part +1472 -0
  96. package/WAProto/parts/DeviceCapabilities.part +670 -0
  97. package/WAProto/parts/DeviceConsistencyCodeMessage.part +103 -0
  98. package/WAProto/parts/DeviceListMetadata.part +306 -0
  99. package/WAProto/parts/DeviceProps.part +982 -0
  100. package/WAProto/parts/DisappearingMode.part +206 -0
  101. package/WAProto/parts/EmbeddedContent.part +100 -0
  102. package/WAProto/parts/EmbeddedMessage.part +102 -0
  103. package/WAProto/parts/EmbeddedMusic.part +370 -0
  104. package/WAProto/parts/EncryptedPairingRequest.part +106 -0
  105. package/WAProto/parts/EphemeralSetting.part +110 -0
  106. package/WAProto/parts/EventAdditionalMetadata.part +81 -0
  107. package/WAProto/parts/EventResponse.part +152 -0
  108. package/WAProto/parts/ExitCode.part +110 -0
  109. package/WAProto/parts/ExternalBlobReference.part +195 -0
  110. package/WAProto/parts/Field.part +193 -0
  111. package/WAProto/parts/ForwardedAIBotMessageInfo.part +119 -0
  112. package/WAProto/parts/GlobalSettings.part +497 -0
  113. package/WAProto/parts/GroupHistoryBundleInfo.part +141 -0
  114. package/WAProto/parts/GroupHistoryIndividualMessageInfo.part +102 -0
  115. package/WAProto/parts/GroupMention.part +100 -0
  116. package/WAProto/parts/GroupParticipant.part +142 -0
  117. package/WAProto/parts/GroupRootKeyShare.part +92 -0
  118. package/WAProto/parts/GroupRootKeyShareEntry.part +161 -0
  119. package/WAProto/parts/HandshakeMessage.part +815 -0
  120. package/WAProto/parts/HatchMetadataSync.part +132 -0
  121. package/WAProto/parts/HistorySync.part +605 -0
  122. package/WAProto/parts/HistorySyncMsg.part +112 -0
  123. package/WAProto/parts/HydratedTemplateButton.part +501 -0
  124. package/WAProto/parts/IdentityKeyPairStructure.part +106 -0
  125. package/WAProto/parts/InThreadSurveyMetadata.part +779 -0
  126. package/WAProto/parts/InlineContact.part +157 -0
  127. package/WAProto/parts/InteractiveAnnotation.part +246 -0
  128. package/WAProto/parts/InteractiveMessageAdditionalMetadata.part +81 -0
  129. package/WAProto/parts/KeepInChat.part +225 -0
  130. package/WAProto/parts/KeepType.part +6 -0
  131. package/WAProto/parts/KeyExchangeMessage.part +169 -0
  132. package/WAProto/parts/KeyId.part +84 -0
  133. package/WAProto/parts/LIDMigrationMapping.part +149 -0
  134. package/WAProto/parts/LIDMigrationMappingSyncMessage.part +84 -0
  135. package/WAProto/parts/LIDMigrationMappingSyncPayload.part +122 -0
  136. package/WAProto/parts/LegacyMessage.part +104 -0
  137. package/WAProto/parts/LimitSharing.part +177 -0
  138. package/WAProto/parts/LocalizedName.part +119 -0
  139. package/WAProto/parts/Location.part +119 -0
  140. package/WAProto/parts/MediaData.part +81 -0
  141. package/WAProto/parts/MediaDomainInfo.part +120 -0
  142. package/WAProto/parts/MediaKeyDomain.part +6 -0
  143. package/WAProto/parts/MediaNotifyMessage.part +132 -0
  144. package/WAProto/parts/MediaRetryNotification.part +170 -0
  145. package/WAProto/parts/MediaVisibility.part +6 -0
  146. package/WAProto/parts/MemberLabel.part +110 -0
  147. package/WAProto/parts/Message.part +32376 -0
  148. package/WAProto/parts/MessageAddOn.part +305 -0
  149. package/WAProto/parts/MessageAddOnContextInfo.part +113 -0
  150. package/WAProto/parts/MessageAssociation.part +235 -0
  151. package/WAProto/parts/MessageContextInfo.part +451 -0
  152. package/WAProto/parts/MessageKey.part +138 -0
  153. package/WAProto/parts/MessageSecretMessage.part +125 -0
  154. package/WAProto/parts/Money.part +129 -0
  155. package/WAProto/parts/MsgOpaqueData.part +1732 -0
  156. package/WAProto/parts/MsgRowOpaqueData.part +104 -0
  157. package/WAProto/parts/MutationProps.part +89 -0
  158. package/WAProto/parts/NoiseCertificate.part +277 -0
  159. package/WAProto/parts/NotificationMessageInfo.part +152 -0
  160. package/WAProto/parts/NotificationSettings.part +176 -0
  161. package/WAProto/parts/PairingRequest.part +128 -0
  162. package/WAProto/parts/PastParticipant.part +148 -0
  163. package/WAProto/parts/PastParticipants.part +112 -0
  164. package/WAProto/parts/PatchDebugData.part +358 -0
  165. package/WAProto/parts/PaymentBackground.part +460 -0
  166. package/WAProto/parts/PaymentInfo.part +602 -0
  167. package/WAProto/parts/PhoneNumberToLIDMapping.part +100 -0
  168. package/WAProto/parts/PhotoChange.part +125 -0
  169. package/WAProto/parts/PinInChat.part +205 -0
  170. package/WAProto/parts/Point.part +138 -0
  171. package/WAProto/parts/PollAdditionalMetadata.part +216 -0
  172. package/WAProto/parts/PollEncValue.part +106 -0
  173. package/WAProto/parts/PollUpdate.part +202 -0
  174. package/WAProto/parts/PreKeyRecordStructure.part +125 -0
  175. package/WAProto/parts/PreKeySignalMessage.part +185 -0
  176. package/WAProto/parts/PremiumMessageInfo.part +81 -0
  177. package/WAProto/parts/PrimaryEphemeralIdentity.part +106 -0
  178. package/WAProto/parts/PrivacySystemMessage.part +6 -0
  179. package/WAProto/parts/ProcessedVideo.part +266 -0
  180. package/WAProto/parts/ProloguePayload.part +105 -0
  181. package/WAProto/parts/Pushname.part +100 -0
  182. package/WAProto/parts/QuarantinedMessage.part +103 -0
  183. package/WAProto/parts/Reaction.part +169 -0
  184. package/WAProto/parts/RecentEmojiWeight.part +100 -0
  185. package/WAProto/parts/RecordStructure.part +114 -0
  186. package/WAProto/parts/Reportable.part +138 -0
  187. package/WAProto/parts/ReportingTokenInfo.part +84 -0
  188. package/WAProto/parts/ScheduledMessageMetadata.part +132 -0
  189. package/WAProto/parts/SenderKeyDistributionMessage.part +144 -0
  190. package/WAProto/parts/SenderKeyMessage.part +122 -0
  191. package/WAProto/parts/SenderKeyRecordStructure.part +92 -0
  192. package/WAProto/parts/SenderKeyStateStructure.part +469 -0
  193. package/WAProto/parts/ServerErrorReceipt.part +81 -0
  194. package/WAProto/parts/SessionStructure.part +1087 -0
  195. package/WAProto/parts/SessionTransparencyMetadata.part +132 -0
  196. package/WAProto/parts/SessionTransparencyType.part +5 -0
  197. package/WAProto/parts/SignalMessage.part +144 -0
  198. package/WAProto/parts/SignedPreKeyRecordStructure.part +176 -0
  199. package/WAProto/parts/StatusAttribution.part +1235 -0
  200. package/WAProto/parts/StatusMentionMessage.part +83 -0
  201. package/WAProto/parts/StatusPSA.part +121 -0
  202. package/WAProto/parts/StickerMetadata.part +357 -0
  203. package/WAProto/parts/SyncActionData.part +146 -0
  204. package/WAProto/parts/SyncActionValue.part +12959 -0
  205. package/WAProto/parts/SyncdIndex.part +84 -0
  206. package/WAProto/parts/SyncdMutation.part +121 -0
  207. package/WAProto/parts/SyncdMutations.part +92 -0
  208. package/WAProto/parts/SyncdPatch.part +262 -0
  209. package/WAProto/parts/SyncdRecord.part +125 -0
  210. package/WAProto/parts/SyncdSnapshot.part +157 -0
  211. package/WAProto/parts/SyncdValue.part +84 -0
  212. package/WAProto/parts/SyncdVersion.part +91 -0
  213. package/WAProto/parts/TapLinkAction.part +100 -0
  214. package/WAProto/parts/TemplateButton.part +449 -0
  215. package/WAProto/parts/ThreadID.part +126 -0
  216. package/WAProto/parts/UrlTrackingMap.part +231 -0
  217. package/WAProto/parts/UserPassword.part +399 -0
  218. package/WAProto/parts/UserReceipt.part +221 -0
  219. package/WAProto/parts/VerifiedNameCertificate.part +318 -0
  220. package/WAProto/parts/WallpaperSettings.part +119 -0
  221. package/WAProto/parts/WebFeatures.part +1870 -0
  222. package/WAProto/parts/WebLinkRenderConfig.part +5 -0
  223. package/WAProto/parts/WebMessageInfo.part +2851 -0
  224. package/WAProto/parts/WebNotificationsInfo.part +160 -0
  225. package/package.json +1 -1
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+ function InlineContact(p) {
3
+ if (p)
4
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
5
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
6
+ this[ks[i]] = p[ks[i]];
7
+ }
8
+ InlineContact.prototype.pnJid = null;
9
+ InlineContact.prototype.lidJid = null;
10
+ InlineContact.prototype.fullName = null;
11
+ InlineContact.prototype.firstName = null;
12
+ InlineContact.prototype.username = null;
13
+ let $oneOfFields;
14
+ Object.defineProperty(InlineContact.prototype, "_pnJid", {
15
+ get: $util.oneOfGetter($oneOfFields = ["pnJid"]),
16
+ set: $util.oneOfSetter($oneOfFields)
17
+ });
18
+ Object.defineProperty(InlineContact.prototype, "_lidJid", {
19
+ get: $util.oneOfGetter($oneOfFields = ["lidJid"]),
20
+ set: $util.oneOfSetter($oneOfFields)
21
+ });
22
+ Object.defineProperty(InlineContact.prototype, "_fullName", {
23
+ get: $util.oneOfGetter($oneOfFields = ["fullName"]),
24
+ set: $util.oneOfSetter($oneOfFields)
25
+ });
26
+ Object.defineProperty(InlineContact.prototype, "_firstName", {
27
+ get: $util.oneOfGetter($oneOfFields = ["firstName"]),
28
+ set: $util.oneOfSetter($oneOfFields)
29
+ });
30
+ Object.defineProperty(InlineContact.prototype, "_username", {
31
+ get: $util.oneOfGetter($oneOfFields = ["username"]),
32
+ set: $util.oneOfSetter($oneOfFields)
33
+ });
34
+ InlineContact.create = function create(properties) {
35
+ return new InlineContact(properties);
36
+ };
37
+ InlineContact.encode = function encode(m, w) {
38
+ if (!w)
39
+ w = $Writer.create();
40
+ if (m.pnJid != null && Object.hasOwnProperty.call(m, "pnJid"))
41
+ w.uint32(10).string(m.pnJid);
42
+ if (m.lidJid != null && Object.hasOwnProperty.call(m, "lidJid"))
43
+ w.uint32(18).string(m.lidJid);
44
+ if (m.fullName != null && Object.hasOwnProperty.call(m, "fullName"))
45
+ w.uint32(26).string(m.fullName);
46
+ if (m.firstName != null && Object.hasOwnProperty.call(m, "firstName"))
47
+ w.uint32(34).string(m.firstName);
48
+ if (m.username != null && Object.hasOwnProperty.call(m, "username"))
49
+ w.uint32(42).string(m.username);
50
+ return w;
51
+ };
52
+ InlineContact.decode = function decode(r, l, e, n) {
53
+ if (!(r instanceof $Reader))
54
+ r = $Reader.create(r);
55
+ if (n === undefined)
56
+ n = 0;
57
+ if (n > $Reader.recursionLimit)
58
+ throw Error("maximum nesting depth exceeded");
59
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.InlineContact();
60
+ while (r.pos < c) {
61
+ var t = r.uint32();
62
+ if (t === e)
63
+ break;
64
+ switch (t >>> 3) {
65
+ case 1: {
66
+ m.pnJid = r.string();
67
+ break;
68
+ }
69
+ case 2: {
70
+ m.lidJid = r.string();
71
+ break;
72
+ }
73
+ case 3: {
74
+ m.fullName = r.string();
75
+ break;
76
+ }
77
+ case 4: {
78
+ m.firstName = r.string();
79
+ break;
80
+ }
81
+ case 5: {
82
+ m.username = r.string();
83
+ break;
84
+ }
85
+ default:
86
+ r.skipType(t & 7, n);
87
+ break;
88
+ }
89
+ }
90
+ return m;
91
+ };
92
+ InlineContact.fromObject = function fromObject(d, n) {
93
+ if (d instanceof $root.proto.InlineContact)
94
+ return d;
95
+ if (n === undefined)
96
+ n = 0;
97
+ if (n > $util.recursionLimit)
98
+ throw Error("maximum nesting depth exceeded");
99
+ var m = new $root.proto.InlineContact();
100
+ if (d.pnJid != null) {
101
+ m.pnJid = String(d.pnJid);
102
+ }
103
+ if (d.lidJid != null) {
104
+ m.lidJid = String(d.lidJid);
105
+ }
106
+ if (d.fullName != null) {
107
+ m.fullName = String(d.fullName);
108
+ }
109
+ if (d.firstName != null) {
110
+ m.firstName = String(d.firstName);
111
+ }
112
+ if (d.username != null) {
113
+ m.username = String(d.username);
114
+ }
115
+ return m;
116
+ };
117
+ InlineContact.toObject = function toObject(m, o) {
118
+ if (!o)
119
+ o = {};
120
+ var d = {};
121
+ if (m.pnJid != null && m.hasOwnProperty("pnJid")) {
122
+ d.pnJid = m.pnJid;
123
+ if (o.oneofs)
124
+ d._pnJid = "pnJid";
125
+ }
126
+ if (m.lidJid != null && m.hasOwnProperty("lidJid")) {
127
+ d.lidJid = m.lidJid;
128
+ if (o.oneofs)
129
+ d._lidJid = "lidJid";
130
+ }
131
+ if (m.fullName != null && m.hasOwnProperty("fullName")) {
132
+ d.fullName = m.fullName;
133
+ if (o.oneofs)
134
+ d._fullName = "fullName";
135
+ }
136
+ if (m.firstName != null && m.hasOwnProperty("firstName")) {
137
+ d.firstName = m.firstName;
138
+ if (o.oneofs)
139
+ d._firstName = "firstName";
140
+ }
141
+ if (m.username != null && m.hasOwnProperty("username")) {
142
+ d.username = m.username;
143
+ if (o.oneofs)
144
+ d._username = "username";
145
+ }
146
+ return d;
147
+ };
148
+ InlineContact.prototype.toJSON = function toJSON() {
149
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
150
+ };
151
+ InlineContact.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
152
+ if (typeUrlPrefix === undefined) {
153
+ typeUrlPrefix = "type.googleapis.com";
154
+ }
155
+ return typeUrlPrefix + "/proto.InlineContact";
156
+ };
157
+ return InlineContact;
@@ -0,0 +1,246 @@
1
+ "use strict";
2
+ function InteractiveAnnotation(p) {
3
+ this.polygonVertices = [];
4
+ if (p)
5
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
6
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
7
+ this[ks[i]] = p[ks[i]];
8
+ }
9
+ InteractiveAnnotation.prototype.polygonVertices = $util.emptyArray;
10
+ InteractiveAnnotation.prototype.shouldSkipConfirmation = null;
11
+ InteractiveAnnotation.prototype.embeddedContent = null;
12
+ InteractiveAnnotation.prototype.statusLinkType = null;
13
+ InteractiveAnnotation.prototype.location = null;
14
+ InteractiveAnnotation.prototype.newsletter = null;
15
+ InteractiveAnnotation.prototype.embeddedAction = null;
16
+ InteractiveAnnotation.prototype.tapAction = null;
17
+ let $oneOfFields;
18
+ Object.defineProperty(InteractiveAnnotation.prototype, "_shouldSkipConfirmation", {
19
+ get: $util.oneOfGetter($oneOfFields = ["shouldSkipConfirmation"]),
20
+ set: $util.oneOfSetter($oneOfFields)
21
+ });
22
+ Object.defineProperty(InteractiveAnnotation.prototype, "_embeddedContent", {
23
+ get: $util.oneOfGetter($oneOfFields = ["embeddedContent"]),
24
+ set: $util.oneOfSetter($oneOfFields)
25
+ });
26
+ Object.defineProperty(InteractiveAnnotation.prototype, "_statusLinkType", {
27
+ get: $util.oneOfGetter($oneOfFields = ["statusLinkType"]),
28
+ set: $util.oneOfSetter($oneOfFields)
29
+ });
30
+ Object.defineProperty(InteractiveAnnotation.prototype, "action", {
31
+ get: $util.oneOfGetter($oneOfFields = ["location", "newsletter", "embeddedAction", "tapAction"]),
32
+ set: $util.oneOfSetter($oneOfFields)
33
+ });
34
+ InteractiveAnnotation.create = function create(properties) {
35
+ return new InteractiveAnnotation(properties);
36
+ };
37
+ InteractiveAnnotation.encode = function encode(m, w) {
38
+ if (!w)
39
+ w = $Writer.create();
40
+ if (m.polygonVertices != null && m.polygonVertices.length) {
41
+ for (var i = 0; i < m.polygonVertices.length; ++i)
42
+ $root.proto.Point.encode(m.polygonVertices[i], w.uint32(10).fork()).ldelim();
43
+ }
44
+ if (m.location != null && Object.hasOwnProperty.call(m, "location"))
45
+ $root.proto.Location.encode(m.location, w.uint32(18).fork()).ldelim();
46
+ if (m.newsletter != null && Object.hasOwnProperty.call(m, "newsletter"))
47
+ $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.encode(m.newsletter, w.uint32(26).fork()).ldelim();
48
+ if (m.shouldSkipConfirmation != null && Object.hasOwnProperty.call(m, "shouldSkipConfirmation"))
49
+ w.uint32(32).bool(m.shouldSkipConfirmation);
50
+ if (m.embeddedContent != null && Object.hasOwnProperty.call(m, "embeddedContent"))
51
+ $root.proto.EmbeddedContent.encode(m.embeddedContent, w.uint32(42).fork()).ldelim();
52
+ if (m.embeddedAction != null && Object.hasOwnProperty.call(m, "embeddedAction"))
53
+ w.uint32(48).bool(m.embeddedAction);
54
+ if (m.tapAction != null && Object.hasOwnProperty.call(m, "tapAction"))
55
+ $root.proto.TapLinkAction.encode(m.tapAction, w.uint32(58).fork()).ldelim();
56
+ if (m.statusLinkType != null && Object.hasOwnProperty.call(m, "statusLinkType"))
57
+ w.uint32(64).int32(m.statusLinkType);
58
+ return w;
59
+ };
60
+ InteractiveAnnotation.decode = function decode(r, l, e, n) {
61
+ if (!(r instanceof $Reader))
62
+ r = $Reader.create(r);
63
+ if (n === undefined)
64
+ n = 0;
65
+ if (n > $Reader.recursionLimit)
66
+ throw Error("maximum nesting depth exceeded");
67
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.InteractiveAnnotation();
68
+ while (r.pos < c) {
69
+ var t = r.uint32();
70
+ if (t === e)
71
+ break;
72
+ switch (t >>> 3) {
73
+ case 1: {
74
+ if (!(m.polygonVertices && m.polygonVertices.length))
75
+ m.polygonVertices = [];
76
+ m.polygonVertices.push($root.proto.Point.decode(r, r.uint32(), undefined, n + 1));
77
+ break;
78
+ }
79
+ case 4: {
80
+ m.shouldSkipConfirmation = r.bool();
81
+ break;
82
+ }
83
+ case 5: {
84
+ m.embeddedContent = $root.proto.EmbeddedContent.decode(r, r.uint32(), undefined, n + 1);
85
+ break;
86
+ }
87
+ case 8: {
88
+ m.statusLinkType = r.int32();
89
+ break;
90
+ }
91
+ case 2: {
92
+ m.location = $root.proto.Location.decode(r, r.uint32(), undefined, n + 1);
93
+ break;
94
+ }
95
+ case 3: {
96
+ m.newsletter = $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.decode(r, r.uint32(), undefined, n + 1);
97
+ break;
98
+ }
99
+ case 6: {
100
+ m.embeddedAction = r.bool();
101
+ break;
102
+ }
103
+ case 7: {
104
+ m.tapAction = $root.proto.TapLinkAction.decode(r, r.uint32(), undefined, n + 1);
105
+ break;
106
+ }
107
+ default:
108
+ r.skipType(t & 7, n);
109
+ break;
110
+ }
111
+ }
112
+ return m;
113
+ };
114
+ InteractiveAnnotation.fromObject = function fromObject(d, n) {
115
+ if (d instanceof $root.proto.InteractiveAnnotation)
116
+ return d;
117
+ if (n === undefined)
118
+ n = 0;
119
+ if (n > $util.recursionLimit)
120
+ throw Error("maximum nesting depth exceeded");
121
+ var m = new $root.proto.InteractiveAnnotation();
122
+ if (d.polygonVertices) {
123
+ if (!Array.isArray(d.polygonVertices))
124
+ throw TypeError(".proto.InteractiveAnnotation.polygonVertices: array expected");
125
+ m.polygonVertices = [];
126
+ for (var i = 0; i < d.polygonVertices.length; ++i) {
127
+ if (typeof d.polygonVertices[i] !== "object")
128
+ throw TypeError(".proto.InteractiveAnnotation.polygonVertices: object expected");
129
+ m.polygonVertices[i] = $root.proto.Point.fromObject(d.polygonVertices[i], n + 1);
130
+ }
131
+ }
132
+ if (d.shouldSkipConfirmation != null) {
133
+ m.shouldSkipConfirmation = Boolean(d.shouldSkipConfirmation);
134
+ }
135
+ if (d.embeddedContent != null) {
136
+ if (typeof d.embeddedContent !== "object")
137
+ throw TypeError(".proto.InteractiveAnnotation.embeddedContent: object expected");
138
+ m.embeddedContent = $root.proto.EmbeddedContent.fromObject(d.embeddedContent, n + 1);
139
+ }
140
+ switch (d.statusLinkType) {
141
+ default:
142
+ if (typeof d.statusLinkType === "number") {
143
+ m.statusLinkType = d.statusLinkType;
144
+ break;
145
+ }
146
+ break;
147
+ case "RASTERIZED_LINK_PREVIEW":
148
+ case 1:
149
+ m.statusLinkType = 1;
150
+ break;
151
+ case "RASTERIZED_LINK_TRUNCATED":
152
+ case 2:
153
+ m.statusLinkType = 2;
154
+ break;
155
+ case "RASTERIZED_LINK_FULL_URL":
156
+ case 3:
157
+ m.statusLinkType = 3;
158
+ break;
159
+ }
160
+ if (d.location != null) {
161
+ if (typeof d.location !== "object")
162
+ throw TypeError(".proto.InteractiveAnnotation.location: object expected");
163
+ m.location = $root.proto.Location.fromObject(d.location, n + 1);
164
+ }
165
+ if (d.newsletter != null) {
166
+ if (typeof d.newsletter !== "object")
167
+ throw TypeError(".proto.InteractiveAnnotation.newsletter: object expected");
168
+ m.newsletter = $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.fromObject(d.newsletter, n + 1);
169
+ }
170
+ if (d.embeddedAction != null) {
171
+ m.embeddedAction = Boolean(d.embeddedAction);
172
+ }
173
+ if (d.tapAction != null) {
174
+ if (typeof d.tapAction !== "object")
175
+ throw TypeError(".proto.InteractiveAnnotation.tapAction: object expected");
176
+ m.tapAction = $root.proto.TapLinkAction.fromObject(d.tapAction, n + 1);
177
+ }
178
+ return m;
179
+ };
180
+ InteractiveAnnotation.toObject = function toObject(m, o) {
181
+ if (!o)
182
+ o = {};
183
+ var d = {};
184
+ if (o.arrays || o.defaults) {
185
+ d.polygonVertices = [];
186
+ }
187
+ if (m.polygonVertices && m.polygonVertices.length) {
188
+ d.polygonVertices = [];
189
+ for (var j = 0; j < m.polygonVertices.length; ++j) {
190
+ d.polygonVertices[j] = $root.proto.Point.toObject(m.polygonVertices[j], o);
191
+ }
192
+ }
193
+ if (m.location != null && m.hasOwnProperty("location")) {
194
+ d.location = $root.proto.Location.toObject(m.location, o);
195
+ if (o.oneofs)
196
+ d.action = "location";
197
+ }
198
+ if (m.newsletter != null && m.hasOwnProperty("newsletter")) {
199
+ d.newsletter = $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.toObject(m.newsletter, o);
200
+ if (o.oneofs)
201
+ d.action = "newsletter";
202
+ }
203
+ if (m.shouldSkipConfirmation != null && m.hasOwnProperty("shouldSkipConfirmation")) {
204
+ d.shouldSkipConfirmation = m.shouldSkipConfirmation;
205
+ if (o.oneofs)
206
+ d._shouldSkipConfirmation = "shouldSkipConfirmation";
207
+ }
208
+ if (m.embeddedContent != null && m.hasOwnProperty("embeddedContent")) {
209
+ d.embeddedContent = $root.proto.EmbeddedContent.toObject(m.embeddedContent, o);
210
+ if (o.oneofs)
211
+ d._embeddedContent = "embeddedContent";
212
+ }
213
+ if (m.embeddedAction != null && m.hasOwnProperty("embeddedAction")) {
214
+ d.embeddedAction = m.embeddedAction;
215
+ if (o.oneofs)
216
+ d.action = "embeddedAction";
217
+ }
218
+ if (m.tapAction != null && m.hasOwnProperty("tapAction")) {
219
+ d.tapAction = $root.proto.TapLinkAction.toObject(m.tapAction, o);
220
+ if (o.oneofs)
221
+ d.action = "tapAction";
222
+ }
223
+ if (m.statusLinkType != null && m.hasOwnProperty("statusLinkType")) {
224
+ d.statusLinkType = o.enums === String ? $root.proto.InteractiveAnnotation.StatusLinkType[m.statusLinkType] === undefined ? m.statusLinkType : $root.proto.InteractiveAnnotation.StatusLinkType[m.statusLinkType] : m.statusLinkType;
225
+ if (o.oneofs)
226
+ d._statusLinkType = "statusLinkType";
227
+ }
228
+ return d;
229
+ };
230
+ InteractiveAnnotation.prototype.toJSON = function toJSON() {
231
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
232
+ };
233
+ InteractiveAnnotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
234
+ if (typeUrlPrefix === undefined) {
235
+ typeUrlPrefix = "type.googleapis.com";
236
+ }
237
+ return typeUrlPrefix + "/proto.InteractiveAnnotation";
238
+ };
239
+ $lazy(InteractiveAnnotation, "StatusLinkType", function() {
240
+ const valuesById = {}, values = Object.create(valuesById);
241
+ values[valuesById[1] = "RASTERIZED_LINK_PREVIEW"] = 1;
242
+ values[valuesById[2] = "RASTERIZED_LINK_TRUNCATED"] = 2;
243
+ values[valuesById[3] = "RASTERIZED_LINK_FULL_URL"] = 3;
244
+ return values;
245
+ });
246
+ return InteractiveAnnotation;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ function InteractiveMessageAdditionalMetadata(p) {
3
+ if (p)
4
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
5
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
6
+ this[ks[i]] = p[ks[i]];
7
+ }
8
+ InteractiveMessageAdditionalMetadata.prototype.isGalaxyFlowCompleted = null;
9
+ let $oneOfFields;
10
+ Object.defineProperty(InteractiveMessageAdditionalMetadata.prototype, "_isGalaxyFlowCompleted", {
11
+ get: $util.oneOfGetter($oneOfFields = ["isGalaxyFlowCompleted"]),
12
+ set: $util.oneOfSetter($oneOfFields)
13
+ });
14
+ InteractiveMessageAdditionalMetadata.create = function create(properties) {
15
+ return new InteractiveMessageAdditionalMetadata(properties);
16
+ };
17
+ InteractiveMessageAdditionalMetadata.encode = function encode(m, w) {
18
+ if (!w)
19
+ w = $Writer.create();
20
+ if (m.isGalaxyFlowCompleted != null && Object.hasOwnProperty.call(m, "isGalaxyFlowCompleted"))
21
+ w.uint32(8).bool(m.isGalaxyFlowCompleted);
22
+ return w;
23
+ };
24
+ InteractiveMessageAdditionalMetadata.decode = function decode(r, l, e, n) {
25
+ if (!(r instanceof $Reader))
26
+ r = $Reader.create(r);
27
+ if (n === undefined)
28
+ n = 0;
29
+ if (n > $Reader.recursionLimit)
30
+ throw Error("maximum nesting depth exceeded");
31
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.InteractiveMessageAdditionalMetadata();
32
+ while (r.pos < c) {
33
+ var t = r.uint32();
34
+ if (t === e)
35
+ break;
36
+ switch (t >>> 3) {
37
+ case 1: {
38
+ m.isGalaxyFlowCompleted = r.bool();
39
+ break;
40
+ }
41
+ default:
42
+ r.skipType(t & 7, n);
43
+ break;
44
+ }
45
+ }
46
+ return m;
47
+ };
48
+ InteractiveMessageAdditionalMetadata.fromObject = function fromObject(d, n) {
49
+ if (d instanceof $root.proto.InteractiveMessageAdditionalMetadata)
50
+ return d;
51
+ if (n === undefined)
52
+ n = 0;
53
+ if (n > $util.recursionLimit)
54
+ throw Error("maximum nesting depth exceeded");
55
+ var m = new $root.proto.InteractiveMessageAdditionalMetadata();
56
+ if (d.isGalaxyFlowCompleted != null) {
57
+ m.isGalaxyFlowCompleted = Boolean(d.isGalaxyFlowCompleted);
58
+ }
59
+ return m;
60
+ };
61
+ InteractiveMessageAdditionalMetadata.toObject = function toObject(m, o) {
62
+ if (!o)
63
+ o = {};
64
+ var d = {};
65
+ if (m.isGalaxyFlowCompleted != null && m.hasOwnProperty("isGalaxyFlowCompleted")) {
66
+ d.isGalaxyFlowCompleted = m.isGalaxyFlowCompleted;
67
+ if (o.oneofs)
68
+ d._isGalaxyFlowCompleted = "isGalaxyFlowCompleted";
69
+ }
70
+ return d;
71
+ };
72
+ InteractiveMessageAdditionalMetadata.prototype.toJSON = function toJSON() {
73
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
74
+ };
75
+ InteractiveMessageAdditionalMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
76
+ if (typeUrlPrefix === undefined) {
77
+ typeUrlPrefix = "type.googleapis.com";
78
+ }
79
+ return typeUrlPrefix + "/proto.InteractiveMessageAdditionalMetadata";
80
+ };
81
+ return InteractiveMessageAdditionalMetadata;
@@ -0,0 +1,225 @@
1
+ "use strict";
2
+ function KeepInChat(p) {
3
+ if (p)
4
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
5
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
6
+ this[ks[i]] = p[ks[i]];
7
+ }
8
+ KeepInChat.prototype.keepType = null;
9
+ KeepInChat.prototype.serverTimestamp = null;
10
+ KeepInChat.prototype.key = null;
11
+ KeepInChat.prototype.deviceJid = null;
12
+ KeepInChat.prototype.clientTimestampMs = null;
13
+ KeepInChat.prototype.serverTimestampMs = null;
14
+ let $oneOfFields;
15
+ Object.defineProperty(KeepInChat.prototype, "_keepType", {
16
+ get: $util.oneOfGetter($oneOfFields = ["keepType"]),
17
+ set: $util.oneOfSetter($oneOfFields)
18
+ });
19
+ Object.defineProperty(KeepInChat.prototype, "_serverTimestamp", {
20
+ get: $util.oneOfGetter($oneOfFields = ["serverTimestamp"]),
21
+ set: $util.oneOfSetter($oneOfFields)
22
+ });
23
+ Object.defineProperty(KeepInChat.prototype, "_key", {
24
+ get: $util.oneOfGetter($oneOfFields = ["key"]),
25
+ set: $util.oneOfSetter($oneOfFields)
26
+ });
27
+ Object.defineProperty(KeepInChat.prototype, "_deviceJid", {
28
+ get: $util.oneOfGetter($oneOfFields = ["deviceJid"]),
29
+ set: $util.oneOfSetter($oneOfFields)
30
+ });
31
+ Object.defineProperty(KeepInChat.prototype, "_clientTimestampMs", {
32
+ get: $util.oneOfGetter($oneOfFields = ["clientTimestampMs"]),
33
+ set: $util.oneOfSetter($oneOfFields)
34
+ });
35
+ Object.defineProperty(KeepInChat.prototype, "_serverTimestampMs", {
36
+ get: $util.oneOfGetter($oneOfFields = ["serverTimestampMs"]),
37
+ set: $util.oneOfSetter($oneOfFields)
38
+ });
39
+ KeepInChat.create = function create(properties) {
40
+ return new KeepInChat(properties);
41
+ };
42
+ KeepInChat.encode = function encode(m, w) {
43
+ if (!w)
44
+ w = $Writer.create();
45
+ if (m.keepType != null && Object.hasOwnProperty.call(m, "keepType"))
46
+ w.uint32(8).int32(m.keepType);
47
+ if (m.serverTimestamp != null && Object.hasOwnProperty.call(m, "serverTimestamp"))
48
+ w.uint32(16).int64(m.serverTimestamp);
49
+ if (m.key != null && Object.hasOwnProperty.call(m, "key"))
50
+ $root.proto.MessageKey.encode(m.key, w.uint32(26).fork()).ldelim();
51
+ if (m.deviceJid != null && Object.hasOwnProperty.call(m, "deviceJid"))
52
+ w.uint32(34).string(m.deviceJid);
53
+ if (m.clientTimestampMs != null && Object.hasOwnProperty.call(m, "clientTimestampMs"))
54
+ w.uint32(40).int64(m.clientTimestampMs);
55
+ if (m.serverTimestampMs != null && Object.hasOwnProperty.call(m, "serverTimestampMs"))
56
+ w.uint32(48).int64(m.serverTimestampMs);
57
+ return w;
58
+ };
59
+ KeepInChat.decode = function decode(r, l, e, n) {
60
+ if (!(r instanceof $Reader))
61
+ r = $Reader.create(r);
62
+ if (n === undefined)
63
+ n = 0;
64
+ if (n > $Reader.recursionLimit)
65
+ throw Error("maximum nesting depth exceeded");
66
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.KeepInChat();
67
+ while (r.pos < c) {
68
+ var t = r.uint32();
69
+ if (t === e)
70
+ break;
71
+ switch (t >>> 3) {
72
+ case 1: {
73
+ m.keepType = r.int32();
74
+ break;
75
+ }
76
+ case 2: {
77
+ m.serverTimestamp = r.int64();
78
+ break;
79
+ }
80
+ case 3: {
81
+ m.key = $root.proto.MessageKey.decode(r, r.uint32(), undefined, n + 1);
82
+ break;
83
+ }
84
+ case 4: {
85
+ m.deviceJid = r.string();
86
+ break;
87
+ }
88
+ case 5: {
89
+ m.clientTimestampMs = r.int64();
90
+ break;
91
+ }
92
+ case 6: {
93
+ m.serverTimestampMs = r.int64();
94
+ break;
95
+ }
96
+ default:
97
+ r.skipType(t & 7, n);
98
+ break;
99
+ }
100
+ }
101
+ return m;
102
+ };
103
+ KeepInChat.fromObject = function fromObject(d, n) {
104
+ if (d instanceof $root.proto.KeepInChat)
105
+ return d;
106
+ if (n === undefined)
107
+ n = 0;
108
+ if (n > $util.recursionLimit)
109
+ throw Error("maximum nesting depth exceeded");
110
+ var m = new $root.proto.KeepInChat();
111
+ switch (d.keepType) {
112
+ default:
113
+ if (typeof d.keepType === "number") {
114
+ m.keepType = d.keepType;
115
+ break;
116
+ }
117
+ break;
118
+ case "UNKNOWN":
119
+ case 0:
120
+ m.keepType = 0;
121
+ break;
122
+ case "KEEP_FOR_ALL":
123
+ case 1:
124
+ m.keepType = 1;
125
+ break;
126
+ case "UNDO_KEEP_FOR_ALL":
127
+ case 2:
128
+ m.keepType = 2;
129
+ break;
130
+ }
131
+ if (d.serverTimestamp != null) {
132
+ if ($util.Long)
133
+ (m.serverTimestamp = $util.Long.fromValue(d.serverTimestamp)).unsigned = false;
134
+ else if (typeof d.serverTimestamp === "string")
135
+ m.serverTimestamp = parseInt(d.serverTimestamp, 10);
136
+ else if (typeof d.serverTimestamp === "number")
137
+ m.serverTimestamp = d.serverTimestamp;
138
+ else if (typeof d.serverTimestamp === "object")
139
+ m.serverTimestamp = new $util.LongBits(d.serverTimestamp.low >>> 0, d.serverTimestamp.high >>> 0).toNumber();
140
+ }
141
+ if (d.key != null) {
142
+ if (typeof d.key !== "object")
143
+ throw TypeError(".proto.KeepInChat.key: object expected");
144
+ m.key = $root.proto.MessageKey.fromObject(d.key, n + 1);
145
+ }
146
+ if (d.deviceJid != null) {
147
+ m.deviceJid = String(d.deviceJid);
148
+ }
149
+ if (d.clientTimestampMs != null) {
150
+ if ($util.Long)
151
+ (m.clientTimestampMs = $util.Long.fromValue(d.clientTimestampMs)).unsigned = false;
152
+ else if (typeof d.clientTimestampMs === "string")
153
+ m.clientTimestampMs = parseInt(d.clientTimestampMs, 10);
154
+ else if (typeof d.clientTimestampMs === "number")
155
+ m.clientTimestampMs = d.clientTimestampMs;
156
+ else if (typeof d.clientTimestampMs === "object")
157
+ m.clientTimestampMs = new $util.LongBits(d.clientTimestampMs.low >>> 0, d.clientTimestampMs.high >>> 0).toNumber();
158
+ }
159
+ if (d.serverTimestampMs != null) {
160
+ if ($util.Long)
161
+ (m.serverTimestampMs = $util.Long.fromValue(d.serverTimestampMs)).unsigned = false;
162
+ else if (typeof d.serverTimestampMs === "string")
163
+ m.serverTimestampMs = parseInt(d.serverTimestampMs, 10);
164
+ else if (typeof d.serverTimestampMs === "number")
165
+ m.serverTimestampMs = d.serverTimestampMs;
166
+ else if (typeof d.serverTimestampMs === "object")
167
+ m.serverTimestampMs = new $util.LongBits(d.serverTimestampMs.low >>> 0, d.serverTimestampMs.high >>> 0).toNumber();
168
+ }
169
+ return m;
170
+ };
171
+ KeepInChat.toObject = function toObject(m, o) {
172
+ if (!o)
173
+ o = {};
174
+ var d = {};
175
+ if (m.keepType != null && m.hasOwnProperty("keepType")) {
176
+ d.keepType = o.enums === String ? $root.proto.KeepType[m.keepType] === undefined ? m.keepType : $root.proto.KeepType[m.keepType] : m.keepType;
177
+ if (o.oneofs)
178
+ d._keepType = "keepType";
179
+ }
180
+ if (m.serverTimestamp != null && m.hasOwnProperty("serverTimestamp")) {
181
+ if (typeof m.serverTimestamp === "number")
182
+ d.serverTimestamp = o.longs === String ? String(m.serverTimestamp) : m.serverTimestamp;
183
+ else
184
+ d.serverTimestamp = o.longs === String ? longToString(m.serverTimestamp) : o.longs === Number ? longToNumber(m.serverTimestamp) : m.serverTimestamp;
185
+ if (o.oneofs)
186
+ d._serverTimestamp = "serverTimestamp";
187
+ }
188
+ if (m.key != null && m.hasOwnProperty("key")) {
189
+ d.key = $root.proto.MessageKey.toObject(m.key, o);
190
+ if (o.oneofs)
191
+ d._key = "key";
192
+ }
193
+ if (m.deviceJid != null && m.hasOwnProperty("deviceJid")) {
194
+ d.deviceJid = m.deviceJid;
195
+ if (o.oneofs)
196
+ d._deviceJid = "deviceJid";
197
+ }
198
+ if (m.clientTimestampMs != null && m.hasOwnProperty("clientTimestampMs")) {
199
+ if (typeof m.clientTimestampMs === "number")
200
+ d.clientTimestampMs = o.longs === String ? String(m.clientTimestampMs) : m.clientTimestampMs;
201
+ else
202
+ d.clientTimestampMs = o.longs === String ? longToString(m.clientTimestampMs) : o.longs === Number ? longToNumber(m.clientTimestampMs) : m.clientTimestampMs;
203
+ if (o.oneofs)
204
+ d._clientTimestampMs = "clientTimestampMs";
205
+ }
206
+ if (m.serverTimestampMs != null && m.hasOwnProperty("serverTimestampMs")) {
207
+ if (typeof m.serverTimestampMs === "number")
208
+ d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
209
+ else
210
+ d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
211
+ if (o.oneofs)
212
+ d._serverTimestampMs = "serverTimestampMs";
213
+ }
214
+ return d;
215
+ };
216
+ KeepInChat.prototype.toJSON = function toJSON() {
217
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
218
+ };
219
+ KeepInChat.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
220
+ if (typeUrlPrefix === undefined) {
221
+ typeUrlPrefix = "type.googleapis.com";
222
+ }
223
+ return typeUrlPrefix + "/proto.KeepInChat";
224
+ };
225
+ return KeepInChat;