@hiroosy/baileys-lite 0.3.4 → 0.3.5

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