@hiroosy/baileys-lite 0.3.3 → 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 +247 -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
- package/src/binary/wa-binary.js +4 -2
- package/src/defaults.js +2 -1
- package/src/foundation/cache.js +99 -24
- package/src/foundation/memory.js +103 -0
- package/src/signal/libsignal.js +1 -8
- package/src/signal/signal-repository.js +6 -4
- package/src/socket/chats.js +2 -0
- package/src/socket/messages-recv.js +5 -3
- package/src/socket/messages-send.js +2 -2
- package/src/socket/socket-core.js +3 -0
- package/src/utils/auth-state-core.js +2 -1
- package/src/utils/chat-sync.js +4 -0
- package/src/utils/media.js +13 -8
- package/src/utils/message-processing.js +22 -6
- package/src/utils/wa-protocol-core.js +6 -5
- package/src/wam/wam-constants.js +22 -22851
- package/src/wam/wam-data.json +1 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function MsgRowOpaqueData(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
|
+
MsgRowOpaqueData.prototype.currentMsg = null;
|
|
9
|
+
MsgRowOpaqueData.prototype.quotedMsg = null;
|
|
10
|
+
let $oneOfFields;
|
|
11
|
+
Object.defineProperty(MsgRowOpaqueData.prototype, "_currentMsg", {
|
|
12
|
+
get: $util.oneOfGetter($oneOfFields = ["currentMsg"]),
|
|
13
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(MsgRowOpaqueData.prototype, "_quotedMsg", {
|
|
16
|
+
get: $util.oneOfGetter($oneOfFields = ["quotedMsg"]),
|
|
17
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18
|
+
});
|
|
19
|
+
MsgRowOpaqueData.create = function create(properties) {
|
|
20
|
+
return new MsgRowOpaqueData(properties);
|
|
21
|
+
};
|
|
22
|
+
MsgRowOpaqueData.encode = function encode(m, w) {
|
|
23
|
+
if (!w)
|
|
24
|
+
w = $Writer.create();
|
|
25
|
+
if (m.currentMsg != null && Object.hasOwnProperty.call(m, "currentMsg"))
|
|
26
|
+
$root.proto.MsgOpaqueData.encode(m.currentMsg, w.uint32(10).fork()).ldelim();
|
|
27
|
+
if (m.quotedMsg != null && Object.hasOwnProperty.call(m, "quotedMsg"))
|
|
28
|
+
$root.proto.MsgOpaqueData.encode(m.quotedMsg, w.uint32(18).fork()).ldelim();
|
|
29
|
+
return w;
|
|
30
|
+
};
|
|
31
|
+
MsgRowOpaqueData.decode = function decode(r, l, e, n) {
|
|
32
|
+
if (!(r instanceof $Reader))
|
|
33
|
+
r = $Reader.create(r);
|
|
34
|
+
if (n === undefined)
|
|
35
|
+
n = 0;
|
|
36
|
+
if (n > $Reader.recursionLimit)
|
|
37
|
+
throw Error("maximum nesting depth exceeded");
|
|
38
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.MsgRowOpaqueData();
|
|
39
|
+
while (r.pos < c) {
|
|
40
|
+
var t = r.uint32();
|
|
41
|
+
if (t === e)
|
|
42
|
+
break;
|
|
43
|
+
switch (t >>> 3) {
|
|
44
|
+
case 1: {
|
|
45
|
+
m.currentMsg = $root.proto.MsgOpaqueData.decode(r, r.uint32(), undefined, n + 1);
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
case 2: {
|
|
49
|
+
m.quotedMsg = $root.proto.MsgOpaqueData.decode(r, r.uint32(), undefined, n + 1);
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
default:
|
|
53
|
+
r.skipType(t & 7, n);
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return m;
|
|
58
|
+
};
|
|
59
|
+
MsgRowOpaqueData.fromObject = function fromObject(d, n) {
|
|
60
|
+
if (d instanceof $root.proto.MsgRowOpaqueData)
|
|
61
|
+
return d;
|
|
62
|
+
if (n === undefined)
|
|
63
|
+
n = 0;
|
|
64
|
+
if (n > $util.recursionLimit)
|
|
65
|
+
throw Error("maximum nesting depth exceeded");
|
|
66
|
+
var m = new $root.proto.MsgRowOpaqueData();
|
|
67
|
+
if (d.currentMsg != null) {
|
|
68
|
+
if (typeof d.currentMsg !== "object")
|
|
69
|
+
throw TypeError(".proto.MsgRowOpaqueData.currentMsg: object expected");
|
|
70
|
+
m.currentMsg = $root.proto.MsgOpaqueData.fromObject(d.currentMsg, n + 1);
|
|
71
|
+
}
|
|
72
|
+
if (d.quotedMsg != null) {
|
|
73
|
+
if (typeof d.quotedMsg !== "object")
|
|
74
|
+
throw TypeError(".proto.MsgRowOpaqueData.quotedMsg: object expected");
|
|
75
|
+
m.quotedMsg = $root.proto.MsgOpaqueData.fromObject(d.quotedMsg, n + 1);
|
|
76
|
+
}
|
|
77
|
+
return m;
|
|
78
|
+
};
|
|
79
|
+
MsgRowOpaqueData.toObject = function toObject(m, o) {
|
|
80
|
+
if (!o)
|
|
81
|
+
o = {};
|
|
82
|
+
var d = {};
|
|
83
|
+
if (m.currentMsg != null && m.hasOwnProperty("currentMsg")) {
|
|
84
|
+
d.currentMsg = $root.proto.MsgOpaqueData.toObject(m.currentMsg, o);
|
|
85
|
+
if (o.oneofs)
|
|
86
|
+
d._currentMsg = "currentMsg";
|
|
87
|
+
}
|
|
88
|
+
if (m.quotedMsg != null && m.hasOwnProperty("quotedMsg")) {
|
|
89
|
+
d.quotedMsg = $root.proto.MsgOpaqueData.toObject(m.quotedMsg, o);
|
|
90
|
+
if (o.oneofs)
|
|
91
|
+
d._quotedMsg = "quotedMsg";
|
|
92
|
+
}
|
|
93
|
+
return d;
|
|
94
|
+
};
|
|
95
|
+
MsgRowOpaqueData.prototype.toJSON = function toJSON() {
|
|
96
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
97
|
+
};
|
|
98
|
+
MsgRowOpaqueData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
99
|
+
if (typeUrlPrefix === undefined) {
|
|
100
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
101
|
+
}
|
|
102
|
+
return typeUrlPrefix + "/proto.MsgRowOpaqueData";
|
|
103
|
+
};
|
|
104
|
+
return MsgRowOpaqueData;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
3
|
+
values[valuesById[2] = "STAR_ACTION"] = 2;
|
|
4
|
+
values[valuesById[3] = "CONTACT_ACTION"] = 3;
|
|
5
|
+
values[valuesById[4] = "MUTE_ACTION"] = 4;
|
|
6
|
+
values[valuesById[5] = "PIN_ACTION"] = 5;
|
|
7
|
+
values[valuesById[6] = "SECURITY_NOTIFICATION_SETTING"] = 6;
|
|
8
|
+
values[valuesById[7] = "PUSH_NAME_SETTING"] = 7;
|
|
9
|
+
values[valuesById[8] = "QUICK_REPLY_ACTION"] = 8;
|
|
10
|
+
values[valuesById[11] = "RECENT_EMOJI_WEIGHTS_ACTION"] = 11;
|
|
11
|
+
values[valuesById[13] = "LABEL_MESSAGE_ACTION"] = 13;
|
|
12
|
+
values[valuesById[14] = "LABEL_EDIT_ACTION"] = 14;
|
|
13
|
+
values[valuesById[15] = "LABEL_ASSOCIATION_ACTION"] = 15;
|
|
14
|
+
values[valuesById[16] = "LOCALE_SETTING"] = 16;
|
|
15
|
+
values[valuesById[17] = "ARCHIVE_CHAT_ACTION"] = 17;
|
|
16
|
+
values[valuesById[18] = "DELETE_MESSAGE_FOR_ME_ACTION"] = 18;
|
|
17
|
+
values[valuesById[19] = "KEY_EXPIRATION"] = 19;
|
|
18
|
+
values[valuesById[20] = "MARK_CHAT_AS_READ_ACTION"] = 20;
|
|
19
|
+
values[valuesById[21] = "CLEAR_CHAT_ACTION"] = 21;
|
|
20
|
+
values[valuesById[22] = "DELETE_CHAT_ACTION"] = 22;
|
|
21
|
+
values[valuesById[23] = "UNARCHIVE_CHATS_SETTING"] = 23;
|
|
22
|
+
values[valuesById[24] = "PRIMARY_FEATURE"] = 24;
|
|
23
|
+
values[valuesById[26] = "ANDROID_UNSUPPORTED_ACTIONS"] = 26;
|
|
24
|
+
values[valuesById[27] = "AGENT_ACTION"] = 27;
|
|
25
|
+
values[valuesById[28] = "SUBSCRIPTION_ACTION"] = 28;
|
|
26
|
+
values[valuesById[29] = "USER_STATUS_MUTE_ACTION"] = 29;
|
|
27
|
+
values[valuesById[30] = "TIME_FORMAT_ACTION"] = 30;
|
|
28
|
+
values[valuesById[31] = "NUX_ACTION"] = 31;
|
|
29
|
+
values[valuesById[32] = "PRIMARY_VERSION_ACTION"] = 32;
|
|
30
|
+
values[valuesById[33] = "STICKER_ACTION"] = 33;
|
|
31
|
+
values[valuesById[34] = "REMOVE_RECENT_STICKER_ACTION"] = 34;
|
|
32
|
+
values[valuesById[35] = "CHAT_ASSIGNMENT"] = 35;
|
|
33
|
+
values[valuesById[36] = "CHAT_ASSIGNMENT_OPENED_STATUS"] = 36;
|
|
34
|
+
values[valuesById[37] = "PN_FOR_LID_CHAT_ACTION"] = 37;
|
|
35
|
+
values[valuesById[38] = "MARKETING_MESSAGE_ACTION"] = 38;
|
|
36
|
+
values[valuesById[39] = "MARKETING_MESSAGE_BROADCAST_ACTION"] = 39;
|
|
37
|
+
values[valuesById[40] = "EXTERNAL_WEB_BETA_ACTION"] = 40;
|
|
38
|
+
values[valuesById[41] = "PRIVACY_SETTING_RELAY_ALL_CALLS"] = 41;
|
|
39
|
+
values[valuesById[42] = "CALL_LOG_ACTION"] = 42;
|
|
40
|
+
values[valuesById[43] = "UGC_BOT"] = 43;
|
|
41
|
+
values[valuesById[44] = "STATUS_PRIVACY"] = 44;
|
|
42
|
+
values[valuesById[45] = "BOT_WELCOME_REQUEST_ACTION"] = 45;
|
|
43
|
+
values[valuesById[46] = "DELETE_INDIVIDUAL_CALL_LOG"] = 46;
|
|
44
|
+
values[valuesById[47] = "LABEL_REORDERING_ACTION"] = 47;
|
|
45
|
+
values[valuesById[48] = "PAYMENT_INFO_ACTION"] = 48;
|
|
46
|
+
values[valuesById[49] = "CUSTOM_PAYMENT_METHODS_ACTION"] = 49;
|
|
47
|
+
values[valuesById[50] = "LOCK_CHAT_ACTION"] = 50;
|
|
48
|
+
values[valuesById[51] = "CHAT_LOCK_SETTINGS"] = 51;
|
|
49
|
+
values[valuesById[52] = "WAMO_USER_IDENTIFIER_ACTION"] = 52;
|
|
50
|
+
values[valuesById[53] = "PRIVACY_SETTING_DISABLE_LINK_PREVIEWS_ACTION"] = 53;
|
|
51
|
+
values[valuesById[54] = "DEVICE_CAPABILITIES"] = 54;
|
|
52
|
+
values[valuesById[55] = "NOTE_EDIT_ACTION"] = 55;
|
|
53
|
+
values[valuesById[56] = "FAVORITES_ACTION"] = 56;
|
|
54
|
+
values[valuesById[57] = "MERCHANT_PAYMENT_PARTNER_ACTION"] = 57;
|
|
55
|
+
values[valuesById[58] = "WAFFLE_ACCOUNT_LINK_STATE_ACTION"] = 58;
|
|
56
|
+
values[valuesById[59] = "USERNAME_CHAT_START_MODE"] = 59;
|
|
57
|
+
values[valuesById[60] = "NOTIFICATION_ACTIVITY_SETTING_ACTION"] = 60;
|
|
58
|
+
values[valuesById[61] = "LID_CONTACT_ACTION"] = 61;
|
|
59
|
+
values[valuesById[62] = "CTWA_PER_CUSTOMER_DATA_SHARING_ACTION"] = 62;
|
|
60
|
+
values[valuesById[63] = "PAYMENT_TOS_ACTION"] = 63;
|
|
61
|
+
values[valuesById[64] = "PRIVACY_SETTING_CHANNELS_PERSONALISED_RECOMMENDATION_ACTION"] = 64;
|
|
62
|
+
values[valuesById[65] = "BUSINESS_BROADCAST_ASSOCIATION_ACTION"] = 65;
|
|
63
|
+
values[valuesById[66] = "DETECTED_OUTCOMES_STATUS_ACTION"] = 66;
|
|
64
|
+
values[valuesById[68] = "MAIBA_AI_FEATURES_CONTROL_ACTION"] = 68;
|
|
65
|
+
values[valuesById[69] = "BUSINESS_BROADCAST_LIST_ACTION"] = 69;
|
|
66
|
+
values[valuesById[70] = "MUSIC_USER_ID_ACTION"] = 70;
|
|
67
|
+
values[valuesById[71] = "STATUS_POST_OPT_IN_NOTIFICATION_PREFERENCES_ACTION"] = 71;
|
|
68
|
+
values[valuesById[72] = "AVATAR_UPDATED_ACTION"] = 72;
|
|
69
|
+
values[valuesById[73] = "GALAXY_FLOW_ACTION"] = 73;
|
|
70
|
+
values[valuesById[74] = "PRIVATE_PROCESSING_SETTING_ACTION"] = 74;
|
|
71
|
+
values[valuesById[75] = "NEWSLETTER_SAVED_INTERESTS_ACTION"] = 75;
|
|
72
|
+
values[valuesById[76] = "AI_THREAD_RENAME_ACTION"] = 76;
|
|
73
|
+
values[valuesById[77] = "INTERACTIVE_MESSAGE_ACTION"] = 77;
|
|
74
|
+
values[valuesById[78] = "SETTINGS_SYNC_ACTION"] = 78;
|
|
75
|
+
values[valuesById[79] = "OUT_CONTACT_ACTION"] = 79;
|
|
76
|
+
values[valuesById[80] = "NCT_SALT_SYNC_ACTION"] = 80;
|
|
77
|
+
values[valuesById[81] = "BUSINESS_BROADCAST_CAMPAIGN_ACTION"] = 81;
|
|
78
|
+
values[valuesById[82] = "BUSINESS_BROADCAST_INSIGHTS_ACTION"] = 82;
|
|
79
|
+
values[valuesById[83] = "CUSTOMER_DATA_ACTION"] = 83;
|
|
80
|
+
values[valuesById[84] = "SUBSCRIPTIONS_SYNC_V2_ACTION"] = 84;
|
|
81
|
+
values[valuesById[85] = "THREAD_PIN_ACTION"] = 85;
|
|
82
|
+
values[valuesById[86] = "AUTO_ORGANIZE_BUSINESS_CHAT_SETTING"] = 86;
|
|
83
|
+
values[valuesById[87] = "BIZ_AI_SETTINGS_NUDGE_ACTION"] = 87;
|
|
84
|
+
values[valuesById[88] = "COEX_V2_VERSION_ACTION"] = 88;
|
|
85
|
+
values[valuesById[89] = "WASA_ROOT_SECRET_ACTION"] = 89;
|
|
86
|
+
values[valuesById[10001] = "SHARE_OWN_PN"] = 10001;
|
|
87
|
+
values[valuesById[10002] = "BUSINESS_BROADCAST_ACTION"] = 10002;
|
|
88
|
+
values[valuesById[10003] = "AI_THREAD_DELETE_ACTION"] = 10003;
|
|
89
|
+
return values;
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function NoiseCertificate(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
|
+
NoiseCertificate.prototype.details = null;
|
|
9
|
+
NoiseCertificate.prototype.signature = null;
|
|
10
|
+
let $oneOfFields;
|
|
11
|
+
Object.defineProperty(NoiseCertificate.prototype, "_details", {
|
|
12
|
+
get: $util.oneOfGetter($oneOfFields = ["details"]),
|
|
13
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(NoiseCertificate.prototype, "_signature", {
|
|
16
|
+
get: $util.oneOfGetter($oneOfFields = ["signature"]),
|
|
17
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18
|
+
});
|
|
19
|
+
NoiseCertificate.create = function create(properties) {
|
|
20
|
+
return new NoiseCertificate(properties);
|
|
21
|
+
};
|
|
22
|
+
NoiseCertificate.encode = function encode(m, w) {
|
|
23
|
+
if (!w)
|
|
24
|
+
w = $Writer.create();
|
|
25
|
+
if (m.details != null && Object.hasOwnProperty.call(m, "details"))
|
|
26
|
+
w.uint32(10).bytes(m.details);
|
|
27
|
+
if (m.signature != null && Object.hasOwnProperty.call(m, "signature"))
|
|
28
|
+
w.uint32(18).bytes(m.signature);
|
|
29
|
+
return w;
|
|
30
|
+
};
|
|
31
|
+
NoiseCertificate.decode = function decode(r, l, e, n) {
|
|
32
|
+
if (!(r instanceof $Reader))
|
|
33
|
+
r = $Reader.create(r);
|
|
34
|
+
if (n === undefined)
|
|
35
|
+
n = 0;
|
|
36
|
+
if (n > $Reader.recursionLimit)
|
|
37
|
+
throw Error("maximum nesting depth exceeded");
|
|
38
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.NoiseCertificate();
|
|
39
|
+
while (r.pos < c) {
|
|
40
|
+
var t = r.uint32();
|
|
41
|
+
if (t === e)
|
|
42
|
+
break;
|
|
43
|
+
switch (t >>> 3) {
|
|
44
|
+
case 1: {
|
|
45
|
+
m.details = r.bytes();
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
case 2: {
|
|
49
|
+
m.signature = r.bytes();
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
default:
|
|
53
|
+
r.skipType(t & 7, n);
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return m;
|
|
58
|
+
};
|
|
59
|
+
NoiseCertificate.fromObject = function fromObject(d, n) {
|
|
60
|
+
if (d instanceof $root.proto.NoiseCertificate)
|
|
61
|
+
return d;
|
|
62
|
+
if (n === undefined)
|
|
63
|
+
n = 0;
|
|
64
|
+
if (n > $util.recursionLimit)
|
|
65
|
+
throw Error("maximum nesting depth exceeded");
|
|
66
|
+
var m = new $root.proto.NoiseCertificate();
|
|
67
|
+
if (d.details != null) {
|
|
68
|
+
if (typeof d.details === "string")
|
|
69
|
+
$util.base64.decode(d.details, m.details = $util.newBuffer($util.base64.length(d.details)), 0);
|
|
70
|
+
else if (d.details.length >= 0)
|
|
71
|
+
m.details = d.details;
|
|
72
|
+
}
|
|
73
|
+
if (d.signature != null) {
|
|
74
|
+
if (typeof d.signature === "string")
|
|
75
|
+
$util.base64.decode(d.signature, m.signature = $util.newBuffer($util.base64.length(d.signature)), 0);
|
|
76
|
+
else if (d.signature.length >= 0)
|
|
77
|
+
m.signature = d.signature;
|
|
78
|
+
}
|
|
79
|
+
return m;
|
|
80
|
+
};
|
|
81
|
+
NoiseCertificate.toObject = function toObject(m, o) {
|
|
82
|
+
if (!o)
|
|
83
|
+
o = {};
|
|
84
|
+
var d = {};
|
|
85
|
+
if (m.details != null && m.hasOwnProperty("details")) {
|
|
86
|
+
d.details = o.bytes === String ? $util.base64.encode(m.details, 0, m.details.length) : o.bytes === Array ? Array.prototype.slice.call(m.details) : m.details;
|
|
87
|
+
if (o.oneofs)
|
|
88
|
+
d._details = "details";
|
|
89
|
+
}
|
|
90
|
+
if (m.signature != null && m.hasOwnProperty("signature")) {
|
|
91
|
+
d.signature = o.bytes === String ? $util.base64.encode(m.signature, 0, m.signature.length) : o.bytes === Array ? Array.prototype.slice.call(m.signature) : m.signature;
|
|
92
|
+
if (o.oneofs)
|
|
93
|
+
d._signature = "signature";
|
|
94
|
+
}
|
|
95
|
+
return d;
|
|
96
|
+
};
|
|
97
|
+
NoiseCertificate.prototype.toJSON = function toJSON() {
|
|
98
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
99
|
+
};
|
|
100
|
+
NoiseCertificate.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
101
|
+
if (typeUrlPrefix === undefined) {
|
|
102
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
103
|
+
}
|
|
104
|
+
return typeUrlPrefix + "/proto.NoiseCertificate";
|
|
105
|
+
};
|
|
106
|
+
$lazy(NoiseCertificate, "Details", function() {
|
|
107
|
+
function Details(p) {
|
|
108
|
+
if (p)
|
|
109
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
110
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
111
|
+
this[ks[i]] = p[ks[i]];
|
|
112
|
+
}
|
|
113
|
+
Details.prototype.serial = null;
|
|
114
|
+
Details.prototype.issuer = null;
|
|
115
|
+
Details.prototype.expires = null;
|
|
116
|
+
Details.prototype.subject = null;
|
|
117
|
+
Details.prototype.key = null;
|
|
118
|
+
let $oneOfFields;
|
|
119
|
+
Object.defineProperty(Details.prototype, "_serial", {
|
|
120
|
+
get: $util.oneOfGetter($oneOfFields = ["serial"]),
|
|
121
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(Details.prototype, "_issuer", {
|
|
124
|
+
get: $util.oneOfGetter($oneOfFields = ["issuer"]),
|
|
125
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
126
|
+
});
|
|
127
|
+
Object.defineProperty(Details.prototype, "_expires", {
|
|
128
|
+
get: $util.oneOfGetter($oneOfFields = ["expires"]),
|
|
129
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(Details.prototype, "_subject", {
|
|
132
|
+
get: $util.oneOfGetter($oneOfFields = ["subject"]),
|
|
133
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(Details.prototype, "_key", {
|
|
136
|
+
get: $util.oneOfGetter($oneOfFields = ["key"]),
|
|
137
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
138
|
+
});
|
|
139
|
+
Details.create = function create(properties) {
|
|
140
|
+
return new Details(properties);
|
|
141
|
+
};
|
|
142
|
+
Details.encode = function encode(m, w) {
|
|
143
|
+
if (!w)
|
|
144
|
+
w = $Writer.create();
|
|
145
|
+
if (m.serial != null && Object.hasOwnProperty.call(m, "serial"))
|
|
146
|
+
w.uint32(8).uint32(m.serial);
|
|
147
|
+
if (m.issuer != null && Object.hasOwnProperty.call(m, "issuer"))
|
|
148
|
+
w.uint32(18).string(m.issuer);
|
|
149
|
+
if (m.expires != null && Object.hasOwnProperty.call(m, "expires"))
|
|
150
|
+
w.uint32(24).uint64(m.expires);
|
|
151
|
+
if (m.subject != null && Object.hasOwnProperty.call(m, "subject"))
|
|
152
|
+
w.uint32(34).string(m.subject);
|
|
153
|
+
if (m.key != null && Object.hasOwnProperty.call(m, "key"))
|
|
154
|
+
w.uint32(42).bytes(m.key);
|
|
155
|
+
return w;
|
|
156
|
+
};
|
|
157
|
+
Details.decode = function decode(r, l, e, n) {
|
|
158
|
+
if (!(r instanceof $Reader))
|
|
159
|
+
r = $Reader.create(r);
|
|
160
|
+
if (n === undefined)
|
|
161
|
+
n = 0;
|
|
162
|
+
if (n > $Reader.recursionLimit)
|
|
163
|
+
throw Error("maximum nesting depth exceeded");
|
|
164
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.NoiseCertificate.Details();
|
|
165
|
+
while (r.pos < c) {
|
|
166
|
+
var t = r.uint32();
|
|
167
|
+
if (t === e)
|
|
168
|
+
break;
|
|
169
|
+
switch (t >>> 3) {
|
|
170
|
+
case 1: {
|
|
171
|
+
m.serial = r.uint32();
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
case 2: {
|
|
175
|
+
m.issuer = r.string();
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
case 3: {
|
|
179
|
+
m.expires = r.uint64();
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
case 4: {
|
|
183
|
+
m.subject = r.string();
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
case 5: {
|
|
187
|
+
m.key = r.bytes();
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
default:
|
|
191
|
+
r.skipType(t & 7, n);
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return m;
|
|
196
|
+
};
|
|
197
|
+
Details.fromObject = function fromObject(d, n) {
|
|
198
|
+
if (d instanceof $root.proto.NoiseCertificate.Details)
|
|
199
|
+
return d;
|
|
200
|
+
if (n === undefined)
|
|
201
|
+
n = 0;
|
|
202
|
+
if (n > $util.recursionLimit)
|
|
203
|
+
throw Error("maximum nesting depth exceeded");
|
|
204
|
+
var m = new $root.proto.NoiseCertificate.Details();
|
|
205
|
+
if (d.serial != null) {
|
|
206
|
+
m.serial = d.serial >>> 0;
|
|
207
|
+
}
|
|
208
|
+
if (d.issuer != null) {
|
|
209
|
+
m.issuer = String(d.issuer);
|
|
210
|
+
}
|
|
211
|
+
if (d.expires != null) {
|
|
212
|
+
if ($util.Long)
|
|
213
|
+
(m.expires = $util.Long.fromValue(d.expires)).unsigned = true;
|
|
214
|
+
else if (typeof d.expires === "string")
|
|
215
|
+
m.expires = parseInt(d.expires, 10);
|
|
216
|
+
else if (typeof d.expires === "number")
|
|
217
|
+
m.expires = d.expires;
|
|
218
|
+
else if (typeof d.expires === "object")
|
|
219
|
+
m.expires = new $util.LongBits(d.expires.low >>> 0, d.expires.high >>> 0).toNumber(true);
|
|
220
|
+
}
|
|
221
|
+
if (d.subject != null) {
|
|
222
|
+
m.subject = String(d.subject);
|
|
223
|
+
}
|
|
224
|
+
if (d.key != null) {
|
|
225
|
+
if (typeof d.key === "string")
|
|
226
|
+
$util.base64.decode(d.key, m.key = $util.newBuffer($util.base64.length(d.key)), 0);
|
|
227
|
+
else if (d.key.length >= 0)
|
|
228
|
+
m.key = d.key;
|
|
229
|
+
}
|
|
230
|
+
return m;
|
|
231
|
+
};
|
|
232
|
+
Details.toObject = function toObject(m, o) {
|
|
233
|
+
if (!o)
|
|
234
|
+
o = {};
|
|
235
|
+
var d = {};
|
|
236
|
+
if (m.serial != null && m.hasOwnProperty("serial")) {
|
|
237
|
+
d.serial = m.serial;
|
|
238
|
+
if (o.oneofs)
|
|
239
|
+
d._serial = "serial";
|
|
240
|
+
}
|
|
241
|
+
if (m.issuer != null && m.hasOwnProperty("issuer")) {
|
|
242
|
+
d.issuer = m.issuer;
|
|
243
|
+
if (o.oneofs)
|
|
244
|
+
d._issuer = "issuer";
|
|
245
|
+
}
|
|
246
|
+
if (m.expires != null && m.hasOwnProperty("expires")) {
|
|
247
|
+
if (typeof m.expires === "number")
|
|
248
|
+
d.expires = o.longs === String ? String(m.expires) : m.expires;
|
|
249
|
+
else
|
|
250
|
+
d.expires = o.longs === String ? longToString(m.expires, true) : o.longs === Number ? longToNumber(m.expires, true) : m.expires;
|
|
251
|
+
if (o.oneofs)
|
|
252
|
+
d._expires = "expires";
|
|
253
|
+
}
|
|
254
|
+
if (m.subject != null && m.hasOwnProperty("subject")) {
|
|
255
|
+
d.subject = m.subject;
|
|
256
|
+
if (o.oneofs)
|
|
257
|
+
d._subject = "subject";
|
|
258
|
+
}
|
|
259
|
+
if (m.key != null && m.hasOwnProperty("key")) {
|
|
260
|
+
d.key = o.bytes === String ? $util.base64.encode(m.key, 0, m.key.length) : o.bytes === Array ? Array.prototype.slice.call(m.key) : m.key;
|
|
261
|
+
if (o.oneofs)
|
|
262
|
+
d._key = "key";
|
|
263
|
+
}
|
|
264
|
+
return d;
|
|
265
|
+
};
|
|
266
|
+
Details.prototype.toJSON = function toJSON() {
|
|
267
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
268
|
+
};
|
|
269
|
+
Details.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
270
|
+
if (typeUrlPrefix === undefined) {
|
|
271
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
272
|
+
}
|
|
273
|
+
return typeUrlPrefix + "/proto.NoiseCertificate.Details";
|
|
274
|
+
};
|
|
275
|
+
return Details;
|
|
276
|
+
});
|
|
277
|
+
return NoiseCertificate;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function NotificationMessageInfo(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
|
+
NotificationMessageInfo.prototype.key = null;
|
|
9
|
+
NotificationMessageInfo.prototype.message = null;
|
|
10
|
+
NotificationMessageInfo.prototype.messageTimestamp = null;
|
|
11
|
+
NotificationMessageInfo.prototype.participant = null;
|
|
12
|
+
let $oneOfFields;
|
|
13
|
+
Object.defineProperty(NotificationMessageInfo.prototype, "_key", {
|
|
14
|
+
get: $util.oneOfGetter($oneOfFields = ["key"]),
|
|
15
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(NotificationMessageInfo.prototype, "_message", {
|
|
18
|
+
get: $util.oneOfGetter($oneOfFields = ["message"]),
|
|
19
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(NotificationMessageInfo.prototype, "_messageTimestamp", {
|
|
22
|
+
get: $util.oneOfGetter($oneOfFields = ["messageTimestamp"]),
|
|
23
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(NotificationMessageInfo.prototype, "_participant", {
|
|
26
|
+
get: $util.oneOfGetter($oneOfFields = ["participant"]),
|
|
27
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
28
|
+
});
|
|
29
|
+
NotificationMessageInfo.create = function create(properties) {
|
|
30
|
+
return new NotificationMessageInfo(properties);
|
|
31
|
+
};
|
|
32
|
+
NotificationMessageInfo.encode = function encode(m, w) {
|
|
33
|
+
if (!w)
|
|
34
|
+
w = $Writer.create();
|
|
35
|
+
if (m.key != null && Object.hasOwnProperty.call(m, "key"))
|
|
36
|
+
$root.proto.MessageKey.encode(m.key, w.uint32(10).fork()).ldelim();
|
|
37
|
+
if (m.message != null && Object.hasOwnProperty.call(m, "message"))
|
|
38
|
+
$root.proto.Message.encode(m.message, w.uint32(18).fork()).ldelim();
|
|
39
|
+
if (m.messageTimestamp != null && Object.hasOwnProperty.call(m, "messageTimestamp"))
|
|
40
|
+
w.uint32(24).uint64(m.messageTimestamp);
|
|
41
|
+
if (m.participant != null && Object.hasOwnProperty.call(m, "participant"))
|
|
42
|
+
w.uint32(34).string(m.participant);
|
|
43
|
+
return w;
|
|
44
|
+
};
|
|
45
|
+
NotificationMessageInfo.decode = function decode(r, l, e, n) {
|
|
46
|
+
if (!(r instanceof $Reader))
|
|
47
|
+
r = $Reader.create(r);
|
|
48
|
+
if (n === undefined)
|
|
49
|
+
n = 0;
|
|
50
|
+
if (n > $Reader.recursionLimit)
|
|
51
|
+
throw Error("maximum nesting depth exceeded");
|
|
52
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.NotificationMessageInfo();
|
|
53
|
+
while (r.pos < c) {
|
|
54
|
+
var t = r.uint32();
|
|
55
|
+
if (t === e)
|
|
56
|
+
break;
|
|
57
|
+
switch (t >>> 3) {
|
|
58
|
+
case 1: {
|
|
59
|
+
m.key = $root.proto.MessageKey.decode(r, r.uint32(), undefined, n + 1);
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
case 2: {
|
|
63
|
+
m.message = $root.proto.Message.decode(r, r.uint32(), undefined, n + 1);
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
case 3: {
|
|
67
|
+
m.messageTimestamp = r.uint64();
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
case 4: {
|
|
71
|
+
m.participant = r.string();
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
default:
|
|
75
|
+
r.skipType(t & 7, n);
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return m;
|
|
80
|
+
};
|
|
81
|
+
NotificationMessageInfo.fromObject = function fromObject(d, n) {
|
|
82
|
+
if (d instanceof $root.proto.NotificationMessageInfo)
|
|
83
|
+
return d;
|
|
84
|
+
if (n === undefined)
|
|
85
|
+
n = 0;
|
|
86
|
+
if (n > $util.recursionLimit)
|
|
87
|
+
throw Error("maximum nesting depth exceeded");
|
|
88
|
+
var m = new $root.proto.NotificationMessageInfo();
|
|
89
|
+
if (d.key != null) {
|
|
90
|
+
if (typeof d.key !== "object")
|
|
91
|
+
throw TypeError(".proto.NotificationMessageInfo.key: object expected");
|
|
92
|
+
m.key = $root.proto.MessageKey.fromObject(d.key, n + 1);
|
|
93
|
+
}
|
|
94
|
+
if (d.message != null) {
|
|
95
|
+
if (typeof d.message !== "object")
|
|
96
|
+
throw TypeError(".proto.NotificationMessageInfo.message: object expected");
|
|
97
|
+
m.message = $root.proto.Message.fromObject(d.message, n + 1);
|
|
98
|
+
}
|
|
99
|
+
if (d.messageTimestamp != null) {
|
|
100
|
+
if ($util.Long)
|
|
101
|
+
(m.messageTimestamp = $util.Long.fromValue(d.messageTimestamp)).unsigned = true;
|
|
102
|
+
else if (typeof d.messageTimestamp === "string")
|
|
103
|
+
m.messageTimestamp = parseInt(d.messageTimestamp, 10);
|
|
104
|
+
else if (typeof d.messageTimestamp === "number")
|
|
105
|
+
m.messageTimestamp = d.messageTimestamp;
|
|
106
|
+
else if (typeof d.messageTimestamp === "object")
|
|
107
|
+
m.messageTimestamp = new $util.LongBits(d.messageTimestamp.low >>> 0, d.messageTimestamp.high >>> 0).toNumber(true);
|
|
108
|
+
}
|
|
109
|
+
if (d.participant != null) {
|
|
110
|
+
m.participant = String(d.participant);
|
|
111
|
+
}
|
|
112
|
+
return m;
|
|
113
|
+
};
|
|
114
|
+
NotificationMessageInfo.toObject = function toObject(m, o) {
|
|
115
|
+
if (!o)
|
|
116
|
+
o = {};
|
|
117
|
+
var d = {};
|
|
118
|
+
if (m.key != null && m.hasOwnProperty("key")) {
|
|
119
|
+
d.key = $root.proto.MessageKey.toObject(m.key, o);
|
|
120
|
+
if (o.oneofs)
|
|
121
|
+
d._key = "key";
|
|
122
|
+
}
|
|
123
|
+
if (m.message != null && m.hasOwnProperty("message")) {
|
|
124
|
+
d.message = $root.proto.Message.toObject(m.message, o);
|
|
125
|
+
if (o.oneofs)
|
|
126
|
+
d._message = "message";
|
|
127
|
+
}
|
|
128
|
+
if (m.messageTimestamp != null && m.hasOwnProperty("messageTimestamp")) {
|
|
129
|
+
if (typeof m.messageTimestamp === "number")
|
|
130
|
+
d.messageTimestamp = o.longs === String ? String(m.messageTimestamp) : m.messageTimestamp;
|
|
131
|
+
else
|
|
132
|
+
d.messageTimestamp = o.longs === String ? longToString(m.messageTimestamp, true) : o.longs === Number ? longToNumber(m.messageTimestamp, true) : m.messageTimestamp;
|
|
133
|
+
if (o.oneofs)
|
|
134
|
+
d._messageTimestamp = "messageTimestamp";
|
|
135
|
+
}
|
|
136
|
+
if (m.participant != null && m.hasOwnProperty("participant")) {
|
|
137
|
+
d.participant = m.participant;
|
|
138
|
+
if (o.oneofs)
|
|
139
|
+
d._participant = "participant";
|
|
140
|
+
}
|
|
141
|
+
return d;
|
|
142
|
+
};
|
|
143
|
+
NotificationMessageInfo.prototype.toJSON = function toJSON() {
|
|
144
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
145
|
+
};
|
|
146
|
+
NotificationMessageInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
147
|
+
if (typeUrlPrefix === undefined) {
|
|
148
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
149
|
+
}
|
|
150
|
+
return typeUrlPrefix + "/proto.NotificationMessageInfo";
|
|
151
|
+
};
|
|
152
|
+
return NotificationMessageInfo;
|