@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.
Files changed (242) hide show
  1. package/WAProto/index.js +247 -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
  226. package/src/binary/wa-binary.js +4 -2
  227. package/src/defaults.js +2 -1
  228. package/src/foundation/cache.js +99 -24
  229. package/src/foundation/memory.js +103 -0
  230. package/src/signal/libsignal.js +1 -8
  231. package/src/signal/signal-repository.js +6 -4
  232. package/src/socket/chats.js +2 -0
  233. package/src/socket/messages-recv.js +5 -3
  234. package/src/socket/messages-send.js +2 -2
  235. package/src/socket/socket-core.js +3 -0
  236. package/src/utils/auth-state-core.js +2 -1
  237. package/src/utils/chat-sync.js +4 -0
  238. package/src/utils/media.js +13 -8
  239. package/src/utils/message-processing.js +22 -6
  240. package/src/utils/wa-protocol-core.js +6 -5
  241. package/src/wam/wam-constants.js +22 -22851
  242. package/src/wam/wam-data.json +1 -0
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ function AIMediaCollectionMetadata(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
+ AIMediaCollectionMetadata.prototype.collectionId = null;
9
+ AIMediaCollectionMetadata.prototype.uploadOrderIndex = null;
10
+ let $oneOfFields;
11
+ Object.defineProperty(AIMediaCollectionMetadata.prototype, "_collectionId", {
12
+ get: $util.oneOfGetter($oneOfFields = ["collectionId"]),
13
+ set: $util.oneOfSetter($oneOfFields)
14
+ });
15
+ Object.defineProperty(AIMediaCollectionMetadata.prototype, "_uploadOrderIndex", {
16
+ get: $util.oneOfGetter($oneOfFields = ["uploadOrderIndex"]),
17
+ set: $util.oneOfSetter($oneOfFields)
18
+ });
19
+ AIMediaCollectionMetadata.create = function create(properties) {
20
+ return new AIMediaCollectionMetadata(properties);
21
+ };
22
+ AIMediaCollectionMetadata.encode = function encode(m, w) {
23
+ if (!w)
24
+ w = $Writer.create();
25
+ if (m.collectionId != null && Object.hasOwnProperty.call(m, "collectionId"))
26
+ w.uint32(10).string(m.collectionId);
27
+ if (m.uploadOrderIndex != null && Object.hasOwnProperty.call(m, "uploadOrderIndex"))
28
+ w.uint32(16).uint32(m.uploadOrderIndex);
29
+ return w;
30
+ };
31
+ AIMediaCollectionMetadata.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.AIMediaCollectionMetadata();
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.collectionId = r.string();
46
+ break;
47
+ }
48
+ case 2: {
49
+ m.uploadOrderIndex = r.uint32();
50
+ break;
51
+ }
52
+ default:
53
+ r.skipType(t & 7, n);
54
+ break;
55
+ }
56
+ }
57
+ return m;
58
+ };
59
+ AIMediaCollectionMetadata.fromObject = function fromObject(d, n) {
60
+ if (d instanceof $root.proto.AIMediaCollectionMetadata)
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.AIMediaCollectionMetadata();
67
+ if (d.collectionId != null) {
68
+ m.collectionId = String(d.collectionId);
69
+ }
70
+ if (d.uploadOrderIndex != null) {
71
+ m.uploadOrderIndex = d.uploadOrderIndex >>> 0;
72
+ }
73
+ return m;
74
+ };
75
+ AIMediaCollectionMetadata.toObject = function toObject(m, o) {
76
+ if (!o)
77
+ o = {};
78
+ var d = {};
79
+ if (m.collectionId != null && m.hasOwnProperty("collectionId")) {
80
+ d.collectionId = m.collectionId;
81
+ if (o.oneofs)
82
+ d._collectionId = "collectionId";
83
+ }
84
+ if (m.uploadOrderIndex != null && m.hasOwnProperty("uploadOrderIndex")) {
85
+ d.uploadOrderIndex = m.uploadOrderIndex;
86
+ if (o.oneofs)
87
+ d._uploadOrderIndex = "uploadOrderIndex";
88
+ }
89
+ return d;
90
+ };
91
+ AIMediaCollectionMetadata.prototype.toJSON = function toJSON() {
92
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
93
+ };
94
+ AIMediaCollectionMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
95
+ if (typeUrlPrefix === undefined) {
96
+ typeUrlPrefix = "type.googleapis.com";
97
+ }
98
+ return typeUrlPrefix + "/proto.AIMediaCollectionMetadata";
99
+ };
100
+ return AIMediaCollectionMetadata;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ function AIMetadataOperation(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
+ AIMetadataOperation.prototype.hatchMetadataSync = null;
9
+ let $oneOfFields;
10
+ Object.defineProperty(AIMetadataOperation.prototype, "_hatchMetadataSync", {
11
+ get: $util.oneOfGetter($oneOfFields = ["hatchMetadataSync"]),
12
+ set: $util.oneOfSetter($oneOfFields)
13
+ });
14
+ AIMetadataOperation.create = function create(properties) {
15
+ return new AIMetadataOperation(properties);
16
+ };
17
+ AIMetadataOperation.encode = function encode(m, w) {
18
+ if (!w)
19
+ w = $Writer.create();
20
+ if (m.hatchMetadataSync != null && Object.hasOwnProperty.call(m, "hatchMetadataSync"))
21
+ $root.proto.HatchMetadataSync.encode(m.hatchMetadataSync, w.uint32(10).fork()).ldelim();
22
+ return w;
23
+ };
24
+ AIMetadataOperation.decode = function decode(r, l, e, n) {
25
+ if (!(r instanceof $Reader))
26
+ r = $Reader.create(r);
27
+ if (n === undefined)
28
+ n = 0;
29
+ if (n > $Reader.recursionLimit)
30
+ throw Error("maximum nesting depth exceeded");
31
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIMetadataOperation();
32
+ while (r.pos < c) {
33
+ var t = r.uint32();
34
+ if (t === e)
35
+ break;
36
+ switch (t >>> 3) {
37
+ case 1: {
38
+ m.hatchMetadataSync = $root.proto.HatchMetadataSync.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
+ AIMetadataOperation.fromObject = function fromObject(d, n) {
49
+ if (d instanceof $root.proto.AIMetadataOperation)
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.AIMetadataOperation();
56
+ if (d.hatchMetadataSync != null) {
57
+ if (typeof d.hatchMetadataSync !== "object")
58
+ throw TypeError(".proto.AIMetadataOperation.hatchMetadataSync: object expected");
59
+ m.hatchMetadataSync = $root.proto.HatchMetadataSync.fromObject(d.hatchMetadataSync, n + 1);
60
+ }
61
+ return m;
62
+ };
63
+ AIMetadataOperation.toObject = function toObject(m, o) {
64
+ if (!o)
65
+ o = {};
66
+ var d = {};
67
+ if (m.hatchMetadataSync != null && m.hasOwnProperty("hatchMetadataSync")) {
68
+ d.hatchMetadataSync = $root.proto.HatchMetadataSync.toObject(m.hatchMetadataSync, o);
69
+ if (o.oneofs)
70
+ d._hatchMetadataSync = "hatchMetadataSync";
71
+ }
72
+ return d;
73
+ };
74
+ AIMetadataOperation.prototype.toJSON = function toJSON() {
75
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
76
+ };
77
+ AIMetadataOperation.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
78
+ if (typeUrlPrefix === undefined) {
79
+ typeUrlPrefix = "type.googleapis.com";
80
+ }
81
+ return typeUrlPrefix + "/proto.AIMetadataOperation";
82
+ };
83
+ return AIMetadataOperation;
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ function AIQueryFanout(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
+ AIQueryFanout.prototype.messageKey = null;
9
+ AIQueryFanout.prototype.message = null;
10
+ AIQueryFanout.prototype.timestamp = null;
11
+ let $oneOfFields;
12
+ Object.defineProperty(AIQueryFanout.prototype, "_messageKey", {
13
+ get: $util.oneOfGetter($oneOfFields = ["messageKey"]),
14
+ set: $util.oneOfSetter($oneOfFields)
15
+ });
16
+ Object.defineProperty(AIQueryFanout.prototype, "_message", {
17
+ get: $util.oneOfGetter($oneOfFields = ["message"]),
18
+ set: $util.oneOfSetter($oneOfFields)
19
+ });
20
+ Object.defineProperty(AIQueryFanout.prototype, "_timestamp", {
21
+ get: $util.oneOfGetter($oneOfFields = ["timestamp"]),
22
+ set: $util.oneOfSetter($oneOfFields)
23
+ });
24
+ AIQueryFanout.create = function create(properties) {
25
+ return new AIQueryFanout(properties);
26
+ };
27
+ AIQueryFanout.encode = function encode(m, w) {
28
+ if (!w)
29
+ w = $Writer.create();
30
+ if (m.messageKey != null && Object.hasOwnProperty.call(m, "messageKey"))
31
+ $root.proto.MessageKey.encode(m.messageKey, w.uint32(10).fork()).ldelim();
32
+ if (m.message != null && Object.hasOwnProperty.call(m, "message"))
33
+ $root.proto.Message.encode(m.message, w.uint32(18).fork()).ldelim();
34
+ if (m.timestamp != null && Object.hasOwnProperty.call(m, "timestamp"))
35
+ w.uint32(24).int64(m.timestamp);
36
+ return w;
37
+ };
38
+ AIQueryFanout.decode = function decode(r, l, e, n) {
39
+ if (!(r instanceof $Reader))
40
+ r = $Reader.create(r);
41
+ if (n === undefined)
42
+ n = 0;
43
+ if (n > $Reader.recursionLimit)
44
+ throw Error("maximum nesting depth exceeded");
45
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIQueryFanout();
46
+ while (r.pos < c) {
47
+ var t = r.uint32();
48
+ if (t === e)
49
+ break;
50
+ switch (t >>> 3) {
51
+ case 1: {
52
+ m.messageKey = $root.proto.MessageKey.decode(r, r.uint32(), undefined, n + 1);
53
+ break;
54
+ }
55
+ case 2: {
56
+ m.message = $root.proto.Message.decode(r, r.uint32(), undefined, n + 1);
57
+ break;
58
+ }
59
+ case 3: {
60
+ m.timestamp = r.int64();
61
+ break;
62
+ }
63
+ default:
64
+ r.skipType(t & 7, n);
65
+ break;
66
+ }
67
+ }
68
+ return m;
69
+ };
70
+ AIQueryFanout.fromObject = function fromObject(d, n) {
71
+ if (d instanceof $root.proto.AIQueryFanout)
72
+ return d;
73
+ if (n === undefined)
74
+ n = 0;
75
+ if (n > $util.recursionLimit)
76
+ throw Error("maximum nesting depth exceeded");
77
+ var m = new $root.proto.AIQueryFanout();
78
+ if (d.messageKey != null) {
79
+ if (typeof d.messageKey !== "object")
80
+ throw TypeError(".proto.AIQueryFanout.messageKey: object expected");
81
+ m.messageKey = $root.proto.MessageKey.fromObject(d.messageKey, n + 1);
82
+ }
83
+ if (d.message != null) {
84
+ if (typeof d.message !== "object")
85
+ throw TypeError(".proto.AIQueryFanout.message: object expected");
86
+ m.message = $root.proto.Message.fromObject(d.message, n + 1);
87
+ }
88
+ if (d.timestamp != null) {
89
+ if ($util.Long)
90
+ (m.timestamp = $util.Long.fromValue(d.timestamp)).unsigned = false;
91
+ else if (typeof d.timestamp === "string")
92
+ m.timestamp = parseInt(d.timestamp, 10);
93
+ else if (typeof d.timestamp === "number")
94
+ m.timestamp = d.timestamp;
95
+ else if (typeof d.timestamp === "object")
96
+ m.timestamp = new $util.LongBits(d.timestamp.low >>> 0, d.timestamp.high >>> 0).toNumber();
97
+ }
98
+ return m;
99
+ };
100
+ AIQueryFanout.toObject = function toObject(m, o) {
101
+ if (!o)
102
+ o = {};
103
+ var d = {};
104
+ if (m.messageKey != null && m.hasOwnProperty("messageKey")) {
105
+ d.messageKey = $root.proto.MessageKey.toObject(m.messageKey, o);
106
+ if (o.oneofs)
107
+ d._messageKey = "messageKey";
108
+ }
109
+ if (m.message != null && m.hasOwnProperty("message")) {
110
+ d.message = $root.proto.Message.toObject(m.message, o);
111
+ if (o.oneofs)
112
+ d._message = "message";
113
+ }
114
+ if (m.timestamp != null && m.hasOwnProperty("timestamp")) {
115
+ if (typeof m.timestamp === "number")
116
+ d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
117
+ else
118
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
119
+ if (o.oneofs)
120
+ d._timestamp = "timestamp";
121
+ }
122
+ return d;
123
+ };
124
+ AIQueryFanout.prototype.toJSON = function toJSON() {
125
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
126
+ };
127
+ AIQueryFanout.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
128
+ if (typeUrlPrefix === undefined) {
129
+ typeUrlPrefix = "type.googleapis.com";
130
+ }
131
+ return typeUrlPrefix + "/proto.AIQueryFanout";
132
+ };
133
+ return AIQueryFanout;
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ function AIRegenerateMetadata(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
+ AIRegenerateMetadata.prototype.messageKey = null;
9
+ AIRegenerateMetadata.prototype.responseTimestampMs = null;
10
+ let $oneOfFields;
11
+ Object.defineProperty(AIRegenerateMetadata.prototype, "_messageKey", {
12
+ get: $util.oneOfGetter($oneOfFields = ["messageKey"]),
13
+ set: $util.oneOfSetter($oneOfFields)
14
+ });
15
+ Object.defineProperty(AIRegenerateMetadata.prototype, "_responseTimestampMs", {
16
+ get: $util.oneOfGetter($oneOfFields = ["responseTimestampMs"]),
17
+ set: $util.oneOfSetter($oneOfFields)
18
+ });
19
+ AIRegenerateMetadata.create = function create(properties) {
20
+ return new AIRegenerateMetadata(properties);
21
+ };
22
+ AIRegenerateMetadata.encode = function encode(m, w) {
23
+ if (!w)
24
+ w = $Writer.create();
25
+ if (m.messageKey != null && Object.hasOwnProperty.call(m, "messageKey"))
26
+ $root.proto.MessageKey.encode(m.messageKey, w.uint32(10).fork()).ldelim();
27
+ if (m.responseTimestampMs != null && Object.hasOwnProperty.call(m, "responseTimestampMs"))
28
+ w.uint32(16).int64(m.responseTimestampMs);
29
+ return w;
30
+ };
31
+ AIRegenerateMetadata.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.AIRegenerateMetadata();
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.messageKey = $root.proto.MessageKey.decode(r, r.uint32(), undefined, n + 1);
46
+ break;
47
+ }
48
+ case 2: {
49
+ m.responseTimestampMs = r.int64();
50
+ break;
51
+ }
52
+ default:
53
+ r.skipType(t & 7, n);
54
+ break;
55
+ }
56
+ }
57
+ return m;
58
+ };
59
+ AIRegenerateMetadata.fromObject = function fromObject(d, n) {
60
+ if (d instanceof $root.proto.AIRegenerateMetadata)
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.AIRegenerateMetadata();
67
+ if (d.messageKey != null) {
68
+ if (typeof d.messageKey !== "object")
69
+ throw TypeError(".proto.AIRegenerateMetadata.messageKey: object expected");
70
+ m.messageKey = $root.proto.MessageKey.fromObject(d.messageKey, n + 1);
71
+ }
72
+ if (d.responseTimestampMs != null) {
73
+ if ($util.Long)
74
+ (m.responseTimestampMs = $util.Long.fromValue(d.responseTimestampMs)).unsigned = false;
75
+ else if (typeof d.responseTimestampMs === "string")
76
+ m.responseTimestampMs = parseInt(d.responseTimestampMs, 10);
77
+ else if (typeof d.responseTimestampMs === "number")
78
+ m.responseTimestampMs = d.responseTimestampMs;
79
+ else if (typeof d.responseTimestampMs === "object")
80
+ m.responseTimestampMs = new $util.LongBits(d.responseTimestampMs.low >>> 0, d.responseTimestampMs.high >>> 0).toNumber();
81
+ }
82
+ return m;
83
+ };
84
+ AIRegenerateMetadata.toObject = function toObject(m, o) {
85
+ if (!o)
86
+ o = {};
87
+ var d = {};
88
+ if (m.messageKey != null && m.hasOwnProperty("messageKey")) {
89
+ d.messageKey = $root.proto.MessageKey.toObject(m.messageKey, o);
90
+ if (o.oneofs)
91
+ d._messageKey = "messageKey";
92
+ }
93
+ if (m.responseTimestampMs != null && m.hasOwnProperty("responseTimestampMs")) {
94
+ if (typeof m.responseTimestampMs === "number")
95
+ d.responseTimestampMs = o.longs === String ? String(m.responseTimestampMs) : m.responseTimestampMs;
96
+ else
97
+ d.responseTimestampMs = o.longs === String ? longToString(m.responseTimestampMs) : o.longs === Number ? longToNumber(m.responseTimestampMs) : m.responseTimestampMs;
98
+ if (o.oneofs)
99
+ d._responseTimestampMs = "responseTimestampMs";
100
+ }
101
+ return d;
102
+ };
103
+ AIRegenerateMetadata.prototype.toJSON = function toJSON() {
104
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
105
+ };
106
+ AIRegenerateMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
107
+ if (typeUrlPrefix === undefined) {
108
+ typeUrlPrefix = "type.googleapis.com";
109
+ }
110
+ return typeUrlPrefix + "/proto.AIRegenerateMetadata";
111
+ };
112
+ return AIRegenerateMetadata;
@@ -0,0 +1,252 @@
1
+ "use strict";
2
+ function AIRichResponseCodeMetadata(p) {
3
+ this.codeBlocks = [];
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
+ AIRichResponseCodeMetadata.prototype.codeLanguage = null;
10
+ AIRichResponseCodeMetadata.prototype.codeBlocks = $util.emptyArray;
11
+ let $oneOfFields;
12
+ Object.defineProperty(AIRichResponseCodeMetadata.prototype, "_codeLanguage", {
13
+ get: $util.oneOfGetter($oneOfFields = ["codeLanguage"]),
14
+ set: $util.oneOfSetter($oneOfFields)
15
+ });
16
+ AIRichResponseCodeMetadata.create = function create(properties) {
17
+ return new AIRichResponseCodeMetadata(properties);
18
+ };
19
+ AIRichResponseCodeMetadata.encode = function encode(m, w) {
20
+ if (!w)
21
+ w = $Writer.create();
22
+ if (m.codeLanguage != null && Object.hasOwnProperty.call(m, "codeLanguage"))
23
+ w.uint32(10).string(m.codeLanguage);
24
+ if (m.codeBlocks != null && m.codeBlocks.length) {
25
+ for (var i = 0; i < m.codeBlocks.length; ++i)
26
+ $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.encode(m.codeBlocks[i], w.uint32(18).fork()).ldelim();
27
+ }
28
+ return w;
29
+ };
30
+ AIRichResponseCodeMetadata.decode = function decode(r, l, e, n) {
31
+ if (!(r instanceof $Reader))
32
+ r = $Reader.create(r);
33
+ if (n === undefined)
34
+ n = 0;
35
+ if (n > $Reader.recursionLimit)
36
+ throw Error("maximum nesting depth exceeded");
37
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseCodeMetadata();
38
+ while (r.pos < c) {
39
+ var t = r.uint32();
40
+ if (t === e)
41
+ break;
42
+ switch (t >>> 3) {
43
+ case 1: {
44
+ m.codeLanguage = r.string();
45
+ break;
46
+ }
47
+ case 2: {
48
+ if (!(m.codeBlocks && m.codeBlocks.length))
49
+ m.codeBlocks = [];
50
+ m.codeBlocks.push($root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.decode(r, r.uint32(), undefined, n + 1));
51
+ break;
52
+ }
53
+ default:
54
+ r.skipType(t & 7, n);
55
+ break;
56
+ }
57
+ }
58
+ return m;
59
+ };
60
+ AIRichResponseCodeMetadata.fromObject = function fromObject(d, n) {
61
+ if (d instanceof $root.proto.AIRichResponseCodeMetadata)
62
+ return d;
63
+ if (n === undefined)
64
+ n = 0;
65
+ if (n > $util.recursionLimit)
66
+ throw Error("maximum nesting depth exceeded");
67
+ var m = new $root.proto.AIRichResponseCodeMetadata();
68
+ if (d.codeLanguage != null) {
69
+ m.codeLanguage = String(d.codeLanguage);
70
+ }
71
+ if (d.codeBlocks) {
72
+ if (!Array.isArray(d.codeBlocks))
73
+ throw TypeError(".proto.AIRichResponseCodeMetadata.codeBlocks: array expected");
74
+ m.codeBlocks = [];
75
+ for (var i = 0; i < d.codeBlocks.length; ++i) {
76
+ if (typeof d.codeBlocks[i] !== "object")
77
+ throw TypeError(".proto.AIRichResponseCodeMetadata.codeBlocks: object expected");
78
+ m.codeBlocks[i] = $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.fromObject(d.codeBlocks[i], n + 1);
79
+ }
80
+ }
81
+ return m;
82
+ };
83
+ AIRichResponseCodeMetadata.toObject = function toObject(m, o) {
84
+ if (!o)
85
+ o = {};
86
+ var d = {};
87
+ if (o.arrays || o.defaults) {
88
+ d.codeBlocks = [];
89
+ }
90
+ if (m.codeLanguage != null && m.hasOwnProperty("codeLanguage")) {
91
+ d.codeLanguage = m.codeLanguage;
92
+ if (o.oneofs)
93
+ d._codeLanguage = "codeLanguage";
94
+ }
95
+ if (m.codeBlocks && m.codeBlocks.length) {
96
+ d.codeBlocks = [];
97
+ for (var j = 0; j < m.codeBlocks.length; ++j) {
98
+ d.codeBlocks[j] = $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.toObject(m.codeBlocks[j], o);
99
+ }
100
+ }
101
+ return d;
102
+ };
103
+ AIRichResponseCodeMetadata.prototype.toJSON = function toJSON() {
104
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
105
+ };
106
+ AIRichResponseCodeMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
107
+ if (typeUrlPrefix === undefined) {
108
+ typeUrlPrefix = "type.googleapis.com";
109
+ }
110
+ return typeUrlPrefix + "/proto.AIRichResponseCodeMetadata";
111
+ };
112
+ $lazy(AIRichResponseCodeMetadata, "AIRichResponseCodeBlock", function() {
113
+ function AIRichResponseCodeBlock(p) {
114
+ if (p)
115
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
116
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
117
+ this[ks[i]] = p[ks[i]];
118
+ }
119
+ AIRichResponseCodeBlock.prototype.highlightType = null;
120
+ AIRichResponseCodeBlock.prototype.codeContent = null;
121
+ let $oneOfFields;
122
+ Object.defineProperty(AIRichResponseCodeBlock.prototype, "_highlightType", {
123
+ get: $util.oneOfGetter($oneOfFields = ["highlightType"]),
124
+ set: $util.oneOfSetter($oneOfFields)
125
+ });
126
+ Object.defineProperty(AIRichResponseCodeBlock.prototype, "_codeContent", {
127
+ get: $util.oneOfGetter($oneOfFields = ["codeContent"]),
128
+ set: $util.oneOfSetter($oneOfFields)
129
+ });
130
+ AIRichResponseCodeBlock.create = function create(properties) {
131
+ return new AIRichResponseCodeBlock(properties);
132
+ };
133
+ AIRichResponseCodeBlock.encode = function encode(m, w) {
134
+ if (!w)
135
+ w = $Writer.create();
136
+ if (m.highlightType != null && Object.hasOwnProperty.call(m, "highlightType"))
137
+ w.uint32(8).int32(m.highlightType);
138
+ if (m.codeContent != null && Object.hasOwnProperty.call(m, "codeContent"))
139
+ w.uint32(18).string(m.codeContent);
140
+ return w;
141
+ };
142
+ AIRichResponseCodeBlock.decode = function decode(r, l, e, n) {
143
+ if (!(r instanceof $Reader))
144
+ r = $Reader.create(r);
145
+ if (n === undefined)
146
+ n = 0;
147
+ if (n > $Reader.recursionLimit)
148
+ throw Error("maximum nesting depth exceeded");
149
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock();
150
+ while (r.pos < c) {
151
+ var t = r.uint32();
152
+ if (t === e)
153
+ break;
154
+ switch (t >>> 3) {
155
+ case 1: {
156
+ m.highlightType = r.int32();
157
+ break;
158
+ }
159
+ case 2: {
160
+ m.codeContent = r.string();
161
+ break;
162
+ }
163
+ default:
164
+ r.skipType(t & 7, n);
165
+ break;
166
+ }
167
+ }
168
+ return m;
169
+ };
170
+ AIRichResponseCodeBlock.fromObject = function fromObject(d, n) {
171
+ if (d instanceof $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock)
172
+ return d;
173
+ if (n === undefined)
174
+ n = 0;
175
+ if (n > $util.recursionLimit)
176
+ throw Error("maximum nesting depth exceeded");
177
+ var m = new $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock();
178
+ switch (d.highlightType) {
179
+ default:
180
+ if (typeof d.highlightType === "number") {
181
+ m.highlightType = d.highlightType;
182
+ break;
183
+ }
184
+ break;
185
+ case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT":
186
+ case 0:
187
+ m.highlightType = 0;
188
+ break;
189
+ case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD":
190
+ case 1:
191
+ m.highlightType = 1;
192
+ break;
193
+ case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD":
194
+ case 2:
195
+ m.highlightType = 2;
196
+ break;
197
+ case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING":
198
+ case 3:
199
+ m.highlightType = 3;
200
+ break;
201
+ case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER":
202
+ case 4:
203
+ m.highlightType = 4;
204
+ break;
205
+ case "AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT":
206
+ case 5:
207
+ m.highlightType = 5;
208
+ break;
209
+ }
210
+ if (d.codeContent != null) {
211
+ m.codeContent = String(d.codeContent);
212
+ }
213
+ return m;
214
+ };
215
+ AIRichResponseCodeBlock.toObject = function toObject(m, o) {
216
+ if (!o)
217
+ o = {};
218
+ var d = {};
219
+ if (m.highlightType != null && m.hasOwnProperty("highlightType")) {
220
+ d.highlightType = o.enums === String ? $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType[m.highlightType] === undefined ? m.highlightType : $root.proto.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType[m.highlightType] : m.highlightType;
221
+ if (o.oneofs)
222
+ d._highlightType = "highlightType";
223
+ }
224
+ if (m.codeContent != null && m.hasOwnProperty("codeContent")) {
225
+ d.codeContent = m.codeContent;
226
+ if (o.oneofs)
227
+ d._codeContent = "codeContent";
228
+ }
229
+ return d;
230
+ };
231
+ AIRichResponseCodeBlock.prototype.toJSON = function toJSON() {
232
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
233
+ };
234
+ AIRichResponseCodeBlock.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
235
+ if (typeUrlPrefix === undefined) {
236
+ typeUrlPrefix = "type.googleapis.com";
237
+ }
238
+ return typeUrlPrefix + "/proto.AIRichResponseCodeMetadata.AIRichResponseCodeBlock";
239
+ };
240
+ return AIRichResponseCodeBlock;
241
+ });
242
+ $lazy(AIRichResponseCodeMetadata, "AIRichResponseCodeHighlightType", function() {
243
+ const valuesById = {}, values = Object.create(valuesById);
244
+ values[valuesById[0] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT"] = 0;
245
+ values[valuesById[1] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD"] = 1;
246
+ values[valuesById[2] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD"] = 2;
247
+ values[valuesById[3] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING"] = 3;
248
+ values[valuesById[4] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER"] = 4;
249
+ values[valuesById[5] = "AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT"] = 5;
250
+ return values;
251
+ });
252
+ return AIRichResponseCodeMetadata;