@hiroosy/baileys-lite 0.3.4 → 0.3.6
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
- package/src/socket/messages-recv.js +3 -1
- package/src/socket/messages-send.js +25 -10
- package/src/socket/socket-core.js +53 -57
- package/src/utils/wa-protocol-core.js +3 -9
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function BotReminderMetadata(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
|
+
BotReminderMetadata.prototype.requestMessageKey = null;
|
|
9
|
+
BotReminderMetadata.prototype.action = null;
|
|
10
|
+
BotReminderMetadata.prototype.name = null;
|
|
11
|
+
BotReminderMetadata.prototype.nextTriggerTimestamp = null;
|
|
12
|
+
BotReminderMetadata.prototype.frequency = null;
|
|
13
|
+
let $oneOfFields;
|
|
14
|
+
Object.defineProperty(BotReminderMetadata.prototype, "_requestMessageKey", {
|
|
15
|
+
get: $util.oneOfGetter($oneOfFields = ["requestMessageKey"]),
|
|
16
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(BotReminderMetadata.prototype, "_action", {
|
|
19
|
+
get: $util.oneOfGetter($oneOfFields = ["action"]),
|
|
20
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(BotReminderMetadata.prototype, "_name", {
|
|
23
|
+
get: $util.oneOfGetter($oneOfFields = ["name"]),
|
|
24
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(BotReminderMetadata.prototype, "_nextTriggerTimestamp", {
|
|
27
|
+
get: $util.oneOfGetter($oneOfFields = ["nextTriggerTimestamp"]),
|
|
28
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(BotReminderMetadata.prototype, "_frequency", {
|
|
31
|
+
get: $util.oneOfGetter($oneOfFields = ["frequency"]),
|
|
32
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
33
|
+
});
|
|
34
|
+
BotReminderMetadata.create = function create(properties) {
|
|
35
|
+
return new BotReminderMetadata(properties);
|
|
36
|
+
};
|
|
37
|
+
BotReminderMetadata.encode = function encode(m, w) {
|
|
38
|
+
if (!w)
|
|
39
|
+
w = $Writer.create();
|
|
40
|
+
if (m.requestMessageKey != null && Object.hasOwnProperty.call(m, "requestMessageKey"))
|
|
41
|
+
$root.proto.MessageKey.encode(m.requestMessageKey, w.uint32(10).fork()).ldelim();
|
|
42
|
+
if (m.action != null && Object.hasOwnProperty.call(m, "action"))
|
|
43
|
+
w.uint32(16).int32(m.action);
|
|
44
|
+
if (m.name != null && Object.hasOwnProperty.call(m, "name"))
|
|
45
|
+
w.uint32(26).string(m.name);
|
|
46
|
+
if (m.nextTriggerTimestamp != null && Object.hasOwnProperty.call(m, "nextTriggerTimestamp"))
|
|
47
|
+
w.uint32(32).uint64(m.nextTriggerTimestamp);
|
|
48
|
+
if (m.frequency != null && Object.hasOwnProperty.call(m, "frequency"))
|
|
49
|
+
w.uint32(40).int32(m.frequency);
|
|
50
|
+
return w;
|
|
51
|
+
};
|
|
52
|
+
BotReminderMetadata.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.BotReminderMetadata();
|
|
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.requestMessageKey = $root.proto.MessageKey.decode(r, r.uint32(), undefined, n + 1);
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
case 2: {
|
|
70
|
+
m.action = r.int32();
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
case 3: {
|
|
74
|
+
m.name = r.string();
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
case 4: {
|
|
78
|
+
m.nextTriggerTimestamp = r.uint64();
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
case 5: {
|
|
82
|
+
m.frequency = r.int32();
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
default:
|
|
86
|
+
r.skipType(t & 7, n);
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return m;
|
|
91
|
+
};
|
|
92
|
+
BotReminderMetadata.fromObject = function fromObject(d, n) {
|
|
93
|
+
if (d instanceof $root.proto.BotReminderMetadata)
|
|
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.BotReminderMetadata();
|
|
100
|
+
if (d.requestMessageKey != null) {
|
|
101
|
+
if (typeof d.requestMessageKey !== "object")
|
|
102
|
+
throw TypeError(".proto.BotReminderMetadata.requestMessageKey: object expected");
|
|
103
|
+
m.requestMessageKey = $root.proto.MessageKey.fromObject(d.requestMessageKey, n + 1);
|
|
104
|
+
}
|
|
105
|
+
switch (d.action) {
|
|
106
|
+
default:
|
|
107
|
+
if (typeof d.action === "number") {
|
|
108
|
+
m.action = d.action;
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
case "NOTIFY":
|
|
113
|
+
case 1:
|
|
114
|
+
m.action = 1;
|
|
115
|
+
break;
|
|
116
|
+
case "CREATE":
|
|
117
|
+
case 2:
|
|
118
|
+
m.action = 2;
|
|
119
|
+
break;
|
|
120
|
+
case "DELETE":
|
|
121
|
+
case 3:
|
|
122
|
+
m.action = 3;
|
|
123
|
+
break;
|
|
124
|
+
case "UPDATE":
|
|
125
|
+
case 4:
|
|
126
|
+
m.action = 4;
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
if (d.name != null) {
|
|
130
|
+
m.name = String(d.name);
|
|
131
|
+
}
|
|
132
|
+
if (d.nextTriggerTimestamp != null) {
|
|
133
|
+
if ($util.Long)
|
|
134
|
+
(m.nextTriggerTimestamp = $util.Long.fromValue(d.nextTriggerTimestamp)).unsigned = true;
|
|
135
|
+
else if (typeof d.nextTriggerTimestamp === "string")
|
|
136
|
+
m.nextTriggerTimestamp = parseInt(d.nextTriggerTimestamp, 10);
|
|
137
|
+
else if (typeof d.nextTriggerTimestamp === "number")
|
|
138
|
+
m.nextTriggerTimestamp = d.nextTriggerTimestamp;
|
|
139
|
+
else if (typeof d.nextTriggerTimestamp === "object")
|
|
140
|
+
m.nextTriggerTimestamp = new $util.LongBits(d.nextTriggerTimestamp.low >>> 0, d.nextTriggerTimestamp.high >>> 0).toNumber(true);
|
|
141
|
+
}
|
|
142
|
+
switch (d.frequency) {
|
|
143
|
+
default:
|
|
144
|
+
if (typeof d.frequency === "number") {
|
|
145
|
+
m.frequency = d.frequency;
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
break;
|
|
149
|
+
case "ONCE":
|
|
150
|
+
case 1:
|
|
151
|
+
m.frequency = 1;
|
|
152
|
+
break;
|
|
153
|
+
case "DAILY":
|
|
154
|
+
case 2:
|
|
155
|
+
m.frequency = 2;
|
|
156
|
+
break;
|
|
157
|
+
case "WEEKLY":
|
|
158
|
+
case 3:
|
|
159
|
+
m.frequency = 3;
|
|
160
|
+
break;
|
|
161
|
+
case "BIWEEKLY":
|
|
162
|
+
case 4:
|
|
163
|
+
m.frequency = 4;
|
|
164
|
+
break;
|
|
165
|
+
case "MONTHLY":
|
|
166
|
+
case 5:
|
|
167
|
+
m.frequency = 5;
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
return m;
|
|
171
|
+
};
|
|
172
|
+
BotReminderMetadata.toObject = function toObject(m, o) {
|
|
173
|
+
if (!o)
|
|
174
|
+
o = {};
|
|
175
|
+
var d = {};
|
|
176
|
+
if (m.requestMessageKey != null && m.hasOwnProperty("requestMessageKey")) {
|
|
177
|
+
d.requestMessageKey = $root.proto.MessageKey.toObject(m.requestMessageKey, o);
|
|
178
|
+
if (o.oneofs)
|
|
179
|
+
d._requestMessageKey = "requestMessageKey";
|
|
180
|
+
}
|
|
181
|
+
if (m.action != null && m.hasOwnProperty("action")) {
|
|
182
|
+
d.action = o.enums === String ? $root.proto.BotReminderMetadata.ReminderAction[m.action] === undefined ? m.action : $root.proto.BotReminderMetadata.ReminderAction[m.action] : m.action;
|
|
183
|
+
if (o.oneofs)
|
|
184
|
+
d._action = "action";
|
|
185
|
+
}
|
|
186
|
+
if (m.name != null && m.hasOwnProperty("name")) {
|
|
187
|
+
d.name = m.name;
|
|
188
|
+
if (o.oneofs)
|
|
189
|
+
d._name = "name";
|
|
190
|
+
}
|
|
191
|
+
if (m.nextTriggerTimestamp != null && m.hasOwnProperty("nextTriggerTimestamp")) {
|
|
192
|
+
if (typeof m.nextTriggerTimestamp === "number")
|
|
193
|
+
d.nextTriggerTimestamp = o.longs === String ? String(m.nextTriggerTimestamp) : m.nextTriggerTimestamp;
|
|
194
|
+
else
|
|
195
|
+
d.nextTriggerTimestamp = o.longs === String ? longToString(m.nextTriggerTimestamp, true) : o.longs === Number ? longToNumber(m.nextTriggerTimestamp, true) : m.nextTriggerTimestamp;
|
|
196
|
+
if (o.oneofs)
|
|
197
|
+
d._nextTriggerTimestamp = "nextTriggerTimestamp";
|
|
198
|
+
}
|
|
199
|
+
if (m.frequency != null && m.hasOwnProperty("frequency")) {
|
|
200
|
+
d.frequency = o.enums === String ? $root.proto.BotReminderMetadata.ReminderFrequency[m.frequency] === undefined ? m.frequency : $root.proto.BotReminderMetadata.ReminderFrequency[m.frequency] : m.frequency;
|
|
201
|
+
if (o.oneofs)
|
|
202
|
+
d._frequency = "frequency";
|
|
203
|
+
}
|
|
204
|
+
return d;
|
|
205
|
+
};
|
|
206
|
+
BotReminderMetadata.prototype.toJSON = function toJSON() {
|
|
207
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
208
|
+
};
|
|
209
|
+
BotReminderMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
210
|
+
if (typeUrlPrefix === undefined) {
|
|
211
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
212
|
+
}
|
|
213
|
+
return typeUrlPrefix + "/proto.BotReminderMetadata";
|
|
214
|
+
};
|
|
215
|
+
$lazy(BotReminderMetadata, "ReminderAction", function() {
|
|
216
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
217
|
+
values[valuesById[1] = "NOTIFY"] = 1;
|
|
218
|
+
values[valuesById[2] = "CREATE"] = 2;
|
|
219
|
+
values[valuesById[3] = "DELETE"] = 3;
|
|
220
|
+
values[valuesById[4] = "UPDATE"] = 4;
|
|
221
|
+
return values;
|
|
222
|
+
});
|
|
223
|
+
$lazy(BotReminderMetadata, "ReminderFrequency", function() {
|
|
224
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
225
|
+
values[valuesById[1] = "ONCE"] = 1;
|
|
226
|
+
values[valuesById[2] = "DAILY"] = 2;
|
|
227
|
+
values[valuesById[3] = "WEEKLY"] = 3;
|
|
228
|
+
values[valuesById[4] = "BIWEEKLY"] = 4;
|
|
229
|
+
values[valuesById[5] = "MONTHLY"] = 5;
|
|
230
|
+
return values;
|
|
231
|
+
});
|
|
232
|
+
return BotReminderMetadata;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function BotRenderingConfigMetadata(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
|
+
BotRenderingConfigMetadata.prototype.bloksVersioningId = null;
|
|
9
|
+
BotRenderingConfigMetadata.prototype.pixelDensity = null;
|
|
10
|
+
let $oneOfFields;
|
|
11
|
+
Object.defineProperty(BotRenderingConfigMetadata.prototype, "_bloksVersioningId", {
|
|
12
|
+
get: $util.oneOfGetter($oneOfFields = ["bloksVersioningId"]),
|
|
13
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(BotRenderingConfigMetadata.prototype, "_pixelDensity", {
|
|
16
|
+
get: $util.oneOfGetter($oneOfFields = ["pixelDensity"]),
|
|
17
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18
|
+
});
|
|
19
|
+
BotRenderingConfigMetadata.create = function create(properties) {
|
|
20
|
+
return new BotRenderingConfigMetadata(properties);
|
|
21
|
+
};
|
|
22
|
+
BotRenderingConfigMetadata.encode = function encode(m, w) {
|
|
23
|
+
if (!w)
|
|
24
|
+
w = $Writer.create();
|
|
25
|
+
if (m.bloksVersioningId != null && Object.hasOwnProperty.call(m, "bloksVersioningId"))
|
|
26
|
+
w.uint32(10).string(m.bloksVersioningId);
|
|
27
|
+
if (m.pixelDensity != null && Object.hasOwnProperty.call(m, "pixelDensity"))
|
|
28
|
+
w.uint32(17).double(m.pixelDensity);
|
|
29
|
+
return w;
|
|
30
|
+
};
|
|
31
|
+
BotRenderingConfigMetadata.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.BotRenderingConfigMetadata();
|
|
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.bloksVersioningId = r.string();
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
case 2: {
|
|
49
|
+
m.pixelDensity = r.double();
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
default:
|
|
53
|
+
r.skipType(t & 7, n);
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return m;
|
|
58
|
+
};
|
|
59
|
+
BotRenderingConfigMetadata.fromObject = function fromObject(d, n) {
|
|
60
|
+
if (d instanceof $root.proto.BotRenderingConfigMetadata)
|
|
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.BotRenderingConfigMetadata();
|
|
67
|
+
if (d.bloksVersioningId != null) {
|
|
68
|
+
m.bloksVersioningId = String(d.bloksVersioningId);
|
|
69
|
+
}
|
|
70
|
+
if (d.pixelDensity != null) {
|
|
71
|
+
m.pixelDensity = Number(d.pixelDensity);
|
|
72
|
+
}
|
|
73
|
+
return m;
|
|
74
|
+
};
|
|
75
|
+
BotRenderingConfigMetadata.toObject = function toObject(m, o) {
|
|
76
|
+
if (!o)
|
|
77
|
+
o = {};
|
|
78
|
+
var d = {};
|
|
79
|
+
if (m.bloksVersioningId != null && m.hasOwnProperty("bloksVersioningId")) {
|
|
80
|
+
d.bloksVersioningId = m.bloksVersioningId;
|
|
81
|
+
if (o.oneofs)
|
|
82
|
+
d._bloksVersioningId = "bloksVersioningId";
|
|
83
|
+
}
|
|
84
|
+
if (m.pixelDensity != null && m.hasOwnProperty("pixelDensity")) {
|
|
85
|
+
d.pixelDensity = o.json && !isFinite(m.pixelDensity) ? String(m.pixelDensity) : m.pixelDensity;
|
|
86
|
+
if (o.oneofs)
|
|
87
|
+
d._pixelDensity = "pixelDensity";
|
|
88
|
+
}
|
|
89
|
+
return d;
|
|
90
|
+
};
|
|
91
|
+
BotRenderingConfigMetadata.prototype.toJSON = function toJSON() {
|
|
92
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
93
|
+
};
|
|
94
|
+
BotRenderingConfigMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
95
|
+
if (typeUrlPrefix === undefined) {
|
|
96
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
97
|
+
}
|
|
98
|
+
return typeUrlPrefix + "/proto.BotRenderingConfigMetadata";
|
|
99
|
+
};
|
|
100
|
+
return BotRenderingConfigMetadata;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function BotRenderingMetadata(p) {
|
|
3
|
+
this.keywords = [];
|
|
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
|
+
BotRenderingMetadata.prototype.keywords = $util.emptyArray;
|
|
10
|
+
BotRenderingMetadata.create = function create(properties) {
|
|
11
|
+
return new BotRenderingMetadata(properties);
|
|
12
|
+
};
|
|
13
|
+
BotRenderingMetadata.encode = function encode(m, w) {
|
|
14
|
+
if (!w)
|
|
15
|
+
w = $Writer.create();
|
|
16
|
+
if (m.keywords != null && m.keywords.length) {
|
|
17
|
+
for (var i = 0; i < m.keywords.length; ++i)
|
|
18
|
+
$root.proto.BotRenderingMetadata.Keyword.encode(m.keywords[i], w.uint32(10).fork()).ldelim();
|
|
19
|
+
}
|
|
20
|
+
return w;
|
|
21
|
+
};
|
|
22
|
+
BotRenderingMetadata.decode = function decode(r, l, e, n) {
|
|
23
|
+
if (!(r instanceof $Reader))
|
|
24
|
+
r = $Reader.create(r);
|
|
25
|
+
if (n === undefined)
|
|
26
|
+
n = 0;
|
|
27
|
+
if (n > $Reader.recursionLimit)
|
|
28
|
+
throw Error("maximum nesting depth exceeded");
|
|
29
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotRenderingMetadata();
|
|
30
|
+
while (r.pos < c) {
|
|
31
|
+
var t = r.uint32();
|
|
32
|
+
if (t === e)
|
|
33
|
+
break;
|
|
34
|
+
switch (t >>> 3) {
|
|
35
|
+
case 1: {
|
|
36
|
+
if (!(m.keywords && m.keywords.length))
|
|
37
|
+
m.keywords = [];
|
|
38
|
+
m.keywords.push($root.proto.BotRenderingMetadata.Keyword.decode(r, r.uint32(), undefined, n + 1));
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
default:
|
|
42
|
+
r.skipType(t & 7, n);
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return m;
|
|
47
|
+
};
|
|
48
|
+
BotRenderingMetadata.fromObject = function fromObject(d, n) {
|
|
49
|
+
if (d instanceof $root.proto.BotRenderingMetadata)
|
|
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.BotRenderingMetadata();
|
|
56
|
+
if (d.keywords) {
|
|
57
|
+
if (!Array.isArray(d.keywords))
|
|
58
|
+
throw TypeError(".proto.BotRenderingMetadata.keywords: array expected");
|
|
59
|
+
m.keywords = [];
|
|
60
|
+
for (var i = 0; i < d.keywords.length; ++i) {
|
|
61
|
+
if (typeof d.keywords[i] !== "object")
|
|
62
|
+
throw TypeError(".proto.BotRenderingMetadata.keywords: object expected");
|
|
63
|
+
m.keywords[i] = $root.proto.BotRenderingMetadata.Keyword.fromObject(d.keywords[i], n + 1);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return m;
|
|
67
|
+
};
|
|
68
|
+
BotRenderingMetadata.toObject = function toObject(m, o) {
|
|
69
|
+
if (!o)
|
|
70
|
+
o = {};
|
|
71
|
+
var d = {};
|
|
72
|
+
if (o.arrays || o.defaults) {
|
|
73
|
+
d.keywords = [];
|
|
74
|
+
}
|
|
75
|
+
if (m.keywords && m.keywords.length) {
|
|
76
|
+
d.keywords = [];
|
|
77
|
+
for (var j = 0; j < m.keywords.length; ++j) {
|
|
78
|
+
d.keywords[j] = $root.proto.BotRenderingMetadata.Keyword.toObject(m.keywords[j], o);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return d;
|
|
82
|
+
};
|
|
83
|
+
BotRenderingMetadata.prototype.toJSON = function toJSON() {
|
|
84
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
85
|
+
};
|
|
86
|
+
BotRenderingMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
87
|
+
if (typeUrlPrefix === undefined) {
|
|
88
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
89
|
+
}
|
|
90
|
+
return typeUrlPrefix + "/proto.BotRenderingMetadata";
|
|
91
|
+
};
|
|
92
|
+
$lazy(BotRenderingMetadata, "Keyword", function() {
|
|
93
|
+
function Keyword(p) {
|
|
94
|
+
this.associatedPrompts = [];
|
|
95
|
+
if (p)
|
|
96
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
97
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
98
|
+
this[ks[i]] = p[ks[i]];
|
|
99
|
+
}
|
|
100
|
+
Keyword.prototype.value = null;
|
|
101
|
+
Keyword.prototype.associatedPrompts = $util.emptyArray;
|
|
102
|
+
let $oneOfFields;
|
|
103
|
+
Object.defineProperty(Keyword.prototype, "_value", {
|
|
104
|
+
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
|
105
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
106
|
+
});
|
|
107
|
+
Keyword.create = function create(properties) {
|
|
108
|
+
return new Keyword(properties);
|
|
109
|
+
};
|
|
110
|
+
Keyword.encode = function encode(m, w) {
|
|
111
|
+
if (!w)
|
|
112
|
+
w = $Writer.create();
|
|
113
|
+
if (m.value != null && Object.hasOwnProperty.call(m, "value"))
|
|
114
|
+
w.uint32(10).string(m.value);
|
|
115
|
+
if (m.associatedPrompts != null && m.associatedPrompts.length) {
|
|
116
|
+
for (var i = 0; i < m.associatedPrompts.length; ++i)
|
|
117
|
+
w.uint32(18).string(m.associatedPrompts[i]);
|
|
118
|
+
}
|
|
119
|
+
return w;
|
|
120
|
+
};
|
|
121
|
+
Keyword.decode = function decode(r, l, e, n) {
|
|
122
|
+
if (!(r instanceof $Reader))
|
|
123
|
+
r = $Reader.create(r);
|
|
124
|
+
if (n === undefined)
|
|
125
|
+
n = 0;
|
|
126
|
+
if (n > $Reader.recursionLimit)
|
|
127
|
+
throw Error("maximum nesting depth exceeded");
|
|
128
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotRenderingMetadata.Keyword();
|
|
129
|
+
while (r.pos < c) {
|
|
130
|
+
var t = r.uint32();
|
|
131
|
+
if (t === e)
|
|
132
|
+
break;
|
|
133
|
+
switch (t >>> 3) {
|
|
134
|
+
case 1: {
|
|
135
|
+
m.value = r.string();
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
case 2: {
|
|
139
|
+
if (!(m.associatedPrompts && m.associatedPrompts.length))
|
|
140
|
+
m.associatedPrompts = [];
|
|
141
|
+
m.associatedPrompts.push(r.string());
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
default:
|
|
145
|
+
r.skipType(t & 7, n);
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return m;
|
|
150
|
+
};
|
|
151
|
+
Keyword.fromObject = function fromObject(d, n) {
|
|
152
|
+
if (d instanceof $root.proto.BotRenderingMetadata.Keyword)
|
|
153
|
+
return d;
|
|
154
|
+
if (n === undefined)
|
|
155
|
+
n = 0;
|
|
156
|
+
if (n > $util.recursionLimit)
|
|
157
|
+
throw Error("maximum nesting depth exceeded");
|
|
158
|
+
var m = new $root.proto.BotRenderingMetadata.Keyword();
|
|
159
|
+
if (d.value != null) {
|
|
160
|
+
m.value = String(d.value);
|
|
161
|
+
}
|
|
162
|
+
if (d.associatedPrompts) {
|
|
163
|
+
if (!Array.isArray(d.associatedPrompts))
|
|
164
|
+
throw TypeError(".proto.BotRenderingMetadata.Keyword.associatedPrompts: array expected");
|
|
165
|
+
m.associatedPrompts = [];
|
|
166
|
+
for (var i = 0; i < d.associatedPrompts.length; ++i) {
|
|
167
|
+
m.associatedPrompts[i] = String(d.associatedPrompts[i]);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return m;
|
|
171
|
+
};
|
|
172
|
+
Keyword.toObject = function toObject(m, o) {
|
|
173
|
+
if (!o)
|
|
174
|
+
o = {};
|
|
175
|
+
var d = {};
|
|
176
|
+
if (o.arrays || o.defaults) {
|
|
177
|
+
d.associatedPrompts = [];
|
|
178
|
+
}
|
|
179
|
+
if (m.value != null && m.hasOwnProperty("value")) {
|
|
180
|
+
d.value = m.value;
|
|
181
|
+
if (o.oneofs)
|
|
182
|
+
d._value = "value";
|
|
183
|
+
}
|
|
184
|
+
if (m.associatedPrompts && m.associatedPrompts.length) {
|
|
185
|
+
d.associatedPrompts = [];
|
|
186
|
+
for (var j = 0; j < m.associatedPrompts.length; ++j) {
|
|
187
|
+
d.associatedPrompts[j] = m.associatedPrompts[j];
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return d;
|
|
191
|
+
};
|
|
192
|
+
Keyword.prototype.toJSON = function toJSON() {
|
|
193
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
194
|
+
};
|
|
195
|
+
Keyword.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
196
|
+
if (typeUrlPrefix === undefined) {
|
|
197
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
198
|
+
}
|
|
199
|
+
return typeUrlPrefix + "/proto.BotRenderingMetadata.Keyword";
|
|
200
|
+
};
|
|
201
|
+
return Keyword;
|
|
202
|
+
});
|
|
203
|
+
return BotRenderingMetadata;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function BotResolvedToolCallMetadata(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
|
+
BotResolvedToolCallMetadata.prototype.toolCallId = null;
|
|
9
|
+
BotResolvedToolCallMetadata.prototype.resolutionDataSerialized = null;
|
|
10
|
+
let $oneOfFields;
|
|
11
|
+
Object.defineProperty(BotResolvedToolCallMetadata.prototype, "_toolCallId", {
|
|
12
|
+
get: $util.oneOfGetter($oneOfFields = ["toolCallId"]),
|
|
13
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(BotResolvedToolCallMetadata.prototype, "_resolutionDataSerialized", {
|
|
16
|
+
get: $util.oneOfGetter($oneOfFields = ["resolutionDataSerialized"]),
|
|
17
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18
|
+
});
|
|
19
|
+
BotResolvedToolCallMetadata.create = function create(properties) {
|
|
20
|
+
return new BotResolvedToolCallMetadata(properties);
|
|
21
|
+
};
|
|
22
|
+
BotResolvedToolCallMetadata.encode = function encode(m, w) {
|
|
23
|
+
if (!w)
|
|
24
|
+
w = $Writer.create();
|
|
25
|
+
if (m.toolCallId != null && Object.hasOwnProperty.call(m, "toolCallId"))
|
|
26
|
+
w.uint32(10).string(m.toolCallId);
|
|
27
|
+
if (m.resolutionDataSerialized != null && Object.hasOwnProperty.call(m, "resolutionDataSerialized"))
|
|
28
|
+
w.uint32(18).string(m.resolutionDataSerialized);
|
|
29
|
+
return w;
|
|
30
|
+
};
|
|
31
|
+
BotResolvedToolCallMetadata.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.BotResolvedToolCallMetadata();
|
|
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.toolCallId = r.string();
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
case 2: {
|
|
49
|
+
m.resolutionDataSerialized = r.string();
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
default:
|
|
53
|
+
r.skipType(t & 7, n);
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return m;
|
|
58
|
+
};
|
|
59
|
+
BotResolvedToolCallMetadata.fromObject = function fromObject(d, n) {
|
|
60
|
+
if (d instanceof $root.proto.BotResolvedToolCallMetadata)
|
|
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.BotResolvedToolCallMetadata();
|
|
67
|
+
if (d.toolCallId != null) {
|
|
68
|
+
m.toolCallId = String(d.toolCallId);
|
|
69
|
+
}
|
|
70
|
+
if (d.resolutionDataSerialized != null) {
|
|
71
|
+
m.resolutionDataSerialized = String(d.resolutionDataSerialized);
|
|
72
|
+
}
|
|
73
|
+
return m;
|
|
74
|
+
};
|
|
75
|
+
BotResolvedToolCallMetadata.toObject = function toObject(m, o) {
|
|
76
|
+
if (!o)
|
|
77
|
+
o = {};
|
|
78
|
+
var d = {};
|
|
79
|
+
if (m.toolCallId != null && m.hasOwnProperty("toolCallId")) {
|
|
80
|
+
d.toolCallId = m.toolCallId;
|
|
81
|
+
if (o.oneofs)
|
|
82
|
+
d._toolCallId = "toolCallId";
|
|
83
|
+
}
|
|
84
|
+
if (m.resolutionDataSerialized != null && m.hasOwnProperty("resolutionDataSerialized")) {
|
|
85
|
+
d.resolutionDataSerialized = m.resolutionDataSerialized;
|
|
86
|
+
if (o.oneofs)
|
|
87
|
+
d._resolutionDataSerialized = "resolutionDataSerialized";
|
|
88
|
+
}
|
|
89
|
+
return d;
|
|
90
|
+
};
|
|
91
|
+
BotResolvedToolCallMetadata.prototype.toJSON = function toJSON() {
|
|
92
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
93
|
+
};
|
|
94
|
+
BotResolvedToolCallMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
95
|
+
if (typeUrlPrefix === undefined) {
|
|
96
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
97
|
+
}
|
|
98
|
+
return typeUrlPrefix + "/proto.BotResolvedToolCallMetadata";
|
|
99
|
+
};
|
|
100
|
+
return BotResolvedToolCallMetadata;
|