@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.
- package/WAProto/index.js +231 -113252
- package/WAProto/parts/ADVDeviceIdentity.part +201 -0
- package/WAProto/parts/ADVEncryptionType.part +6 -0
- package/WAProto/parts/ADVKeyIndexList.part +201 -0
- package/WAProto/parts/ADVSignedDeviceIdentity.part +150 -0
- package/WAProto/parts/ADVSignedDeviceIdentityHMAC.part +142 -0
- package/WAProto/parts/ADVSignedKeyIndexList.part +128 -0
- package/WAProto/parts/AIHomeState.part +405 -0
- package/WAProto/parts/AIMediaCollectionMessage.part +119 -0
- package/WAProto/parts/AIMediaCollectionMetadata.part +100 -0
- package/WAProto/parts/AIMetadataOperation.part +83 -0
- package/WAProto/parts/AIQueryFanout.part +133 -0
- package/WAProto/parts/AIRegenerateMetadata.part +112 -0
- package/WAProto/parts/AIRichResponseCodeMetadata.part +252 -0
- package/WAProto/parts/AIRichResponseContentItemsMetadata.part +354 -0
- package/WAProto/parts/AIRichResponseDynamicMetadata.part +172 -0
- package/WAProto/parts/AIRichResponseGridImageMetadata.part +114 -0
- package/WAProto/parts/AIRichResponseImageURL.part +119 -0
- package/WAProto/parts/AIRichResponseInlineImageMetadata.part +164 -0
- package/WAProto/parts/AIRichResponseLatexMetadata.part +346 -0
- package/WAProto/parts/AIRichResponseMapMetadata.part +346 -0
- package/WAProto/parts/AIRichResponseMessage.part +167 -0
- package/WAProto/parts/AIRichResponseMessageType.part +5 -0
- package/WAProto/parts/AIRichResponseSubMessage.part +313 -0
- package/WAProto/parts/AIRichResponseSubMessageType.part +13 -0
- package/WAProto/parts/AIRichResponseTableMetadata.part +223 -0
- package/WAProto/parts/AIRichResponseUnifiedResponse.part +84 -0
- package/WAProto/parts/AISubscriptionRequestType.part +7 -0
- package/WAProto/parts/AISubscriptionUpsellMetadata.part +102 -0
- package/WAProto/parts/AIThreadInfo.part +316 -0
- package/WAProto/parts/Account.part +138 -0
- package/WAProto/parts/ActionLink.part +100 -0
- package/WAProto/parts/AutoDownloadSettings.part +138 -0
- package/WAProto/parts/AvatarUserSettings.part +100 -0
- package/WAProto/parts/BizAccountLinkInfo.part +210 -0
- package/WAProto/parts/BizAccountPayload.part +105 -0
- package/WAProto/parts/BizIdentityInfo.part +298 -0
- package/WAProto/parts/BotAgeCollectionMetadata.part +138 -0
- package/WAProto/parts/BotAgentDeepLinkMetadata.part +81 -0
- package/WAProto/parts/BotAgentMetadata.part +83 -0
- package/WAProto/parts/BotCapabilityMetadata.part +437 -0
- package/WAProto/parts/BotCommandMetadata.part +119 -0
- package/WAProto/parts/BotDocumentMessageMetadata.part +100 -0
- package/WAProto/parts/BotFeedbackMessage.part +1366 -0
- package/WAProto/parts/BotGroupMetadata.part +92 -0
- package/WAProto/parts/BotGroupParticipantMetadata.part +81 -0
- package/WAProto/parts/BotImagineMetadata.part +134 -0
- package/WAProto/parts/BotInfrastructureDiagnostics.part +148 -0
- package/WAProto/parts/BotLinkedAccount.part +95 -0
- package/WAProto/parts/BotLinkedAccountsMetadata.part +134 -0
- package/WAProto/parts/BotMediaMetadata.part +229 -0
- package/WAProto/parts/BotMemoryFact.part +100 -0
- package/WAProto/parts/BotMemoryMetadata.part +141 -0
- package/WAProto/parts/BotMemuMetadata.part +92 -0
- package/WAProto/parts/BotMessageOrigin.part +95 -0
- package/WAProto/parts/BotMessageOriginMetadata.part +92 -0
- package/WAProto/parts/BotMessageSharingInfo.part +297 -0
- package/WAProto/parts/BotMetadata.part +934 -0
- package/WAProto/parts/BotMetricsEntryPoint.part +51 -0
- package/WAProto/parts/BotMetricsMetadata.part +341 -0
- package/WAProto/parts/BotMetricsThreadEntryPoint.part +8 -0
- package/WAProto/parts/BotModeSelectionMetadata.part +151 -0
- package/WAProto/parts/BotModelMetadata.part +167 -0
- package/WAProto/parts/BotPluginMetadata.part +379 -0
- package/WAProto/parts/BotProgressIndicatorMetadata.part +837 -0
- package/WAProto/parts/BotPromotionMessageMetadata.part +124 -0
- package/WAProto/parts/BotPromptSuggestion.part +100 -0
- package/WAProto/parts/BotPromptSuggestions.part +92 -0
- package/WAProto/parts/BotPttPromptMetadata.part +81 -0
- package/WAProto/parts/BotQuotaMetadata.part +241 -0
- package/WAProto/parts/BotReminderMetadata.part +232 -0
- package/WAProto/parts/BotRenderingConfigMetadata.part +100 -0
- package/WAProto/parts/BotRenderingMetadata.part +203 -0
- package/WAProto/parts/BotResolvedToolCallMetadata.part +100 -0
- package/WAProto/parts/BotSessionMetadata.part +137 -0
- package/WAProto/parts/BotSessionSource.part +11 -0
- package/WAProto/parts/BotSignatureVerificationMetadata.part +92 -0
- package/WAProto/parts/BotSignatureVerificationUseCaseProof.part +183 -0
- package/WAProto/parts/BotSourcesMetadata.part +322 -0
- package/WAProto/parts/BotSuggestedPromptMetadata.part +150 -0
- package/WAProto/parts/BotUnifiedResponseMutation.part +339 -0
- package/WAProto/parts/CallLogRecord.part +646 -0
- package/WAProto/parts/CertChain.part +392 -0
- package/WAProto/parts/ChatLockSettings.part +102 -0
- package/WAProto/parts/ChatRowOpaqueData.part +712 -0
- package/WAProto/parts/Citation.part +119 -0
- package/WAProto/parts/ClientPairingProps.part +160 -0
- package/WAProto/parts/ClientPayload.part +2892 -0
- package/WAProto/parts/CollectionName.part +9 -0
- package/WAProto/parts/CommentMetadata.part +102 -0
- package/WAProto/parts/CompanionCommitment.part +84 -0
- package/WAProto/parts/CompanionEphemeralIdentity.part +227 -0
- package/WAProto/parts/Config.part +136 -0
- package/WAProto/parts/ContextInfo.part +4137 -0
- package/WAProto/parts/Conversation.part +1472 -0
- package/WAProto/parts/DeviceCapabilities.part +670 -0
- package/WAProto/parts/DeviceConsistencyCodeMessage.part +103 -0
- package/WAProto/parts/DeviceListMetadata.part +306 -0
- package/WAProto/parts/DeviceProps.part +982 -0
- package/WAProto/parts/DisappearingMode.part +206 -0
- package/WAProto/parts/EmbeddedContent.part +100 -0
- package/WAProto/parts/EmbeddedMessage.part +102 -0
- package/WAProto/parts/EmbeddedMusic.part +370 -0
- package/WAProto/parts/EncryptedPairingRequest.part +106 -0
- package/WAProto/parts/EphemeralSetting.part +110 -0
- package/WAProto/parts/EventAdditionalMetadata.part +81 -0
- package/WAProto/parts/EventResponse.part +152 -0
- package/WAProto/parts/ExitCode.part +110 -0
- package/WAProto/parts/ExternalBlobReference.part +195 -0
- package/WAProto/parts/Field.part +193 -0
- package/WAProto/parts/ForwardedAIBotMessageInfo.part +119 -0
- package/WAProto/parts/GlobalSettings.part +497 -0
- package/WAProto/parts/GroupHistoryBundleInfo.part +141 -0
- package/WAProto/parts/GroupHistoryIndividualMessageInfo.part +102 -0
- package/WAProto/parts/GroupMention.part +100 -0
- package/WAProto/parts/GroupParticipant.part +142 -0
- package/WAProto/parts/GroupRootKeyShare.part +92 -0
- package/WAProto/parts/GroupRootKeyShareEntry.part +161 -0
- package/WAProto/parts/HandshakeMessage.part +815 -0
- package/WAProto/parts/HatchMetadataSync.part +132 -0
- package/WAProto/parts/HistorySync.part +605 -0
- package/WAProto/parts/HistorySyncMsg.part +112 -0
- package/WAProto/parts/HydratedTemplateButton.part +501 -0
- package/WAProto/parts/IdentityKeyPairStructure.part +106 -0
- package/WAProto/parts/InThreadSurveyMetadata.part +779 -0
- package/WAProto/parts/InlineContact.part +157 -0
- package/WAProto/parts/InteractiveAnnotation.part +246 -0
- package/WAProto/parts/InteractiveMessageAdditionalMetadata.part +81 -0
- package/WAProto/parts/KeepInChat.part +225 -0
- package/WAProto/parts/KeepType.part +6 -0
- package/WAProto/parts/KeyExchangeMessage.part +169 -0
- package/WAProto/parts/KeyId.part +84 -0
- package/WAProto/parts/LIDMigrationMapping.part +149 -0
- package/WAProto/parts/LIDMigrationMappingSyncMessage.part +84 -0
- package/WAProto/parts/LIDMigrationMappingSyncPayload.part +122 -0
- package/WAProto/parts/LegacyMessage.part +104 -0
- package/WAProto/parts/LimitSharing.part +177 -0
- package/WAProto/parts/LocalizedName.part +119 -0
- package/WAProto/parts/Location.part +119 -0
- package/WAProto/parts/MediaData.part +81 -0
- package/WAProto/parts/MediaDomainInfo.part +120 -0
- package/WAProto/parts/MediaKeyDomain.part +6 -0
- package/WAProto/parts/MediaNotifyMessage.part +132 -0
- package/WAProto/parts/MediaRetryNotification.part +170 -0
- package/WAProto/parts/MediaVisibility.part +6 -0
- package/WAProto/parts/MemberLabel.part +110 -0
- package/WAProto/parts/Message.part +32376 -0
- package/WAProto/parts/MessageAddOn.part +305 -0
- package/WAProto/parts/MessageAddOnContextInfo.part +113 -0
- package/WAProto/parts/MessageAssociation.part +235 -0
- package/WAProto/parts/MessageContextInfo.part +451 -0
- package/WAProto/parts/MessageKey.part +138 -0
- package/WAProto/parts/MessageSecretMessage.part +125 -0
- package/WAProto/parts/Money.part +129 -0
- package/WAProto/parts/MsgOpaqueData.part +1732 -0
- package/WAProto/parts/MsgRowOpaqueData.part +104 -0
- package/WAProto/parts/MutationProps.part +89 -0
- package/WAProto/parts/NoiseCertificate.part +277 -0
- package/WAProto/parts/NotificationMessageInfo.part +152 -0
- package/WAProto/parts/NotificationSettings.part +176 -0
- package/WAProto/parts/PairingRequest.part +128 -0
- package/WAProto/parts/PastParticipant.part +148 -0
- package/WAProto/parts/PastParticipants.part +112 -0
- package/WAProto/parts/PatchDebugData.part +358 -0
- package/WAProto/parts/PaymentBackground.part +460 -0
- package/WAProto/parts/PaymentInfo.part +602 -0
- package/WAProto/parts/PhoneNumberToLIDMapping.part +100 -0
- package/WAProto/parts/PhotoChange.part +125 -0
- package/WAProto/parts/PinInChat.part +205 -0
- package/WAProto/parts/Point.part +138 -0
- package/WAProto/parts/PollAdditionalMetadata.part +216 -0
- package/WAProto/parts/PollEncValue.part +106 -0
- package/WAProto/parts/PollUpdate.part +202 -0
- package/WAProto/parts/PreKeyRecordStructure.part +125 -0
- package/WAProto/parts/PreKeySignalMessage.part +185 -0
- package/WAProto/parts/PremiumMessageInfo.part +81 -0
- package/WAProto/parts/PrimaryEphemeralIdentity.part +106 -0
- package/WAProto/parts/PrivacySystemMessage.part +6 -0
- package/WAProto/parts/ProcessedVideo.part +266 -0
- package/WAProto/parts/ProloguePayload.part +105 -0
- package/WAProto/parts/Pushname.part +100 -0
- package/WAProto/parts/QuarantinedMessage.part +103 -0
- package/WAProto/parts/Reaction.part +169 -0
- package/WAProto/parts/RecentEmojiWeight.part +100 -0
- package/WAProto/parts/RecordStructure.part +114 -0
- package/WAProto/parts/Reportable.part +138 -0
- package/WAProto/parts/ReportingTokenInfo.part +84 -0
- package/WAProto/parts/ScheduledMessageMetadata.part +132 -0
- package/WAProto/parts/SenderKeyDistributionMessage.part +144 -0
- package/WAProto/parts/SenderKeyMessage.part +122 -0
- package/WAProto/parts/SenderKeyRecordStructure.part +92 -0
- package/WAProto/parts/SenderKeyStateStructure.part +469 -0
- package/WAProto/parts/ServerErrorReceipt.part +81 -0
- package/WAProto/parts/SessionStructure.part +1087 -0
- package/WAProto/parts/SessionTransparencyMetadata.part +132 -0
- package/WAProto/parts/SessionTransparencyType.part +5 -0
- package/WAProto/parts/SignalMessage.part +144 -0
- package/WAProto/parts/SignedPreKeyRecordStructure.part +176 -0
- package/WAProto/parts/StatusAttribution.part +1235 -0
- package/WAProto/parts/StatusMentionMessage.part +83 -0
- package/WAProto/parts/StatusPSA.part +121 -0
- package/WAProto/parts/StickerMetadata.part +357 -0
- package/WAProto/parts/SyncActionData.part +146 -0
- package/WAProto/parts/SyncActionValue.part +12959 -0
- package/WAProto/parts/SyncdIndex.part +84 -0
- package/WAProto/parts/SyncdMutation.part +121 -0
- package/WAProto/parts/SyncdMutations.part +92 -0
- package/WAProto/parts/SyncdPatch.part +262 -0
- package/WAProto/parts/SyncdRecord.part +125 -0
- package/WAProto/parts/SyncdSnapshot.part +157 -0
- package/WAProto/parts/SyncdValue.part +84 -0
- package/WAProto/parts/SyncdVersion.part +91 -0
- package/WAProto/parts/TapLinkAction.part +100 -0
- package/WAProto/parts/TemplateButton.part +449 -0
- package/WAProto/parts/ThreadID.part +126 -0
- package/WAProto/parts/UrlTrackingMap.part +231 -0
- package/WAProto/parts/UserPassword.part +399 -0
- package/WAProto/parts/UserReceipt.part +221 -0
- package/WAProto/parts/VerifiedNameCertificate.part +318 -0
- package/WAProto/parts/WallpaperSettings.part +119 -0
- package/WAProto/parts/WebFeatures.part +1870 -0
- package/WAProto/parts/WebLinkRenderConfig.part +5 -0
- package/WAProto/parts/WebMessageInfo.part +2851 -0
- package/WAProto/parts/WebNotificationsInfo.part +160 -0
- package/package.json +1 -1
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function PatchDebugData(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
|
+
PatchDebugData.prototype.currentLthash = null;
|
|
9
|
+
PatchDebugData.prototype.newLthash = null;
|
|
10
|
+
PatchDebugData.prototype.patchVersion = null;
|
|
11
|
+
PatchDebugData.prototype.collectionName = null;
|
|
12
|
+
PatchDebugData.prototype.firstFourBytesFromAHashOfSnapshotMacKey = null;
|
|
13
|
+
PatchDebugData.prototype.newLthashSubtract = null;
|
|
14
|
+
PatchDebugData.prototype.numberAdd = null;
|
|
15
|
+
PatchDebugData.prototype.numberRemove = null;
|
|
16
|
+
PatchDebugData.prototype.numberOverride = null;
|
|
17
|
+
PatchDebugData.prototype.senderPlatform = null;
|
|
18
|
+
PatchDebugData.prototype.isSenderPrimary = null;
|
|
19
|
+
let $oneOfFields;
|
|
20
|
+
Object.defineProperty(PatchDebugData.prototype, "_currentLthash", {
|
|
21
|
+
get: $util.oneOfGetter($oneOfFields = ["currentLthash"]),
|
|
22
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(PatchDebugData.prototype, "_newLthash", {
|
|
25
|
+
get: $util.oneOfGetter($oneOfFields = ["newLthash"]),
|
|
26
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(PatchDebugData.prototype, "_patchVersion", {
|
|
29
|
+
get: $util.oneOfGetter($oneOfFields = ["patchVersion"]),
|
|
30
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(PatchDebugData.prototype, "_collectionName", {
|
|
33
|
+
get: $util.oneOfGetter($oneOfFields = ["collectionName"]),
|
|
34
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(PatchDebugData.prototype, "_firstFourBytesFromAHashOfSnapshotMacKey", {
|
|
37
|
+
get: $util.oneOfGetter($oneOfFields = ["firstFourBytesFromAHashOfSnapshotMacKey"]),
|
|
38
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(PatchDebugData.prototype, "_newLthashSubtract", {
|
|
41
|
+
get: $util.oneOfGetter($oneOfFields = ["newLthashSubtract"]),
|
|
42
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(PatchDebugData.prototype, "_numberAdd", {
|
|
45
|
+
get: $util.oneOfGetter($oneOfFields = ["numberAdd"]),
|
|
46
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(PatchDebugData.prototype, "_numberRemove", {
|
|
49
|
+
get: $util.oneOfGetter($oneOfFields = ["numberRemove"]),
|
|
50
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(PatchDebugData.prototype, "_numberOverride", {
|
|
53
|
+
get: $util.oneOfGetter($oneOfFields = ["numberOverride"]),
|
|
54
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(PatchDebugData.prototype, "_senderPlatform", {
|
|
57
|
+
get: $util.oneOfGetter($oneOfFields = ["senderPlatform"]),
|
|
58
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(PatchDebugData.prototype, "_isSenderPrimary", {
|
|
61
|
+
get: $util.oneOfGetter($oneOfFields = ["isSenderPrimary"]),
|
|
62
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
63
|
+
});
|
|
64
|
+
PatchDebugData.create = function create(properties) {
|
|
65
|
+
return new PatchDebugData(properties);
|
|
66
|
+
};
|
|
67
|
+
PatchDebugData.encode = function encode(m, w) {
|
|
68
|
+
if (!w)
|
|
69
|
+
w = $Writer.create();
|
|
70
|
+
if (m.currentLthash != null && Object.hasOwnProperty.call(m, "currentLthash"))
|
|
71
|
+
w.uint32(10).bytes(m.currentLthash);
|
|
72
|
+
if (m.newLthash != null && Object.hasOwnProperty.call(m, "newLthash"))
|
|
73
|
+
w.uint32(18).bytes(m.newLthash);
|
|
74
|
+
if (m.patchVersion != null && Object.hasOwnProperty.call(m, "patchVersion"))
|
|
75
|
+
w.uint32(26).bytes(m.patchVersion);
|
|
76
|
+
if (m.collectionName != null && Object.hasOwnProperty.call(m, "collectionName"))
|
|
77
|
+
w.uint32(34).bytes(m.collectionName);
|
|
78
|
+
if (m.firstFourBytesFromAHashOfSnapshotMacKey != null && Object.hasOwnProperty.call(m, "firstFourBytesFromAHashOfSnapshotMacKey"))
|
|
79
|
+
w.uint32(42).bytes(m.firstFourBytesFromAHashOfSnapshotMacKey);
|
|
80
|
+
if (m.newLthashSubtract != null && Object.hasOwnProperty.call(m, "newLthashSubtract"))
|
|
81
|
+
w.uint32(50).bytes(m.newLthashSubtract);
|
|
82
|
+
if (m.numberAdd != null && Object.hasOwnProperty.call(m, "numberAdd"))
|
|
83
|
+
w.uint32(56).int32(m.numberAdd);
|
|
84
|
+
if (m.numberRemove != null && Object.hasOwnProperty.call(m, "numberRemove"))
|
|
85
|
+
w.uint32(64).int32(m.numberRemove);
|
|
86
|
+
if (m.numberOverride != null && Object.hasOwnProperty.call(m, "numberOverride"))
|
|
87
|
+
w.uint32(72).int32(m.numberOverride);
|
|
88
|
+
if (m.senderPlatform != null && Object.hasOwnProperty.call(m, "senderPlatform"))
|
|
89
|
+
w.uint32(80).int32(m.senderPlatform);
|
|
90
|
+
if (m.isSenderPrimary != null && Object.hasOwnProperty.call(m, "isSenderPrimary"))
|
|
91
|
+
w.uint32(88).bool(m.isSenderPrimary);
|
|
92
|
+
return w;
|
|
93
|
+
};
|
|
94
|
+
PatchDebugData.decode = function decode(r, l, e, n) {
|
|
95
|
+
if (!(r instanceof $Reader))
|
|
96
|
+
r = $Reader.create(r);
|
|
97
|
+
if (n === undefined)
|
|
98
|
+
n = 0;
|
|
99
|
+
if (n > $Reader.recursionLimit)
|
|
100
|
+
throw Error("maximum nesting depth exceeded");
|
|
101
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.PatchDebugData();
|
|
102
|
+
while (r.pos < c) {
|
|
103
|
+
var t = r.uint32();
|
|
104
|
+
if (t === e)
|
|
105
|
+
break;
|
|
106
|
+
switch (t >>> 3) {
|
|
107
|
+
case 1: {
|
|
108
|
+
m.currentLthash = r.bytes();
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
case 2: {
|
|
112
|
+
m.newLthash = r.bytes();
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
case 3: {
|
|
116
|
+
m.patchVersion = r.bytes();
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
case 4: {
|
|
120
|
+
m.collectionName = r.bytes();
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
case 5: {
|
|
124
|
+
m.firstFourBytesFromAHashOfSnapshotMacKey = r.bytes();
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
case 6: {
|
|
128
|
+
m.newLthashSubtract = r.bytes();
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
case 7: {
|
|
132
|
+
m.numberAdd = r.int32();
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
case 8: {
|
|
136
|
+
m.numberRemove = r.int32();
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
case 9: {
|
|
140
|
+
m.numberOverride = r.int32();
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
case 10: {
|
|
144
|
+
m.senderPlatform = r.int32();
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
case 11: {
|
|
148
|
+
m.isSenderPrimary = r.bool();
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
default:
|
|
152
|
+
r.skipType(t & 7, n);
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return m;
|
|
157
|
+
};
|
|
158
|
+
PatchDebugData.fromObject = function fromObject(d, n) {
|
|
159
|
+
if (d instanceof $root.proto.PatchDebugData)
|
|
160
|
+
return d;
|
|
161
|
+
if (n === undefined)
|
|
162
|
+
n = 0;
|
|
163
|
+
if (n > $util.recursionLimit)
|
|
164
|
+
throw Error("maximum nesting depth exceeded");
|
|
165
|
+
var m = new $root.proto.PatchDebugData();
|
|
166
|
+
if (d.currentLthash != null) {
|
|
167
|
+
if (typeof d.currentLthash === "string")
|
|
168
|
+
$util.base64.decode(d.currentLthash, m.currentLthash = $util.newBuffer($util.base64.length(d.currentLthash)), 0);
|
|
169
|
+
else if (d.currentLthash.length >= 0)
|
|
170
|
+
m.currentLthash = d.currentLthash;
|
|
171
|
+
}
|
|
172
|
+
if (d.newLthash != null) {
|
|
173
|
+
if (typeof d.newLthash === "string")
|
|
174
|
+
$util.base64.decode(d.newLthash, m.newLthash = $util.newBuffer($util.base64.length(d.newLthash)), 0);
|
|
175
|
+
else if (d.newLthash.length >= 0)
|
|
176
|
+
m.newLthash = d.newLthash;
|
|
177
|
+
}
|
|
178
|
+
if (d.patchVersion != null) {
|
|
179
|
+
if (typeof d.patchVersion === "string")
|
|
180
|
+
$util.base64.decode(d.patchVersion, m.patchVersion = $util.newBuffer($util.base64.length(d.patchVersion)), 0);
|
|
181
|
+
else if (d.patchVersion.length >= 0)
|
|
182
|
+
m.patchVersion = d.patchVersion;
|
|
183
|
+
}
|
|
184
|
+
if (d.collectionName != null) {
|
|
185
|
+
if (typeof d.collectionName === "string")
|
|
186
|
+
$util.base64.decode(d.collectionName, m.collectionName = $util.newBuffer($util.base64.length(d.collectionName)), 0);
|
|
187
|
+
else if (d.collectionName.length >= 0)
|
|
188
|
+
m.collectionName = d.collectionName;
|
|
189
|
+
}
|
|
190
|
+
if (d.firstFourBytesFromAHashOfSnapshotMacKey != null) {
|
|
191
|
+
if (typeof d.firstFourBytesFromAHashOfSnapshotMacKey === "string")
|
|
192
|
+
$util.base64.decode(d.firstFourBytesFromAHashOfSnapshotMacKey, m.firstFourBytesFromAHashOfSnapshotMacKey = $util.newBuffer($util.base64.length(d.firstFourBytesFromAHashOfSnapshotMacKey)), 0);
|
|
193
|
+
else if (d.firstFourBytesFromAHashOfSnapshotMacKey.length >= 0)
|
|
194
|
+
m.firstFourBytesFromAHashOfSnapshotMacKey = d.firstFourBytesFromAHashOfSnapshotMacKey;
|
|
195
|
+
}
|
|
196
|
+
if (d.newLthashSubtract != null) {
|
|
197
|
+
if (typeof d.newLthashSubtract === "string")
|
|
198
|
+
$util.base64.decode(d.newLthashSubtract, m.newLthashSubtract = $util.newBuffer($util.base64.length(d.newLthashSubtract)), 0);
|
|
199
|
+
else if (d.newLthashSubtract.length >= 0)
|
|
200
|
+
m.newLthashSubtract = d.newLthashSubtract;
|
|
201
|
+
}
|
|
202
|
+
if (d.numberAdd != null) {
|
|
203
|
+
m.numberAdd = d.numberAdd | 0;
|
|
204
|
+
}
|
|
205
|
+
if (d.numberRemove != null) {
|
|
206
|
+
m.numberRemove = d.numberRemove | 0;
|
|
207
|
+
}
|
|
208
|
+
if (d.numberOverride != null) {
|
|
209
|
+
m.numberOverride = d.numberOverride | 0;
|
|
210
|
+
}
|
|
211
|
+
switch (d.senderPlatform) {
|
|
212
|
+
default:
|
|
213
|
+
if (typeof d.senderPlatform === "number") {
|
|
214
|
+
m.senderPlatform = d.senderPlatform;
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
break;
|
|
218
|
+
case "ANDROID":
|
|
219
|
+
case 0:
|
|
220
|
+
m.senderPlatform = 0;
|
|
221
|
+
break;
|
|
222
|
+
case "SMBA":
|
|
223
|
+
case 1:
|
|
224
|
+
m.senderPlatform = 1;
|
|
225
|
+
break;
|
|
226
|
+
case "IPHONE":
|
|
227
|
+
case 2:
|
|
228
|
+
m.senderPlatform = 2;
|
|
229
|
+
break;
|
|
230
|
+
case "SMBI":
|
|
231
|
+
case 3:
|
|
232
|
+
m.senderPlatform = 3;
|
|
233
|
+
break;
|
|
234
|
+
case "WEB":
|
|
235
|
+
case 4:
|
|
236
|
+
m.senderPlatform = 4;
|
|
237
|
+
break;
|
|
238
|
+
case "UWP":
|
|
239
|
+
case 5:
|
|
240
|
+
m.senderPlatform = 5;
|
|
241
|
+
break;
|
|
242
|
+
case "DARWIN":
|
|
243
|
+
case 6:
|
|
244
|
+
m.senderPlatform = 6;
|
|
245
|
+
break;
|
|
246
|
+
case "IPAD":
|
|
247
|
+
case 7:
|
|
248
|
+
m.senderPlatform = 7;
|
|
249
|
+
break;
|
|
250
|
+
case "WEAROS":
|
|
251
|
+
case 8:
|
|
252
|
+
m.senderPlatform = 8;
|
|
253
|
+
break;
|
|
254
|
+
case "WASG":
|
|
255
|
+
case 9:
|
|
256
|
+
m.senderPlatform = 9;
|
|
257
|
+
break;
|
|
258
|
+
case "WEARM":
|
|
259
|
+
case 10:
|
|
260
|
+
m.senderPlatform = 10;
|
|
261
|
+
break;
|
|
262
|
+
case "CAPI":
|
|
263
|
+
case 11:
|
|
264
|
+
m.senderPlatform = 11;
|
|
265
|
+
break;
|
|
266
|
+
}
|
|
267
|
+
if (d.isSenderPrimary != null) {
|
|
268
|
+
m.isSenderPrimary = Boolean(d.isSenderPrimary);
|
|
269
|
+
}
|
|
270
|
+
return m;
|
|
271
|
+
};
|
|
272
|
+
PatchDebugData.toObject = function toObject(m, o) {
|
|
273
|
+
if (!o)
|
|
274
|
+
o = {};
|
|
275
|
+
var d = {};
|
|
276
|
+
if (m.currentLthash != null && m.hasOwnProperty("currentLthash")) {
|
|
277
|
+
d.currentLthash = o.bytes === String ? $util.base64.encode(m.currentLthash, 0, m.currentLthash.length) : o.bytes === Array ? Array.prototype.slice.call(m.currentLthash) : m.currentLthash;
|
|
278
|
+
if (o.oneofs)
|
|
279
|
+
d._currentLthash = "currentLthash";
|
|
280
|
+
}
|
|
281
|
+
if (m.newLthash != null && m.hasOwnProperty("newLthash")) {
|
|
282
|
+
d.newLthash = o.bytes === String ? $util.base64.encode(m.newLthash, 0, m.newLthash.length) : o.bytes === Array ? Array.prototype.slice.call(m.newLthash) : m.newLthash;
|
|
283
|
+
if (o.oneofs)
|
|
284
|
+
d._newLthash = "newLthash";
|
|
285
|
+
}
|
|
286
|
+
if (m.patchVersion != null && m.hasOwnProperty("patchVersion")) {
|
|
287
|
+
d.patchVersion = o.bytes === String ? $util.base64.encode(m.patchVersion, 0, m.patchVersion.length) : o.bytes === Array ? Array.prototype.slice.call(m.patchVersion) : m.patchVersion;
|
|
288
|
+
if (o.oneofs)
|
|
289
|
+
d._patchVersion = "patchVersion";
|
|
290
|
+
}
|
|
291
|
+
if (m.collectionName != null && m.hasOwnProperty("collectionName")) {
|
|
292
|
+
d.collectionName = o.bytes === String ? $util.base64.encode(m.collectionName, 0, m.collectionName.length) : o.bytes === Array ? Array.prototype.slice.call(m.collectionName) : m.collectionName;
|
|
293
|
+
if (o.oneofs)
|
|
294
|
+
d._collectionName = "collectionName";
|
|
295
|
+
}
|
|
296
|
+
if (m.firstFourBytesFromAHashOfSnapshotMacKey != null && m.hasOwnProperty("firstFourBytesFromAHashOfSnapshotMacKey")) {
|
|
297
|
+
d.firstFourBytesFromAHashOfSnapshotMacKey = o.bytes === String ? $util.base64.encode(m.firstFourBytesFromAHashOfSnapshotMacKey, 0, m.firstFourBytesFromAHashOfSnapshotMacKey.length) : o.bytes === Array ? Array.prototype.slice.call(m.firstFourBytesFromAHashOfSnapshotMacKey) : m.firstFourBytesFromAHashOfSnapshotMacKey;
|
|
298
|
+
if (o.oneofs)
|
|
299
|
+
d._firstFourBytesFromAHashOfSnapshotMacKey = "firstFourBytesFromAHashOfSnapshotMacKey";
|
|
300
|
+
}
|
|
301
|
+
if (m.newLthashSubtract != null && m.hasOwnProperty("newLthashSubtract")) {
|
|
302
|
+
d.newLthashSubtract = o.bytes === String ? $util.base64.encode(m.newLthashSubtract, 0, m.newLthashSubtract.length) : o.bytes === Array ? Array.prototype.slice.call(m.newLthashSubtract) : m.newLthashSubtract;
|
|
303
|
+
if (o.oneofs)
|
|
304
|
+
d._newLthashSubtract = "newLthashSubtract";
|
|
305
|
+
}
|
|
306
|
+
if (m.numberAdd != null && m.hasOwnProperty("numberAdd")) {
|
|
307
|
+
d.numberAdd = m.numberAdd;
|
|
308
|
+
if (o.oneofs)
|
|
309
|
+
d._numberAdd = "numberAdd";
|
|
310
|
+
}
|
|
311
|
+
if (m.numberRemove != null && m.hasOwnProperty("numberRemove")) {
|
|
312
|
+
d.numberRemove = m.numberRemove;
|
|
313
|
+
if (o.oneofs)
|
|
314
|
+
d._numberRemove = "numberRemove";
|
|
315
|
+
}
|
|
316
|
+
if (m.numberOverride != null && m.hasOwnProperty("numberOverride")) {
|
|
317
|
+
d.numberOverride = m.numberOverride;
|
|
318
|
+
if (o.oneofs)
|
|
319
|
+
d._numberOverride = "numberOverride";
|
|
320
|
+
}
|
|
321
|
+
if (m.senderPlatform != null && m.hasOwnProperty("senderPlatform")) {
|
|
322
|
+
d.senderPlatform = o.enums === String ? $root.proto.PatchDebugData.Platform[m.senderPlatform] === undefined ? m.senderPlatform : $root.proto.PatchDebugData.Platform[m.senderPlatform] : m.senderPlatform;
|
|
323
|
+
if (o.oneofs)
|
|
324
|
+
d._senderPlatform = "senderPlatform";
|
|
325
|
+
}
|
|
326
|
+
if (m.isSenderPrimary != null && m.hasOwnProperty("isSenderPrimary")) {
|
|
327
|
+
d.isSenderPrimary = m.isSenderPrimary;
|
|
328
|
+
if (o.oneofs)
|
|
329
|
+
d._isSenderPrimary = "isSenderPrimary";
|
|
330
|
+
}
|
|
331
|
+
return d;
|
|
332
|
+
};
|
|
333
|
+
PatchDebugData.prototype.toJSON = function toJSON() {
|
|
334
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
335
|
+
};
|
|
336
|
+
PatchDebugData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
337
|
+
if (typeUrlPrefix === undefined) {
|
|
338
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
339
|
+
}
|
|
340
|
+
return typeUrlPrefix + "/proto.PatchDebugData";
|
|
341
|
+
};
|
|
342
|
+
$lazy(PatchDebugData, "Platform", function() {
|
|
343
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
344
|
+
values[valuesById[0] = "ANDROID"] = 0;
|
|
345
|
+
values[valuesById[1] = "SMBA"] = 1;
|
|
346
|
+
values[valuesById[2] = "IPHONE"] = 2;
|
|
347
|
+
values[valuesById[3] = "SMBI"] = 3;
|
|
348
|
+
values[valuesById[4] = "WEB"] = 4;
|
|
349
|
+
values[valuesById[5] = "UWP"] = 5;
|
|
350
|
+
values[valuesById[6] = "DARWIN"] = 6;
|
|
351
|
+
values[valuesById[7] = "IPAD"] = 7;
|
|
352
|
+
values[valuesById[8] = "WEAROS"] = 8;
|
|
353
|
+
values[valuesById[9] = "WASG"] = 9;
|
|
354
|
+
values[valuesById[10] = "WEARM"] = 10;
|
|
355
|
+
values[valuesById[11] = "CAPI"] = 11;
|
|
356
|
+
return values;
|
|
357
|
+
});
|
|
358
|
+
return PatchDebugData;
|